addic7ed 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -10
- data/Gemfile.lock +7 -1
- data/README.md +12 -6
- data/Rakefile +3 -0
- data/bin/addic7ed +12 -7
- data/lib/addic7ed.rb +1 -0
- data/lib/addic7ed/common.rb +0 -2
- data/lib/addic7ed/version.rb +3 -0
- data/spec/spec_helper.rb +10 -0
- metadata +10 -2
data/Gemfile
CHANGED
@@ -1,11 +1,3 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
|
4
|
-
# ruby '1.9.3'
|
5
|
-
|
6
|
-
gem 'nokogiri'
|
7
|
-
gem 'rspec'
|
8
|
-
|
9
|
-
group :test do
|
10
|
-
gem 'rake'
|
11
|
-
end
|
2
|
+
# The gem's dependencies will be specified in addic7ed.gemspec
|
3
|
+
gemspec
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Ruby command-line script to fetch subtitles on Addic7ed
|
4
4
|
|
5
|
-
Current version: **0.1.
|
5
|
+
Current version: **0.1.1**
|
6
6
|
|
7
7
|
### Is it working ?
|
8
8
|
|
@@ -49,18 +49,24 @@ Also, if you like the awesome work done by the Addic7ed team, please consider [d
|
|
49
49
|
|
50
50
|
### Notes
|
51
51
|
|
52
|
-
Addic7ed restricts the number of subtitle download to 15 per 24h (30 per 24h for registered users, and 55 for VIP users).
|
52
|
+
Addic7ed restricts the number of subtitle download to 15 per 24h (30 per 24h for registered users, and 55 for VIP users).
|
53
|
+
|
54
|
+
Don't get mad, they have to pay for their servers, you know.
|
53
55
|
|
54
56
|
### Roadmap
|
55
57
|
|
56
58
|
There's some work remaining:
|
57
|
-
-
|
58
|
-
-
|
59
|
-
-
|
60
|
-
-
|
59
|
+
- Support registered users
|
60
|
+
- Support directory parsing
|
61
|
+
- Document code
|
62
|
+
- Test cli behaviour
|
63
|
+
- Colorize output
|
64
|
+
- Write doc for cron usage
|
65
|
+
- Write doc for iwatch usage
|
61
66
|
|
62
67
|
### Changelog
|
63
68
|
|
69
|
+
* 0.1.1: This is now a _working_ gem
|
64
70
|
* 0.1.0: This is now a gem
|
65
71
|
* 0.0.1: Added ability to actually download a subtitle
|
66
72
|
* 0.0.6: Added choice of the best subtitle to download, amongst all available for an episode
|
data/Rakefile
CHANGED
data/bin/addic7ed
CHANGED
@@ -1,12 +1,17 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
|
4
|
-
require 'optparse'
|
5
|
-
|
6
|
-
require '
|
7
|
-
|
8
|
-
|
9
|
-
|
3
|
+
def require_dependencies
|
4
|
+
require 'optparse'
|
5
|
+
require 'nokogiri'
|
6
|
+
require 'addic7ed'
|
7
|
+
end
|
8
|
+
|
9
|
+
begin
|
10
|
+
require_dependencies # People don't all use rubygems, you know...
|
11
|
+
rescue LoadError
|
12
|
+
require 'rubygems' # But most do :-)
|
13
|
+
require_dependencies
|
14
|
+
end
|
10
15
|
|
11
16
|
options = {}
|
12
17
|
OptionParser.new do |opts|
|
data/lib/addic7ed.rb
CHANGED
data/lib/addic7ed/common.rb
CHANGED
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
RSpec.configure do |config|
|
2
|
+
# Use color in STDOUT
|
3
|
+
config.color_enabled = true
|
4
|
+
|
5
|
+
# Use color not only in STDOUT but also in pagers and files
|
6
|
+
config.tty = true
|
7
|
+
|
8
|
+
# Use the specified formatter
|
9
|
+
config.formatter = :documentation # :progress, :html, :textmate
|
10
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: addic7ed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -44,7 +44,7 @@ dependencies:
|
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
version: '0'
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
|
-
name:
|
47
|
+
name: nokogiri
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
49
49
|
none: false
|
50
50
|
requirements:
|
@@ -68,6 +68,7 @@ extra_rdoc_files: []
|
|
68
68
|
files:
|
69
69
|
- lib/addic7ed.rb
|
70
70
|
- lib/addic7ed/common.rb
|
71
|
+
- lib/addic7ed/version.rb
|
71
72
|
- lib/addic7ed/filename.rb
|
72
73
|
- lib/addic7ed/subtitle.rb
|
73
74
|
- lib/addic7ed/errors.rb
|
@@ -79,6 +80,7 @@ files:
|
|
79
80
|
- Rakefile
|
80
81
|
- spec/addic7ed-episode_spec.rb
|
81
82
|
- spec/addic7ed-filename_spec.rb
|
83
|
+
- spec/spec_helper.rb
|
82
84
|
- spec/addic7ed-common_spec.rb
|
83
85
|
homepage: https://github.com/michaelbaudino/addic7ed-ruby
|
84
86
|
licenses:
|
@@ -93,12 +95,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
93
95
|
- - ! '>='
|
94
96
|
- !ruby/object:Gem::Version
|
95
97
|
version: '0'
|
98
|
+
segments:
|
99
|
+
- 0
|
100
|
+
hash: 3271684831979682484
|
96
101
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
97
102
|
none: false
|
98
103
|
requirements:
|
99
104
|
- - ! '>='
|
100
105
|
- !ruby/object:Gem::Version
|
101
106
|
version: '0'
|
107
|
+
segments:
|
108
|
+
- 0
|
109
|
+
hash: 3271684831979682484
|
102
110
|
requirements: []
|
103
111
|
rubyforge_project:
|
104
112
|
rubygems_version: 1.8.25
|