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 CHANGED
@@ -1,25 +1,28 @@
1
1
  require 'rubygems'
2
2
  require 'rake'
3
- require 'spec/rake/spectask'
4
3
 
5
- Spec::Rake::SpecTask.new(:spec) do |spec|
6
- spec.libs << 'lib' << 'spec'
7
- spec.spec_files = FileList['spec/**/*_spec.rb']
8
- end
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 'echoe'
12
-
13
- Echoe.new('osdb', '0.0.5') do |p|
14
- p.description = "Ruby library to access OSDb services like OpenSubtitles.org"
15
- p.url = "http://github.com/byroot/ruby-osdb"
16
- p.author = "Jean Boussier"
17
- p.email = "jean.boussier @nospam@ gmail.com"
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 => e
21
- puts "Failed to load Echoe"
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 -quiet - '#{url}' | gunzip > "#{local_path}"}
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.5"
8
+ s.version = "0.0.6"
6
9
 
7
- s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
- s.authors = ["Jean Boussier"]
9
- s.cert_chain = ["/Users/byroot/.ssh/gem-public_cert.pem"]
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 = ["getsub"]
15
- s.extra_rdoc_files = ["README.md", "bin/getsub", "lib/osdb.rb", "lib/osdb/language.rb", "lib/osdb/movie.rb", "lib/osdb/server.rb", "lib/osdb/sub.rb"]
16
- s.files = ["Manifest", "README.md", "Rakefile", "bin/getsub", "lib/osdb.rb", "lib/osdb/language.rb", "lib/osdb/movie.rb", "lib/osdb/server.rb", "lib/osdb/sub.rb", "osdb.gemspec", "spec/fixtures/somemovie.avi", "spec/osdb/language_spec.rb", "spec/osdb/movie_spec.rb", "spec/osdb/server_spec.rb", "spec/osdb/sub_spec.rb", "spec/spec_helper.rb"]
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.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Osdb", "--main", "README.md"]
19
- s.require_paths = ["lib"]
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
+
@@ -60,7 +60,7 @@ describe OSDb::Server do
60
60
  subs.length.should >= 2
61
61
  subs.each do |sub|
62
62
  sub.language.name.should == 'French'
63
- sub.raw_data['MovieName'].should == '"How I Met Your Mother"'
63
+ sub.raw_data['MovieName'].should == 'How I Met Your Mother'
64
64
  end
65
65
  end
66
66
 
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
- hash: 21
5
- prerelease: false
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
- -----BEGIN CERTIFICATE-----
19
- MIIDPDCCAiSgAwIBAgIBADANBgkqhkiG9w0BAQUFADBEMRYwFAYDVQQDDA1qZWFu
20
- LmJvdXNzaWVyMRUwEwYKCZImiZPyLGQBGRYFZ21haWwxEzARBgoJkiaJk/IsZAEZ
21
- FgNjb20wHhcNMTAwODI5MTExMDIxWhcNMTEwODI5MTExMDIxWjBEMRYwFAYDVQQD
22
- DA1qZWFuLmJvdXNzaWVyMRUwEwYKCZImiZPyLGQBGRYFZ21haWwxEzARBgoJkiaJ
23
- k/IsZAEZFgNjb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDN2njY
24
- b6NqJSE95vA4hrfh8yWP+O9M9V93prYsk2I+TdANS5WUnSCmrh/hp5I/E91A/MS3
25
- m9OWCLYVWvk+4VyagZjfrCfAC8KDgeGJIb12qWnGTu74EPXnKfQe4v4C23VPfyRC
26
- 5a4gYO7zYohnHhzXHHqwJM+yh/igC/t7tJn4YUK38zmj+PhvIIepDuiE35Ne27G9
27
- jqQkXyiAen4qUcNRpX5rRYu6k/9yGmmH9xo5PgGbDaWsgg/HN15BQwqzfJSUrfq0
28
- wdnuEwVXAulPP/o3WPnEYluUAxWRj3qzuUxB96MWx/37Tc1mou673F6MV94J6M7S
29
- hoSqPUt/yAJMt3HTAgMBAAGjOTA3MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0G
30
- A1UdDgQWBBSCtLBNhbd1+jrnuT7oUOoceKKGejANBgkqhkiG9w0BAQUFAAOCAQEA
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
- - bin/getsub
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
- - --line-numbers
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
- hash: 3
94
- segments:
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
- hash: 11
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
- rubyforge_project: osdb
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
@@ -1,5 +0,0 @@
1
- Z�l��0uM�3�!M�w�J^�����z�ӋiÃjv<*�?8�g�㔜���,�NG� >�%4�U��g����y&�cf\36�/w����*�L#� ���hOOƍ���Zu��^�.9��NOt�h �tl�<�
2
- ���@
3
- �wZ[@�y��mY���
4
- � ��J�2e(��B�Zq2��6�W�*IP���6:����m/���D��<
5
- �kkS-Ʌ���I�
metadata.gz.sig DELETED
Binary file