automatic_record 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +53 -0
  4. data/Rakefile +20 -0
  5. data/lib/automatic_record.rb +3 -0
  6. data/lib/automatic_record/auto_create.rb +59 -0
  7. data/lib/automatic_record/engine.rb +18 -0
  8. data/lib/automatic_record/error/invalid_association.rb +7 -0
  9. data/lib/automatic_record/error/missing_association.rb +7 -0
  10. data/lib/automatic_record/version.rb +3 -0
  11. data/lib/tasks/automatic_record_tasks.rake +4 -0
  12. data/spec/dummy/README.rdoc +28 -0
  13. data/spec/dummy/Rakefile +6 -0
  14. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  15. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  16. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  17. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  18. data/spec/dummy/app/models/preference.rb +13 -0
  19. data/spec/dummy/app/models/user.rb +13 -0
  20. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  21. data/spec/dummy/bin/bundle +3 -0
  22. data/spec/dummy/bin/rails +4 -0
  23. data/spec/dummy/bin/rake +4 -0
  24. data/spec/dummy/bin/setup +29 -0
  25. data/spec/dummy/config.ru +4 -0
  26. data/spec/dummy/config/application.rb +26 -0
  27. data/spec/dummy/config/boot.rb +5 -0
  28. data/spec/dummy/config/database.yml +13 -0
  29. data/spec/dummy/config/environment.rb +5 -0
  30. data/spec/dummy/config/environments/development.rb +41 -0
  31. data/spec/dummy/config/environments/production.rb +79 -0
  32. data/spec/dummy/config/environments/test.rb +42 -0
  33. data/spec/dummy/config/initializers/assets.rb +11 -0
  34. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  35. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  36. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  37. data/spec/dummy/config/initializers/inflections.rb +16 -0
  38. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  39. data/spec/dummy/config/initializers/session_store.rb +3 -0
  40. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  41. data/spec/dummy/config/locales/en.yml +23 -0
  42. data/spec/dummy/config/routes.rb +56 -0
  43. data/spec/dummy/config/secrets.yml +22 -0
  44. data/spec/dummy/db/migrate/20150416145033_create_users.rb +8 -0
  45. data/spec/dummy/db/migrate/20150416145236_create_preferences.rb +11 -0
  46. data/spec/dummy/db/schema.rb +30 -0
  47. data/spec/dummy/public/404.html +67 -0
  48. data/spec/dummy/public/422.html +67 -0
  49. data/spec/dummy/public/500.html +66 -0
  50. data/spec/dummy/public/favicon.ico +0 -0
  51. data/spec/factories/preferences.rb +6 -0
  52. data/spec/factories/users.rb +5 -0
  53. data/spec/models/preference_spec.rb +43 -0
  54. data/spec/models/user_spec.rb +63 -0
  55. data/spec/rails_helper.rb +64 -0
  56. data/spec/spec_helper.rb +85 -0
  57. metadata +231 -0
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/422.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The change you wanted was rejected.</h1>
62
+ <p>Maybe you tried to change something you didn't have access to.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,66 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/500.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>We're sorry, but something went wrong.</h1>
62
+ </div>
63
+ <p>If you are the application owner check the logs for more information.</p>
64
+ </div>
65
+ </body>
66
+ </html>
File without changes
@@ -0,0 +1,6 @@
1
+ FactoryGirl.define do
2
+ factory :preference do
3
+ language 'en'
4
+ notifications true
5
+ end
6
+ end
@@ -0,0 +1,5 @@
1
+ FactoryGirl.define do
2
+ factory :user do
3
+ username 'westlake'
4
+ end
5
+ end
@@ -0,0 +1,43 @@
1
+ require 'rails_helper'
2
+
3
+ RSpec.describe Preference, type: :model do
4
+
5
+ describe '#belongs_to' do
6
+ it 'should create the user record' do
7
+ preference = FactoryGirl.create(:preference)
8
+ expect{
9
+ preference.user
10
+ }.to change(User, :count).by(1)
11
+ end
12
+
13
+ it 'should get the pre-existing record' do
14
+ user = FactoryGirl.create(:user)
15
+ preference = FactoryGirl.create(:preference, :user_id => user.id)
16
+ expect(preference.user).to eq(user)
17
+ end
18
+
19
+ it 'should use the provided default attrs' do
20
+ preference = FactoryGirl.create(:preference)
21
+ user = preference.user_with_default_attrs
22
+ expect(user.username).to eq('defaulted')
23
+ end
24
+
25
+ it 'should use the provided block' do
26
+ preference = FactoryGirl.create(:preference)
27
+ user = preference.user_with_block
28
+ expect(user.username).to eq('blocked')
29
+ end
30
+
31
+ it 'should reload the record from the database' do
32
+ preference = FactoryGirl.create(:preference)
33
+ user = preference.user
34
+
35
+ user_alt = User.find_by(:id => user.id)
36
+ user_alt.update_attribute(:username, 'reloaded')
37
+
38
+ expect(preference.user.username).to_not eq('reloaded')
39
+ expect(preference.user(true).username).to eq('reloaded')
40
+ end
41
+ end
42
+
43
+ end
@@ -0,0 +1,63 @@
1
+ require 'rails_helper'
2
+
3
+ RSpec.describe User, type: :model do
4
+
5
+ describe '#has_one' do
6
+ it 'should create the preference record' do
7
+ user = FactoryGirl.create(:user)
8
+ expect(Preference.find_by(:user_id => user.id)).to eq(nil)
9
+ expect{
10
+ user.preference
11
+ }.to change(Preference, :count).by(1)
12
+ end
13
+
14
+ it 'should get the pre-existing record' do
15
+ user = FactoryGirl.create(:user)
16
+ preference = FactoryGirl.create(:preference, :user_id => user.id)
17
+ expect(user.preference).to eq(preference)
18
+ end
19
+
20
+ it 'should use the provided default attrs' do
21
+ user = FactoryGirl.create(:user)
22
+ preference = user.preference_with_default_attrs
23
+ expect(preference.language).to eq('en')
24
+ expect(preference.notifications).to eq(true)
25
+ end
26
+
27
+ it 'should use the provided block' do
28
+ user = FactoryGirl.create(:user)
29
+ preference = user.preference_with_block
30
+ expect(preference.language).to eq('fr')
31
+ expect(preference.notifications).to eq(true)
32
+ end
33
+
34
+ it 'should reload the record from the database' do
35
+ user = FactoryGirl.create(:user)
36
+ preference = user.preference
37
+
38
+ preference_alt = Preference.find_by(:id => preference.id)
39
+ preference_alt.update_attribute(:language, 'ca')
40
+
41
+ expect(user.preference.language).to_not eq('ca')
42
+ expect(user.preference(true).language).to eq('ca')
43
+ end
44
+ end
45
+
46
+ describe 'errors' do
47
+ it 'should raise an error if the association does not exist' do
48
+ expect{
49
+ User.class_eval('auto_create :does_not_exist')
50
+ }.to raise_error(AutomaticRecord::Error::MissingAssociation)
51
+ end
52
+
53
+ it 'should raise an error if the association is not :belongs_to or :has_one' do
54
+ expect{
55
+ User.class_eval do
56
+ has_many :widgets
57
+ auto_create :widgets
58
+ end
59
+ }.to raise_error(AutomaticRecord::Error::InvalidAssociation)
60
+ end
61
+ end
62
+
63
+ end
@@ -0,0 +1,64 @@
1
+ # This file is copied to spec/ when you run 'rails generate rspec:install'
2
+ ENV["RAILS_ENV"] ||= 'test'
3
+ require 'spec_helper'
4
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
+ require 'rspec/rails'
6
+
7
+ # Add additional requires below this line. Rails is not loaded until this point!
8
+ require 'database_cleaner'
9
+ require "factory_girl_rails"
10
+ require 'simplecov'
11
+
12
+ SimpleCov.start 'rails'
13
+
14
+ # Requires supporting ruby files with custom matchers and macros, etc, in
15
+ # spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
16
+ # run as spec files by default. This means that files in spec/support that end
17
+ # in _spec.rb will both be required and run as specs, causing the specs to be
18
+ # run twice. It is recommended that you do not name files matching this glob to
19
+ # end with _spec.rb. You can configure this pattern with the --pattern
20
+ # option on the command line or in ~/.rspec, .rspec or `.rspec-local`.
21
+ #
22
+ # The following line is provided for convenience purposes. It has the downside
23
+ # of increasing the boot-up time by auto-requiring all files in the support
24
+ # directory. Alternatively, in the individual `*_spec.rb` files, manually
25
+ # require only the support files necessary.
26
+ #
27
+ # Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
28
+
29
+ # Checks for pending migrations before tests are run.
30
+ # If you are not using ActiveRecord, you can remove this line.
31
+ ActiveRecord::Migration.maintain_test_schema!
32
+
33
+ RSpec.configure do |config|
34
+ # If you're not using ActiveRecord, or you'd prefer not to run each of your
35
+ # examples within a transaction, remove the following line or assign false
36
+ # instead of true.
37
+ config.use_transactional_fixtures = true
38
+
39
+ # RSpec Rails can automatically mix in different behaviours to your tests
40
+ # based on their file location, for example enabling you to call `get` and
41
+ # `post` in specs under `spec/controllers`.
42
+ #
43
+ # You can disable this behaviour by removing the line below, and instead
44
+ # explicitly tag your specs with their type, e.g.:
45
+ #
46
+ # RSpec.describe UsersController, :type => :controller do
47
+ # # ...
48
+ # end
49
+ #
50
+ # The different available types are documented in the features, such as in
51
+ # https://relishapp.com/rspec/rspec-rails/docs
52
+ config.infer_spec_type_from_file_location!
53
+
54
+ config.before(:suite) do
55
+ DatabaseCleaner.strategy = :transaction
56
+ DatabaseCleaner.clean_with(:truncation)
57
+ end
58
+ config.around(:each) do |example|
59
+ DatabaseCleaner.cleaning do
60
+ example.run
61
+ end
62
+ end
63
+
64
+ end
@@ -0,0 +1,85 @@
1
+ # This file was generated by the `rails generate rspec:install` command. Conventionally, all
2
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
+ # The generated `.rspec` file contains `--require spec_helper` which will cause this
4
+ # file to always be loaded, without a need to explicitly require it in any files.
5
+ #
6
+ # Given that it is always loaded, you are encouraged to keep this file as
7
+ # light-weight as possible. Requiring heavyweight dependencies from this file
8
+ # will add to the boot time of your test suite on EVERY test run, even for an
9
+ # individual file that may not need all of that loaded. Instead, consider making
10
+ # a separate helper file that requires the additional dependencies and performs
11
+ # the additional setup, and require it from the spec files that actually need it.
12
+ #
13
+ # The `.rspec` file also contains a few flags that are not defaults but that
14
+ # users commonly want.
15
+ #
16
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
17
+ RSpec.configure do |config|
18
+ # rspec-expectations config goes here. You can use an alternate
19
+ # assertion/expectation library such as wrong or the stdlib/minitest
20
+ # assertions if you prefer.
21
+ config.expect_with :rspec do |expectations|
22
+ # This option will default to `true` in RSpec 4. It makes the `description`
23
+ # and `failure_message` of custom matchers include text for helper methods
24
+ # defined using `chain`, e.g.:
25
+ # be_bigger_than(2).and_smaller_than(4).description
26
+ # # => "be bigger than 2 and smaller than 4"
27
+ # ...rather than:
28
+ # # => "be bigger than 2"
29
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
30
+ end
31
+
32
+ # rspec-mocks config goes here. You can use an alternate test double
33
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
34
+ config.mock_with :rspec do |mocks|
35
+ # Prevents you from mocking or stubbing a method that does not exist on
36
+ # a real object. This is generally recommended, and will default to
37
+ # `true` in RSpec 4.
38
+ mocks.verify_partial_doubles = true
39
+ end
40
+
41
+ # The settings below are suggested to provide a good initial experience
42
+ # with RSpec, but feel free to customize to your heart's content.
43
+ =begin
44
+ # These two settings work together to allow you to limit a spec run
45
+ # to individual examples or groups you care about by tagging them with
46
+ # `:focus` metadata. When nothing is tagged with `:focus`, all examples
47
+ # get run.
48
+ config.filter_run :focus
49
+ config.run_all_when_everything_filtered = true
50
+
51
+ # Limits the available syntax to the non-monkey patched syntax that is recommended.
52
+ # For more details, see:
53
+ # - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
54
+ # - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
55
+ # - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
56
+ config.disable_monkey_patching!
57
+
58
+ # Many RSpec users commonly either run the entire suite or an individual
59
+ # file, and it's useful to allow more verbose output when running an
60
+ # individual spec file.
61
+ if config.files_to_run.one?
62
+ # Use the documentation formatter for detailed output,
63
+ # unless a formatter has already been configured
64
+ # (e.g. via a command-line flag).
65
+ config.default_formatter = 'doc'
66
+ end
67
+
68
+ # Print the 10 slowest examples and example groups at the
69
+ # end of the spec run, to help surface which specs are running
70
+ # particularly slow.
71
+ config.profile_examples = 10
72
+
73
+ # Run specs in random order to surface order dependencies. If you find an
74
+ # order dependency and want to debug it, you can fix the order by providing
75
+ # the seed, which is printed after each run.
76
+ # --seed 1234
77
+ config.order = :random
78
+
79
+ # Seed global randomization in this process using the `--seed` CLI option.
80
+ # Setting this allows you to use `--seed` to deterministically reproduce
81
+ # test failures related to randomization by passing the same `--seed` value
82
+ # as the one that triggered the failure.
83
+ Kernel.srand config.seed
84
+ =end
85
+ end
metadata ADDED
@@ -0,0 +1,231 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: automatic_record
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Greg Woods
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-04-16 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 4.2.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 4.2.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: mysql2
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec-rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 3.1.0
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 3.1.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: factory_girl_rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 4.4.1
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 4.4.1
69
+ - !ruby/object:Gem::Dependency
70
+ name: database_cleaner
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 1.3.0
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 1.3.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: simplecov
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 0.7.1
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 0.7.1
97
+ description: Automatically create a has_one or belongs_to association the first time
98
+ it is accessed. Also supports optional default attributes or block usage to customize
99
+ the record creation.
100
+ email:
101
+ - greg@westlakeinteractive.com
102
+ executables: []
103
+ extensions: []
104
+ extra_rdoc_files: []
105
+ files:
106
+ - MIT-LICENSE
107
+ - README.md
108
+ - Rakefile
109
+ - lib/automatic_record.rb
110
+ - lib/automatic_record/auto_create.rb
111
+ - lib/automatic_record/engine.rb
112
+ - lib/automatic_record/error/invalid_association.rb
113
+ - lib/automatic_record/error/missing_association.rb
114
+ - lib/automatic_record/version.rb
115
+ - lib/tasks/automatic_record_tasks.rake
116
+ - spec/dummy/README.rdoc
117
+ - spec/dummy/Rakefile
118
+ - spec/dummy/app/assets/javascripts/application.js
119
+ - spec/dummy/app/assets/stylesheets/application.css
120
+ - spec/dummy/app/controllers/application_controller.rb
121
+ - spec/dummy/app/helpers/application_helper.rb
122
+ - spec/dummy/app/models/preference.rb
123
+ - spec/dummy/app/models/user.rb
124
+ - spec/dummy/app/views/layouts/application.html.erb
125
+ - spec/dummy/bin/bundle
126
+ - spec/dummy/bin/rails
127
+ - spec/dummy/bin/rake
128
+ - spec/dummy/bin/setup
129
+ - spec/dummy/config.ru
130
+ - spec/dummy/config/application.rb
131
+ - spec/dummy/config/boot.rb
132
+ - spec/dummy/config/database.yml
133
+ - spec/dummy/config/environment.rb
134
+ - spec/dummy/config/environments/development.rb
135
+ - spec/dummy/config/environments/production.rb
136
+ - spec/dummy/config/environments/test.rb
137
+ - spec/dummy/config/initializers/assets.rb
138
+ - spec/dummy/config/initializers/backtrace_silencers.rb
139
+ - spec/dummy/config/initializers/cookies_serializer.rb
140
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
141
+ - spec/dummy/config/initializers/inflections.rb
142
+ - spec/dummy/config/initializers/mime_types.rb
143
+ - spec/dummy/config/initializers/session_store.rb
144
+ - spec/dummy/config/initializers/wrap_parameters.rb
145
+ - spec/dummy/config/locales/en.yml
146
+ - spec/dummy/config/routes.rb
147
+ - spec/dummy/config/secrets.yml
148
+ - spec/dummy/db/migrate/20150416145033_create_users.rb
149
+ - spec/dummy/db/migrate/20150416145236_create_preferences.rb
150
+ - spec/dummy/db/schema.rb
151
+ - spec/dummy/public/404.html
152
+ - spec/dummy/public/422.html
153
+ - spec/dummy/public/500.html
154
+ - spec/dummy/public/favicon.ico
155
+ - spec/factories/preferences.rb
156
+ - spec/factories/users.rb
157
+ - spec/models/preference_spec.rb
158
+ - spec/models/user_spec.rb
159
+ - spec/rails_helper.rb
160
+ - spec/spec_helper.rb
161
+ homepage: https://github.com/westlakedesign/automatic_record
162
+ licenses:
163
+ - MIT
164
+ metadata: {}
165
+ post_install_message:
166
+ rdoc_options: []
167
+ require_paths:
168
+ - lib
169
+ required_ruby_version: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ required_rubygems_version: !ruby/object:Gem::Requirement
175
+ requirements:
176
+ - - ">="
177
+ - !ruby/object:Gem::Version
178
+ version: '0'
179
+ requirements: []
180
+ rubyforge_project:
181
+ rubygems_version: 2.4.6
182
+ signing_key:
183
+ specification_version: 4
184
+ summary: Automatically create has_one and belongs_to associations the first time they
185
+ are fetched
186
+ test_files:
187
+ - spec/dummy/app/assets/javascripts/application.js
188
+ - spec/dummy/app/assets/stylesheets/application.css
189
+ - spec/dummy/app/controllers/application_controller.rb
190
+ - spec/dummy/app/helpers/application_helper.rb
191
+ - spec/dummy/app/models/preference.rb
192
+ - spec/dummy/app/models/user.rb
193
+ - spec/dummy/app/views/layouts/application.html.erb
194
+ - spec/dummy/bin/bundle
195
+ - spec/dummy/bin/rails
196
+ - spec/dummy/bin/rake
197
+ - spec/dummy/bin/setup
198
+ - spec/dummy/config/application.rb
199
+ - spec/dummy/config/boot.rb
200
+ - spec/dummy/config/database.yml
201
+ - spec/dummy/config/environment.rb
202
+ - spec/dummy/config/environments/development.rb
203
+ - spec/dummy/config/environments/production.rb
204
+ - spec/dummy/config/environments/test.rb
205
+ - spec/dummy/config/initializers/assets.rb
206
+ - spec/dummy/config/initializers/backtrace_silencers.rb
207
+ - spec/dummy/config/initializers/cookies_serializer.rb
208
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
209
+ - spec/dummy/config/initializers/inflections.rb
210
+ - spec/dummy/config/initializers/mime_types.rb
211
+ - spec/dummy/config/initializers/session_store.rb
212
+ - spec/dummy/config/initializers/wrap_parameters.rb
213
+ - spec/dummy/config/locales/en.yml
214
+ - spec/dummy/config/routes.rb
215
+ - spec/dummy/config/secrets.yml
216
+ - spec/dummy/config.ru
217
+ - spec/dummy/db/migrate/20150416145033_create_users.rb
218
+ - spec/dummy/db/migrate/20150416145236_create_preferences.rb
219
+ - spec/dummy/db/schema.rb
220
+ - spec/dummy/public/404.html
221
+ - spec/dummy/public/422.html
222
+ - spec/dummy/public/500.html
223
+ - spec/dummy/public/favicon.ico
224
+ - spec/dummy/Rakefile
225
+ - spec/dummy/README.rdoc
226
+ - spec/factories/preferences.rb
227
+ - spec/factories/users.rb
228
+ - spec/models/preference_spec.rb
229
+ - spec/models/user_spec.rb
230
+ - spec/rails_helper.rb
231
+ - spec/spec_helper.rb