osdb 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +19 -16
- data/VERSION +1 -0
- data/bin/getsub +1 -1
- data/osdb.gemspec +36 -16
- data/spec/osdb/server_spec.rb +1 -1
- metadata +38 -79
- data.tar.gz.sig +0 -5
- metadata.gz.sig +0 -0
data/Rakefile
CHANGED
@@ -1,25 +1,28 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
require 'rake'
|
3
|
-
require 'spec/rake/spectask'
|
4
3
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
4
|
+
# TODO: update rspec to 2.X
|
5
|
+
# require 'spec/rake/spectask'
|
6
|
+
#
|
7
|
+
# Spec::Rake::SpecTask.new(:spec) do |spec|
|
8
|
+
# spec.libs << 'lib' << 'spec'
|
9
|
+
# spec.spec_files = FileList['spec/**/*_spec.rb']
|
10
|
+
# end
|
11
|
+
|
9
12
|
|
10
13
|
begin
|
11
|
-
require '
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
14
|
+
require 'jeweler'
|
15
|
+
Jeweler::Tasks.new do |gem|
|
16
|
+
gem.name = "osdb"
|
17
|
+
gem.summary = %Q{Ruby library to access OSDb services like OpenSubtitles.org}
|
18
|
+
gem.email = "jean.boussier @nospam@ gmail.com"
|
19
|
+
gem.homepage = "http://github.com/byroot/ruby-osdb"
|
20
|
+
gem.authors = ["Jean Boussier"]
|
21
|
+
gem.add_development_dependency "rspec", "~> 1.3"
|
18
22
|
end
|
19
|
-
|
20
|
-
rescue LoadError
|
21
|
-
puts "
|
22
|
-
puts e.message
|
23
|
+
Jeweler::GemcutterTasks.new
|
24
|
+
rescue LoadError
|
25
|
+
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
23
26
|
end
|
24
27
|
|
25
28
|
task :default => :spec
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.0.6
|
data/bin/getsub
CHANGED
@@ -44,7 +44,7 @@ def download!(url, local_path)
|
|
44
44
|
if curl_available?
|
45
45
|
%x{ curl -s '#{url}' | gunzip > "#{local_path}" }
|
46
46
|
elsif wget_available?
|
47
|
-
%x{ wget -O -
|
47
|
+
%x{ wget -O - -q '#{url}' | gunzip > "#{local_path}"}
|
48
48
|
else
|
49
49
|
puts "Can't found any curl or wget please install one of them or manualy download your sub"
|
50
50
|
puts url
|
data/osdb.gemspec
CHANGED
@@ -1,34 +1,54 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
1
4
|
# -*- encoding: utf-8 -*-
|
2
5
|
|
3
6
|
Gem::Specification.new do |s|
|
4
7
|
s.name = %q{osdb}
|
5
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.6"
|
6
9
|
|
7
|
-
s.required_rubygems_version = Gem::Requirement.new(">=
|
8
|
-
s.authors = [
|
9
|
-
s.
|
10
|
-
s.date = %q{2010-12-03}
|
11
|
-
s.default_executable = %q{getsub}
|
12
|
-
s.description = %q{Ruby library to access OSDb services like OpenSubtitles.org}
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = [%q{Jean Boussier}]
|
12
|
+
s.date = %q{2011-10-11}
|
13
13
|
s.email = %q{jean.boussier @nospam@ gmail.com}
|
14
|
-
s.executables = [
|
15
|
-
s.extra_rdoc_files = [
|
16
|
-
|
14
|
+
s.executables = [%q{getsub}]
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"README.md"
|
17
|
+
]
|
18
|
+
s.files = [
|
19
|
+
"Manifest",
|
20
|
+
"README.md",
|
21
|
+
"Rakefile",
|
22
|
+
"VERSION",
|
23
|
+
"bin/getsub",
|
24
|
+
"lib/osdb.rb",
|
25
|
+
"lib/osdb/language.rb",
|
26
|
+
"lib/osdb/movie.rb",
|
27
|
+
"lib/osdb/server.rb",
|
28
|
+
"lib/osdb/sub.rb",
|
29
|
+
"osdb.gemspec",
|
30
|
+
"spec/fixtures/somemovie.avi",
|
31
|
+
"spec/osdb/language_spec.rb",
|
32
|
+
"spec/osdb/movie_spec.rb",
|
33
|
+
"spec/osdb/server_spec.rb",
|
34
|
+
"spec/osdb/sub_spec.rb",
|
35
|
+
"spec/spec_helper.rb"
|
36
|
+
]
|
17
37
|
s.homepage = %q{http://github.com/byroot/ruby-osdb}
|
18
|
-
s.
|
19
|
-
s.
|
20
|
-
s.rubyforge_project = %q{osdb}
|
21
|
-
s.rubygems_version = %q{1.3.7}
|
22
|
-
s.signing_key = %q{/Users/byroot/.ssh/gem-private_key.pem}
|
38
|
+
s.require_paths = [%q{lib}]
|
39
|
+
s.rubygems_version = %q{1.8.6}
|
23
40
|
s.summary = %q{Ruby library to access OSDb services like OpenSubtitles.org}
|
24
41
|
|
25
42
|
if s.respond_to? :specification_version then
|
26
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
27
43
|
s.specification_version = 3
|
28
44
|
|
29
45
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
46
|
+
s.add_development_dependency(%q<rspec>, ["~> 1.3"])
|
30
47
|
else
|
48
|
+
s.add_dependency(%q<rspec>, ["~> 1.3"])
|
31
49
|
end
|
32
50
|
else
|
51
|
+
s.add_dependency(%q<rspec>, ["~> 1.3"])
|
33
52
|
end
|
34
53
|
end
|
54
|
+
|
data/spec/osdb/server_spec.rb
CHANGED
metadata
CHANGED
@@ -1,63 +1,39 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: osdb
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 5
|
10
|
-
version: 0.0.5
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.6
|
5
|
+
prerelease:
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Jean Boussier
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
|
-
cert_chain:
|
17
|
-
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
FULotPT8gpQ8qM4BwycqqQNDfz4ZPZLiGPKqpGfNOWcPT7KU2asjNKr5HX1BC2iX
|
32
|
-
3M7Tedz8NAyJ9CRftwZ/vLaA32ZQSQqEBt94ExYYACFYcfKIQvwo7nNN7eNxkooh
|
33
|
-
j1wVwmjwouf8ymN9nYqw/2Pxq5atoswAIGuqzfUy3y65n+fnqhqaoiBmwopsmZtC
|
34
|
-
6HQejy3tLMLukAwJXWkDu6p3YZerOVDRVk4TYJrVy0wlYeDt6/jjQrEeG8+74ErU
|
35
|
-
rTLJCndudLnbKo5OeTlwapRqL2NxHRw2No8VtsZhvh+1CNY+fe1SMxY8wJctymkf
|
36
|
-
V/TAGOVlGVotOBnewCUdlw==
|
37
|
-
-----END CERTIFICATE-----
|
38
|
-
|
39
|
-
date: 2010-12-03 00:00:00 +01:00
|
40
|
-
default_executable:
|
41
|
-
dependencies: []
|
42
|
-
|
43
|
-
description: Ruby library to access OSDb services like OpenSubtitles.org
|
11
|
+
cert_chain: []
|
12
|
+
date: 2011-10-11 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rspec
|
16
|
+
requirement: &70177107254940 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '1.3'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70177107254940
|
25
|
+
description:
|
44
26
|
email: jean.boussier @nospam@ gmail.com
|
45
|
-
executables:
|
27
|
+
executables:
|
46
28
|
- getsub
|
47
29
|
extensions: []
|
48
|
-
|
49
|
-
extra_rdoc_files:
|
30
|
+
extra_rdoc_files:
|
50
31
|
- README.md
|
51
|
-
|
52
|
-
- lib/osdb.rb
|
53
|
-
- lib/osdb/language.rb
|
54
|
-
- lib/osdb/movie.rb
|
55
|
-
- lib/osdb/server.rb
|
56
|
-
- lib/osdb/sub.rb
|
57
|
-
files:
|
32
|
+
files:
|
58
33
|
- Manifest
|
59
34
|
- README.md
|
60
35
|
- Rakefile
|
36
|
+
- VERSION
|
61
37
|
- bin/getsub
|
62
38
|
- lib/osdb.rb
|
63
39
|
- lib/osdb/language.rb
|
@@ -71,45 +47,28 @@ files:
|
|
71
47
|
- spec/osdb/server_spec.rb
|
72
48
|
- spec/osdb/sub_spec.rb
|
73
49
|
- spec/spec_helper.rb
|
74
|
-
has_rdoc: true
|
75
50
|
homepage: http://github.com/byroot/ruby-osdb
|
76
51
|
licenses: []
|
77
|
-
|
78
52
|
post_install_message:
|
79
|
-
rdoc_options:
|
80
|
-
|
81
|
-
- --inline-source
|
82
|
-
- --title
|
83
|
-
- Osdb
|
84
|
-
- --main
|
85
|
-
- README.md
|
86
|
-
require_paths:
|
53
|
+
rdoc_options: []
|
54
|
+
require_paths:
|
87
55
|
- lib
|
88
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
56
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
89
57
|
none: false
|
90
|
-
requirements:
|
91
|
-
- -
|
92
|
-
- !ruby/object:Gem::Version
|
93
|
-
|
94
|
-
|
95
|
-
- 0
|
96
|
-
version: "0"
|
97
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
98
63
|
none: false
|
99
|
-
requirements:
|
100
|
-
- -
|
101
|
-
- !ruby/object:Gem::Version
|
102
|
-
|
103
|
-
segments:
|
104
|
-
- 1
|
105
|
-
- 2
|
106
|
-
version: "1.2"
|
64
|
+
requirements:
|
65
|
+
- - ! '>='
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0'
|
107
68
|
requirements: []
|
108
|
-
|
109
|
-
|
110
|
-
rubygems_version: 1.3.7
|
69
|
+
rubyforge_project:
|
70
|
+
rubygems_version: 1.8.6
|
111
71
|
signing_key:
|
112
72
|
specification_version: 3
|
113
73
|
summary: Ruby library to access OSDb services like OpenSubtitles.org
|
114
74
|
test_files: []
|
115
|
-
|
data.tar.gz.sig
DELETED
metadata.gz.sig
DELETED
Binary file
|