puck 1.2.3-java → 1.2.4-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 +2 -0
- data/lib/puck/jar.rb +4 -7
- data/lib/puck/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 593ab2878f9ef64489c26b851aa8ed1d291ded5b
|
4
|
+
data.tar.gz: 26d158ed3125a8a6147f525f65611c319cd17c9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88f6fa4f01d16be5d5a23c6ce3cdc3bc2e873e091df89fa4bfe688666164f766ab4aa51c2330dbbf5302c48b452976dd312c96df77b39e8b014ab9cf1348d5ac
|
7
|
+
data.tar.gz: e486f063e930cfb7b866870a4f9f12ff9052dd93ad4a172bc05f38e2c2da3e771d7ea7604d3e4e3937ebc16295b784766b2a0243b9b44120539c31c1d1fe4ec0
|
@@ -26,6 +26,7 @@ module Puck
|
|
26
26
|
:base_path => base_path,
|
27
27
|
:load_paths => load_paths,
|
28
28
|
:bin_path => spec[:bindir],
|
29
|
+
:spec_file => spec[:spec_file],
|
29
30
|
}
|
30
31
|
end
|
31
32
|
end
|
@@ -54,6 +55,7 @@ module Puck
|
|
54
55
|
:full_gem_path => gem_spec.full_gem_path,
|
55
56
|
:load_paths => gem_spec.load_paths,
|
56
57
|
:bindir => gem_spec.bindir,
|
58
|
+
:spec_file => gem_spec.loaded_from,
|
57
59
|
}
|
58
60
|
end
|
59
61
|
Marshal.dump([specs]).to_java_bytes
|
data/lib/puck/jar.rb
CHANGED
@@ -144,7 +144,8 @@ module Puck
|
|
144
144
|
gem_dependencies.each do |spec|
|
145
145
|
base_path = Pathname.new(spec[:base_path]).expand_path.cleanpath
|
146
146
|
unless project_dir == base_path
|
147
|
-
zipfileset dir: spec[:base_path], prefix: File.join(JAR_GEM_HOME, spec[:versioned_name])
|
147
|
+
zipfileset dir: spec[:base_path], prefix: File.join(JAR_GEM_HOME, 'gems', spec[:versioned_name])
|
148
|
+
zipfileset file: spec[:spec_file], fullpath: File.join(JAR_GEM_HOME, 'specifications', File.basename(spec[:spec_file]))
|
148
149
|
end
|
149
150
|
end
|
150
151
|
|
@@ -184,14 +185,10 @@ module Puck
|
|
184
185
|
io.puts(%(PUCK_ROOT = JRuby.runtime.jruby_class_loader.get_resource('jar-bootstrap.rb').to_s.chomp('jar-bootstrap.rb')))
|
185
186
|
io.puts(%(PUCK_BIN_PATH = ['#{JAR_APP_HOME}/bin', '#{JAR_JRUBY_HOME}/bin']))
|
186
187
|
gem_dependencies.each do |spec|
|
187
|
-
io.puts("PUCK_BIN_PATH << '#{JAR_GEM_HOME}/#{spec[:versioned_name]}/#{spec[:bin_path]}'")
|
188
|
+
io.puts("PUCK_BIN_PATH << '#{JAR_GEM_HOME}/gems/#{spec[:versioned_name]}/#{spec[:bin_path]}'")
|
188
189
|
end
|
189
190
|
io.puts
|
190
|
-
|
191
|
-
spec[:load_paths].each do |load_path|
|
192
|
-
io.puts(%($LOAD_PATH << File.join(PUCK_ROOT, '#{JAR_GEM_HOME}/#{spec[:versioned_name]}/#{load_path}')))
|
193
|
-
end
|
194
|
-
end
|
191
|
+
io.puts(%(Gem.paths = {'GEM_HOME' => File.join(PUCK_ROOT, '#{JAR_GEM_HOME}')}))
|
195
192
|
io.puts
|
196
193
|
io.puts(File.read(File.expand_path('../bootstrap.rb', __FILE__)))
|
197
194
|
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.4
|
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-05-20 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:
|