cheapredwine 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 47dbf3df8b9d62c00af73e6f80e445b1a1cc3bb3
4
- data.tar.gz: c9d1d281fa69d2953cd1e8311753c7ca4adf2d06
3
+ metadata.gz: dc574d03434bdb7ef1c882b623a93f9e7e538931
4
+ data.tar.gz: 3787d90a0f2cc127a001bb217e6c8acb211f1e80
5
5
  SHA512:
6
- metadata.gz: 1db5488d240f3c88f626dd81c1bb72a49ab1f7eef1a8598e04da41c91e422a772b24bd121c43a047a3b4b95eedfc864978a82094f349890feef50e390c28e46f
7
- data.tar.gz: 5621308c9af16b841f236f78eb9ee99612c55b502617eb9e65b51ed057876ba40f51e84028fb0ea30f1e3f89a68c66860b1850a64372360a75682a63e2b8598a
6
+ metadata.gz: 86e32b3339c4fca9043daa42692351e37bcd62c27289cfa92c42b47c76693f24b69ed8555d6825acf01baf416de02b8cde6fe853d0c6c43c5b162b7dae2b2d62
7
+ data.tar.gz: 7260e88217b8d75a811d3c94f56d9f0a63661cc9ff796360b6b7b062c23c5d97314ea6287082d5fd06ecac22b3e1a33c318f59c058377f1078312321c1a3fc66
data/lib/cheapredwine.rb CHANGED
@@ -17,8 +17,8 @@ class Cheapredwine
17
17
  create(&block).run!
18
18
  end
19
19
 
20
- def create &block
21
- builder.instance_eval &block
20
+ def create
21
+ yield builder if block_given?
22
22
  builder.font_file file.path
23
23
  runner
24
24
  end
@@ -1,3 +1,3 @@
1
1
  class Cheapredwine
2
- VERSION = "0.4.3"
2
+ VERSION = "0.4.4"
3
3
  end
@@ -20,14 +20,14 @@ describe Cheapredwine do
20
20
  "--margin=0"
21
21
  ]
22
22
 
23
- image = wine.image do
24
- append_text "ffi 1234567"
25
- append_text "st", with: ["dlig"]
23
+ image = wine.image do |wine|
24
+ wine.append_text "ffi 1234567"
25
+ wine.append_text "st", with: ["dlig"]
26
26
 
27
- turn_on_feature "onum"
27
+ wine.turn_on_feature "onum"
28
28
 
29
- set_margin 0
30
- set_font_size 92
29
+ wine.set_margin 0
30
+ wine.set_font_size 92
31
31
  end
32
32
  end
33
33
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cheapredwine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hugo Bastien
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-12 00:00:00.000000000 Z
11
+ date: 2013-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec