Sha256: 0c70f6a14b03f2b86dba5e8e3aa50f9ba3bf2ef34b4f8fad6cea212a68bd457d
Contents?: true
Size: 881 Bytes
Versions: 3
Compression:
Stored size: 881 Bytes
Contents
#!/usr/bin/env rake $LOAD_PATH.unshift File.expand_path("lib", File.dirname(__FILE__)) require "rspec/core/rake_task" require "google_translate/version" require "gemspec_deps_gen/gemspec_deps_gen" version = GoogleTranslate::VERSION project_name = File.basename(Dir.pwd) task :gen do generator = GemspecDepsGen.new project_name generator.generate_dependencies "spec", "#{project_name}.gemspec.erb", "#{project_name}.gemspec" end task :build => :gen do system "gem build #{project_name}.gemspec" end task :install do system "gem install #{project_name}-#{version}.gem" end task :uninstall do system "gem uninstall #{project_name}" end task :release => :build do system "gem push #{project_name}-#{version}.gem" end RSpec::Core::RakeTask.new do |task| task.pattern = 'spec/**/*_spec.rb' task.verbose = false end task :test do puts `bin/t en:ru hello` end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
google-translate-1.0.1 | Rakefile |
google-translate-1.0.0 | Rakefile |
google-translate-0.8.8 | Rakefile |