jruby-jars 1.7.4 → 1.7.5.dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Mavenfile ADDED
@@ -0,0 +1,29 @@
1
+ #-*- mode: ruby -*-
2
+
3
+ gemspec :include_jars => true
4
+
5
+ inherit "org.jruby:jruby-artifacts:#{model.version}"
6
+
7
+ name "JRuby Jars Gem"
8
+
9
+ jar 'org.jruby:jruby-core-complete', '${project.parent.version}'
10
+ jar 'org.jruby:jruby-stdlib-complete', '${project.parent.version}'
11
+
12
+ plugin( :clean, '2.5' ) do
13
+ execute_goals( :clean,
14
+ :phase => :clean,
15
+ :id => 'clean-lib',
16
+ :filesets => [ { :directory => '${basedir}/lib',
17
+ :includes => ['*.jar'] } ],
18
+ :failOnError => false )
19
+ end
20
+
21
+ properties( 'tesla.dump.pom' => 'pom.xml',
22
+ 'tesla.dump.readonly' => true )
23
+
24
+ profile :repo do
25
+ plugin 'de.saumya.mojo:gem-maven-plugin' do
26
+ execute_goals :id => 'default-push', :skip => true
27
+ end
28
+ end
29
+ # vim: syntax=Ruby
data/Rakefile CHANGED
@@ -1,54 +1,7 @@
1
- # -*- ruby -*-
2
- require 'rubygems'
1
+ #-*- mode: ruby -*-
3
2
 
4
- JRUBY_SRC_VERSION = IO.readlines("../../default.build.properties").detect {|l| l =~ /^version\.jruby=(.*)/} && $1
5
- GEM_FILE = "pkg/jruby-jars-#{JRUBY_SRC_VERSION}.gem"
6
- GEM_SPEC_FILE = 'jruby-jars.gemspec'
7
- JRUBY_COMPLETE_JAR = 'pkg/jruby-complete-#{JRUBY_SRC_VERSION}.jar'
3
+ require 'maven/ruby/tasks'
4
+
5
+ task :default => :build
8
6
 
9
- task :default => :package
10
-
11
- directory 'pkg'
12
-
13
- file JRUBY_COMPLETE_JAR => :pkg do
14
- pkg_dir = File.expand_path('pkg')
15
- fail "Run `ant dist' first to create complete jar" unless File.exist?("../../dist/jruby-complete-#{JRUBY_SRC_VERSION}.jar")
16
- cp "../../dist/jruby-complete-#{JRUBY_SRC_VERSION}.jar", pkg_dir
17
- end
18
-
19
- desc "Run to update jars and versions"
20
- task :update => JRUBY_COMPLETE_JAR do
21
- rm_f 'lib/*.jar'
22
- %w(pkg/jruby-core pkg/jruby-stdlib/META-INF).each {|d| rm_rf d; mkdir_p d }
23
- Dir.chdir("pkg/jruby-core") do
24
- sh "jar xf ../../../../dist/jruby-complete-#{JRUBY_SRC_VERSION}.jar"
25
- mv "META-INF/jruby.home", "../jruby-stdlib/META-INF"
26
- rm_rf "cext"
27
- end
28
- sh "jar cfm pkg/jruby-core-#{JRUBY_SRC_VERSION}.jar pkg/jruby-core/META-INF/MANIFEST.MF -C pkg/jruby-core ."
29
- sh "jar cf pkg/jruby-stdlib-#{JRUBY_SRC_VERSION}.jar -C pkg/jruby-stdlib ."
30
- cp "pkg/jruby-core-#{JRUBY_SRC_VERSION}.jar", 'lib'
31
- cp "pkg/jruby-stdlib-#{JRUBY_SRC_VERSION}.jar", 'lib'
32
-
33
- mkdir_p 'lib/jruby-jars'
34
- File.open('lib/jruby-jars/version.rb', 'w') do |file|
35
- file.write("module JRubyJars\n VERSION = '#{JRUBY_SRC_VERSION}'\nend")
36
- end
37
- end
38
-
39
- task :clean do
40
- rm_f 'lib/jruby-jars/version.rb'
41
- rm_f 'lib/*.jar'
42
- end
43
-
44
- file "lib/jruby-jars/version.rb" => :update
45
- file "lib/jruby-core-#{JRUBY_SRC_VERSION}.jar" => :update
46
- file "lib/jruby-stdlib-#{JRUBY_SRC_VERSION}.jar" => :update
47
-
48
- file GEM_FILE => [GEM_SPEC_FILE, :update] do
49
- puts "Generating #{GEM_FILE}"
50
- sh "../../../../bin/jruby -S gem build #{GEM_SPEC_FILE}"
51
- FileUtils.mv "jruby-jars-#{JRUBY_SRC_VERSION}.gem", GEM_FILE
52
- end
53
- task :gem => GEM_FILE
54
- task :package => :gem
7
+ # vim: syntax=Ruby
data/lib/jruby-jars.rb CHANGED
@@ -1,13 +1,13 @@
1
- require File.join(File.expand_path(File.dirname(__FILE__)), 'jruby-jars/version.rb')
1
+ require 'jruby-jars/version'
2
2
 
3
3
  module JRubyJars
4
4
  PATH = File.expand_path(File.dirname(__FILE__))
5
5
 
6
6
  def self.core_jar_path
7
- PATH + "/jruby-core-#{VERSION}.jar"
7
+ Dir[ PATH + "/jruby-core-complete-*.jar" ].first
8
8
  end
9
9
 
10
10
  def self.stdlib_jar_path
11
- PATH + "/jruby-stdlib-#{VERSION}.jar"
11
+ Dir[ PATH + "/jruby-stdlib-complete-*.jar" ].first
12
12
  end
13
13
  end
@@ -1,3 +1,3 @@
1
1
  module JRubyJars
2
- VERSION = '1.7.4'
3
- end
2
+ VERSION = Dir[ File.expand_path(File.dirname(File.dirname(__FILE__))) + '/jruby-core-complete-*jar' ].first.gsub( /^.*jruby-core-complete-|.jar$/, '' )
3
+ end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jruby-jars
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 1.7.4
4
+ prerelease: 6
5
+ version: 1.7.5.dev
6
6
  platform: ruby
7
7
  authors:
8
8
  - Charles Oliver Nutter
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-16 00:00:00.000000000 Z
12
+ date: 2013-10-03 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: |-
15
15
  This gem includes the core JRuby code and the JRuby 1.8/1.9 stdlib as jar files.
@@ -22,11 +22,12 @@ extra_rdoc_files: []
22
22
  files:
23
23
  - DEV_INSTRUCTIONS
24
24
  - History.txt
25
+ - Mavenfile
25
26
  - Rakefile
26
27
  - README.txt
27
- - lib/jruby-core-1.7.4.jar
28
+ - lib/jruby-core-complete-1.7.5.jar
28
29
  - lib/jruby-jars.rb
29
- - lib/jruby-stdlib-1.7.4.jar
30
+ - lib/jruby-stdlib-complete-1.7.5.jar
30
31
  - lib/jruby-jars/version.rb
31
32
  homepage: http://github.com/jruby/jruby/tree/master/gem/jruby-jars
32
33
  licenses: []
@@ -42,9 +43,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
42
43
  none: false
43
44
  required_rubygems_version: !ruby/object:Gem::Requirement
44
45
  requirements:
45
- - - '>='
46
+ - - '>'
46
47
  - !ruby/object:Gem::Version
47
- version: '0'
48
+ version: 1.3.1
48
49
  none: false
49
50
  requirements: []
50
51
  rubyforge_project: jruby/jruby