jarbler 0.1.6 → 0.1.8

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: 2be6f0a0ffe320df86b23b1e9f70fd0e1d65be38c9bac0f1a2c4d165f1c62969
4
- data.tar.gz: 38fe9c1a73da1682ba09ce8364e6f174a567ad563f7254322a8a2a85fb19e329
3
+ metadata.gz: 5de0d62c0ac312179bc506c3cda49ed463e72e11e9d0c153551fc90ce8aa2fee
4
+ data.tar.gz: 94c1e161336e09cf9e4188819298ee7dbffd6702b1b6d3909993911a5ae886c8
5
5
  SHA512:
6
- metadata.gz: 26346f96a9051a76a5ad7b94d3317dbfd604b52c45ae0b4102d809a2c0d82f26226c81cf27028352b756d56f8a99032ac128827755f0ccfc7f2998b78491f531
7
- data.tar.gz: b9b4720764fcaf4cdde6ff2051d1667fe5571ccd3fef3bca71f32a9b129a4d680998657ea8213ac395a1f1e9fc60a1eee21148acf34b5cfb4d09317d255af230
6
+ metadata.gz: 18f5af166aaa6a994521cfdf6efee1ddbbd5f70f40a04a2288095d9de83e54e3767b26e3321426d06622efcc9fd62e5962e8b6638dc6786de0d82d25180fb739
7
+ data.tar.gz: 7c3d03389ea1f41ab4e45e4988f0eae8e9fdb061bdf787922c27464ef46486c08543e3b2cad9ad8a862ba6e74f01629c776ad401a9a5ea2e1721c46a506a314e
data/Gemfile CHANGED
@@ -8,9 +8,10 @@ gemspec
8
8
  # gem "rake", "~> 13.0"
9
9
  gem "rake"
10
10
 
11
- group(:development) do
12
- gem 'rdoc'
13
- end
11
+ # suspend rdoc due to error "NameError: cannot load (ext) (org.jruby.ext.psych.PsychLibrary)" on jruby
12
+ # group(:development) do
13
+ # gem 'rdoc'
14
+ # end
14
15
 
15
16
  group(:test) do
16
17
  gem 'minitest'
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
- # Jarbler
1
+ ![# Jarbler](doc/images/jarbler_logo.png)
2
+
2
3
  Pack a Ruby application into an executable jar file.
3
4
 
4
5
  Jarbler creates a self executing Java jar file containing a Ruby application and all its Gem dependencies.
Binary file
Binary file
@@ -33,7 +33,6 @@ import java.security.ProtectionDomain;
33
33
  class JarMain {
34
34
 
35
35
  // executed by java -jar <jar file name>
36
- // No arguments are passed
37
36
  public static void main(String[] args) {
38
37
  debug("Start java process in jar file "+jar_file_name());
39
38
  debug("JVM: "+System.getProperty("java.vm.vendor")+" "+System.getProperty("java.vm.name")+" "+System.getProperty("java.vm.version")+" "+System.getProperty("java.home"));
@@ -188,7 +187,16 @@ class JarMain {
188
187
  zis.close();
189
188
  }
190
189
 
190
+ /**
191
+ * Create a new file with the given parent and name.
192
+ *
193
+ * @param destinationDir The parent directory.
194
+ * @param zipEntry The zip entry with name of the new file.
195
+ * @return The new File.
196
+ * @throws IOException If an I/O error occurs.
197
+ */
191
198
  private static File newFile(File destinationDir, ZipEntry zipEntry) throws IOException {
199
+ try {
192
200
  File destFile = new File(destinationDir, zipEntry.getName());
193
201
 
194
202
  String destDirPath = destinationDir.getCanonicalPath();
@@ -199,6 +207,13 @@ class JarMain {
199
207
  }
200
208
 
201
209
  return destFile;
210
+ } catch (IOException exception) {
211
+ System.out.println("JarMain.newFile: Error '"+ exception.getMessage() + "' while creating new file: '" + zipEntry.getName() + "' in dir '" + destinationDir.getName() + "'");
212
+ System.out.println("Full target dir name is: " + destinationDir.getCanonicalPath());
213
+ // Rethrow the exception
214
+ throw exception;
215
+ }
216
+
202
217
  }
203
218
 
204
219
  private static void debug(String msg) {
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Jarbler
4
- VERSION = "0.1.6"
5
- VERSION_DATE = "2023-06-19"
4
+ VERSION = "0.1.8"
5
+ VERSION_DATE = "2024-03-04"
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.1.6
4
+ version: 0.1.8
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: 2023-06-19 00:00:00.000000000 Z
11
+ date: 2024-03-04 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'
@@ -26,6 +26,8 @@ files:
26
26
  - Rakefile
27
27
  - bin/jarble
28
28
  - build_gem.sh
29
+ - doc/images/jarbler_logo.png
30
+ - doc/images/jarbler_logo.xcf
29
31
  - jarbler.gemspec
30
32
  - lib/jarbler.rb
31
33
  - lib/jarbler/JarMain.java
@@ -40,7 +42,7 @@ metadata:
40
42
  homepage_uri: https://github.com/rammpeter/jarbler
41
43
  source_code_uri: https://github.com/rammpeter/jarbler
42
44
  changelog_uri: https://github.com/rammpeter/jarbler/CHANGELOG.md
43
- post_install_message:
45
+ post_install_message:
44
46
  rdoc_options: []
45
47
  require_paths:
46
48
  - lib
@@ -55,8 +57,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
55
57
  - !ruby/object:Gem::Version
56
58
  version: '0'
57
59
  requirements: []
58
- rubygems_version: 3.3.26
59
- signing_key:
60
+ rubygems_version: 3.5.6
61
+ signing_key:
60
62
  specification_version: 4
61
63
  summary: Pack a Ruby app into a Java jar file
62
64
  test_files: []