jarbler 0.4.4 → 0.4.5

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: 640a16561d8e25d6674c56908ffb3442ad42eeccb9d34bd54dc480167902f52a
4
- data.tar.gz: 76c9ea77cbf7eaea89588a6ffbcc6d06b39d79e6cd7560df822c31b979a7bf81
3
+ metadata.gz: b72eccf370b618ce376f9091afac4360a8cae86f60908b50ddbb3d0bb1c6647f
4
+ data.tar.gz: 659ea949e16bedfe51de531eb9cd54a71fe47e4873f41f58eb0708255aac8108
5
5
  SHA512:
6
- metadata.gz: 9ecdbb4c5485b2e816793e367e4f1257e2f546ed95b515ec6c34393a8dd22fe8546efe8f63eef393b5f455396267db2dfc71f0ff22c0f246034f35736bcd05a0
7
- data.tar.gz: acfe393d73f216856896a60fe815a94a3016eaf7a9dbf88734b8a99431b59ec5a39d947ace599a72365d70fac5ba55fff240dd0d92a9d57e46dce8d4bac66745
6
+ metadata.gz: 5284e6ee863cc608f78759bcc52ffa81989ba13cb236f13d7e74631dd15eb92df0af7df3c16bc7e9fb232632966bc68dbba19d3aed7a46032840b801db9ef701
7
+ data.tar.gz: 6fe30919e5763b5861c33a3d797c04f1ba5839b3a6d84cf04698fbab40337f08bfb2edef0e18ae5f3aa8a66c72c5b422c66dc253630008bba195af0fb9d32d79
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="Ask2AgentMigrationStateService">
4
+ <option name="migrationStatus" value="COMPLETED" />
5
+ </component>
6
+ </project>
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.4.5] - 2026-03-10
4
+ - Show JRuby warnings at execution of jar file only if environment variable `DEBUG` is set to 'true'
5
+
3
6
  ## [0.4.4] - 2026-02-03
4
7
 
5
8
  - Version conflicts with installed system default gems are fixed. <br/>
data/README.md CHANGED
@@ -70,7 +70,8 @@ The default configuration is focused on Ruby on Rails applications.<br>
70
70
 
71
71
  ## Troubleshooting
72
72
  * Set DEBUG=true in OS environment to get additional runtime information
73
- * The temporary folder with the extracted app and JRuby runtime files is not deleted after execution if DEBUG is set.
73
+ * The temporary folder with the extracted app and JRuby runtime files is not deleted after execution if DEBUG is set.<br/>
74
+ This is the case for execution of `jarble` as well as for execution of the created jar file.
74
75
 
75
76
  ### Possible error messages
76
77
  * Gem::LoadError: You have already activated ..., but your Gemfile requires ... . Since ... is a default gem, you can either remove your dependency on it or try updating to a newer version of bundler that supports net-protocol as a default gem.
@@ -157,10 +157,12 @@ class JarMain {
157
157
  //debug("JRuby set property 'jruby.gem.home' to '" + full_gem_home + "'");
158
158
  //System.setProperty("jruby.gem.home", full_gem_home);
159
159
 
160
- // Enable JRuby warnings, not proof to really function
161
- System.setProperty("jruby.log.warnings", "true");
162
- System.setProperty("jruby.cli.verbose", "true");
163
- // System.setProperty("jruby.debug.fullTrace", "true");
160
+ // Enable JRuby warnings
161
+ if (debug_active()) {
162
+ System.setProperty("jruby.log.warnings", "true");
163
+ System.setProperty("jruby.cli.verbose", "true");
164
+ // System.setProperty("jruby.debug.fullTrace", "true");
165
+ }
164
166
 
165
167
  debug("JRuby program starts with the following arguments: ");
166
168
  for (String arg : mainArgs) {
@@ -181,7 +181,7 @@ module Jarbler
181
181
  # find lockfile record for Gemfile spec
182
182
  lockfile_spec = lockfile_specs.find { |lockfile_spec| lockfile_spec.name == gemfile_spec.name }
183
183
  if lockfile_spec
184
- unless needed_gems.map{|n| n[:fullname]}.include?(lockfile_spec.full_name)
184
+ unless needed_gems.map{|n| n[:full_name]}.include?(lockfile_spec.full_name)
185
185
  needed_gems << { full_name: lockfile_spec.full_name, name: lockfile_spec.name, version: lockfile_spec.version }
186
186
  end
187
187
  debug "Direct Gem dependency: #{lockfile_spec.full_name}"
@@ -211,7 +211,7 @@ module Jarbler
211
211
  lockfile_spec_found = lockfile_specs.find { |lockfile_spec| lockfile_spec.name == lockfile_spec_dep.name }
212
212
  if lockfile_spec_found
213
213
  debug "Indirect Gem dependency from #{lockfile_spec.full_name}: #{lockfile_spec_found.full_name}"
214
- unless needed_gems.map{|n| n[:fullname]}.include?(lockfile_spec_found.full_name)
214
+ unless needed_gems.map{|n| n[:full_name]}.include?(lockfile_spec_found.full_name)
215
215
  needed_gems << { full_name: lockfile_spec_found.full_name, name: lockfile_spec_found.name, version: lockfile_spec_found.version }
216
216
  add_indirect_dependencies(lockfile_specs, lockfile_spec_found, needed_gems)
217
217
  end
@@ -26,7 +26,7 @@ module Jarbler
26
26
  config = Jarbler::Config.new
27
27
  end
28
28
  unless config.class == Jarbler::Config
29
- Jarbler.debug "No valid config provided in #{CONFIG_FILE}! Using defaults."
29
+ puts "No valid config provided in #{CONFIG_FILE}! Using defaults."
30
30
  config = Config.new
31
31
  end
32
32
  config.define_jruby_version
@@ -52,7 +52,7 @@ module Jarbler
52
52
  puts " includes: #{config.includes}"
53
53
  puts " jar_name: #{config.jar_name}"
54
54
  puts " java_opts: #{config.java_opts}"
55
- puts " jrubyc_opts: #{config.jruby_version}" if config.compile_ruby_files
55
+ puts " jrubyc_opts: #{config.jrubyc_opts}" if config.compile_ruby_files
56
56
  puts " jruby_version: #{config.jruby_version}"
57
57
  puts ""
58
58
  config
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Jarbler
4
- VERSION = "0.4.4"
5
- VERSION_DATE = "2026-01-29"
4
+ VERSION = "0.4.5"
5
+ VERSION_DATE = "2026-03-10"
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.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Ramm
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-02-03 00:00:00.000000000 Z
11
+ date: 2026-03-10 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'
@@ -19,6 +19,7 @@ executables:
19
19
  extensions: []
20
20
  extra_rdoc_files: []
21
21
  files:
22
+ - ".idea/copilot.data.migration.ask2agent.xml"
22
23
  - CHANGELOG.md
23
24
  - Gemfile
24
25
  - LICENSE