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 +4 -4
- data/jar-dependencies.gemspec +6 -9
- data/lib/jars/installer.rb +1 -1
- data/lib/jars/maven_exec.rb +2 -2
- data/lib/jars/version.rb +1 -1
- metadata +4 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d730f61c3fbec4cbb40c2d2d772dece10891d172
|
4
|
+
data.tar.gz: cb4aacf3dc32930cfafbc202e128e8a821474a57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f7baa869bd3cc34a27f1604cd205ca7f116ecf6ae86bd7019935950443137850b459d80b31e36d9b8fa8579f243261d2aa336812e53734ed3c1ea7a70df5ce5
|
7
|
+
data.tar.gz: 894cf492789572bba0e93fc678e7cbfe3ac878340c2c9baa5ff2c65b903ce997ab0e9b328b7645fa3b6843087c4b04ab554194a89c568adeb4e8dca941a42304
|
data/jar-dependencies.gemspec
CHANGED
@@ -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
|
-
|
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.
|
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
|
-
|
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 #{
|
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 '#{
|
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', '#{
|
39
|
+
gem 'ruby-maven', '#{ruby_maven_version}'
|
43
40
|
|
44
41
|
EOF
|
45
42
|
end
|
data/lib/jars/installer.rb
CHANGED
@@ -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
|
|
data/lib/jars/maven_exec.rb
CHANGED
@@ -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.
|
41
|
+
if File.exist?(spec.loaded_from)
|
42
42
|
@basedir = spec.gem_dir
|
43
|
-
@specfile = spec.
|
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
|
data/lib/jars/version.rb
CHANGED
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.
|
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:
|
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:
|
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:
|
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:
|