puck 1.1.0-java → 1.1.1-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/jar.rb +6 -1
- 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: ad876ef6fb811441a8929b974d5ea9dbe69c600c
|
4
|
+
data.tar.gz: 3136d2478fab3d05e1cb90f1016c6c56f00748c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a865beffc4a3a4c6794971dfd50cb686b5e41f8393dfc407e903c049b3a9f6aea5099fffd21dd258586e1ec30ef933038c96970e340471d4fad04bf778230a4
|
7
|
+
data.tar.gz: c76d5d37953989c7b58cb9b5930d305db0e59e68c1c59d01d2a965e45ad0330b239b2031d9ec7ff748d8c121941b1c4f039c41f6797fcca2c6a3cb24490aadd1
|
data/lib/puck/jar.rb
CHANGED
@@ -88,6 +88,7 @@ module Puck
|
|
88
88
|
|
89
89
|
Dir.mktmpdir do |tmp_dir|
|
90
90
|
output_path = File.join(@configuration[:build_dir], @configuration[:jar_name])
|
91
|
+
temporary_output_path = File.join(Dir.mktmpdir, @configuration[:jar_name])
|
91
92
|
project_dir = Pathname.new(@configuration[:app_dir]).expand_path.cleanpath
|
92
93
|
extra_files = @configuration[:extra_files] || []
|
93
94
|
jruby_complete_path = @configuration[:jruby_complete]
|
@@ -101,7 +102,7 @@ module Puck
|
|
101
102
|
|
102
103
|
ant = Ant.new(output_level: 1)
|
103
104
|
begin
|
104
|
-
ant.jar(destfile:
|
105
|
+
ant.jar(destfile: temporary_output_path) do
|
105
106
|
manifest do
|
106
107
|
attribute name: 'Main-Class', value: 'org.jruby.JarBootstrapMain'
|
107
108
|
attribute name: 'Created-By', value: "Puck v#{Puck::VERSION}"
|
@@ -140,8 +141,12 @@ module Puck
|
|
140
141
|
end
|
141
142
|
end
|
142
143
|
end
|
144
|
+
|
145
|
+
FileUtils.mv(temporary_output_path, output_path)
|
143
146
|
rescue Java::OrgApacheToolsAnt::BuildException => e
|
144
147
|
raise PuckError, sprintf('Error when building JAR: %s (%s)', e.message, e.class), e.backtrace
|
148
|
+
ensure
|
149
|
+
FileUtils.rm_rf(File.dirname(temporary_output_path))
|
145
150
|
end
|
146
151
|
output_path
|
147
152
|
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.1.
|
4
|
+
version: 1.1.1
|
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-09-
|
11
|
+
date: 2015-09-18 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:
|