File: jruby-jars.gemspec

package info (click to toggle)
jruby 9.4.8.0%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 89,244 kB
  • sloc: ruby: 548,574; java: 276,189; yacc: 25,873; ansic: 6,178; xml: 6,111; sh: 1,855; sed: 94; makefile: 78; jsp: 48; tcl: 40; exp: 12
file content (37 lines) | stat: -rw-r--r-- 1,154 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#-*- 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.licenses = %w(EPL-2.0 GPL-2.0 LGPL-2.1)
  s.files = Dir['[A-Z]*'] +
      Dir['lib/**/*.rb'] +
      Dir[ 'test/**/*'] +
      [ "lib/jruby-core-#{version}-complete.jar", "lib/jruby-stdlib-#{version}.jar" ] +
      [ 'jruby-jars.gemspec' ]
end

# vim: syntax=Ruby