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 +4 -4
- data/lib/cheapredwine/version.rb +1 -1
- data/lib/cheapredwine.rb +8 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47dbf3df8b9d62c00af73e6f80e445b1a1cc3bb3
|
4
|
+
data.tar.gz: c9d1d281fa69d2953cd1e8311753c7ca4adf2d06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1db5488d240f3c88f626dd81c1bb72a49ab1f7eef1a8598e04da41c91e422a772b24bd121c43a047a3b4b95eedfc864978a82094f349890feef50e390c28e46f
|
7
|
+
data.tar.gz: 5621308c9af16b841f236f78eb9ee99612c55b502617eb9e65b51ed057876ba40f51e84028fb0ea30f1e3f89a68c66860b1850a64372360a75682a63e2b8598a
|
data/lib/cheapredwine/version.rb
CHANGED
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
|
10
|
+
def_delegators :attrs, :font_name, :family_name, :style, :features
|
9
11
|
|
10
12
|
def initialize file
|
11
|
-
@
|
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.
|
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.
|
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.
|