jarbler 0.3.1 → 0.3.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ae7132c21c27b0d51a870c3e79470d83a4d4b6b088c474c8cdaf4cf4ed34a79c
4
- data.tar.gz: 8e149011da1e3957f425f659a7ac35b47e1696b3896f1a617c6027d027a783bb
3
+ metadata.gz: d57d186383ffc6bf5de8396b10fa81aa47947bedb96f36ef67d4cbecef2ca2fb
4
+ data.tar.gz: 64c3888a99ec67bbf0e4ac0c3c85a5d2f8cd042a84403ad879a02476c8c62a80
5
5
  SHA512:
6
- metadata.gz: d0712390a6916ee50d063c3f9dcc92fc6389c3ca566bc0b089d5df0275e3044b0aee30d3dedbcaf8171642e8555958137ef8a1ab8d14123417af8bc4475fee44
7
- data.tar.gz: b85408f04e6c496827c8fc78d34a78790e173721c6c10e9899e07a29c818d4986296bdfadf5cc79e1ff1de49ff5679d1982cfdc370c3bacca15786c62b7b9e85
6
+ metadata.gz: 4ef50f2616b885cca428943bcc6baf4d0db106da0e7620339981378ef2321ccd6b336c7c992a10531e670b6c63baa80d14f37512e8890b9136593047267adbcb
7
+ data.tar.gz: f4b1644168cdc90c5314b65cf616b1d096bec65888de485b490744f68b9577867c9a3625f8dbc7e443c11c7b57ea125210ce45a159f3e8ad477f559d8610f910
@@ -56,9 +56,12 @@ class JarMain {
56
56
  jarPath = jarPath.substring(1); // remove the leading slash
57
57
  }
58
58
 
59
+ // get the absolute path of the jar file, especially if it contains spaces in Windows
60
+ String aboluteJarPath = new File(jarPath).getAbsolutePath();
61
+
59
62
  // extract the jarFile by unzipping it (not using the jar utility which may not be available)
60
- System.out.println("Extracting files from "+jarPath+" to "+ newFolder.getAbsolutePath());
61
- unzip(jarPath, newFolder.getAbsolutePath());
63
+ System.out.println("Extracting files from "+aboluteJarPath+" to "+ newFolder.getAbsolutePath());
64
+ unzip(aboluteJarPath, newFolder.getAbsolutePath());
62
65
 
63
66
  String app_root = newFolder.getAbsolutePath()+File.separator+"app_root";
64
67
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Jarbler
4
- VERSION = "0.3.1"
5
- VERSION_DATE = "2024-07-02"
4
+ VERSION = "0.3.2"
5
+ VERSION_DATE = "2025-03-01"
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jarbler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Ramm
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-02 00:00:00.000000000 Z
11
+ date: 2025-03-01 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Pack a Ruby app combined with JRuby runtime and all its Gem dependencies
14
14
  into a jar file to simply run the app on any Java platform by '> java -jar file.jar'
@@ -42,7 +42,7 @@ metadata:
42
42
  homepage_uri: https://github.com/rammpeter/jarbler
43
43
  source_code_uri: https://github.com/rammpeter/jarbler
44
44
  changelog_uri: https://github.com/rammpeter/jarbler/CHANGELOG.md
45
- post_install_message:
45
+ post_install_message:
46
46
  rdoc_options: []
47
47
  require_paths:
48
48
  - lib
@@ -58,7 +58,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
58
58
  version: '0'
59
59
  requirements: []
60
60
  rubygems_version: 3.3.27
61
- signing_key:
61
+ signing_key:
62
62
  specification_version: 4
63
63
  summary: Pack a Ruby app into a Java jar file
64
64
  test_files: []