google-translate 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES CHANGED
@@ -37,3 +37,6 @@
37
37
 
38
38
  * Fix changes in detect languages service
39
39
 
40
+ == Version 0.7.1
41
+
42
+ * Ruby 1.9.2 ready
data/Rakefile CHANGED
@@ -7,7 +7,7 @@ require 'spec/rake/spectask'
7
7
  require 'rake/rdoctask'
8
8
  require 'rcov/rcovtask'
9
9
 
10
- task :default => :package
10
+ task :default => :gemspec
11
11
 
12
12
  begin
13
13
  require 'bundler'
@@ -39,6 +39,28 @@ rescue LoadError
39
39
  puts "Bundler not available. Install it s with: [sudo] gem install bundler"
40
40
  end
41
41
 
42
+ desc "Release the gem"
43
+ task :"release:gem" do
44
+ %x(
45
+ rake gemspec
46
+ rake build
47
+ rake install
48
+ git add .
49
+ )
50
+ puts "Commit message:"
51
+ message = STDIN.gets
52
+
53
+ version = "#{File.open(File::dirname(__FILE__) + "/VERSION").readlines().first}"
54
+
55
+ %x(
56
+
57
+
58
+ git push origin master
59
+
60
+ gem push pkg/google-translate-#{version}.gem
61
+ )
62
+ end
63
+
42
64
  desc "Run gem code locally"
43
65
  task :"run:gem" do
44
66
  command = "bin/translate " + (ENV['params'].nil? ? '' : ENV['params'])
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.0
1
+ 0.7.1
data/bin/translate CHANGED
@@ -43,7 +43,7 @@ class Translate
43
43
  case ARGV.shift
44
44
 
45
45
  when /(-v)|(--version)/ then
46
- p "Version: #{File.open(File::dirname(__FILE__) + "/../VERSION").readlines()}"
46
+ puts "Version: #{File.open(File::dirname(__FILE__) + "/../VERSION").readlines().first}"
47
47
  when 'list' then
48
48
  hash = @translator.supported_languages
49
49
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{google-translate}
8
- s.version = "0.7.0"
8
+ s.version = "0.7.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Alexander Shvets"]
12
- s.date = %q{2010-09-14}
12
+ s.date = %q{2010-09-16}
13
13
  s.description = %q{Simple client for Google Translate API.}
14
14
  s.email = %q{alexander.shvets@gmail.com}
15
15
  s.executables = ["translate", "t"]
@@ -46,8 +46,8 @@ Gem::Specification.new do |s|
46
46
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
47
47
  s.add_runtime_dependency(%q<json_pure>, [">= 1.1.4"])
48
48
  s.add_runtime_dependency(%q<json_pure>, [">= 0"])
49
- s.add_runtime_dependency(%q<jeweler>, [">= 0"])
50
- s.add_runtime_dependency(%q<gemcutter>, [">= 0"])
49
+ s.add_development_dependency(%q<jeweler>, [">= 0"])
50
+ s.add_development_dependency(%q<gemcutter>, [">= 0"])
51
51
  else
52
52
  s.add_dependency(%q<json_pure>, [">= 1.1.4"])
53
53
  s.add_dependency(%q<json_pure>, [">= 0"])
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-translate
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
- - 0
10
- version: 0.7.0
9
+ - 1
10
+ version: 0.7.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alexander Shvets
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-09-14 00:00:00 -04:00
18
+ date: 2010-09-16 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -49,7 +49,7 @@ dependencies:
49
49
  version: "0"
50
50
  requirement: *id002
51
51
  - !ruby/object:Gem::Dependency
52
- type: :runtime
52
+ type: :development
53
53
  prerelease: false
54
54
  name: jeweler
55
55
  version_requirements: &id003 !ruby/object:Gem::Requirement
@@ -63,7 +63,7 @@ dependencies:
63
63
  version: "0"
64
64
  requirement: *id003
65
65
  - !ruby/object:Gem::Dependency
66
- type: :runtime
66
+ type: :development
67
67
  prerelease: false
68
68
  name: gemcutter
69
69
  version_requirements: &id004 !ruby/object:Gem::Requirement