Sha256: f643181c82eea36f6057c452bba54a9a8bddf3c49fef967525f1d78a01861c17

Contents?: true

Size: 1.1 KB

Versions: 27

Compression:

Stored size: 1.1 KB

Contents

#-*- mode: ruby -*-

require 'fileutils'

version = ENV['JRUBY_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$/, '.SNAPSHOT' )

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 = 'https://github.com/jruby/jruby/tree/master/maven/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

27 entries across 27 versions & 1 rubygems

Version Path
jruby-jars-9.2.7.0 jruby-jars.gemspec
jruby-jars-9.2.6.0 jruby-jars.gemspec
jruby-jars-9.2.5.0 jruby-jars.gemspec
jruby-jars-9.2.4.1 jruby-jars.gemspec
jruby-jars-9.2.4.0 jruby-jars.gemspec
jruby-jars-9.2.3.0 jruby-jars.gemspec
jruby-jars-9.2.2.0 jruby-jars.gemspec
jruby-jars-9.2.1.0 jruby-jars.gemspec
jruby-jars-9.2.0.0 jruby-jars.gemspec
jruby-jars-9.1.17.0 jruby-jars.gemspec
jruby-jars-9.1.16.0 jruby-jars.gemspec
jruby-jars-9.1.15.0 jruby-jars.gemspec
jruby-jars-9.1.14.0 jruby-jars.gemspec
jruby-jars-9.1.13.0 jruby-jars.gemspec
jruby-jars-9.1.12.0 jruby-jars.gemspec
jruby-jars-9.1.11.0 jruby-jars.gemspec
jruby-jars-9.1.10.0 jruby-jars.gemspec
jruby-jars-9.1.9.0 jruby-jars.gemspec
jruby-jars-9.1.8.0 jruby-jars.gemspec
jruby-jars-9.1.7.0 jruby-jars.gemspec