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 +4 -4
- data/lib/nostalgic/nostalgic_for.rb +2 -2
- data/lib/nostalgic/version.rb +1 -1
- data/test/dummy/config/application.rb +0 -3
- data/test/dummy/config/environments/test.rb +2 -2
- metadata +23 -31
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +0 -899
- data/test/dummy/log/test.log +0 -9624
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26fa4daebfb49dc9fd1a633b4698e1d3fa614914
|
4
|
+
data.tar.gz: 88282bae434f84a89e6698863cc2f49f7b43ca67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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 =>
|
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
|
data/lib/nostalgic/version.rb
CHANGED
@@ -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.
|
17
|
-
config.
|
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.
|
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:
|
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.
|
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.
|
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.
|
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.
|
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: '
|
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: '
|
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.
|
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.
|
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
|
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/
|
234
|
-
- test/dummy/config/
|
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/
|
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/
|
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
|
data/test/dummy/db/test.sqlite3
DELETED
Binary file
|