Sha256: 435d78a9cad48622a78dcf11ac20e017aefe15e65e5c0ed1413382ef0e0bf01b
Contents?: true
Size: 868 Bytes
Versions: 4
Compression:
Stored size: 868 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 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
google-translate-1.1.3 | Rakefile |
google-translate-1.1.2 | Rakefile |
google-translate-1.1.1 | Rakefile |
google-translate-1.1.0 | Rakefile |