addic7ed 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +3 -2
- data/lib/addic7ed/subtitle.rb +2 -2
- data/lib/addic7ed/version.rb +1 -1
- data/spec/addic7ed-subtitle_spec.rb +6 -0
- metadata +1 -1
data/README.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
Ruby command-line script to fetch subtitles on Addic7ed
|
5
5
|
|
6
|
-
Current version: **0.1.
|
6
|
+
Current version: **0.1.6**
|
7
7
|
|
8
8
|
### Is it working ?
|
9
9
|
|
@@ -68,7 +68,8 @@ There's some work remaining:
|
|
68
68
|
|
69
69
|
### Changelog
|
70
70
|
|
71
|
-
* 0.1.
|
71
|
+
* 0.1.6: Enhanced subtitles version string filters (remove heading and trailing dashes)
|
72
|
+
* 0.1.5: Enhanced subtitles version string filters (remove heading and trailing spaces and dots)
|
72
73
|
* 0.1.4: Fixed a bug in require paths which made 0.1.3 unusable
|
73
74
|
* 0.1.3: Fixed bugs with show names containing country code or production year
|
74
75
|
* 0.1.2: Fixed how the daily download limit reach is detected
|
data/lib/addic7ed/subtitle.rb
CHANGED
data/lib/addic7ed/version.rb
CHANGED
@@ -22,6 +22,12 @@ describe Addic7ed::Subtitle do
|
|
22
22
|
Addic7ed::Subtitle.new(' DIMENSION ', '', '', '', '0').version.should == 'DIMENSION'
|
23
23
|
end
|
24
24
|
|
25
|
+
it 'should remove heading and trailing dashes' do
|
26
|
+
Addic7ed::Subtitle.new('-DIMENSION', '', '', '', '0').version.should == 'DIMENSION'
|
27
|
+
Addic7ed::Subtitle.new('DIMENSION-', '', '', '', '0').version.should == 'DIMENSION'
|
28
|
+
Addic7ed::Subtitle.new('-DIMENSION-', '', '', '', '0').version.should == 'DIMENSION'
|
29
|
+
end
|
30
|
+
|
25
31
|
it 'should automatically remove "720p" in version string' do
|
26
32
|
Addic7ed::Subtitle.new('720p DIMENSION', '', '', '', '0').version.should == 'DIMENSION'
|
27
33
|
Addic7ed::Subtitle.new('720P DIMENSION', '', '', '', '0').version.should == 'DIMENSION'
|