cheapredwine 0.4.0 → 0.4.3

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: 507b55232c7e11bb44fecba447aafb123c916a54
4
- data.tar.gz: 71a1610253c44b2e813f5a35794403642e9741c9
3
+ metadata.gz: 47dbf3df8b9d62c00af73e6f80e445b1a1cc3bb3
4
+ data.tar.gz: c9d1d281fa69d2953cd1e8311753c7ca4adf2d06
5
5
  SHA512:
6
- metadata.gz: 644ce9189ef137b71c6d4e09143a42f1113bcd35c1262b707e404b9bc117c139b0d3e266f2d0f5e3bf2a0124a734a81572374f8eaf0e8e6f2a54f99d743b5ef9
7
- data.tar.gz: b4bc656a2f792e3b02bffbb0d5d87eab712aca3a02c9f604bd02f80dcd256207cdfe8fb5b1e042c325d5bc6ab5ae9592a00a21fefcdebd366ecfbdadbd9d7530
6
+ metadata.gz: 1db5488d240f3c88f626dd81c1bb72a49ab1f7eef1a8598e04da41c91e422a772b24bd121c43a047a3b4b95eedfc864978a82094f349890feef50e390c28e46f
7
+ data.tar.gz: 5621308c9af16b841f236f78eb9ee99612c55b502617eb9e65b51ed057876ba40f51e84028fb0ea30f1e3f89a68c66860b1850a64372360a75682a63e2b8598a
@@ -1,3 +1,3 @@
1
1
  class Cheapredwine
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.3"
3
3
  end
data/lib/cheapredwine.rb CHANGED
@@ -1,15 +1,16 @@
1
+ require "forwardable"
1
2
  require "cheapredwine/version"
2
3
  require "cheapredwine/command"
4
+ require "cheapredwine/parser"
3
5
 
4
6
  class Cheapredwine
5
7
  extend Forwardable
6
8
 
7
9
  attr_accessor :file
8
- def_delegators :@attrs, :font_name, :family_name, :style, :features
10
+ def_delegators :attrs, :font_name, :family_name, :style, :features
9
11
 
10
12
  def initialize file
11
- @attrs = Parser.new file
12
- @file = File.new file
13
+ @file = file
13
14
  end
14
15
 
15
16
  def image &block
@@ -22,6 +23,10 @@ class Cheapredwine
22
23
  runner
23
24
  end
24
25
 
26
+ def attrs
27
+ @attrs ||= Parser.new file
28
+ end
29
+
25
30
  private
26
31
 
27
32
  def builder
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cheapredwine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hugo Bastien
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  version: '0'
103
103
  requirements: []
104
104
  rubyforge_project:
105
- rubygems_version: 2.0.3
105
+ rubygems_version: 2.1.11
106
106
  signing_key:
107
107
  specification_version: 4
108
108
  summary: I needed a way to test fonts on the web. I based this library on myfonts.com.