cheapredwine 0.1.0 → 0.1.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.
data/README.md CHANGED
@@ -32,7 +32,7 @@ It assumes the following is installed and in the case where it applies, accessib
32
32
 
33
33
  image = CheapRedWine.image(font, "some text", options)
34
34
 
35
- **Caveat: ** `image` is an IO object that can then be use to write to disk. `font` is any object that responds to `#features` and produces a list `["onum", "liga"]` as well as provide a font file object through `#file`. `file` need only know of it's full path to work properly.
35
+ **Caveat:** `image` is an IO object that can then be use to write to disk. `font` is any object that responds to `#features` and produces a list `["onum", "liga"]` as well as provide a font file object through `#file`. `file` need only know of it's full path to work properly.
36
36
 
37
37
  ##### Options
38
38
 
@@ -29,6 +29,10 @@ module CheapRedWine
29
29
  namerecord(1).first.text.strip
30
30
  end
31
31
 
32
+ def style
33
+ namerecord(2).first.text.strip
34
+ end
35
+
32
36
  def namerecord(id)
33
37
  @document.xpath("//namerecord[@nameID=#{id}]")
34
38
  end
@@ -1,3 +1,3 @@
1
1
  module CheapRedWine
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -10,8 +10,9 @@ describe Parser do
10
10
  ttx.features.should eq ["kern", "size", "aalt", "frac", "liga", "ordn", "sups"]
11
11
  end
12
12
 
13
- it "parses name font family and font name" do
13
+ it "parses attributes" do
14
14
  ttx.family_name.should eq "Hobo Std"
15
15
  ttx.font_name.should eq "Hobo Std Medium"
16
+ ttx.style.should eq "Regular"
16
17
  end
17
18
  end
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.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-26 00:00:00.000000000 Z
12
+ date: 2013-03-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec