jar-dependencies 0.0.9 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Mavenfile +5 -3
- data/jar-dependencies.gemspec +1 -1
- data/lib/jar_installer.rb +7 -6
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f8e5322897203efeb02d210538d94d463e29654
|
4
|
+
data.tar.gz: f85069e4354ca39a18acec3216b505d3cf2fd448
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3e1f0d64e77e024147390dfdc37961ed9c8cedfaba47f228888b3f931f4a4717ea87c31dcf3561391039371d8bf6411d2f1c1fbad4840bbbf66aa52594bd160
|
7
|
+
data.tar.gz: ef0c0861be7279d7ef77a6daacf00946ac28db51575418b5aaa6a956f627e87b04372418aa43212b14138539e7ca1649f4b73082badae013f8b9a10b43c7ccbd
|
data/Mavenfile
CHANGED
@@ -10,10 +10,11 @@ jruby_plugin( :minitest, :minispecDirectory => "specs/*_spec.rb" ) do
|
|
10
10
|
gem 'ruby-maven', '3.1.1.0.8'
|
11
11
|
end
|
12
12
|
|
13
|
-
snapshot_repository :jruby, 'http://ci.jruby.org/snapshots/maven'
|
13
|
+
#snapshot_repository :jruby, 'http://ci.jruby.org/snapshots/maven'
|
14
14
|
|
15
15
|
# (jruby-1.6.8 mode 1.8 produces a lot of yaml errors parsing gemspecs)
|
16
|
-
properties( 'jruby.versions' => ['1.6.8', '1.7.13'
|
16
|
+
properties( 'jruby.versions' => ['1.6.8', '1.7.13'#,'9000.dev-SNAPSHOT'
|
17
|
+
].join(','),
|
17
18
|
'jruby.modes' => ['1.9', '2.0','2.1'].join(','),
|
18
19
|
# just lock the version
|
19
20
|
'jruby.version' => '1.7.13',
|
@@ -24,7 +25,8 @@ plugin :invoker, '1.8' do
|
|
24
25
|
execute_goals( :install, :run,
|
25
26
|
:id => 'integration-tests',
|
26
27
|
:projectsDirectory => 'integration',
|
27
|
-
:
|
28
|
+
:properties => { 'jar-dependencies.version' => '${project.version}' },
|
29
|
+
:pomIncludes => [ '*/pom.xml' ],
|
28
30
|
:streamLogs => true )
|
29
31
|
end
|
30
32
|
|
data/jar-dependencies.gemspec
CHANGED
data/lib/jar_installer.rb
CHANGED
@@ -103,15 +103,15 @@ module Jars
|
|
103
103
|
f.close if f
|
104
104
|
end
|
105
105
|
|
106
|
-
def find_spec
|
106
|
+
def find_spec( allow_no_file )
|
107
107
|
specs = Dir[ '*.gemspec' ]
|
108
108
|
case specs.size
|
109
109
|
when 0
|
110
|
-
raise 'no gemspec found'
|
110
|
+
raise 'no gemspec found' unless allow_no_file
|
111
111
|
when 1
|
112
112
|
specs.first
|
113
113
|
else
|
114
|
-
raise 'more then one gemspec found. please specify a specfile'
|
114
|
+
raise 'more then one gemspec found. please specify a specfile' unless allow_no_file
|
115
115
|
end
|
116
116
|
end
|
117
117
|
private :find_spec
|
@@ -120,8 +120,8 @@ module Jars
|
|
120
120
|
setup( spec )
|
121
121
|
end
|
122
122
|
|
123
|
-
def setup( spec = nil )
|
124
|
-
spec ||= find_spec
|
123
|
+
def setup( spec = nil, allow_no_file = false )
|
124
|
+
spec ||= find_spec( allow_no_file )
|
125
125
|
|
126
126
|
case spec
|
127
127
|
when String
|
@@ -137,9 +137,10 @@ module Jars
|
|
137
137
|
# there the spec_file is "not installed" but inside
|
138
138
|
# the gem_dir directory
|
139
139
|
Dir.chdir( spec.gem_dir ) do
|
140
|
-
setup( nil )
|
140
|
+
setup( nil, true )
|
141
141
|
end
|
142
142
|
end
|
143
|
+
when NilClass
|
143
144
|
else
|
144
145
|
raise 'spec must be either String or Gem::Specification'
|
145
146
|
end
|
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jar-dependencies
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- christian meier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
+
name: minitest
|
15
|
+
version_requirements: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '5.3'
|
14
20
|
requirement: !ruby/object:Gem::Requirement
|
15
21
|
requirements:
|
16
22
|
- - ~>
|
17
23
|
- !ruby/object:Gem::Version
|
18
24
|
version: '5.3'
|
19
|
-
name: minitest
|
20
25
|
prerelease: false
|
21
26
|
type: :development
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
22
29
|
version_requirements: !ruby/object:Gem::Requirement
|
23
30
|
requirements:
|
24
31
|
- - ~>
|
25
32
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
27
|
-
- !ruby/object:Gem::Dependency
|
33
|
+
version: '10.2'
|
28
34
|
requirement: !ruby/object:Gem::Requirement
|
29
35
|
requirements:
|
30
36
|
- - ~>
|
31
37
|
- !ruby/object:Gem::Version
|
32
38
|
version: '10.2'
|
33
|
-
name: rake
|
34
39
|
prerelease: false
|
35
40
|
type: :development
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ~>
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '10.2'
|
41
41
|
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.
|
42
42
|
email:
|
43
43
|
- mkristian@web.de
|