Sha256: ca744092526462845483035059bf1f5d39dd7320a4c9f0428a235f6c58d31bea

Contents?: true

Size: 1.06 KB

Versions: 10

Compression:

Stored size: 1.06 KB

Contents

#-*- mode: ruby -*-

require 'fileutils'

version = File.read( File.join( File.dirname(File.expand_path(__FILE__)), '..', '..', 'VERSION' ) ).strip

# this regexp can be refined to work with pre, rc1, rc2 and such cases
ruby_version = version.sub( /-SNAPSHOT$/, '.dev' )

FileUtils.mkdir_p( 'lib/jruby-jars' )
File.open( 'lib/jruby-jars/version.rb', 'w' ) do |f|
  f.print <<EOF
module JRubyJars
  VERSION = '#{ruby_version}'
  MAVEN_VERSION = '#{version}'
end
EOF
end

Gem::Specification.new do |s|
  s.name = 'jruby-jars'
  s.version = ruby_version
  s.authors = ['Charles Oliver Nutter']
  s.email = 'headius@headius.com'
  s.summary = 'The core JRuby code and the JRuby stdlib as jar files.'
  s.homepage = 'http://github.com/jruby/jruby/tree/master/gem/jruby-jars'
  s.description = File.read('README.txt', encoding: 'UTF-8').split(/\n{2,}/)[3]
  s.rubyforge_project = 'jruby/jruby'
  s.licenses = %w(EPL-1.0 GPL-2.0 LGPL-2.1)
  s.files = Dir['[A-Z]*'] + Dir['lib/**/*.rb'] + Dir[ "lib/jruby-*-#{version}*.jar" ] + Dir[ 'test/**/*'] + [ 'jruby-jars.gemspec' ]
end

# vim: syntax=Ruby

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
jruby-jars-1.7.27 jruby-jars.gemspec
jruby-jars-1.7.26 jruby-jars.gemspec
jruby-jars-1.7.25 jruby-jars.gemspec
jruby-jars-1.7.24 jruby-jars.gemspec
jruby-jars-1.7.23 jruby-jars.gemspec
jruby-jars-1.7.22 jruby-jars.gemspec
jruby-jars-1.7.21 jruby-jars.gemspec
jruby-jars-1.7.20.1 jruby-jars.gemspec
jruby-jars-1.7.20 jruby-jars.gemspec
jruby-jars-1.7.19 jruby-jars.gemspec