vector_salad 0.0.4 → 0.0.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4097a322261edfff741d8aa066a56c83be69642e
4
- data.tar.gz: f48ee96bc523a4330261964a61a6ac5ee406693b
3
+ metadata.gz: 5a95e6398e5e03c544ee99ff3fb4bd8aeeb9b3f9
4
+ data.tar.gz: 5bc093448d7a895e055f895c8765b4b39be682d5
5
5
  SHA512:
6
- metadata.gz: 22d9ca644aa04779c84f9782e8af5d890f24e83043b895d620a71a02f6d1e831f0dbc2642775ada308654966e7b7236c04b1816f766c70da76d0860e124d3dfe
7
- data.tar.gz: fdaa447881f141e71c04b3c7923eb0f0539b2a0eb0cbd47000ccd6bc8ebe2fd1f58a6991cdcc92e600025e0ec4c74bed028b09e2bc8e23a0d26940015edb91c8
6
+ metadata.gz: ae68013751653ed932d1dbeb4c5492a12e07b08c595259dabe68191077556b3a9aeadc3f31fe18960a237b4f6e1f6bd16c025a123ce7a6fd9445f2833f7cd407
7
+ data.tar.gz: 656a102fc6dda3ec3a18c4816f6611a4ccef150068dc0078acf366c2cd2ab986c3a7e09973472db29f3307ff03a006b614dfbd143759ed36f54356d8f26f4ae5
data/bin/vector_salad CHANGED
@@ -37,6 +37,7 @@ class OptparseVectorSalad
37
37
 
38
38
  opts.on("--[no-]magic",
39
39
  "Add some helpful magic to your design") do |m|
40
+ puts "So this happened: #{m}"
40
41
  options.magic = m
41
42
  end
42
43
 
@@ -1,7 +1,8 @@
1
- require 'vector_salad/exporters/svg_exporter'
2
- require 'vector_salad/canvas'
3
- require 'vector_salad/dsl'
4
- Dir.glob(File.expand_path('../standard_shapes/*.rb', __FILE__)).each do |file|
1
+ require "vector_salad/monkeypatches"
2
+ require "vector_salad/exporters/svg_exporter"
3
+ require "vector_salad/canvas"
4
+ require "vector_salad/dsl"
5
+ Dir.glob(File.expand_path("../standard_shapes/*.rb", __FILE__)).each do |file|
5
6
  require file
6
7
  end
7
8
 
@@ -0,0 +1,11 @@
1
+ class Fixnum
2
+ def ~
3
+ self * UNIT
4
+ end
5
+ end
6
+
7
+ class Float
8
+ def ~
9
+ self * UNIT
10
+ end
11
+ end
@@ -1,3 +1,3 @@
1
1
  module VectorSalad
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vector_salad
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon George
@@ -208,6 +208,7 @@ files:
208
208
  - lib/vector_salad/interpolate.rb
209
209
  - lib/vector_salad/magic.rb
210
210
  - lib/vector_salad/mixins/at.rb
211
+ - lib/vector_salad/monkeypatches.rb
211
212
  - lib/vector_salad/shape_proxy.rb
212
213
  - lib/vector_salad/standard_shapes/basic_shape.rb
213
214
  - lib/vector_salad/standard_shapes/circle.rb