google-translate 0.6.5 → 0.6.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 +49 -27
- data/VERSION +1 -0
- data/bin/t.bat +1 -0
- data/google-translate.gemspec +55 -0
- metadata +19 -17
- data/google_translate.gemspec +0 -34
data/Rakefile
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Rakefile for
|
1
|
+
# Rakefile for google-translate
|
2
2
|
|
3
3
|
require 'rubygems'
|
4
4
|
require 'rake/gempackagetask'
|
@@ -7,14 +7,14 @@ require 'spec/rake/spectask'
|
|
7
7
|
require 'rake/rdoctask'
|
8
8
|
require 'rcov/rcovtask'
|
9
9
|
|
10
|
-
spec_name = 'google_translate.gemspec'
|
10
|
+
# spec_name = 'google_translate.gemspec'
|
11
|
+
#
|
12
|
+
# SPEC = Gem::Specification.load(spec_name)
|
11
13
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
#pkg.need_zip = true
|
17
|
-
end
|
14
|
+
# Rake::GemPackageTask.new(SPEC) do |pkg|
|
15
|
+
# #pkg.need_tar = true
|
16
|
+
# #pkg.need_zip = true
|
17
|
+
# end
|
18
18
|
|
19
19
|
Spec::Rake::SpecTask.new do |task|
|
20
20
|
task.libs << 'lib'
|
@@ -36,31 +36,53 @@ Rcov::RcovTask.new do |task|
|
|
36
36
|
task.verbose = true
|
37
37
|
end
|
38
38
|
|
39
|
+
begin
|
40
|
+
require 'jeweler'
|
41
|
+
Jeweler::Tasks.new do |gemspec|
|
42
|
+
gemspec.name = "google-translate"
|
43
|
+
gemspec.summary = "Simple client for Google Translate API (Summary)."
|
44
|
+
gemspec.description = "Simple client for Google Translate API."
|
45
|
+
gemspec.email = "alexander.shvets@gmail.com"
|
46
|
+
gemspec.homepage = "http://github.com/shvets/google-translate"
|
47
|
+
gemspec.authors = ["Alexander Shvets"]
|
48
|
+
gemspec.files = FileList["CHANGES", "google-translate.gemspec", "Rakefile", "README", "VERSION",
|
49
|
+
"lib/**/*", "bin/**/*"]
|
50
|
+
gemspec.add_dependency "json_pure", ">= 1.1.4"
|
51
|
+
|
52
|
+
gemspec.executables = ['translate', 't']
|
53
|
+
gemspec.requirements = ["none"]
|
54
|
+
gemspec.bindir = "bin"
|
55
|
+
end
|
56
|
+
Jeweler::GemcutterTasks.new
|
57
|
+
rescue LoadError
|
58
|
+
puts "Jeweler not available. Install it with: sudo gem install technicalsteaks-jeweler -s http://gems.github.com"
|
59
|
+
end
|
60
|
+
|
39
61
|
desc "Run gem code locally"
|
40
62
|
task :"run:gem" do
|
41
63
|
command = "bin/translate " + (ENV['params'].nil? ? '' : ENV['params'])
|
42
64
|
puts ruby("#{command}")
|
43
65
|
end
|
44
66
|
|
45
|
-
desc "test gem compatibility with github"
|
46
|
-
task :"github:validate" do
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
end
|
67
|
+
# desc "test gem compatibility with github"
|
68
|
+
# task :"github:validate" do
|
69
|
+
# require 'yaml'
|
70
|
+
#
|
71
|
+
# require 'rubygems/specification'
|
72
|
+
# data = File.read(spec_name)
|
73
|
+
# spec = nil
|
74
|
+
#
|
75
|
+
# if data !~ %r{!ruby/object:Gem::Specification}
|
76
|
+
# Thread.new { spec = eval("$SAFE = 3\n#{data}") }.join
|
77
|
+
# else
|
78
|
+
# spec = YAML.load(data)
|
79
|
+
# end
|
80
|
+
#
|
81
|
+
# spec.validate
|
82
|
+
#
|
83
|
+
# puts spec
|
84
|
+
# puts "OK"
|
85
|
+
# end
|
64
86
|
|
65
87
|
task :default => :package
|
66
88
|
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.6.6
|
data/bin/t.bat
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
@CALL translate.bat
|
@@ -0,0 +1,55 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{google-translate}
|
8
|
+
s.version = "0.6.6"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Alexander Shvets"]
|
12
|
+
s.date = %q{2010-04-29}
|
13
|
+
s.description = %q{Simple client for Google Translate API.}
|
14
|
+
s.email = %q{alexander.shvets@gmail.com}
|
15
|
+
s.executables = ["translate", "t"]
|
16
|
+
s.extra_rdoc_files = [
|
17
|
+
"README"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
"CHANGES",
|
21
|
+
"README",
|
22
|
+
"Rakefile",
|
23
|
+
"VERSION",
|
24
|
+
"bin/t",
|
25
|
+
"bin/t.bat",
|
26
|
+
"bin/translate",
|
27
|
+
"bin/translate.bat",
|
28
|
+
"google-translate.gemspec",
|
29
|
+
"lib/google_translate.rb"
|
30
|
+
]
|
31
|
+
s.homepage = %q{http://github.com/shvets/google-translate}
|
32
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
33
|
+
s.require_paths = ["lib"]
|
34
|
+
s.requirements = ["none"]
|
35
|
+
s.rubygems_version = %q{1.3.6}
|
36
|
+
s.summary = %q{Simple client for Google Translate API (Summary).}
|
37
|
+
s.test_files = [
|
38
|
+
"spec/spec_helper.rb",
|
39
|
+
"spec/translate_spec.rb"
|
40
|
+
]
|
41
|
+
|
42
|
+
if s.respond_to? :specification_version then
|
43
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
44
|
+
s.specification_version = 3
|
45
|
+
|
46
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
47
|
+
s.add_runtime_dependency(%q<json_pure>, [">= 1.1.4"])
|
48
|
+
else
|
49
|
+
s.add_dependency(%q<json_pure>, [">= 1.1.4"])
|
50
|
+
end
|
51
|
+
else
|
52
|
+
s.add_dependency(%q<json_pure>, [">= 1.1.4"])
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 6
|
8
|
-
-
|
9
|
-
version: 0.6.
|
8
|
+
- 6
|
9
|
+
version: 0.6.6
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Alexander Shvets
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-04-
|
17
|
+
date: 2010-04-29 00:00:00 -04:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -38,25 +38,26 @@ executables:
|
|
38
38
|
- t
|
39
39
|
extensions: []
|
40
40
|
|
41
|
-
extra_rdoc_files:
|
42
|
-
|
41
|
+
extra_rdoc_files:
|
42
|
+
- README
|
43
43
|
files:
|
44
44
|
- CHANGES
|
45
|
-
- google_translate.gemspec
|
46
|
-
- Rakefile
|
47
45
|
- README
|
48
|
-
-
|
46
|
+
- Rakefile
|
47
|
+
- VERSION
|
48
|
+
- bin/t
|
49
|
+
- bin/t.bat
|
49
50
|
- bin/translate
|
50
51
|
- bin/translate.bat
|
51
|
-
-
|
52
|
-
-
|
52
|
+
- google-translate.gemspec
|
53
|
+
- lib/google_translate.rb
|
53
54
|
has_rdoc: true
|
54
55
|
homepage: http://github.com/shvets/google-translate
|
55
56
|
licenses: []
|
56
57
|
|
57
58
|
post_install_message:
|
58
|
-
rdoc_options:
|
59
|
-
|
59
|
+
rdoc_options:
|
60
|
+
- --charset=UTF-8
|
60
61
|
require_paths:
|
61
62
|
- lib
|
62
63
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -75,10 +76,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
76
|
version: "0"
|
76
77
|
requirements:
|
77
78
|
- none
|
78
|
-
rubyforge_project:
|
79
|
+
rubyforge_project:
|
79
80
|
rubygems_version: 1.3.6
|
80
81
|
signing_key:
|
81
|
-
specification_version:
|
82
|
-
summary: Simple client for Google Translate API.
|
83
|
-
test_files:
|
84
|
-
|
82
|
+
specification_version: 3
|
83
|
+
summary: Simple client for Google Translate API (Summary).
|
84
|
+
test_files:
|
85
|
+
- spec/spec_helper.rb
|
86
|
+
- spec/translate_spec.rb
|
data/google_translate.gemspec
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
|
3
|
-
Gem::Specification.new do |s|
|
4
|
-
s.name = %q{google-translate}
|
5
|
-
s.version = "0.6.5"
|
6
|
-
|
7
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
|
-
|
9
|
-
s.authors = ["Alexander Shvets"]
|
10
|
-
s.date = %q{2010-04-28}
|
11
|
-
s.description = %q{Simple client for Google Translate API.}
|
12
|
-
s.email = %q{alexander.shvets@gmail.com}
|
13
|
-
|
14
|
-
s.files = ["CHANGES", "google_translate.gemspec", "Rakefile", "README", "lib/google_translate.rb",
|
15
|
-
"bin/translate", "bin/translate.bat", "spec/spec_helper.rb" , "spec/translate_spec.rb"]
|
16
|
-
|
17
|
-
s.has_rdoc = true
|
18
|
-
s.homepage = %q{http://github.com/shvets/google-translate}
|
19
|
-
s.require_paths = ["lib"]
|
20
|
-
s.rubyforge_project = %q{google_translate}
|
21
|
-
s.rubygems_version = %q{1.3.6}
|
22
|
-
s.summary = %q{Simple client for Google Translate API.}
|
23
|
-
|
24
|
-
if s.respond_to? :specification_version then
|
25
|
-
s.specification_version = 2
|
26
|
-
end
|
27
|
-
|
28
|
-
s.executables = ['translate', 't']
|
29
|
-
s.platform = Gem::Platform::RUBY
|
30
|
-
s.requirements = ["none"]
|
31
|
-
s.bindir = "bin"
|
32
|
-
|
33
|
-
s.add_dependency("json_pure", ">= 1.1.4")
|
34
|
-
end
|