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 CHANGED
@@ -1,11 +1,3 @@
1
1
  source 'https://rubygems.org'
2
-
3
- # do not specify ruby version to allow Travis to test against different versions
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
@@ -1,3 +1,9 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ addic7ed (0.1.1)
5
+ nokogiri
6
+
1
7
  GEM
2
8
  remote: https://rubygems.org/
3
9
  specs:
@@ -17,6 +23,6 @@ PLATFORMS
17
23
  ruby
18
24
 
19
25
  DEPENDENCIES
20
- nokogiri
26
+ addic7ed!
21
27
  rake
22
28
  rspec
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.0**
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). Don't get mad, they have to pay for their servers, you know.
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
- - [ ] Support registered users
58
- - [ ] Document code
59
- - [ ] Test cli behaviour
60
- - [ ] Colorize output
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
@@ -3,3 +3,6 @@ require 'rspec/core/rake_task'
3
3
  RSpec::Core::RakeTask.new(:spec)
4
4
 
5
5
  task :default => :spec
6
+
7
+ require 'bundler'
8
+ Bundler::GemHelper.install_tasks
data/bin/addic7ed CHANGED
@@ -1,12 +1,17 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- # Ruby modules
4
- require 'optparse'
5
- # Bundler
6
- require 'bundler/setup'
7
- Bundler.require
8
- # Local modules
9
- require 'addic7ed'
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
@@ -1,3 +1,4 @@
1
+ require 'addic7ed/version'
1
2
  require 'addic7ed/common'
2
3
  require 'addic7ed/errors'
3
4
  require 'addic7ed/filename'
@@ -2,8 +2,6 @@
2
2
 
3
3
  module Addic7ed
4
4
 
5
- VERSION='0.1.0'
6
-
7
5
  SHOWS_URL = 'http://www.addic7ed.com/ajax_getShows.php'
8
6
  EPISODES_URL = 'http://www.addic7ed.com/ajax_getEpisodes.php'
9
7
  EPISODE_REDIRECT_URL = 'http://www.addic7ed.com/re_episode.php'
@@ -0,0 +1,3 @@
1
+ module Addic7ed
2
+ VERSION = '0.1.1'
3
+ end
@@ -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.0
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: bundler
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