model_discovery 0.3.4 → 0.3.5
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 +4 -4
- data/lib/model_discovery/discovery.rb +5 -1
- data/lib/model_discovery/version.rb +1 -1
- metadata +23 -23
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 868b43fcf3d392526196842f4880f69e97a9c307
|
|
4
|
+
data.tar.gz: 23ddf20b86bc12f73c224014f8216cbed7d17aa7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 26aea1128a1fadf30e052997b98ff88030ed0c693d26774c132d196bddeef05dcb0590b5703b39bc85989ff0f8d64e272864aef0700fcacd6eb133e91c4a52b2
|
|
7
|
+
data.tar.gz: e82c4c4d3d3a17c18ba54c200f6173030e3da5da6ad35fb3409e73236003049561e3a9359dc11c232eae6f6aa6fc095b2222b2c874cecf71acb10a0bf1174490
|
|
@@ -44,7 +44,11 @@ module ModelDiscovery
|
|
|
44
44
|
def self.discover(path)
|
|
45
45
|
Dir["#{path}/app/models/**/*.rb"].each do |model_file|
|
|
46
46
|
puts "File matched: #{model_file}"
|
|
47
|
-
|
|
47
|
+
begin
|
|
48
|
+
load model_file
|
|
49
|
+
rescue ActiveSupport::Concern::MultipleIncludedBlocks => e
|
|
50
|
+
puts "[Ignored]: ActiveSupport::Concern::MultipleIncludedBlocks on #{model_file}"
|
|
51
|
+
end
|
|
48
52
|
end
|
|
49
53
|
end
|
|
50
54
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: model_discovery
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sameer Rahmani
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-09-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: railties
|
|
@@ -119,39 +119,39 @@ signing_key:
|
|
|
119
119
|
specification_version: 4
|
|
120
120
|
summary: A fast solution to model detection in Ruby on Rails.
|
|
121
121
|
test_files:
|
|
122
|
-
- test/
|
|
122
|
+
- test/test_helper.rb
|
|
123
123
|
- test/models/application_models_test.rb
|
|
124
|
+
- test/integration/navigation_test.rb
|
|
124
125
|
- test/fixtures/application_models.yml
|
|
125
126
|
- test/model_discovery_test.rb
|
|
126
|
-
- test/
|
|
127
|
-
- test/dummy/public/500.html
|
|
128
|
-
- test/dummy/public/404.html
|
|
129
|
-
- test/dummy/public/422.html
|
|
130
|
-
- test/dummy/public/favicon.ico
|
|
131
|
-
- test/dummy/config.ru
|
|
132
|
-
- test/dummy/README.rdoc
|
|
127
|
+
- test/dummy/app/controllers/application_controller.rb
|
|
133
128
|
- test/dummy/app/views/layouts/application.html.erb
|
|
129
|
+
- test/dummy/app/helpers/application_helper.rb
|
|
134
130
|
- test/dummy/app/assets/javascripts/application.js
|
|
135
131
|
- test/dummy/app/assets/stylesheets/application.css
|
|
136
|
-
- test/dummy/app/controllers/application_controller.rb
|
|
137
|
-
- test/dummy/app/helpers/application_helper.rb
|
|
138
|
-
- test/dummy/Rakefile
|
|
139
|
-
- test/dummy/bin/rake
|
|
140
132
|
- test/dummy/bin/bundle
|
|
141
133
|
- test/dummy/bin/rails
|
|
134
|
+
- test/dummy/bin/rake
|
|
135
|
+
- test/dummy/public/404.html
|
|
136
|
+
- test/dummy/public/422.html
|
|
137
|
+
- test/dummy/public/500.html
|
|
138
|
+
- test/dummy/public/favicon.ico
|
|
139
|
+
- test/dummy/config.ru
|
|
142
140
|
- test/dummy/config/application.rb
|
|
143
|
-
- test/dummy/config/environments/test.rb
|
|
144
141
|
- test/dummy/config/environments/development.rb
|
|
142
|
+
- test/dummy/config/environments/test.rb
|
|
145
143
|
- test/dummy/config/environments/production.rb
|
|
146
|
-
- test/dummy/config/
|
|
144
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
|
145
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
|
146
|
+
- test/dummy/config/initializers/secret_token.rb
|
|
147
|
+
- test/dummy/config/initializers/session_store.rb
|
|
148
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
|
149
|
+
- test/dummy/config/initializers/mime_types.rb
|
|
150
|
+
- test/dummy/config/initializers/inflections.rb
|
|
147
151
|
- test/dummy/config/environment.rb
|
|
148
152
|
- test/dummy/config/database.yml
|
|
149
153
|
- test/dummy/config/locales/en.yml
|
|
154
|
+
- test/dummy/config/routes.rb
|
|
150
155
|
- test/dummy/config/boot.rb
|
|
151
|
-
- test/dummy/
|
|
152
|
-
- test/dummy/
|
|
153
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
|
154
|
-
- test/dummy/config/initializers/inflections.rb
|
|
155
|
-
- test/dummy/config/initializers/filter_parameter_logging.rb
|
|
156
|
-
- test/dummy/config/initializers/mime_types.rb
|
|
157
|
-
- test/dummy/config/initializers/secret_token.rb
|
|
156
|
+
- test/dummy/README.rdoc
|
|
157
|
+
- test/dummy/Rakefile
|