Sha256: 858b8f3765b30d1324ec6a5eabbb97c64aa0e38b81cee1955053f2bcbb48ce9a

Contents?: true

Size: 774 Bytes

Versions: 23

Compression:

Stored size: 774 Bytes

Contents

require 'bundler'

module Bundler
  class GemHelper

    def build_gem_with_built_spec
      spec = Gem::Specification.load(spec_path)
      spec_ruby = spec.to_ruby
      original_spec_path = spec_path + ".original"
      FileUtils.mv(spec_path, original_spec_path)
      File.open(spec_path, "wb"){|f| f.write(spec_ruby)}
      build_gem_without_built_spec
    ensure
      FileUtils.mv(original_spec_path, spec_path)
    end

    alias build_gem_without_built_spec build_gem
    alias build_gem build_gem_with_built_spec

  end
end

Bundler::GemHelper.install_tasks

begin
  require 'rspec/core/rake_task'
  RSpec::Core::RakeTask.new(:spec)

  require 'cucumber/rake/task'
  Cucumber::Rake::Task.new(:features)

  task :default => [:spec, :features]
rescue LoadError
end

Version data entries

23 entries across 23 versions & 4 rubygems

Version Path
librarian-puppet-0.9.10 vendor/librarian/Rakefile
librarian-puppet-0.9.9 vendor/librarian/Rakefile
librarian-puppet-lmco-0.9.8.2 vendor/librarian/Rakefile
librarian-puppet-0.9.8 vendor/librarian/Rakefile
librarian-puppet-maestrodev-0.9.7.5 vendor/librarian/Rakefile
librarian-puppet-maestrodev-0.9.7.4 vendor/librarian/Rakefile
librarian-puppet-maestrodev-0.9.7.3 vendor/librarian/Rakefile
librarian-puppet-maestrodev-0.9.7.2 vendor/librarian/Rakefile
librarian-puppet-maestrodev-0.9.7.1 vendor/librarian/Rakefile
librarian-puppet-maestrodev-0.9.7 vendor/librarian/Rakefile
librarian-puppet-0.9.7 vendor/librarian/Rakefile
librarian-puppet-0.9.6 vendor/librarian/Rakefile
librarian-puppet-0.9.5 vendor/librarian/Rakefile
librarian-puppet-0.9.4 vendor/librarian/Rakefile
librarian-puppet-0.9.3 vendor/librarian/Rakefile
librarian-puppet-0.9.2 vendor/librarian/Rakefile
librarian-puppet-0.9.2.pre vendor/librarian/Rakefile
librarian-0.0.24 Rakefile
librarian-puppet-0.9.1 vendor/librarian/Rakefile
librarian-puppet-0.9.0 vendor/librarian/Rakefile