modaldiagrams 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.1.1
@@ -225,16 +225,16 @@ module ModalDiagrams
225
225
 
226
226
  models_dir = 'app/models'
227
227
  if Rails.respond_to?(:application)
228
- models_dir = Rails.application.paths[models_dir]
228
+ model_dirs = Rails.application.paths[models_dir]
229
+ else
230
+ model_dirs = [models_dir]
229
231
  end
230
232
  models_dir = Rails.root.join(models_dir)
233
+ model_dirs = model_dirs.map{|d| Rails.root.join(d)}
231
234
 
232
235
  if options[:all_models]
233
236
  # Include also models from plugins
234
237
  model_dirs = $:.grep(/\/models\/?\Z/)
235
- else
236
- # Only main application models
237
- model_dirs = [models_dir]
238
238
  end
239
239
 
240
240
  models = []
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "modaldiagrams"
8
- s.version = "1.1.0"
8
+ s.version = "1.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Javier Goizueta"]
12
- s.date = "2012-09-06"
12
+ s.date = "2012-11-03"
13
13
  s.description = "modaldiagrams provides Rake tasks for diagramming ActiveRecord databases. It generates Graphviz dot files."
14
14
  s.email = "jgoizueta@gmail.com"
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: modaldiagrams
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-06 00:00:00.000000000 Z
12
+ date: 2012-11-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: modalsettings
@@ -166,7 +166,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
166
166
  version: '0'
167
167
  segments:
168
168
  - 0
169
- hash: -996022215717107908
169
+ hash: -587444840250185935
170
170
  required_rubygems_version: !ruby/object:Gem::Requirement
171
171
  none: false
172
172
  requirements: