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 +4 -4
- data/lib/puck/bootstrap.rb +4 -4
- data/lib/puck/jar.rb +2 -1
- data/lib/puck/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 915fd487fbad1cda697f8974d1fd5a243d16c3b9
|
|
4
|
+
data.tar.gz: aaf0d58dc6b0176378fc51c0d9aec86ede2d8338
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8c745b19923f564b0682677f6980be60ac9ff1b9ef10b82eb19fdf379d22370f34a412925d295de9e6e07c8331f74e465f5ca034e0425013722b5f73d49228a7
|
|
7
|
+
data.tar.gz: b9482c59fe8b4ae78068f88f2c7c60ff344f36c4c57ca0ee30ae23419c1a9bd8a9bdcbb50327b78cf219c16d8f823b4318ab27963126f53343cc2c8c76716b96
|
data/lib/puck/bootstrap.rb
CHANGED
|
@@ -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
|
-
|
|
6
|
-
if File.exists?(
|
|
5
|
+
absolute_path = File.join(PUCK_ROOT, dir, file_name)
|
|
6
|
+
if File.exists?(absolute_path)
|
|
7
7
|
bin_file_found = true
|
|
8
|
-
$0 =
|
|
9
|
-
|
|
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 << '
|
|
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
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.
|
|
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:
|
|
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.
|
|
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
|