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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5aec829f6610cada2f5663bb6eeb0f816edd32db
4
- data.tar.gz: ec0494340ce02b8bdcd5dab412943c6dd1e611e3
3
+ metadata.gz: c851af3fb80771e6d0a211547e1798c791c44adc
4
+ data.tar.gz: 8bc79daa3b9a732d361ac3eec2a3238866ae8538
5
5
  SHA512:
6
- metadata.gz: d060609adaf165a45950010ca28207e515c73f26c292fa75f458d68947d40c4d7d8cc07e9749fa5ec025e595689f402a303e932a4496a45c30b565f8bcc8f0ca
7
- data.tar.gz: 87ef7a97b9fe1601d093758183aaf53f76f2f00a2cea6e11cadc364eea30c19628da73a510172dcb2933f85d458951aceab37cccaa9b41813ae84a712055e085
6
+ metadata.gz: 990c6a9a2702f66950bf0d43fb01ccb1b48190028906fc608c762fd82fbc4b5cc90e87f21a64258570450eb76aa7e2b77b0b2ebb007a42089b406983b288ff91
7
+ data.tar.gz: e76ecfc54b68e9c4a4978b453ab19b153eae9038278ba94fd488dd560ad5d40e23a61ca964f98173ec3aa68b47b1a500e928ef8ee88d4f462147e0e37ffaafcd
data/.travis.yml CHANGED
@@ -1,4 +1,5 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 1.9.3
4
+ - 2.0
4
5
 
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 = (1..50).to_a
76
+ episode_range = (0..50).to_a
77
77
  if s == season
78
- episode_range = (1...episode).to_a
78
+ episode_range = (0...episode).to_a
79
79
  end
80
80
 
81
81
  episode_range.each do |e|
@@ -1,3 +1,3 @@
1
1
  module Sindex
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
@@ -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.1
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-06-10 00:00:00.000000000 Z
11
+ date: 2013-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri