puck 1.1.0-java → 1.1.1-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1d2fa619bd5d33c67783df7f02b076b8d8fb7d61
4
- data.tar.gz: a2d9a4ceaf07a7c12c8d0f156633ff65627ee8b2
3
+ metadata.gz: ad876ef6fb811441a8929b974d5ea9dbe69c600c
4
+ data.tar.gz: 3136d2478fab3d05e1cb90f1016c6c56f00748c0
5
5
  SHA512:
6
- metadata.gz: f1d492499c49e043bbc2f2b9585e79437b76d7ad32539024378ba1fc2b0d49006083e8f376ddc3d83aa46697aeae1ad4adb8a1d72b00c16352bba9c92186b688
7
- data.tar.gz: 0882d65123098436d26afdbd499afb254f1aa883623e1daae7edf8fa7c114edf67267209d2de814f0bdfacf0f3554f255b2a1b75788846b71f5e85654d8e282a
6
+ metadata.gz: 7a865beffc4a3a4c6794971dfd50cb686b5e41f8393dfc407e903c049b3a9f6aea5099fffd21dd258586e1ec30ef933038c96970e340471d4fad04bf778230a4
7
+ data.tar.gz: c76d5d37953989c7b58cb9b5930d305db0e59e68c1c59d01d2a965e45ad0330b239b2031d9ec7ff748d8c121941b1c4f039c41f6797fcca2c6a3cb24490aadd1
@@ -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: output_path) do
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
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Puck
4
- VERSION = '1.1.0'.freeze
4
+ VERSION = '1.1.1'.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.1.0
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-14 00:00:00.000000000 Z
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: