gradient 0.2.0 → 0.2.1

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: f55c2143e51c8034863193036c2609ac11007591
4
- data.tar.gz: e042d481cbd1e8b034b611715709555badd24bb6
3
+ metadata.gz: d1f221b462b155e39221e11c072bc4fa239ac6cd
4
+ data.tar.gz: 6144d6cefe6597a3c647e41b1a82d3024d632b78
5
5
  SHA512:
6
- metadata.gz: 42aa087d8edd0c5faf199beb34ca5eec83a250b0b0fb1cbeea0f65b9bfe73a2bb045e3a8f5907861ba16001c0aa5de6c356e6323530f39517ec0e1a2542b1fda
7
- data.tar.gz: 07f2d6c7e4f6cec682abc15c8f78306b5530a43015b67488b384c6fd83c391a2f510058eb378d034db3b470d50f3f205d3c3c4c78f41e79add0362ef265a12ac
6
+ metadata.gz: 1458c99a8451d8565749f8cc0bc15b0f150c17eb6a7086fdb7d244a445881da380e47e02bbb55af2c2aff3153576cd19e7139b965e6c8fee9b42504c3c770b79
7
+ data.tar.gz: 9200849839136d6baa4ade7919f31f272a421133dd0833cddfd9d79a4b29e3175d965a200f133bd5fba377f8921dbb2d667802d0660ecaabcc05720060b30a57
data/README.md CHANGED
@@ -54,7 +54,7 @@ For many artists a preferred way of creating gradients is through Photoshop.
54
54
  You are able to parse `.grd` files and turn them in to a hash of `Gradient::Map` objects.
55
55
 
56
56
  ```ruby
57
- Gradient::GRD.parse("./kiwi.grd")
57
+ Gradient::GRD.read("./kiwi.grd")
58
58
  # => {
59
59
  # "Kiwi"=> #<Gradient Map #<Point 0.0 #3d1103ff> #<Point 38.6 #29860dff> #<Point 84.0 #a0cb1bff> #<Point 92.7 #f3f56eff> #<Point 100.0 #ffffffff>>
60
60
  # }
data/lib/gradient/grd.rb CHANGED
@@ -36,6 +36,10 @@ module Gradient
36
36
  end.maps
37
37
  end
38
38
 
39
+ def open(file)
40
+ read(file)
41
+ end
42
+
39
43
  end
40
44
 
41
45
  def initialize
@@ -1,3 +1,3 @@
1
1
  module Gradient
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gradient
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philip Vieira