lock_jar 0.4.1 → 0.4.2
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.
- data/Gemfile +1 -1
- data/VERSION +1 -1
- data/bin/lockjar +1 -1
- data/lib/lock_jar/version.rb +3 -0
- data/lib/lock_jar.rb +1 -0
- data/lock_jar.gemspec +6 -5
- data/spec/lock_jar_spec.rb +19 -0
- data/spec/pom.xml +5 -0
- metadata +6 -5
data/Gemfile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.2
|
data/bin/lockjar
CHANGED
@@ -5,7 +5,7 @@ require 'lock_jar'
|
|
5
5
|
|
6
6
|
# :name is optional, otherwise uses the basename of this executable
|
7
7
|
program :name, 'Lock Jar'
|
8
|
-
program :version,
|
8
|
+
program :version, LockJar::VERSION
|
9
9
|
program :description, 'LockJar manages Java Jars for Ruby'
|
10
10
|
|
11
11
|
command :install do |c|
|
data/lib/lock_jar.rb
CHANGED
data/lock_jar.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "lock_jar"
|
8
|
-
s.version = "0.4.
|
8
|
+
s.version = "0.4.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Michael Guymon"]
|
12
|
-
s.date = "2012-08-
|
12
|
+
s.date = "2012-08-26"
|
13
13
|
s.description = "Manage Jar files for Ruby. In the spirit of Bundler, a Jarfile\n is used to generate a Jarfile.lock that contains all the resolved jar dependencies for scopes runtime, compile, and test.\n The Jarfile.lock can be used to populate the classpath"
|
14
14
|
s.email = "michael@tobedevoured.com"
|
15
15
|
s.executables = ["lockjar"]
|
@@ -31,6 +31,7 @@ Gem::Specification.new do |s|
|
|
31
31
|
"lib/lock_jar/maven.rb",
|
32
32
|
"lib/lock_jar/resolver.rb",
|
33
33
|
"lib/lock_jar/runtime.rb",
|
34
|
+
"lib/lock_jar/version.rb",
|
34
35
|
"lock_jar.gemspec",
|
35
36
|
"spec/Jarfile",
|
36
37
|
"spec/lock_jar/dsl_spec.rb",
|
@@ -51,7 +52,7 @@ Gem::Specification.new do |s|
|
|
51
52
|
s.specification_version = 3
|
52
53
|
|
53
54
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
54
|
-
s.add_runtime_dependency(%q<naether>, ["~> 0.8.
|
55
|
+
s.add_runtime_dependency(%q<naether>, ["~> 0.8.3"])
|
55
56
|
s.add_runtime_dependency(%q<highline>, ["~> 1.6.13"])
|
56
57
|
s.add_runtime_dependency(%q<commander>, ["~> 4.1.2"])
|
57
58
|
s.add_development_dependency(%q<rspec>, ["~> 2.9.0"])
|
@@ -59,7 +60,7 @@ Gem::Specification.new do |s|
|
|
59
60
|
s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
|
60
61
|
s.add_development_dependency(%q<yard>, ["~> 0.8.0"])
|
61
62
|
else
|
62
|
-
s.add_dependency(%q<naether>, ["~> 0.8.
|
63
|
+
s.add_dependency(%q<naether>, ["~> 0.8.3"])
|
63
64
|
s.add_dependency(%q<highline>, ["~> 1.6.13"])
|
64
65
|
s.add_dependency(%q<commander>, ["~> 4.1.2"])
|
65
66
|
s.add_dependency(%q<rspec>, ["~> 2.9.0"])
|
@@ -68,7 +69,7 @@ Gem::Specification.new do |s|
|
|
68
69
|
s.add_dependency(%q<yard>, ["~> 0.8.0"])
|
69
70
|
end
|
70
71
|
else
|
71
|
-
s.add_dependency(%q<naether>, ["~> 0.8.
|
72
|
+
s.add_dependency(%q<naether>, ["~> 0.8.3"])
|
72
73
|
s.add_dependency(%q<highline>, ["~> 1.6.13"])
|
73
74
|
s.add_dependency(%q<commander>, ["~> 4.1.2"])
|
74
75
|
s.add_dependency(%q<rspec>, ["~> 2.9.0"])
|
data/spec/lock_jar_spec.rb
CHANGED
@@ -14,6 +14,25 @@ describe LockJar, "#lock" do
|
|
14
14
|
LockJar.lock( "spec/Jarfile", :local_repo => 'tmp/test-repo', :lockfile => 'tmp/Jarfile.lock' )
|
15
15
|
File.exists?( 'tmp/Jarfile.lock' ).should be_true
|
16
16
|
|
17
|
+
lockfile = LockJar.read('tmp/Jarfile.lock')
|
18
|
+
lockfile.should eql( {
|
19
|
+
"local_repository" => "~/.m2",
|
20
|
+
"repositories" => ["http://repository.jboss.org/nexus/content/groups/public-jboss"],
|
21
|
+
"scopes" => {
|
22
|
+
"compile"=>{
|
23
|
+
"dependencies"=>["org.apache.mina:mina-core:2.0.4", "spec/pom.xml"],
|
24
|
+
"resolved_dependencies"=>["org.apache.mina:mina-core:jar:2.0.4",
|
25
|
+
"org.slf4j:slf4j-api:jar:1.6.1", "com.slackworks:modelcitizen:jar:0.2.2",
|
26
|
+
"commons-lang:commons-lang:jar:2.6", "commons-beanutils:commons-beanutils:jar:1.8.3",
|
27
|
+
"commons-logging:commons-logging:jar:1.1.1", "ch.qos.logback:logback-classic:jar:0.9.24",
|
28
|
+
"ch.qos.logback:logback-core:jar:0.9.24", "com.metapossum:metapossum-scanner:jar:1.0",
|
29
|
+
"commons-io:commons-io:jar:1.4", "junit:junit:jar:4.7"]},
|
30
|
+
"runtime"=>{
|
31
|
+
"dependencies"=>["spec/pom.xml", "org.apache.tomcat:servlet-api:jar:6.0.35"],
|
32
|
+
"resolved_dependencies"=>["org.apache.tomcat:servlet-api:jar:6.0.35"]},
|
33
|
+
"test"=>{
|
34
|
+
"dependencies"=>["spec/pom.xml", "junit:junit:jar:4.10"],
|
35
|
+
"resolved_dependencies"=>["junit:junit:jar:4.10", "org.hamcrest:hamcrest-core:jar:1.1"]} } } )
|
17
36
|
end
|
18
37
|
|
19
38
|
it "should not replace dependencies with maps" do
|
data/spec/pom.xml
CHANGED
@@ -7,6 +7,11 @@ ttp://maven.apache.org/maven-v4_0_0.xsd ">
|
|
7
7
|
<artifactId>test</artifactId>
|
8
8
|
<version>3</version>
|
9
9
|
<packaging>jar</packaging>
|
10
|
+
<repositories>
|
11
|
+
<repository>
|
12
|
+
<url>http://repository.jboss.org/nexus/content/groups/public-jboss</url>
|
13
|
+
</repository>
|
14
|
+
</repositories>
|
10
15
|
<dependencies>
|
11
16
|
<dependency>
|
12
17
|
<groupId>com.slackworks</groupId>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lock_jar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-08-
|
12
|
+
date: 2012-08-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: naether
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.8.
|
21
|
+
version: 0.8.3
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.8.
|
29
|
+
version: 0.8.3
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: highline
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -148,6 +148,7 @@ files:
|
|
148
148
|
- lib/lock_jar/maven.rb
|
149
149
|
- lib/lock_jar/resolver.rb
|
150
150
|
- lib/lock_jar/runtime.rb
|
151
|
+
- lib/lock_jar/version.rb
|
151
152
|
- lock_jar.gemspec
|
152
153
|
- spec/Jarfile
|
153
154
|
- spec/lock_jar/dsl_spec.rb
|
@@ -172,7 +173,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
172
173
|
version: '0'
|
173
174
|
segments:
|
174
175
|
- 0
|
175
|
-
hash:
|
176
|
+
hash: 2520918998464823576
|
176
177
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
177
178
|
none: false
|
178
179
|
requirements:
|