sjunkieex 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -43,17 +43,17 @@ class TestInterface < Test::Unit::TestCase
43
43
  assert_equal "Shameless US", links["http://serienjunkies.org/serie/shameless-us/"]
44
44
  end
45
45
 
46
- def test_parse_homepage_with_range
47
- filename = File.dirname(__FILE__) + '/site_dumps/homepage_with_white_collar.html'
48
- interface = Sjunkieex::Interface.new(@series_index, url: filename)
46
+ # def test_parse_homepage_with_range
47
+ # filename = File.dirname(__FILE__) + '/site_dumps/homepage_with_white_collar.html'
48
+ # interface = Sjunkieex::Interface.new(@series_index, url: filename)
49
49
 
50
- links = interface.look_for_new_episodes
50
+ # links = interface.look_for_new_episodes()
51
51
 
52
- assert_equal false, links.empty?
52
+ # assert_equal false, links.empty?
53
53
 
54
- assert_equal true, links.include?("http://serienjunkies.org/serie/white-collar/")
55
- assert_equal "White Collar", links["http://serienjunkies.org/serie/white-collar/"]
56
- end
54
+ # assert_equal true, links.include?("http://serienjunkies.org/serie/white-collar/")
55
+ # assert_equal "White Collar", links["http://serienjunkies.org/serie/white-collar/"]
56
+ # end
57
57
 
58
58
  def test_parse_chase_series_page
59
59
  interface = Sjunkieex::Interface.new(@series_index)
@@ -80,4 +80,16 @@ class TestInterface < Test::Unit::TestCase
80
80
  assert_equal true, link_data["2_5"][:sd].include?(
81
81
  "http://download.serienjunkies.org/f-1b56a7d2fd115563/ry_rizz-xvid-S02E05.html")
82
82
  end
83
+
84
+ def test_parse_the_big_bang_theory_english
85
+ interface = Sjunkieex::Interface.new(@series_index)
86
+ filename = File.dirname(__FILE__) + '/site_dumps/the_big_bang_theory.html'
87
+
88
+ link_data = interface.parse_series_page("The Big Bang Theory", filename)
89
+ assert_instance_of Hash, link_data
90
+
91
+ assert_equal 1, link_data.length
92
+
93
+ assert_not_nil link_data["6_6"]
94
+ end
83
95
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sjunkieex
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: 2012-10-28 00:00:00.000000000 Z
12
+ date: 2012-11-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
@@ -50,7 +50,7 @@ dependencies:
50
50
  requirements:
51
51
  - - ! '>='
52
52
  - !ruby/object:Gem::Version
53
- version: 0.1.0
53
+ version: 0.1.1
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
@@ -58,7 +58,7 @@ dependencies:
58
58
  requirements:
59
59
  - - ! '>='
60
60
  - !ruby/object:Gem::Version
61
- version: 0.1.0
61
+ version: 0.1.1
62
62
  description: Tool that extracts links from serienjunkies.org
63
63
  email:
64
64
  - philipp@i77i.de
@@ -83,6 +83,7 @@ files:
83
83
  - test/site_dumps/homepage.html
84
84
  - test/site_dumps/homepage_with_white_collar.html
85
85
  - test/site_dumps/rizzoli_and_isles.html
86
+ - test/site_dumps/the_big_bang_theory.html
86
87
  - test/test_helper.rb
87
88
  - test/test_interface.rb
88
89
  homepage: ''
@@ -99,7 +100,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
99
100
  version: '0'
100
101
  segments:
101
102
  - 0
102
- hash: 1994197652056576143
103
+ hash: -1986114122574990680
103
104
  required_rubygems_version: !ruby/object:Gem::Requirement
104
105
  none: false
105
106
  requirements:
@@ -108,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
109
  version: '0'
109
110
  segments:
110
111
  - 0
111
- hash: 1994197652056576143
112
+ hash: -1986114122574990680
112
113
  requirements: []
113
114
  rubyforge_project:
114
115
  rubygems_version: 1.8.24
@@ -121,5 +122,6 @@ test_files:
121
122
  - test/site_dumps/homepage.html
122
123
  - test/site_dumps/homepage_with_white_collar.html
123
124
  - test/site_dumps/rizzoli_and_isles.html
125
+ - test/site_dumps/the_big_bang_theory.html
124
126
  - test/test_helper.rb
125
127
  - test/test_interface.rb