calas-ruby-wsd 0.0.2 → 0.0.3

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.
Files changed (4) hide show
  1. data/CHANGELOG +2 -0
  2. data/bin/wsd +6 -2
  3. data/ruby-wsd.gemspec +1 -1
  4. metadata +1 -1
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ v0.0.3. Added CLI option for specifying style
2
+
1
3
  v0.0.2. Added CLI interface.
2
4
 
3
5
  v0.0.1. Initial version. Support for writing diagrams to png files and embbeding the diagrams in html.
data/bin/wsd CHANGED
@@ -4,7 +4,7 @@ require 'wsd'
4
4
  require 'optparse'
5
5
  require 'pp'
6
6
 
7
- options = {}
7
+ options = {:style => 'default'}
8
8
  OptionParser.new do |opts|
9
9
  opts.banner = "Usage: wsd [options]"
10
10
 
@@ -20,6 +20,10 @@ OptionParser.new do |opts|
20
20
  options[:outfile] = f
21
21
  end
22
22
 
23
+ opts.on("-s [STYLE]", "--style [STYLE]", "Diagram Style") do |s|
24
+ options[:style] = s
25
+ end
26
+
23
27
  opts.on("--all-styles", "Show all available styles") do |s|
24
28
  options[:show_styles] = s
25
29
  end
@@ -31,5 +35,5 @@ if options[:show_styles]
31
35
  exit
32
36
  end
33
37
 
34
- d = Wsd.new(File.read(options[:file]))
38
+ d = Wsd.new(File.read(options[:file]), options[:style])
35
39
  d.write(options[:outfile])
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{ruby-wsd}
5
- s.version = "0.0.2"
5
+ s.version = "0.0.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Jorge Cal\303\241s Lozano"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calas-ruby-wsd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Jorge Cal\xC3\xA1s Lozano"