Sha256: 7dea294c942a1686f7a0a49730f2df542fd5dd2416b33c929b59571a88f57f41

Contents?: true

Size: 1009 Bytes

Versions: 10

Compression:

Stored size: 1009 Bytes

Contents

#!/usr/bin/env rake

$LOAD_PATH.unshift File.expand_path("lib", File.dirname(__FILE__))

require "rspec/core/rake_task"
require "webmock_method/version"
require "gemspec_deps_gen/gemspec_deps_gen"

version = WebmockMethod::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 :fix_debug do
  system "mkdir -p $GEM_HOME/gems/debugger-ruby_core_source-1.2.3/lib"
  system "cp -R ~/debugger-ruby_core_source/lib $GEM_HOME/gems/debugger-ruby_core_source-1.2.3"
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
webmock_method-1.2.5 Rakefile
webmock_method-1.2.4 Rakefile
webmock_method-1.2.3 Rakefile
webmock_method-1.2.2 Rakefile
webmock_method-1.2.1 Rakefile
webmock_method-1.2.0 Rakefile
webmock_method-1.1.1 Rakefile
webmock_method-1.1.0 Rakefile
webmock_method-1.0.1 Rakefile
webmock_method-1.0.0 Rakefile