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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d0805ace25b23e9fa213795dbbef51d8a65be0d1
4
- data.tar.gz: 3f3bed86bbb59f4cc4e42ae3b1374e1aeb75f1a8
3
+ metadata.gz: 0f8e5322897203efeb02d210538d94d463e29654
4
+ data.tar.gz: f85069e4354ca39a18acec3216b505d3cf2fd448
5
5
  SHA512:
6
- metadata.gz: 9755c23928d304ae90ade5143ab5df6932c06df2129d648cb932c1a79409dc3a38d05593afcda7b9942b3b1f02ca153f9b991290848a96bcfa89696649b1f2de
7
- data.tar.gz: 2c5905be4e5a004463beaa23d00144476c57a47521e09fb17fff6ee4425ecd6ac9ac07e051b90364bd6ccdaecc3c3d32ddb486cfae5bda8e72ae9323baf1a0ec
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','9000.dev-SNAPSHOT'].join(','),
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
- :pomIncludes => [ 'pom.xml' ],
28
+ :properties => { 'jar-dependencies.version' => '${project.version}' },
29
+ :pomIncludes => [ '*/pom.xml' ],
28
30
  :streamLogs => true )
29
31
  end
30
32
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'jar-dependencies'
5
- s.version = "0.0.9"
5
+ s.version = "0.1.0"
6
6
  s.author = 'christian meier'
7
7
  s.email = [ 'mkristian@web.de' ]
8
8
  s.summary = 'manage jar dependencies for gems'
@@ -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.9
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-08-28 00:00:00.000000000 Z
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: '5.3'
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