puck 1.2.2-java → 1.2.3-java

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 947da4c24c9bc8c28ae90d0ccc85b23836f9e9a6
4
- data.tar.gz: cc3f1fe8fad80ec3840e2175d67f85c4c9ae7754
3
+ metadata.gz: 915fd487fbad1cda697f8974d1fd5a243d16c3b9
4
+ data.tar.gz: aaf0d58dc6b0176378fc51c0d9aec86ede2d8338
5
5
  SHA512:
6
- metadata.gz: 193bf6c8345eeff775fe40c34f3f502400e1bfc0b76db52a92920d7b1636a2befa42da160300e27e4615263ecf923d025be0ff43f798d80a678fe18c70cfbded
7
- data.tar.gz: 7ff9194c43faa97f972897c137d030df6f47cb882aa696eedb6efdc5daed347af056ba0df331896c3b211d5ed1a545ae5b449cc22810b5cca79b8ceba9ce4dca
6
+ metadata.gz: 8c745b19923f564b0682677f6980be60ac9ff1b9ef10b82eb19fdf379d22370f34a412925d295de9e6e07c8331f74e465f5ca034e0425013722b5f73d49228a7
7
+ data.tar.gz: b9482c59fe8b4ae78068f88f2c7c60ff344f36c4c57ca0ee30ae23419c1a9bd8a9bdcbb50327b78cf219c16d8f823b4318ab27963126f53343cc2c8c76716b96
@@ -2,11 +2,11 @@ if ARGV.any?
2
2
  file_name = ARGV.shift
3
3
  bin_file_found = false
4
4
  PUCK_BIN_PATH.each do |dir|
5
- relative_path = File.join(dir, file_name)
6
- if File.exists?("classpath:/#{relative_path}")
5
+ absolute_path = File.join(PUCK_ROOT, dir, file_name)
6
+ if File.exists?(absolute_path)
7
7
  bin_file_found = true
8
- $0 = relative_path
9
- load(relative_path)
8
+ $0 = absolute_path
9
+ eval(File.read(absolute_path), binding, absolute_path)
10
10
  break
11
11
  end
12
12
  end
data/lib/puck/jar.rb CHANGED
@@ -181,6 +181,7 @@ module Puck
181
181
 
182
182
  def create_jar_bootstrap!(tmp_dir, gem_dependencies)
183
183
  File.open(File.join(tmp_dir, 'jar-bootstrap.rb'), 'w') do |io|
184
+ io.puts(%(PUCK_ROOT = JRuby.runtime.jruby_class_loader.get_resource('jar-bootstrap.rb').to_s.chomp('jar-bootstrap.rb')))
184
185
  io.puts(%(PUCK_BIN_PATH = ['#{JAR_APP_HOME}/bin', '#{JAR_JRUBY_HOME}/bin']))
185
186
  gem_dependencies.each do |spec|
186
187
  io.puts("PUCK_BIN_PATH << '#{JAR_GEM_HOME}/#{spec[:versioned_name]}/#{spec[:bin_path]}'")
@@ -188,7 +189,7 @@ module Puck
188
189
  io.puts
189
190
  gem_dependencies.each do |spec|
190
191
  spec[:load_paths].each do |load_path|
191
- io.puts(%($LOAD_PATH << 'classpath:#{JAR_GEM_HOME}/#{spec[:versioned_name]}/#{load_path}'))
192
+ io.puts(%($LOAD_PATH << File.join(PUCK_ROOT, '#{JAR_GEM_HOME}/#{spec[:versioned_name]}/#{load_path}')))
192
193
  end
193
194
  end
194
195
  io.puts
data/lib/puck/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Puck
4
- VERSION = '1.2.2'.freeze
4
+ VERSION = '1.2.3'.freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puck
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: java
6
6
  authors:
7
7
  - Theo Hultberg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-16 00:00:00.000000000 Z
11
+ date: 2016-01-28 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Puck takes your app and packs it along with all your gems and a complete JRuby runtime in a standalone Jar file that can be run with just `java -jar …`
14
14
  email:
@@ -46,7 +46,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
46
46
  version: '0'
47
47
  requirements: []
48
48
  rubyforge_project: puck
49
- rubygems_version: 2.2.2
49
+ rubygems_version: 2.4.5
50
50
  signing_key:
51
51
  specification_version: 4
52
52
  summary: Packs your JRuby app as a standalone Jar file