addic7ed 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MGFlY2ZmZmQxNjY4ZmE3ZmRkY2E1NzRiYjY3ZGYyN2I0NmZmNjViMg==
5
+ data.tar.gz: !binary |-
6
+ OWMxMzRlYjMwNDM0ZTUzMjVmOTRiM2I0NTg4ZDAwODFmYWQ5YWI2ZQ==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ MGNiN2E1NDA1NjNiODg1YjA4YzhiN2FmMjMzNDY5NTlkNjIzYTcwMDczZDA5
10
+ MDE1N2FjNDQ5NTZkOGEyYjAyNDU2MWY5NTg1Yzg2NmYzZjBkZmNiOTVmNmUz
11
+ NDA5NTdlMmUwNDBiZWM1YjcyOTQxNmM5MjAxN2M3ZjAwMTY5OTA=
12
+ data.tar.gz: !binary |-
13
+ MWM3MjNhMTY5YmJiNDg4ZjlmZmRiMjViYTQ3ZTRiYmFhMWQ3MDdkMGNkMDQ4
14
+ YWNiOWQ1YWQ5YmUyZGExODEzYWRlMTQ3YzcxOWI2MGIxY2ExM2I5ZTYzN2E4
15
+ NjQ1ZThmZDZhYjQyNTIzYTAxMDRiMTI4N2FlZWZiNWY0Y2M4MWY=
@@ -1,39 +1,43 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- addic7ed (0.1.8)
4
+ addic7ed (0.1.9)
5
5
  nokogiri
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- colorize (0.5.8)
11
- coveralls (0.6.4)
12
- colorize
10
+ coveralls (0.7.0)
13
11
  multi_json (~> 1.3)
14
12
  rest-client
15
13
  simplecov (>= 0.7)
14
+ term-ansicolor
16
15
  thor
17
- diff-lcs (1.2.2)
18
- mime-types (1.22)
19
- multi_json (1.7.2)
20
- nokogiri (1.5.9)
21
- rake (10.0.4)
16
+ diff-lcs (1.2.4)
17
+ mime-types (2.0)
18
+ mini_portile (0.5.2)
19
+ multi_json (1.8.2)
20
+ nokogiri (1.6.0)
21
+ mini_portile (~> 0.5.0)
22
+ rake (10.1.0)
22
23
  rest-client (1.6.7)
23
24
  mime-types (>= 1.16)
24
- rspec (2.13.0)
25
- rspec-core (~> 2.13.0)
26
- rspec-expectations (~> 2.13.0)
27
- rspec-mocks (~> 2.13.0)
28
- rspec-core (2.13.1)
29
- rspec-expectations (2.13.0)
25
+ rspec (2.14.1)
26
+ rspec-core (~> 2.14.0)
27
+ rspec-expectations (~> 2.14.0)
28
+ rspec-mocks (~> 2.14.0)
29
+ rspec-core (2.14.7)
30
+ rspec-expectations (2.14.3)
30
31
  diff-lcs (>= 1.1.3, < 2.0)
31
- rspec-mocks (2.13.1)
32
+ rspec-mocks (2.14.4)
32
33
  simplecov (0.7.1)
33
34
  multi_json (~> 1.0)
34
35
  simplecov-html (~> 0.7.1)
35
36
  simplecov-html (0.7.1)
37
+ term-ansicolor (1.2.2)
38
+ tins (~> 0.8)
36
39
  thor (0.18.1)
40
+ tins (0.12.0)
37
41
 
38
42
  PLATFORMS
39
43
  ruby
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.8**
6
+ Current version: **0.1.9**
7
7
 
8
8
  ### Is it working ?
9
9
 
@@ -46,8 +46,7 @@ Usage: addic7ed [options] <file1> [<file2>, <file3>, ...]
46
46
 
47
47
  Feel free to submit a Pull Request, I'd be glad to review/merge it.
48
48
 
49
- Also, if you like the awesome work done by the Addic7ed team, please consider donating to them (no link here as they are just in the middle of changing their donation system, but feel free to go their website) !
50
-
49
+ Also, if you like the awesome work done by the Addic7ed team, please consider [donating to them](http://www.addic7ed.com) !
51
50
 
52
51
  ### Notes
53
52
 
@@ -68,6 +67,7 @@ There's some work remaining:
68
67
 
69
68
  ### Changelog
70
69
 
70
+ * 0.1.9: Fix the scraper because of a modification on Addic7ed website
71
71
  * 0.1.8: Added priority to subtitles uploaded by Addic7ed staff
72
72
  * 0.1.7: Fixed a bug when a subtitle had multiple revisions on Addic7ed.com
73
73
  * 0.1.6: Enhanced subtitles version string filters (remove heading and trailing dashes)
@@ -26,6 +26,7 @@ module Addic7ed
26
26
  gsub(/x\.?264/i, '').
27
27
  gsub(/^[- \.]*/, '').
28
28
  gsub(/[- \.]*$/, '').
29
+ gsub(/^Version */i, '').
29
30
  upcase
30
31
  end
31
32
 
@@ -1,3 +1,3 @@
1
1
  module Addic7ed
2
- VERSION = '0.1.8'
2
+ VERSION = '0.1.9'
3
3
  end
@@ -2,8 +2,6 @@ require 'spec_helper'
2
2
  require './lib/addic7ed'
3
3
 
4
4
  describe Addic7ed::Subtitle do
5
- before :all do
6
- end
7
5
 
8
6
  describe '#normalized_version' do
9
7
  it 'should upcase the version string' do
@@ -52,5 +50,10 @@ describe Addic7ed::Subtitle do
52
50
  Addic7ed::Subtitle.new('DIMENSION x.264', '', '', '', '', '0').version.should == 'DIMENSION'
53
51
  Addic7ed::Subtitle.new('DIMENSION X.264', '', '', '', '', '0').version.should == 'DIMENSION'
54
52
  end
53
+
54
+ it 'should automatically remove "Version" prefix in version string' do
55
+ Addic7ed::Subtitle.new('Version DIMENSION', '', '', '', '', '0').version.should == 'DIMENSION'
56
+ end
57
+
55
58
  end
56
59
  end
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: addic7ed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
5
- prerelease:
4
+ version: 0.1.9
6
5
  platform: ruby
7
6
  authors:
8
7
  - Michael Baudino
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-04-08 00:00:00.000000000 Z
11
+ date: 2013-11-06 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rspec
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ! '>='
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ! '>='
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rake
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ! '>='
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ! '>='
44
39
  - !ruby/object:Gem::Version
@@ -46,7 +41,6 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: nokogiri
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ! '>='
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ! '>='
60
53
  - !ruby/object:Gem::Version
@@ -86,27 +79,26 @@ files:
86
79
  homepage: https://github.com/michaelbaudino/addic7ed-ruby
87
80
  licenses:
88
81
  - MIT
82
+ metadata: {}
89
83
  post_install_message:
90
84
  rdoc_options: []
91
85
  require_paths:
92
86
  - lib
93
87
  required_ruby_version: !ruby/object:Gem::Requirement
94
- none: false
95
88
  requirements:
96
89
  - - ! '>='
97
90
  - !ruby/object:Gem::Version
98
91
  version: '0'
99
92
  required_rubygems_version: !ruby/object:Gem::Requirement
100
- none: false
101
93
  requirements:
102
94
  - - ! '>='
103
95
  - !ruby/object:Gem::Version
104
96
  version: '0'
105
97
  requirements: []
106
98
  rubyforge_project:
107
- rubygems_version: 1.8.25
99
+ rubygems_version: 2.1.10
108
100
  signing_key:
109
- specification_version: 3
101
+ specification_version: 4
110
102
  summary: Addic7ed auto-downloader
111
103
  test_files:
112
104
  - spec/addic7ed-subtitle_spec.rb