Skip to content

Commit

Permalink
use Jeweler
Browse files Browse the repository at this point in the history
  • Loading branch information
sishen committed Aug 31, 2010
1 parent d4a88c1 commit d09f776
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 53 deletions.
25 changes: 16 additions & 9 deletions Rakefile
@@ -1,12 +1,19 @@
require 'rubygems'
require 'hoe'

Hoe.new('sishen-rtranslate', '1.3') do |p|
p.rubyforge_name = 'sishen-rtranslate'
p.author = 'Ye Dingding'
p.email = 'yedingding@gmail.com'
p.url = 'http://github.com/sishen/rtranslate'
p.summary = 'Google translate ruby client api'
p.description = 'A simple, unofficial, ruby client API for using Google Translate.'
p.extra_deps = [['json', '>= 1.1.3']]
begin
require 'jeweler'
Jeweler::Tasks.new do |p|
p.name = 'sishen-rtranslate'
p.version = '1.4'
p.date = "2010-08-31"
p.authors = ['Ye Dingding']
p.email = 'yedingding@gmail.com'
p.homepage = 'http://github.com/sishen/rtranslate'
p.summary = 'Google translate ruby client api'
p.description = 'A simple, unofficial, ruby client API for using Google Translate.'
p.add_dependency 'json', '>= 1.1.3'
p.add_dependency 'activesupport', '>= 2.2.0'
end
rescue LoadError
puts "Jeweler not available. Install it with: gem install jeweler"
end
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
0.0.0
1.4
43 changes: 0 additions & 43 deletions rtranslate.gemspec

This file was deleted.

58 changes: 58 additions & 0 deletions sishen-rtranslate.gemspec
@@ -0,0 +1,58 @@
# Generated by jeweler
# DO NOT EDIT THIS FILE DIRECTLY
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
# -*- encoding: utf-8 -*-

Gem::Specification.new do |s|
s.name = %q{sishen-rtranslate}
s.version = "1.4"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Ye Dingding"]
s.date = %q{2010-08-31}
s.default_executable = %q{rtranslate}
s.description = %q{A simple, unofficial, ruby client API for using Google Translate.}
s.email = %q{yedingding@gmail.com}
s.executables = ["rtranslate"]
s.extra_rdoc_files = [
"README.txt"
]
s.files = [
".gitignore",
"History.txt",
"MIT-LICENSE",
"Manifest.txt",
"README.txt",
"Rakefile",
"VERSION",
"bin/rtranslate",
"lib/rtranslate.rb",
"lib/rtranslate/detection.rb",
"lib/rtranslate/language.rb",
"lib/rtranslate/rtranslate.rb",
"tests/ts_detection.rb",
"tests/ts_translate.rb"
]
s.homepage = %q{http://github.com/sishen/rtranslate}
s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"]
s.rubygems_version = %q{1.3.7}
s.summary = %q{Google translate ruby client api}

if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 3

if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<json>, [">= 1.1.3"])
s.add_runtime_dependency(%q<activesupport>, [">= 2.2.0"])
else
s.add_dependency(%q<json>, [">= 1.1.3"])
s.add_dependency(%q<activesupport>, [">= 2.2.0"])
end
else
s.add_dependency(%q<json>, [">= 1.1.3"])
s.add_dependency(%q<activesupport>, [">= 2.2.0"])
end
end

0 comments on commit d09f776

Please sign in to comment.