sindex 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/lib/sindex/series.rb +2 -2
- data/lib/sindex/version.rb +1 -1
- data/test/test_series_index.rb +8 -0
- 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: c851af3fb80771e6d0a211547e1798c791c44adc
|
4
|
+
data.tar.gz: 8bc79daa3b9a732d361ac3eec2a3238866ae8538
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 990c6a9a2702f66950bf0d43fb01ccb1b48190028906fc608c762fd82fbc4b5cc90e87f21a64258570450eb76aa7e2b77b0b2ebb007a42089b406983b288ff91
|
7
|
+
data.tar.gz: e76ecfc54b68e9c4a4978b453ab19b153eae9038278ba94fd488dd560ad5d40e23a61ca964f98173ec3aa68b47b1a500e928ef8ee88d4f462147e0e37ffaafcd
|
data/lib/sindex/series.rb
CHANGED
@@ -73,9 +73,9 @@ module Sindex
|
|
73
73
|
virtual_ids= []
|
74
74
|
|
75
75
|
1.upto(season).each do |s|
|
76
|
-
episode_range = (
|
76
|
+
episode_range = (0..50).to_a
|
77
77
|
if s == season
|
78
|
-
episode_range = (
|
78
|
+
episode_range = (0...episode).to_a
|
79
79
|
end
|
80
80
|
|
81
81
|
episode_range.each do |e|
|
data/lib/sindex/version.rb
CHANGED
data/test/test_series_index.rb
CHANGED
@@ -105,6 +105,14 @@ class TestIndex < Test::Unit::TestCase
|
|
105
105
|
"Thee.Big.Bang.Theory.S01E31.Bankgeheimnis.DL.German.HDTV.XviD-GDR")
|
106
106
|
end
|
107
107
|
|
108
|
+
def test_that_all_before_adds_an_zero_episode
|
109
|
+
assert_equal true, @series_index.episode_existing?("The Big Bang Theory",
|
110
|
+
"Thee.Big.Bang.Theory.S03E00.Wie.auch.immer.DL.German.HDTV.XviD-GDR")
|
111
|
+
|
112
|
+
assert_equal true, @series_index.episode_existing?("The Big Bang Theory",
|
113
|
+
"Thee.Big.Bang.Theory.S06E00.Wie.auch.immer.DL.German.HDTV.XviD-GDR")
|
114
|
+
end
|
115
|
+
|
108
116
|
def test_that_the_all_before_flag_is_also_written_to_dumped_index
|
109
117
|
filename = Tempfile.new('dumped_index').path
|
110
118
|
@series_index.dump_index_to_file(filename)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sindex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Philipp Böhm
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|