model_discovery 0.3.4 → 0.3.5

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: 873fdd42f0810a4674285719a43ea1dc1f36292f
4
- data.tar.gz: f675562e96f182cc86e56ddb6619aa72ea398f56
3
+ metadata.gz: 868b43fcf3d392526196842f4880f69e97a9c307
4
+ data.tar.gz: 23ddf20b86bc12f73c224014f8216cbed7d17aa7
5
5
  SHA512:
6
- metadata.gz: ee0e46ce5f859d76edf54416da90f3f4ba3cdb9f0112981285067cdf767938afb68de66f9d900a8a535c7b3d757bde0b93fef95c8fd281fcf22183ebc59fc53e
7
- data.tar.gz: f54224845fbd00132580c5510bcd7213394d7f9b8c92cbcbedef73dc761476ce58c1a00a1f207a1c24494d17535858869e3d8382c95b6a5d8554c4166c254002
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
- load model_file
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
@@ -1,3 +1,3 @@
1
1
  module ModelDiscovery
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.5"
3
3
  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
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-07-02 00:00:00.000000000 Z
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/integration/navigation_test.rb
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/test_helper.rb
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/routes.rb
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/config/initializers/session_store.rb
152
- - test/dummy/config/initializers/backtrace_silencers.rb
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