myfonts 0.0.4 → 0.0.5

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/.gitignore CHANGED
@@ -11,6 +11,7 @@ spec/reports
11
11
  test/tmp
12
12
  test/version_tmp
13
13
  tmp
14
+ Gemfile.lock
14
15
 
15
16
  # YARD artifacts
16
17
  .yardoc
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- MyFonts (0.0.2)
4
+ myfonts (0.0.4)
5
5
  httparty
6
6
  nokogiri
7
7
 
@@ -34,7 +34,7 @@ PLATFORMS
34
34
  ruby
35
35
 
36
36
  DEPENDENCIES
37
- MyFonts!
37
+ myfonts!
38
38
  rspec
39
39
  vcr
40
40
  webmock
@@ -1,33 +1,6 @@
1
- require "myfonts/model"
1
+ require "myfonts/designer"
2
2
 
3
3
  module MyFonts
4
- class Foundry < Model
5
- def initialize(url, name=nil)
6
- @name = name
7
- super(url)
8
- end
9
-
10
- def name
11
- @name ||= get_name
12
- end
13
-
14
- def families
15
- @families ||= get_families
16
- end
17
-
18
- private
19
-
20
- def get_name
21
- dom.css("title").text.gsub(/ . MyFonts/, "")
22
- end
23
-
24
- def get_families
25
- result = dom.css("h4 a").select do |a|
26
- a.get_attribute("href") =~ /^\/fonts/
27
- end
28
- result.map do |a|
29
- Family.new("http://www.myfonts.com" + a.get_attribute("href"), a.text)
30
- end
31
- end
4
+ class Foundry < Designer
32
5
  end
33
6
  end
@@ -1,3 +1,3 @@
1
1
  module MyFonts
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: myfonts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: