rubyscad 1.0.3 → 1.0.4

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 (3) hide show
  1. data/lib/RubyScad.rb +12 -0
  2. data/lib/rubyscad/version.rb +1 -1
  3. metadata +2 -2
data/lib/RubyScad.rb CHANGED
@@ -179,6 +179,18 @@ module RubyScad
179
179
  end
180
180
 
181
181
  def cylinder(args={})
182
+ if args.include?(:d)
183
+ args[:r] = args[:d]/2.0
184
+ args.delete(:d)
185
+ end
186
+ if args.include?(:d1)
187
+ args[:r1] = args[:d1]/2.0
188
+ args.delete(:d1)
189
+ end
190
+ if args.include?(:d2)
191
+ args[:r2] = args[:d2]/2.0
192
+ args.delete(:d2)
193
+ end
182
194
  format_command CYLINDER_STR, args
183
195
  end
184
196
 
@@ -1,3 +1,3 @@
1
1
  module RubyScad
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubyscad
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
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: 2013-01-24 00:00:00.000000000 Z
12
+ date: 2013-02-16 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Ruby module to easily generate openscad scripts
15
15
  email: