nostalgic 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ebc06d3e51a6e4356e28520a4636621bbcee8ef1
4
- data.tar.gz: 97e22ad956de717219eef870ae766b86e5b4eb71
3
+ metadata.gz: 26fa4daebfb49dc9fd1a633b4698e1d3fa614914
4
+ data.tar.gz: 88282bae434f84a89e6698863cc2f49f7b43ca67
5
5
  SHA512:
6
- metadata.gz: 361e005c038b952faa109809532dbc990b7b50a7888cf648c1f253079bcba20ed8ae29a745db2ab5864a546edc85d1a79fba85aab9cf5b94e8af97913f72ecbc
7
- data.tar.gz: 91266e6bd24be58bc5d633ebe3307934a9d0e6fba05b7de1693cb1f97e440ddebae11185009da37b64948028204ddbdda788cd3866c73ab3ab1218de8a49522e
6
+ metadata.gz: 4eb21955bc4028d2c6c0bc5dc91120c63c60e6d1f9b1bbd02470751be6ab5a80c336df1084a128ce20b51f7c54555ddf9d8eec4eb29281885d11ddd0998493ca
7
+ data.tar.gz: aa97adf2d5c1461ee8bca5ec9700893a243a93d7afe35e1a2ef37b3bcc18b6028d2966b7e1cf761cd127f6572fac9f9dd15a7597dd7b3f16db0c6b5ec40df231
@@ -65,10 +65,10 @@ module Nostalgic
65
65
  next if self.nostalgic_attrs.include?(attr.to_sym)
66
66
  self.nostalgic_attrs << attr.to_sym
67
67
 
68
- model_name = self.model_name.to_s
68
+ model_type = self.model_name.to_s
69
69
 
70
70
  class_eval <<-METHODS, __FILE__, __LINE__ + 1
71
- has_many :#{attr.to_s.pluralize}, -> {where(:model_type => model_name, :name => '#{attr}').order('effective_at desc')}, :class_name => 'Nostalgic::Attr', :foreign_key => 'model_id'
71
+ has_many :#{attr.to_s.pluralize}, -> {where(:model_type => model_type, :name => '#{attr}').order('effective_at desc')}, :class_name => 'Nostalgic::Attr', :foreign_key => 'model_id'
72
72
  accepts_nested_attributes_for :#{attr.to_s.pluralize}, :allow_destroy => true
73
73
 
74
74
  attr_accessor :#{attr}_effective_at
@@ -1,3 +1,3 @@
1
1
  module Nostalgic
2
- VERSION = '0.3.0'
2
+ VERSION = '0.4.0'
3
3
  end
@@ -18,9 +18,6 @@ module Dummy
18
18
  # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
19
19
  # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
20
20
  # config.i18n.default_locale = :de
21
-
22
- # Do not swallow errors in after_commit/after_rollback callbacks.
23
- config.active_record.raise_in_transactional_callbacks = true
24
21
  end
25
22
  end
26
23
 
@@ -13,8 +13,8 @@ Rails.application.configure do
13
13
  config.eager_load = false
14
14
 
15
15
  # Configure static file server for tests with Cache-Control for performance.
16
- config.serve_static_files = true
17
- config.static_cache_control = 'public, max-age=3600'
16
+ config.public_file_server.enabled = true
17
+ config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=3600' }
18
18
 
19
19
  # Show full error reports and disable caching.
20
20
  config.consider_all_requests_local = true
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nostalgic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ichy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-17 00:00:00.000000000 Z
11
+ date: 2018-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '4.2'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '5.1'
22
+ version: '5.2'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,21 +29,21 @@ dependencies:
29
29
  version: '4.2'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '5.1'
32
+ version: '5.2'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: bundler
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '1.12'
39
+ version: '1.16'
40
40
  type: :development
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '1.12'
46
+ version: '1.16'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: minitest
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -64,14 +64,14 @@ dependencies:
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '11.0'
67
+ version: '12.0'
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '11.0'
74
+ version: '12.0'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: sqlite3
77
77
  requirement: !ruby/object:Gem::Requirement
@@ -150,14 +150,10 @@ files:
150
150
  - test/dummy/config/locales/en.yml
151
151
  - test/dummy/config/routes.rb
152
152
  - test/dummy/config/secrets.yml
153
- - test/dummy/db/development.sqlite3
154
153
  - test/dummy/db/migrate/20160807103323_create_users.rb
155
154
  - test/dummy/db/migrate/20161217105723_create_companies.rb
156
155
  - test/dummy/db/migrate/20161217105921_add_column_company_id_on_users.rb
157
156
  - test/dummy/db/schema.rb
158
- - test/dummy/db/test.sqlite3
159
- - test/dummy/log/development.log
160
- - test/dummy/log/test.log
161
157
  - test/dummy/public/404.html
162
158
  - test/dummy/public/422.html
163
159
  - test/dummy/public/500.html
@@ -184,7 +180,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
184
180
  requirements:
185
181
  - - ">="
186
182
  - !ruby/object:Gem::Version
187
- version: 2.1.0
183
+ version: 2.2.0
188
184
  required_rubygems_version: !ruby/object:Gem::Requirement
189
185
  requirements:
190
186
  - - ">="
@@ -192,32 +188,29 @@ required_rubygems_version: !ruby/object:Gem::Requirement
192
188
  version: '0'
193
189
  requirements: []
194
190
  rubyforge_project:
195
- rubygems_version: 2.6.4
191
+ rubygems_version: 2.6.13
196
192
  signing_key:
197
193
  specification_version: 4
198
194
  summary: column versioning utility
199
195
  test_files:
200
- - test/test_helper.rb
201
- - test/nostalgic_test.rb
202
- - test/integration/navigation_test.rb
203
196
  - test/dummy/README.rdoc
204
197
  - test/dummy/Rakefile
205
- - test/dummy/config.ru
206
198
  - test/dummy/app/assets/javascripts/application.js
207
199
  - test/dummy/app/assets/stylesheets/application.css
208
200
  - test/dummy/app/controllers/application_controller.rb
209
201
  - test/dummy/app/helpers/application_helper.rb
210
- - test/dummy/app/views/layouts/application.html.erb
211
- - test/dummy/app/models/user.rb
212
202
  - test/dummy/app/models/company.rb
203
+ - test/dummy/app/models/user.rb
204
+ - test/dummy/app/views/layouts/application.html.erb
213
205
  - test/dummy/bin/bundle
214
206
  - test/dummy/bin/rails
215
207
  - test/dummy/bin/rake
216
208
  - test/dummy/bin/setup
217
- - test/dummy/config/routes.rb
209
+ - test/dummy/config.ru
218
210
  - test/dummy/config/application.rb
211
+ - test/dummy/config/boot.rb
212
+ - test/dummy/config/database.yml
219
213
  - test/dummy/config/environment.rb
220
- - test/dummy/config/secrets.yml
221
214
  - test/dummy/config/environments/development.rb
222
215
  - test/dummy/config/environments/production.rb
223
216
  - test/dummy/config/environments/test.rb
@@ -230,23 +223,22 @@ test_files:
230
223
  - test/dummy/config/initializers/session_store.rb
231
224
  - test/dummy/config/initializers/wrap_parameters.rb
232
225
  - test/dummy/config/locales/en.yml
233
- - test/dummy/config/boot.rb
234
- - test/dummy/config/database.yml
226
+ - test/dummy/config/routes.rb
227
+ - test/dummy/config/secrets.yml
235
228
  - test/dummy/db/migrate/20160807103323_create_users.rb
236
229
  - test/dummy/db/migrate/20161217105723_create_companies.rb
237
230
  - test/dummy/db/migrate/20161217105921_add_column_company_id_on_users.rb
238
231
  - test/dummy/db/schema.rb
239
- - test/dummy/db/development.sqlite3
240
- - test/dummy/db/test.sqlite3
241
- - test/dummy/log/test.log
242
- - test/dummy/log/development.log
243
232
  - test/dummy/public/404.html
244
233
  - test/dummy/public/422.html
245
234
  - test/dummy/public/500.html
246
235
  - test/dummy/public/favicon.ico
247
- - test/dummy/test/models/user_test.rb
248
236
  - test/dummy/test/models/company_test.rb
249
- - test/models/nostalgic/attr_test.rb
237
+ - test/dummy/test/models/user_test.rb
238
+ - test/fixtures/companies.yml
250
239
  - test/fixtures/nostalgic/attrs.yml
251
240
  - test/fixtures/users.yml
252
- - test/fixtures/companies.yml
241
+ - test/integration/navigation_test.rb
242
+ - test/models/nostalgic/attr_test.rb
243
+ - test/nostalgic_test.rb
244
+ - test/test_helper.rb
Binary file
Binary file