kms_models 0.6.0 → 0.7.0
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6dc36ed60108e1abb7b3210d652bac2afffe538e
|
4
|
+
data.tar.gz: 74981584dff01d19b74893f47a5fa572324a2cf1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae80e9ae8c89722e0f81ce79be9d66c6983e8f2a98c9a6893829187a62e88ca3b378c259de50216d52bac7212b7f536b0d22b1723a6e6255f20e6c863e63bbae
|
7
|
+
data.tar.gz: c80cfee5be37fd4b9843d3af7e1a4770e0d82be15592beec2cd759930b7ef2711a098e4481035e44321c02b82a593d30261e9b21a19eb9c79cf3ae474254a041
|
File without changes
|
data/lib/kms/models/engine.rb
CHANGED
@@ -1,15 +1,24 @@
|
|
1
1
|
require "friendly_id"
|
2
|
+
require 'kms/drops/models_wrapper_drop'
|
2
3
|
module Kms
|
3
4
|
module Models
|
4
5
|
class Engine < ::Rails::Engine
|
5
6
|
engine_name 'kms_models'
|
6
7
|
isolate_namespace Kms::Models
|
7
|
-
config.
|
8
|
+
config.eager_load_paths += Dir["#{config.root}/lib/**/"]
|
8
9
|
config.to_prepare do
|
9
10
|
Dir.glob(File.join(File.dirname(__FILE__), "../../../app/**/*_decorator*.rb")) do |c|
|
10
11
|
require_dependency(c)
|
11
12
|
end
|
12
13
|
end
|
14
|
+
|
15
|
+
initializer "kms_models.register_models_collections" do |app|
|
16
|
+
app.config.after_initialize do
|
17
|
+
Kms::Model.pluck(:collection_name).each do |collection_name|
|
18
|
+
Kms::ModelsWrapperDrop.register_model collection_name
|
19
|
+
end if Kms::Model.table_exists?
|
20
|
+
end
|
21
|
+
end
|
13
22
|
end
|
14
23
|
end
|
15
|
-
end
|
24
|
+
end
|
data/lib/kms/models/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kms_models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor Petrov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 5.0.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 5.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: friendly_id
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -130,9 +130,9 @@ files:
|
|
130
130
|
- db/migrate/20150821201250_fix_models_column_name.rb
|
131
131
|
- db/migrate/20150901115303_add_class_name_to_kms_fields.rb
|
132
132
|
- db/migrate/20150910081440_add_position_to_kms_entries.rb
|
133
|
-
- lib/drops/kms/entry_drop.rb
|
134
|
-
- lib/drops/kms/models_wrapper_drop.rb
|
135
133
|
- lib/generators/kms_models/install/install_generator.rb
|
134
|
+
- lib/kms/drops/entry_drop.rb
|
135
|
+
- lib/kms/drops/models_wrapper_drop.rb
|
136
136
|
- lib/kms/models/engine.rb
|
137
137
|
- lib/kms/models/version.rb
|
138
138
|
- lib/kms_models.rb
|
@@ -199,40 +199,41 @@ signing_key:
|
|
199
199
|
specification_version: 4
|
200
200
|
summary: Extension for KMS
|
201
201
|
test_files:
|
202
|
-
- test/
|
203
|
-
- test/
|
204
|
-
- test/
|
205
|
-
- test/dummy/
|
206
|
-
- test/dummy/app/views/layouts/application.html.erb
|
202
|
+
- test/kms_models_test.rb
|
203
|
+
- test/test_helper.rb
|
204
|
+
- test/integration/navigation_test.rb
|
205
|
+
- test/dummy/bin/rake
|
207
206
|
- test/dummy/bin/bundle
|
208
207
|
- test/dummy/bin/rails
|
209
|
-
- test/dummy/bin/rake
|
210
208
|
- test/dummy/bin/setup
|
209
|
+
- test/dummy/public/favicon.ico
|
210
|
+
- test/dummy/public/422.html
|
211
|
+
- test/dummy/public/404.html
|
212
|
+
- test/dummy/public/500.html
|
213
|
+
- test/dummy/config.ru
|
214
|
+
- test/dummy/app/helpers/application_helper.rb
|
215
|
+
- test/dummy/app/views/layouts/application.html.erb
|
216
|
+
- test/dummy/app/assets/javascripts/application.js
|
217
|
+
- test/dummy/app/assets/stylesheets/application.css
|
218
|
+
- test/dummy/app/controllers/application_controller.rb
|
219
|
+
- test/dummy/README.rdoc
|
220
|
+
- test/dummy/Rakefile
|
221
|
+
- test/dummy/config/routes.rb
|
222
|
+
- test/dummy/config/locales/en.yml
|
211
223
|
- test/dummy/config/application.rb
|
212
|
-
- test/dummy/config/boot.rb
|
213
224
|
- test/dummy/config/database.yml
|
214
|
-
- test/dummy/config/environment.rb
|
215
|
-
- test/dummy/config/environments/development.rb
|
216
|
-
- test/dummy/config/environments/production.rb
|
217
|
-
- test/dummy/config/environments/test.rb
|
218
|
-
- test/dummy/config/initializers/assets.rb
|
219
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
220
|
-
- test/dummy/config/initializers/cookies_serializer.rb
|
221
225
|
- test/dummy/config/initializers/filter_parameter_logging.rb
|
222
|
-
- test/dummy/config/initializers/inflections.rb
|
223
|
-
- test/dummy/config/initializers/mime_types.rb
|
224
226
|
- test/dummy/config/initializers/session_store.rb
|
225
227
|
- test/dummy/config/initializers/wrap_parameters.rb
|
226
|
-
- test/dummy/config/
|
227
|
-
- test/dummy/config/
|
228
|
+
- test/dummy/config/initializers/mime_types.rb
|
229
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
230
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
231
|
+
- test/dummy/config/initializers/inflections.rb
|
232
|
+
- test/dummy/config/initializers/assets.rb
|
233
|
+
- test/dummy/config/environments/test.rb
|
234
|
+
- test/dummy/config/environments/production.rb
|
235
|
+
- test/dummy/config/environments/development.rb
|
236
|
+
- test/dummy/config/boot.rb
|
228
237
|
- test/dummy/config/secrets.yml
|
229
|
-
- test/dummy/config.
|
230
|
-
|
231
|
-
- test/dummy/public/422.html
|
232
|
-
- test/dummy/public/500.html
|
233
|
-
- test/dummy/public/favicon.ico
|
234
|
-
- test/dummy/Rakefile
|
235
|
-
- test/dummy/README.rdoc
|
236
|
-
- test/integration/navigation_test.rb
|
237
|
-
- test/kms_models_test.rb
|
238
|
-
- test/test_helper.rb
|
238
|
+
- test/dummy/config/environment.rb
|
239
|
+
has_rdoc:
|