Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #7 from hron84/fix-sanitize-rakefile

Sanitize rakefile
  • Loading branch information...
commit b9a2d5ce02e1e293539c90e8543caff16d329e53 2 parents 2ca9908 + 4f6df2d
@shvets authored
Showing with 27 additions and 24 deletions.
  1. +21 −16 Gemfile.lock
  2. +6 −8 Rakefile
View
37 Gemfile.lock
@@ -1,26 +1,31 @@
GEM
remote: http://rubygems.org/
specs:
- diff-lcs (1.1.2)
- gemcutter (0.6.1)
+ diff-lcs (1.1.3)
+ gemcutter (0.7.1)
git (1.2.5)
- jeweler (1.5.1)
- bundler (~> 1.0.0)
+ jeweler (1.8.3)
+ bundler (~> 1.0)
git (>= 1.2.5)
rake
- json_pure (1.6.1)
- mocha (0.9.9)
- rake
- rake (0.8.7)
- rcov (0.9.9)
- rspec (2.1.0)
- rspec-core (~> 2.1.0)
- rspec-expectations (~> 2.1.0)
- rspec-mocks (~> 2.1.0)
- rspec-core (2.1.0)
- rspec-expectations (2.1.0)
+ rdoc
+ json (1.6.5)
+ json_pure (1.6.5)
+ metaclass (0.0.1)
+ mocha (0.10.5)
+ metaclass (~> 0.0.1)
+ rake (0.9.2.2)
+ rcov (1.0.0)
+ rdoc (3.12)
+ json (~> 1.4)
+ rspec (2.8.0)
+ rspec-core (~> 2.8.0)
+ rspec-expectations (~> 2.8.0)
+ rspec-mocks (~> 2.8.0)
+ rspec-core (2.8.0)
+ rspec-expectations (2.8.0)
diff-lcs (~> 1.1.2)
- rspec-mocks (2.1.0)
+ rspec-mocks (2.8.0)
PLATFORMS
ruby
View
14 Rakefile
@@ -1,8 +1,8 @@
# Rakefile for google-translate
-require 'rubygems' unless RUBY_VERSION =~ /1.9.*/
+require 'rubygems' unless defined?(Gem)
-require 'rake/gempackagetask'
+#require 'rubygems/package_task'
require 'rake/testtask'
task :default => :gemspec
@@ -27,8 +27,6 @@ begin
gemspec.executables = ['translate', 't']
gemspec.requirements = ["none"]
gemspec.bindir = "bin"
-
- gemspec.add_bundler_dependencies
end
rescue LoadError
puts "Jeweler not available. Install it s with: [sudo] gem install jeweler"
@@ -71,7 +69,7 @@ end
# task.verbose = false
#end
-if defined? RSpec::Core::RakeTask
+unless defined? RSpec::Core::RakeTask
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new do |task|
@@ -80,8 +78,8 @@ if defined? RSpec::Core::RakeTask
end
end
-if defined? Rake::RDocTask
- require 'rake/rdoctask'
+unless defined? Rake::RDocTask
+ require 'rdoc/task'
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_dir = 'rdoc'
@@ -92,7 +90,7 @@ if defined? Rake::RDocTask
end
end
-if defined? Rcov::RcovTask
+unless defined? Rcov::RcovTask
require 'rcov/rcovtask'
Rcov::RcovTask.new do |task|
Please sign in to comment.
Something went wrong with that request. Please try again.