puck 1.2.4-java → 1.2.5-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/dependency_resolver.rb +5 -4
- data/lib/puck/jar.rb +3 -2
- data/lib/puck/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17cca3541c05ec6b0a8efe5f9f723566fd0af794
|
4
|
+
data.tar.gz: 7c8a221797f16bce9db06fd29c6331e143cea01d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bcc9fd469b3a5496868a9b251c5335c6374180ffcfd045ac14dfaaa34abbeeab1b0797c4316a0556d38e8d3caaded429a872e38cde3e44492d81f215bc441c7
|
7
|
+
data.tar.gz: ebbce216bae674fc8700764daa909c13efbf44c7aa37586469e85cea6f6ea2d222a41b416e670193ad5f721e5782cfdda6370889efd09350798be10dedb0e8ea
|
@@ -38,7 +38,7 @@ module Puck
|
|
38
38
|
scripting_container = Java::OrgJrubyEmbed::ScriptingContainer.new(Java::OrgJrubyEmbed::LocalContextScope::SINGLETHREAD)
|
39
39
|
scripting_container.compat_version = Java::OrgJruby::CompatVersion::RUBY1_9
|
40
40
|
scripting_container.current_directory = Dir.pwd
|
41
|
-
scripting_container.environment = Hash[ENV.merge('GEM_HOME' => gem_home).map { |k,v| [k.to_java, v.to_java] }]
|
41
|
+
scripting_container.environment = Hash[ENV.merge('GEM_HOME' => gem_home, 'BUNDLE_PATH' => gem_home).map { |k,v| [k.to_java, v.to_java] }]
|
42
42
|
scripting_container.put('arguments', Marshal.dump([gemfile, lockfile, groups]).to_java_bytes)
|
43
43
|
begin
|
44
44
|
line = __LINE__ + 1 # as __LINE__ represents next statement line i JRuby, and that becomes difficult to offset
|
@@ -60,12 +60,13 @@ module Puck
|
|
60
60
|
end
|
61
61
|
Marshal.dump([specs]).to_java_bytes
|
62
62
|
rescue => e
|
63
|
-
Marshal.dump([nil, e
|
63
|
+
Marshal.dump([nil, e, e.backtrace]).to_java_bytes
|
64
64
|
end
|
65
65
|
EOS
|
66
|
-
result, error,
|
66
|
+
result, error, backtrace = Marshal.load(String.from_java_bytes(unit.run))
|
67
67
|
if error
|
68
|
-
|
68
|
+
error.set_backtrace(Array(backtrace) + caller)
|
69
|
+
raise error
|
69
70
|
end
|
70
71
|
result
|
71
72
|
ensure
|
data/lib/puck/jar.rb
CHANGED
@@ -99,14 +99,15 @@ module Puck
|
|
99
99
|
temporary_output_path = File.join(Dir.mktmpdir, @configuration[:jar_name])
|
100
100
|
project_dir = Pathname.new(@configuration[:app_dir]).expand_path.cleanpath
|
101
101
|
extra_files = @configuration[:extra_files] || []
|
102
|
+
jruby_complete_path = @configuration[:jruby_complete]
|
102
103
|
|
103
104
|
if !(defined? JRubyJars) && !(jruby_complete_path && File.exists?(jruby_complete_path))
|
104
105
|
raise PuckError, 'Cannot build Jar: jruby-jars must be installed, or :jruby_complete must be specified'
|
105
106
|
end
|
106
107
|
|
107
108
|
merge_archives = (@configuration[:merge_archives] || []).to_a
|
108
|
-
if
|
109
|
-
merge_archives <<
|
109
|
+
if jruby_complete_path
|
110
|
+
merge_archives << jruby_complete_path
|
110
111
|
else
|
111
112
|
merge_archives.push(JRubyJars.core_jar_path, JRubyJars.stdlib_jar_path)
|
112
113
|
end
|
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.5
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Theo Hultberg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-07 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:
|
@@ -18,7 +18,7 @@ executables:
|
|
18
18
|
extensions: []
|
19
19
|
extra_rdoc_files: []
|
20
20
|
files:
|
21
|
-
- .yardopts
|
21
|
+
- ".yardopts"
|
22
22
|
- bin/puck
|
23
23
|
- lib/puck.rb
|
24
24
|
- lib/puck/bootstrap.rb
|
@@ -36,17 +36,17 @@ require_paths:
|
|
36
36
|
- lib
|
37
37
|
required_ruby_version: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- -
|
39
|
+
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '0'
|
42
42
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
|
-
- -
|
44
|
+
- - ">="
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '0'
|
47
47
|
requirements: []
|
48
48
|
rubyforge_project: puck
|
49
|
-
rubygems_version: 2.
|
49
|
+
rubygems_version: 2.6.6
|
50
50
|
signing_key:
|
51
51
|
specification_version: 4
|
52
52
|
summary: Packs your JRuby app as a standalone Jar file
|