jar-dependencies 0.4.0 → 0.4.1

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: b2a5716a45be706871dee379b8460a7262605db5
4
- data.tar.gz: 05b060c6a93a43062308daae49a2957be4ac3765
3
+ metadata.gz: d730f61c3fbec4cbb40c2d2d772dece10891d172
4
+ data.tar.gz: cb4aacf3dc32930cfafbc202e128e8a821474a57
5
5
  SHA512:
6
- metadata.gz: 6282cb6b2a56ef60f6110a47c0faecd95ce601a04691a4f2d244f5c073c9275b9612606f4b3793bee32b71222c809acc6088452b4dc1c4f338185d4977c9ab5b
7
- data.tar.gz: ec8b9752bdaa207faa85dfcdf192d7a0bdedda927ecab72ec581705efea679edff1d2e9a4c8075c1682f68b897cb576ed367f8e14d03fc55ee80d43146671ce2
6
+ metadata.gz: 7f7baa869bd3cc34a27f1604cd205ca7f116ecf6ae86bd7019935950443137850b459d80b31e36d9b8fa8579f243261d2aa336812e53734ed3c1ea7a70df5ce5
7
+ data.tar.gz: 894cf492789572bba0e93fc678e7cbfe3ac878340c2c9baa5ff2c65b903ce997ab0e9b328b7645fa3b6843087c4b04ab554194a89c568adeb4e8dca941a42304
@@ -12,8 +12,7 @@ Gem::Specification.new do |s|
12
12
  s.homepage = 'https://github.com/mkristian/jar-dependencies'
13
13
 
14
14
  s.bindir = 'bin'
15
- LOCK_JARS = 'lock_jars'.freeze
16
- s.executables = [LOCK_JARS]
15
+ s.executables = [lock_jars = 'lock_jars'.freeze]
17
16
 
18
17
  s.license = 'MIT'
19
18
 
@@ -25,21 +24,19 @@ Gem::Specification.new do |s|
25
24
 
26
25
  s.description = 'manage jar dependencies for gems and keep track which jar was already loaded using maven artifact coordinates. it warns on version conflicts and loads only ONE jar assuming the first one is compatible to the second one otherwise your project needs to lock down the right version by providing a Jars.lock file.'
27
26
 
28
- s.add_development_dependency 'minitest', '~> 5.3'
29
- s.add_development_dependency 'pry'
27
+ s.add_development_dependency 'minitest', '~> 5.10.0'
30
28
  s.add_development_dependency 'rake', '~> 10.2'
31
- RUBY_MAVEN_VERSION = '~> 3.3.11'.freeze
32
- s.add_development_dependency 'ruby-maven', RUBY_MAVEN_VERSION
29
+ s.add_development_dependency 'ruby-maven', ruby_maven_version = '~> 3.3.11'.freeze
33
30
 
34
31
  s.post_install_message = <<EOF
35
32
 
36
- if you want to use the executable #{LOCK_JARS} then install ruby-maven gem before using #{LOCK_JARS}
33
+ if you want to use the executable #{lock_jars} then install ruby-maven gem before using #{lock_jars}
37
34
 
38
- $ gem install ruby-maven -v '#{RUBY_MAVEN_VERSION}'
35
+ $ gem install ruby-maven -v '#{ruby_maven_version}'
39
36
 
40
37
  or add it as a development dependency to your Gemfile
41
38
 
42
- gem 'ruby-maven', '#{RUBY_MAVEN_VERSION}'
39
+ gem 'ruby-maven', '#{ruby_maven_version}'
43
40
 
44
41
  EOF
45
42
  end
@@ -45,7 +45,7 @@ module Jars
45
45
  parts << artifact_id
46
46
  parts << second.split(':')[-1]
47
47
  @file = line.slice(@coord.length, line.length).sub(REG, EMPTY).strip
48
- last = @file.reverse.index /\\|\//
48
+ last = @file.reverse.index(/\\|\//)
49
49
  parts << line[-last..-1]
50
50
  @path = File.join(parts).strip
51
51
 
@@ -38,9 +38,9 @@ module Jars
38
38
  spec = eval(File.read(@specfile), TOPLEVEL_BINDING, @specfile)
39
39
  end
40
40
  when Gem::Specification
41
- if File.exist?(spec.spec_file)
41
+ if File.exist?(spec.loaded_from)
42
42
  @basedir = spec.gem_dir
43
- @specfile = spec.spec_file
43
+ @specfile = spec.loaded_from
44
44
  else
45
45
  # this happens with bundle and local gems
46
46
  # there the spec_file is "not installed" but inside
@@ -1,5 +1,5 @@
1
1
  module Jars
2
- VERSION = '0.4.0'.freeze
2
+ VERSION = '0.4.1'.freeze
3
3
  JRUBY_PLUGINS_VERSION = '1.1.3'.freeze
4
4
  DEPENDENCY_PLUGIN_VERSION = '2.8'.freeze
5
5
  end
metadata CHANGED
@@ -1,21 +1,21 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jar-dependencies
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - christian meier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-02 00:00:00.000000000 Z
11
+ date: 2020-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
15
15
  requirements:
16
16
  - - "~>"
17
17
  - !ruby/object:Gem::Version
18
- version: '5.3'
18
+ version: 5.10.0
19
19
  name: minitest
20
20
  prerelease: false
21
21
  type: :development
@@ -23,21 +23,7 @@ dependencies:
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '5.3'
27
- - !ruby/object:Gem::Dependency
28
- requirement: !ruby/object:Gem::Requirement
29
- requirements:
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: '0'
33
- name: pry
34
- prerelease: false
35
- type: :development
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
26
+ version: 5.10.0
41
27
  - !ruby/object:Gem::Dependency
42
28
  requirement: !ruby/object:Gem::Requirement
43
29
  requirements: