laser-cutter 0.2.1 → 0.2.2

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.
data/bin/laser-cutter CHANGED
@@ -20,7 +20,7 @@ Usage: laser-cutter [options]'
20
20
  laser-cutter -w 30 -h 20 -d 10 -t 4.3 -n 10 -o box.pdf
21
21
  EOF
22
22
 
23
- options = OpenStruct.new
23
+ options = Hashie::Mash.new
24
24
  options.verbose = false
25
25
 
26
26
  opt_parser = OptionParser.new do |opts|
@@ -77,11 +77,11 @@ EOF
77
77
  end # class OptParse
78
78
 
79
79
  options = Laser::Cutter::OptParse.parse(ARGV)
80
- config = Laser::Cutter::Configuration.new(options.to_h)
80
+ config = Laser::Cutter::Configuration.new(options.to_hash)
81
81
 
82
82
  if options.verbose
83
83
  puts "Starting with the following configuration:"
84
- puts JSON.pretty_generate(config.to_h).green
84
+ puts JSON.pretty_generate(config.to_hash).green
85
85
  end
86
86
 
87
87
  begin
@@ -1,5 +1,5 @@
1
1
  module Laser
2
2
  module Cutter
3
- VERSION = "0.2.1"
3
+ VERSION = "0.2.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: laser-cutter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: