modaldiagrams 1.0.0 → 1.0.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.0.0
1
+ 1.0.1
@@ -1,5 +1,5 @@
1
1
  # ActiveRecord DB Diagrams
2
- # Configuration parameters can be changed by writing a file named config/db_diagram.yml
2
+ # Configuration parameters can be changed by writing a file named config/modal_diagrams.yml
3
3
 
4
4
  module ModalDiagrams
5
5
 
@@ -13,7 +13,7 @@ module ModalDiagrams
13
13
  :unified_polymorphic => false, # unify the circled end of polymorphic associations
14
14
  :no_association_labels=>false, # don't show association labels
15
15
  :output_tools => %w{dot fdp neato} # graphviz styles (tools) used whe generating output (ps/png/pdf)
16
- ].merge Settings.load(Rails.root.join('config','db_diagram.yml'))
16
+ ].merge Settings.load(Rails.root.join('config','modal_diagrams.yml'))
17
17
  end
18
18
 
19
19
  end
@@ -10,7 +10,7 @@ namespace :db do
10
10
  Dir[in_dir.join('*.ps')].each do |fn|
11
11
  fn = Pathname(fn)
12
12
  out_fn = out_dir.join(fn.basename.sub_ext('.pdf'))
13
- `ps2pdf #{fn} #{out_fn}`
13
+ `ps2pdf '#{fn}' '#{out_fn}'`
14
14
  end
15
15
  puts "Output has been generated in #{out_dir}"
16
16
  end
@@ -10,7 +10,7 @@ namespace :db do
10
10
  Dir[in_dir.join('*.ps')].each do |fn|
11
11
  fn = Pathname(fn)
12
12
  out_fn = out_dir.join(fn.basename.sub_ext('.png'))
13
- `gs -q -dNOPAUSE -dBATCH -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sDEVICE=png16m -sOutputFile=#{out_fn} #{fn}`
13
+ `gs -q -dNOPAUSE -dBATCH -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sDEVICE=png16m -sOutputFile='#{out_fn}' '#{fn}'`
14
14
  end
15
15
  puts "Output has been generated in #{out_dir}"
16
16
  end
@@ -9,7 +9,7 @@ namespace :db do
9
9
  Dir[Rails.root.join('db/diagrams/*.dot')].each do |fn|
10
10
  fn = Pathname(fn)
11
11
  out_fn = out_dir.join(fn.basename.sub_ext('.ps'))
12
- `#{cmd} #{fn} -o#{out_fn} -Tps2`
12
+ `#{cmd} '#{fn}' -o '#{out_fn}' -Tps2`
13
13
  end
14
14
  puts "Output has been generated in #{out_dir}"
15
15
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "modaldiagrams"
8
- s.version = "1.0.0"
8
+ s.version = "1.0.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"]
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.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -165,7 +165,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
165
165
  version: '0'
166
166
  segments:
167
167
  - 0
168
- hash: -3401625637363987072
168
+ hash: -2378591910060166729
169
169
  required_rubygems_version: !ruby/object:Gem::Requirement
170
170
  none: false
171
171
  requirements: