Sha256: fa347d40b4fcd2f522dcd46c96099a7b8f65e5f7248fb2a9b499856f6a2ba861

Contents?: true

Size: 1.06 KB

Versions: 16

Compression:

Stored size: 1.06 KB

Contents

require "bundler/gem_tasks"

task(:release).clear_prerequisites.clear_actions
task :release do
  raise "Don't push me to rubygems.org!"
end


require 'rspec/core'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |spec|
  spec.pattern = FileList['spec/**/*_spec.rb']
end


# remove this task, when this gem is distributed as a `real` gem (and not included in Gemfile through `:path =>` )
task :update_gemspec_for_distribution do

  fn = Dir[File.expand_path('../*.gemspec', __FILE__)].first
  source_gemspec = File.read(fn)

  source_gemspec.gsub!(/^([\t ]*)((s.files\s*=)[^\n]+\n)/m) {|s| "#{$1}##{$2}#{$1}#{$3} #{`git ls-files`.split("\n").inspect}\n"}
  source_gemspec.gsub!(/^([\t ]*)((s.test_files\s*=)[^\n]+\n)/m) {|s| "#{$1}##{$2}#{$1}#{$3} #{`git ls-files -- {test,spec,features}/*`.split("\n").inspect}\n"}
  source_gemspec.gsub!(/^([\t ]*)((s.executables\s*=)[^\n]+\n)/m) {|s| "#{$1}##{$2}#{$1}#{$3} #{`git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }.inspect}\n"}

  File.open("#{fn}.resolved", 'w') do |f|
    f.write source_gemspec
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
infopark_rails_connector_meta-1.10.0.beta Rakefile
infopark_rails_connector_meta-1.9.1 Rakefile
infopark_rails_connector_meta-1.9.0.beta2 Rakefile
infopark_rails_connector_meta-1.9.0.beta Rakefile
infopark_rails_connector_meta-1.8.4 Rakefile
infopark_rails_connector_meta-1.8.3 Rakefile
infopark_rails_connector_meta-1.8.2 Rakefile
infopark_rails_connector_meta-1.8.1 Rakefile
infopark_rails_connector_meta-1.8.0 Rakefile
infopark_rails_connector_meta-1.7.2 Rakefile
infopark_rails_connector_meta-1.7.1 Rakefile
infopark_rails_connector_meta-1.7.0 Rakefile
infopark_rails_connector_meta-1.6.3 Rakefile
infopark_rails_connector_meta-1.6.1 Rakefile
infopark_rails_connector_meta-1.5.2 Rakefile
infopark_rails_connector_meta-1.5.1 Rakefile