jbundler 0.9.4 → 0.9.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: 3bf1c75c37037220f7f47c4a02205fcfa814ef8cab027fa45ef111cca5052f9e
4
- data.tar.gz: dc85176e4dc8239f3cfcdaa9006d7265d62d793fcb930c9269ae5f89e969bee1
3
+ metadata.gz: cf8b687701fd0f4dfb43e8ab79a26f263402805a31bed39aa99864a6a848ff6b
4
+ data.tar.gz: 3cf6ef2c8e75a01d7d3d58e33208732e16588f0a9713a6cf8ee272dc0bb510d2
5
5
  SHA512:
6
- metadata.gz: 4663268fac15d1938833a253276280f652a8c82e039d7103100e7132d764e2e6371d27e188fc133d564bc9ef922fb74165da4c1c41d670a0e21e49d6ccdc43e8
7
- data.tar.gz: eb2d73a9246bb8f5a5b30c967868e73db16eb08aa6717bff993737b5cc65043503410a06f6e8698099abda97d67bd705ba529606940ee22ac3b97642eb15f167
6
+ metadata.gz: 3888caa5f38f37aff68b8284a06c247e586318e3937a6bf59f2cfa22ea4ec5aa760bbc210162da06f07c6aaa287627355e981f346e133e3d12489418a7a11020
7
+ data.tar.gz: fd67097f89bdfc216085c62835e354041cc33aaec1a4c58da96803016c4df96da5d9139f77aaddcf1bb1de256805d7bbd8911a85aa1b1424409f049c09e12227
data/Gemfile.lock CHANGED
@@ -1,10 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jbundler (0.9.4)
4
+ jbundler (0.9.5)
5
5
  bundler (> 1.5, < 3.0.0)
6
6
  jar-dependencies (~> 0.3)
7
- maven-tools (~> 1.1)
7
+ maven-tools (= 1.2.3)
8
8
  ruby-maven (~> 3.3, >= 3.3.8)
9
9
 
10
10
  GEM
@@ -20,14 +20,14 @@ GEM
20
20
  thread_safe (~> 0.3, >= 0.3.1)
21
21
  equalizer (0.0.11)
22
22
  ice_nine (0.11.2)
23
- jar-dependencies (0.4.0)
24
- maven-tools (1.1.6)
23
+ jar-dependencies (0.5.5)
24
+ maven-tools (1.2.3)
25
25
  virtus (~> 1.0)
26
- minitest (5.14.0)
27
- rake (10.5.0)
28
- ruby-maven (3.3.12)
29
- ruby-maven-libs (~> 3.3.9)
30
- ruby-maven-libs (3.3.9)
26
+ minitest (5.25.5)
27
+ rake (13.3.0)
28
+ ruby-maven (3.9.3)
29
+ ruby-maven-libs (~> 3.9.9)
30
+ ruby-maven-libs (3.9.9)
31
31
  thread_safe (0.3.6-java)
32
32
  virtus (1.0.5)
33
33
  axiom-types (~> 0.1)
@@ -36,13 +36,13 @@ GEM
36
36
  equalizer (~> 0.0, >= 0.0.9)
37
37
 
38
38
  PLATFORMS
39
- java
39
+ universal-java-21
40
40
 
41
41
  DEPENDENCIES
42
42
  copyright-header (= 1.0.8)
43
43
  jbundler!
44
44
  minitest (~> 5.3)
45
- rake (~> 10.0)
45
+ rake (~> 13.0)
46
46
 
47
47
  BUNDLED WITH
48
- 2.1.4
48
+ 2.6.3
@@ -49,7 +49,7 @@ module JBundler
49
49
  end
50
50
 
51
51
  def exists?
52
- File.exists?(@classpathfile)
52
+ File.exist?(@classpathfile)
53
53
  end
54
54
 
55
55
  def missing?( jarfile )
@@ -100,7 +100,7 @@ module JBundler
100
100
  return if path =~ /pom$/
101
101
  if local_repo
102
102
  path = path.sub( /#{local_repo}/, '' )
103
- unless File.exists?( path )
103
+ unless File.exist?( path )
104
104
  file.puts "JBUNDLER_#{prefix}CLASSPATH << (JBUNDLER_LOCAL_REPO + '#{path}')"
105
105
  path = nil
106
106
  end
@@ -33,7 +33,7 @@ module JBundler
33
33
  def initialize
34
34
  if ENV.has_key? 'HOME'
35
35
  homefile = File.join(ENV['HOME'], RC_FILE)
36
- home_config = YAML.load_file(homefile) if File.exists?(homefile)
36
+ home_config = YAML.load_file(homefile) if File.exist?(homefile)
37
37
  else
38
38
  home_config = nil
39
39
  end
@@ -41,7 +41,7 @@ module JBundler
41
41
  @basedir = find_basedir( File.expand_path( '.' ) )
42
42
  @basedir ||= File.expand_path( '.' )
43
43
  file = join_basedir( RC_FILE )
44
- pwd_config = YAML.load_file(file) if File.exists?(file)
44
+ pwd_config = YAML.load_file(file) if File.exist?(file)
45
45
  @config.merge!(pwd_config || {})
46
46
  end
47
47
 
@@ -55,11 +55,11 @@ module JBundler
55
55
 
56
56
  def find_basedir( dir )
57
57
  f = File.join( dir, RC_FILE )
58
- return dir if File.exists?( f )
58
+ return dir if File.exist?( f )
59
59
  f = File.join( dir, _jarfile )
60
- return dir if File.exists?( f )
60
+ return dir if File.exist?( f )
61
61
  f = File.join( dir, _gemfile )
62
- return dir if File.exists?( f )
62
+ return dir if File.exist?( f )
63
63
  parent = File.dirname( dir )
64
64
  if dir != ENV['HOME'] && dir != parent
65
65
  find_basedir( parent )
@@ -28,7 +28,7 @@ module JBundler
28
28
 
29
29
  def initialize(jarfile, lockfile = 'Gemfile.lock')
30
30
  @jarfile = jarfile
31
- @lockfile = lockfile if File.exists?(lockfile)
31
+ @lockfile = lockfile if File.exist?(lockfile)
32
32
  end
33
33
 
34
34
  def exists?
@@ -49,7 +49,7 @@ module JBundler
49
49
 
50
50
  jar = to_jar( group_id, artifact_id, version, classifier )
51
51
  ( [ Jars.home ] + $LOAD_PATH ).each do |path|
52
- if File.exists?( f = File.join( path, jar ) )
52
+ if File.exist?( f = File.join( path, jar ) )
53
53
  return f
54
54
  end
55
55
  end
@@ -25,7 +25,7 @@ module JBundler
25
25
 
26
26
  exec( 'dependency:tree' )
27
27
 
28
- if File.exists?( @tree )
28
+ if File.exist?( @tree )
29
29
  puts File.read( @tree )
30
30
  end
31
31
  end
@@ -1,4 +1,4 @@
1
- require 'jar_installer'
1
+ require 'jars/installer'
2
2
  module JBundler
3
3
  class Vendor
4
4
 
@@ -8,11 +8,11 @@ module JBundler
8
8
  end
9
9
 
10
10
  def vendored?
11
- File.exists?( @dir ) && Dir[ File.join( @dir, '*' ) ].size > 0
11
+ File.exist?( @dir ) && Dir[ File.join( @dir, '*' ) ].size > 0
12
12
  end
13
13
 
14
14
  def require_jars
15
- if File.exists?(@jars_lock)
15
+ if File.exist?(@jars_lock)
16
16
  $LOAD_PATH << @dir unless $LOAD_PATH.include? @dir
17
17
  ENV_JAVA['jars.lock'] = @jars_lock
18
18
  Jars.require_jars_lock!
@@ -24,7 +24,7 @@ module JBundler
24
24
 
25
25
  def require_jars_legacy
26
26
  jars = File.join( @dir, 'jbundler.rb' )
27
- if File.exists?( jars )
27
+ if File.exist?( jars )
28
28
  $LOAD_PATH << @dir unless $LOAD_PATH.include? @dir
29
29
  require jars
30
30
  else
@@ -0,0 +1,3 @@
1
+ module JBundler
2
+ VERSION = '0.9.5'
3
+ end
data/lib/jbundler.rb CHANGED
@@ -19,6 +19,7 @@
19
19
  # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
20
  #
21
21
 
22
+ require 'jbundler/version'
22
23
  require 'jbundler/context'
23
24
  require 'jbundler/lock_down'
24
25
 
metadata CHANGED
@@ -1,29 +1,28 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jbundler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
4
+ version: 0.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Meier
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2022-05-11 00:00:00.000000000 Z
10
+ date: 2025-06-23 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: maven-tools
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
- - - "~>"
16
+ - - '='
18
17
  - !ruby/object:Gem::Version
19
- version: '1.1'
18
+ version: 1.2.3
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
- - - "~>"
23
+ - - '='
25
24
  - !ruby/object:Gem::Version
26
- version: '1.1'
25
+ version: 1.2.3
27
26
  - !ruby/object:Gem::Dependency
28
27
  name: ruby-maven
29
28
  requirement: !ruby/object:Gem::Requirement
@@ -84,14 +83,14 @@ dependencies:
84
83
  requirements:
85
84
  - - "~>"
86
85
  - !ruby/object:Gem::Version
87
- version: '10.0'
86
+ version: '13.0'
88
87
  type: :development
89
88
  prerelease: false
90
89
  version_requirements: !ruby/object:Gem::Requirement
91
90
  requirements:
92
91
  - - "~>"
93
92
  - !ruby/object:Gem::Version
94
- version: '10.0'
93
+ version: '13.0'
95
94
  - !ruby/object:Gem::Dependency
96
95
  name: minitest
97
96
  requirement: !ruby/object:Gem::Requirement
@@ -140,10 +139,10 @@ files:
140
139
  - lib/jbundler/show.rb
141
140
  - lib/jbundler/tree.rb
142
141
  - lib/jbundler/vendor.rb
142
+ - lib/jbundler/version.rb
143
143
  - spec/classpath_file_spec.rb
144
144
  - spec/config_spec.rb
145
145
  - spec/pom_spec.rb
146
- - spec/project/Settings.xml
147
146
  - spec/project/settings.xml
148
147
  - spec/setup.rb
149
148
  - spec/vendor_spec.rb
@@ -151,7 +150,6 @@ homepage: https://github.com/mkristian/jbundler
151
150
  licenses:
152
151
  - MIT
153
152
  metadata: {}
154
- post_install_message:
155
153
  rdoc_options: []
156
154
  require_paths:
157
155
  - lib
@@ -166,8 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
166
164
  - !ruby/object:Gem::Version
167
165
  version: '0'
168
166
  requirements: []
169
- rubygems_version: 3.2.22
170
- signing_key:
167
+ rubygems_version: 3.6.3
171
168
  specification_version: 4
172
169
  summary: managing jar dependencies
173
170
  test_files:
File without changes