Skip to content

Commit 3a6e0a6

Browse files
committed
Initial commit
0 parents  commit 3a6e0a6

17 files changed

+336
-0
lines changed

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/.bundle/
2+
/.yardoc
3+
/_yardoc/
4+
/coverage/
5+
/doc/
6+
/pkg/
7+
/spec/reports/
8+
/tmp/
9+
10+
# rspec failure tracking
11+
.rspec_status

.rspec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
--format documentation
2+
--color
3+
--require spec_helper

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
sudo: false
2+
language: ruby
3+
rvm:
4+
- 2.5.1
5+
before_install: gem install bundler -v 1.16.2

Gemfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source 'https://rubygems.org'
2+
3+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
4+
gemspec
5+
6+
gem 'pry'

Gemfile.lock

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
PATH
2+
remote: .
3+
specs:
4+
active_record-returning_attributes (0.1.0)
5+
activerecord
6+
activesupport
7+
8+
GEM
9+
remote: https://rubygems.org/
10+
specs:
11+
activemodel (5.2.0)
12+
activesupport (= 5.2.0)
13+
activerecord (5.2.0)
14+
activemodel (= 5.2.0)
15+
activesupport (= 5.2.0)
16+
arel (>= 9.0)
17+
activesupport (5.2.0)
18+
concurrent-ruby (~> 1.0, >= 1.0.2)
19+
i18n (>= 0.7, < 2)
20+
minitest (~> 5.1)
21+
tzinfo (~> 1.1)
22+
arel (9.0.0)
23+
coderay (1.1.2)
24+
concurrent-ruby (1.0.5)
25+
diff-lcs (1.3)
26+
i18n (1.0.1)
27+
concurrent-ruby (~> 1.0)
28+
method_source (0.9.0)
29+
minitest (5.11.3)
30+
pry (0.11.3)
31+
coderay (~> 1.1.0)
32+
method_source (~> 0.9.0)
33+
rake (10.5.0)
34+
rspec (3.7.0)
35+
rspec-core (~> 3.7.0)
36+
rspec-expectations (~> 3.7.0)
37+
rspec-mocks (~> 3.7.0)
38+
rspec-core (3.7.1)
39+
rspec-support (~> 3.7.0)
40+
rspec-expectations (3.7.0)
41+
diff-lcs (>= 1.2.0, < 2.0)
42+
rspec-support (~> 3.7.0)
43+
rspec-mocks (3.7.0)
44+
diff-lcs (>= 1.2.0, < 2.0)
45+
rspec-support (~> 3.7.0)
46+
rspec-support (3.7.1)
47+
thread_safe (0.3.6)
48+
tzinfo (1.2.5)
49+
thread_safe (~> 0.1)
50+
51+
PLATFORMS
52+
ruby
53+
54+
DEPENDENCIES
55+
active_record-returning_attributes!
56+
bundler (~> 1.16)
57+
pry
58+
rake (~> 10.0)
59+
rspec (~> 3.0)
60+
61+
BUNDLED WITH
62+
1.16.2

LICENSE.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2018 Tobias Bühlmann
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# ActiveRecord::ReturningAttributes
2+
3+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/active_record/returning_attributes`. To experiment with that code, run `bin/console` for an interactive prompt.
4+
5+
TODO: Delete this and the text above, and describe your gem
6+
7+
## Installation
8+
9+
Add this line to your application's Gemfile:
10+
11+
```ruby
12+
gem 'active_record-returning_attributes'
13+
```
14+
15+
And then execute:
16+
17+
$ bundle
18+
19+
Or install it yourself as:
20+
21+
$ gem install active_record-returning_attributes
22+
23+
## Usage
24+
25+
TODO: Write usage instructions here
26+
27+
## Development
28+
29+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30+
31+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32+
33+
## Contributing
34+
35+
Bug reports and pull requests are welcome on GitHub at https://github.com/tbuehlmann/active_record-returning_attributes.
36+
37+
## License
38+
39+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

Rakefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
require 'bundler/gem_tasks'
2+
require 'rspec/core/rake_task'
3+
4+
RSpec::Core::RakeTask.new(:spec)
5+
6+
task default: :spec
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
require_relative 'lib/active_record/returning_attributes/version'
2+
3+
Gem::Specification.new do |spec|
4+
spec.name = 'active_record-returning_attributes'
5+
spec.version = ActiveRecord::ReturningAttributes::VERSION
6+
spec.authors = ['Tobias Bühlmann']
7+
spec.email = ['[email protected]']
8+
9+
spec.summary = 'Summary'
10+
spec.description = 'Description'
11+
spec.homepage = 'https://github.com/tbuehlmann/active_record-returning_attributes'
12+
spec.license = 'MIT'
13+
14+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
15+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
16+
end
17+
18+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19+
spec.require_paths = ['lib']
20+
21+
spec.add_runtime_dependency 'activesupport'
22+
spec.add_runtime_dependency 'activerecord'
23+
24+
spec.add_development_dependency 'bundler', '~> 1.16'
25+
spec.add_development_dependency 'rake', '~> 10.0'
26+
spec.add_development_dependency 'rspec', '~> 3.0'
27+
spec.add_development_dependency 'pry'
28+
end

bin/console

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env ruby
2+
3+
require 'bundler/setup'
4+
require 'active_record/returning_attributes'
5+
6+
require 'pry'
7+
Pry.start

0 commit comments

Comments
 (0)