lock_jar 0.7.4 → 0.7.5
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/.travis.yml +8 -0
- data/CHANGELOG.md +13 -0
- data/Gemfile +4 -4
- data/README.md +4 -2
- data/VERSION +1 -1
- data/lib/lock_jar/cli.rb +1 -1
- data/lib/lock_jar/version.rb +1 -1
- data/lock_jar.gemspec +20 -15
- data/spec/lock_jar/class_loader_spec.rb +7 -7
- data/spec/lock_jar/cli_spec.rb +103 -0
- data/spec/lock_jar/domain/dsl_helper_spec.rb +2 -2
- data/spec/lock_jar/domain/dsl_spec.rb +3 -2
- data/spec/lock_jar/maven_spec.rb +6 -6
- data/spec/lock_jar/resolver_spec.rb +8 -8
- data/spec/lock_jar/runtime_spec.rb +11 -12
- data/spec/lock_jar_spec.rb +59 -60
- data/spec/spec_helper.rb +19 -2
- data/spec/support/Jarfile +1 -0
- data/spec/support/helper.rb +44 -0
- metadata +24 -19
data/.gitignore
CHANGED
data/.travis.yml
ADDED
data/CHANGELOG.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
## LockJar Changelog
|
2
|
+
|
3
|
+
### 0.7.5 (August 23, 2013)
|
4
|
+
|
5
|
+
* Update Thor dep, improve specs (<a href="https://github.com/mguymon/lock_jar/pull/10>Pull #10</a>) [thanks <a href="https://github.com/yokolet">yokolet</a>]
|
6
|
+
|
7
|
+
### 0.7.4 (April 17, 2013)
|
8
|
+
|
9
|
+
* Fixed Buildr integration (<a href="https://github.com/mguymon/lock_jar/issues/6">Issue #6</a>) [thanks <a href="https://github.com/tobsch">tobsch</a>]
|
10
|
+
|
11
|
+
### 0.7.0
|
12
|
+
|
13
|
+
* Sort dependences for Jarfile.lock (<a href="https://github.com/mguymon/lock_jar/pull/3">Pull #3</a>) [thanks <a href="https://github.com/chetan">chetan</a>]
|
data/Gemfile
CHANGED
@@ -2,15 +2,15 @@
|
|
2
2
|
|
3
3
|
source "http://rubygems.org"
|
4
4
|
|
5
|
-
gem "naether", "~> 0.10.
|
6
|
-
gem "thor", "~> 0.
|
5
|
+
gem "naether", "~> 0.10.1"
|
6
|
+
gem "thor", "~> 0.18.1"
|
7
7
|
|
8
8
|
# Add dependencies to develop your gem here.
|
9
9
|
# Include everything needed to run rake, tests, features, etc.
|
10
10
|
group :development do
|
11
|
-
gem "rspec", "~> 2.
|
11
|
+
gem "rspec", "~> 2.14.1"
|
12
|
+
gem "pry", "~> 0.9.12.2"
|
12
13
|
gem "jeweler", "~> 1.8.4"
|
13
14
|
gem "yard", "~> 0.8.0"
|
14
|
-
gem 'solr_sail', '~>0.1.0', :platforms => :jruby
|
15
15
|
gem 'jruby-openssl', :platforms => :jruby
|
16
16
|
end
|
data/README.md
CHANGED
@@ -1,14 +1,16 @@
|
|
1
1
|
# LockJar
|
2
2
|
|
3
|
+
[![Build Status](https://secure.travis-ci.org/mguymon/lock_jar.png?branch=master)](http://travis-ci.org/mguymon/lock_jar)
|
4
|
+
|
3
5
|
LockJar manages Java Jars for Ruby. Powered by [Naether](https://github.com/mguymon/naether) to
|
4
6
|
create a frankenstein of Bundler and Maven. A Jarfile ([example](https://github.com/mguymon/lock_jar/blob/master/spec/Jarfile)) is used to generate a Jarfile.lock that contains all the resolved jar dependencies. The Jarfile.lock can be used to populate the classpath.
|
5
7
|
|
6
8
|
LockJar can:
|
7
|
-
* Be
|
9
|
+
* Be used directly in MRI 1.8.7, 1.9.3, and JRuby 1.6.7, 1.6.8, 1.7.x
|
8
10
|
* From the [command line](https://github.com/mguymon/lock_jar/blob/master/README.md#command-line)
|
9
11
|
* [Triggered from a Gem install](https://github.com/mguymon/lock_jar/blob/master/README.md#gem-integration)
|
10
12
|
* [Integrated into Buildr](https://github.com/mguymon/lock_jar/blob/master/README.md#buildr-integration)
|
11
|
-
* Experimental [
|
13
|
+
* Experimental [integration with Bundler](https://github.com/mguymon/lock_jar/blob/master/README.md#bundler-integration)
|
12
14
|
|
13
15
|
https://github.com/mguymon/lock_jar
|
14
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.5
|
data/lib/lock_jar/cli.rb
CHANGED
data/lib/lock_jar/version.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.7.
|
8
|
+
s.version = "0.7.5"
|
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 = "2013-
|
12
|
+
s.date = "2013-08-23"
|
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"]
|
@@ -19,6 +19,8 @@ Gem::Specification.new do |s|
|
|
19
19
|
]
|
20
20
|
s.files = [
|
21
21
|
".gitignore",
|
22
|
+
".travis.yml",
|
23
|
+
"CHANGELOG.md",
|
22
24
|
"Gemfile",
|
23
25
|
"LICENSE",
|
24
26
|
"README.md",
|
@@ -44,6 +46,7 @@ Gem::Specification.new do |s|
|
|
44
46
|
"lock_jar.gemspec",
|
45
47
|
"spec/Jarfile",
|
46
48
|
"spec/lock_jar/class_loader_spec.rb",
|
49
|
+
"spec/lock_jar/cli_spec.rb",
|
47
50
|
"spec/lock_jar/domain/dsl_helper_spec.rb",
|
48
51
|
"spec/lock_jar/domain/dsl_spec.rb",
|
49
52
|
"spec/lock_jar/maven_spec.rb",
|
@@ -51,7 +54,9 @@ Gem::Specification.new do |s|
|
|
51
54
|
"spec/lock_jar/runtime_spec.rb",
|
52
55
|
"spec/lock_jar_spec.rb",
|
53
56
|
"spec/pom.xml",
|
54
|
-
"spec/spec_helper.rb"
|
57
|
+
"spec/spec_helper.rb",
|
58
|
+
"spec/support/Jarfile",
|
59
|
+
"spec/support/helper.rb"
|
55
60
|
]
|
56
61
|
s.homepage = "http://github.com/mguymon/lock_jar"
|
57
62
|
s.licenses = ["Apache"]
|
@@ -63,29 +68,29 @@ Gem::Specification.new do |s|
|
|
63
68
|
s.specification_version = 3
|
64
69
|
|
65
70
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
66
|
-
s.add_runtime_dependency(%q<naether>, ["~> 0.10.
|
67
|
-
s.add_runtime_dependency(%q<thor>, ["~> 0.
|
68
|
-
s.add_development_dependency(%q<rspec>, ["~> 2.
|
71
|
+
s.add_runtime_dependency(%q<naether>, ["~> 0.10.1"])
|
72
|
+
s.add_runtime_dependency(%q<thor>, ["~> 0.18.1"])
|
73
|
+
s.add_development_dependency(%q<rspec>, ["~> 2.14.1"])
|
74
|
+
s.add_development_dependency(%q<pry>, ["~> 0.9.12.2"])
|
69
75
|
s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
|
70
76
|
s.add_development_dependency(%q<yard>, ["~> 0.8.0"])
|
71
|
-
s.add_development_dependency(%q<solr_sail>, ["~> 0.1.0"])
|
72
77
|
s.add_development_dependency(%q<jruby-openssl>, [">= 0"])
|
73
78
|
else
|
74
|
-
s.add_dependency(%q<naether>, ["~> 0.10.
|
75
|
-
s.add_dependency(%q<thor>, ["~> 0.
|
76
|
-
s.add_dependency(%q<rspec>, ["~> 2.
|
79
|
+
s.add_dependency(%q<naether>, ["~> 0.10.1"])
|
80
|
+
s.add_dependency(%q<thor>, ["~> 0.18.1"])
|
81
|
+
s.add_dependency(%q<rspec>, ["~> 2.14.1"])
|
82
|
+
s.add_dependency(%q<pry>, ["~> 0.9.12.2"])
|
77
83
|
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
78
84
|
s.add_dependency(%q<yard>, ["~> 0.8.0"])
|
79
|
-
s.add_dependency(%q<solr_sail>, ["~> 0.1.0"])
|
80
85
|
s.add_dependency(%q<jruby-openssl>, [">= 0"])
|
81
86
|
end
|
82
87
|
else
|
83
|
-
s.add_dependency(%q<naether>, ["~> 0.10.
|
84
|
-
s.add_dependency(%q<thor>, ["~> 0.
|
85
|
-
s.add_dependency(%q<rspec>, ["~> 2.
|
88
|
+
s.add_dependency(%q<naether>, ["~> 0.10.1"])
|
89
|
+
s.add_dependency(%q<thor>, ["~> 0.18.1"])
|
90
|
+
s.add_dependency(%q<rspec>, ["~> 2.14.1"])
|
91
|
+
s.add_dependency(%q<pry>, ["~> 0.9.12.2"])
|
86
92
|
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
87
93
|
s.add_dependency(%q<yard>, ["~> 0.8.0"])
|
88
|
-
s.add_dependency(%q<solr_sail>, ["~> 0.1.0"])
|
89
94
|
s.add_dependency(%q<jruby-openssl>, [">= 0"])
|
90
95
|
end
|
91
96
|
end
|
@@ -1,5 +1,5 @@
|
|
1
|
-
require
|
2
|
-
require '
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'lock_jar/class_loader'
|
3
3
|
|
4
4
|
|
5
5
|
describe LockJar::ClassLoader, "#isolate" do
|
@@ -9,11 +9,11 @@ describe LockJar::ClassLoader, "#isolate" do
|
|
9
9
|
else
|
10
10
|
it "should create a SimpleEmail" do
|
11
11
|
# Generate the IsolateJarfile.lock
|
12
|
-
LockJar.lock( :lockfile =>
|
12
|
+
LockJar.lock( :lockfile => "#{TEMP_DIR}/IsolateJarfile.lock" ) do
|
13
13
|
jar 'org.apache.commons:commons-email:1.2'
|
14
14
|
end
|
15
15
|
|
16
|
-
email = LockJar::ClassLoader.new(
|
16
|
+
email = LockJar::ClassLoader.new( "#{TEMP_DIR}/IsolateJarfile.lock" ).isolate do
|
17
17
|
email = new_instance( 'org.apache.commons.mail.SimpleEmail' )
|
18
18
|
email.setSubject( 'test subject' )
|
19
19
|
|
@@ -31,14 +31,14 @@ describe LockJar::ClassLoader, "#isolate" do
|
|
31
31
|
|
32
32
|
it "should create a JsonFactory and ObjectMapper" do
|
33
33
|
# Generate the IsolateJarfile.lock
|
34
|
-
LockJar.lock( :lockfile =>
|
34
|
+
LockJar.lock( :lockfile => "#{TEMP_DIR}/IsolateJarfile.lock" ) do
|
35
35
|
jar 'com.fasterxml.jackson.core:jackson-core:2.0.6'
|
36
36
|
jar 'com.fasterxml.jackson.core:jackson-databind:2.0.6'
|
37
37
|
end
|
38
38
|
|
39
39
|
json = '{ "test1": "1test1", "test2": "2test2"}'
|
40
40
|
|
41
|
-
map = LockJar::ClassLoader.new(
|
41
|
+
map = LockJar::ClassLoader.new( "#{TEMP_DIR}/IsolateJarfile.lock" ).isolate do
|
42
42
|
factory = new_instance( 'com.fasterxml.jackson.core.JsonFactory' )
|
43
43
|
mapper = new_instance( 'com.fasterxml.jackson.databind.ObjectMapper', factory)
|
44
44
|
mapper.readValue(json, java.util.Map.java_class)
|
@@ -54,4 +54,4 @@ describe LockJar::ClassLoader, "#isolate" do
|
|
54
54
|
expect { com.fasterxml.jackson.core.JsonFactory.new }.to raise_error
|
55
55
|
end
|
56
56
|
end
|
57
|
-
end
|
57
|
+
end
|
@@ -0,0 +1,103 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe "lockjar" do
|
4
|
+
|
5
|
+
include Spec::Helpers
|
6
|
+
|
7
|
+
before(:all) do
|
8
|
+
install_jarfile <<-J
|
9
|
+
jar "com.google.guava:guava:14.0.1"
|
10
|
+
J
|
11
|
+
end
|
12
|
+
|
13
|
+
after(:all) do
|
14
|
+
FileUtils.rm("Jarfile")
|
15
|
+
FileUtils.rm("Jarfile.lock") rescue nil
|
16
|
+
end
|
17
|
+
|
18
|
+
context "version" do
|
19
|
+
before do
|
20
|
+
@version = File.read(File.join(File.dirname(__FILE__), "..", "..", "VERSION"))
|
21
|
+
end
|
22
|
+
|
23
|
+
it "should return correct version" do
|
24
|
+
lockjar "version"
|
25
|
+
expect(@out).to eq(@version)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
context "lock" do
|
30
|
+
it "should create lock file with default path" do
|
31
|
+
FileUtils.rm("Jarfile.lock") rescue nil
|
32
|
+
lockjar "lock"
|
33
|
+
expect(@out).to match(/^Locking Jarfile to Jarfile.lock.*/)
|
34
|
+
expect(File.exists?("Jarfile.lock")).to be_true
|
35
|
+
end
|
36
|
+
|
37
|
+
it "should create lock file with specific path" do
|
38
|
+
jarfile_path = File.join("spec", "support", "Jarfile")
|
39
|
+
jarfile_lock_path = File.join("spec", "support", "Jarfile.lock")
|
40
|
+
FileUtils.rm(jarfile_lock_path) rescue nil
|
41
|
+
|
42
|
+
lockjar "lock -j #{jarfile_path} -l #{jarfile_lock_path}"
|
43
|
+
expect(@out).to eq("Locking #{jarfile_path} to #{jarfile_lock_path}")
|
44
|
+
expect(File.exists?(jarfile_lock_path)).to be_true
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
context "list" do
|
49
|
+
|
50
|
+
it "should list with default path" do
|
51
|
+
FileUtils.rm("Jarfile.lock") rescue nil
|
52
|
+
lockjar "lock"
|
53
|
+
|
54
|
+
expect_output =<<-EOM.strip
|
55
|
+
Listing Jars from Jarfile.lock for ["default"]
|
56
|
+
["com.google.guava:guava:jar:14.0.1"]
|
57
|
+
EOM
|
58
|
+
|
59
|
+
lockjar "list"
|
60
|
+
expect(@out).to eq(expect_output)
|
61
|
+
end
|
62
|
+
|
63
|
+
it "should list with specific path" do
|
64
|
+
jarfile_path = File.join("spec", "support", "Jarfile")
|
65
|
+
jarfile_lock_path = File.join("spec", "support", "Jarfile.lock")
|
66
|
+
FileUtils.rm(jarfile_lock_path) rescue nil
|
67
|
+
lockjar "lock -j #{jarfile_path} -l #{jarfile_lock_path}"
|
68
|
+
|
69
|
+
expect_expr = Regexp.new(<<-'EOM'.strip)
|
70
|
+
Listing Jars from .*Jarfile.lock for \["default"\]
|
71
|
+
\["com.google.guava:guava:jar:14.0.1"\]
|
72
|
+
EOM
|
73
|
+
|
74
|
+
lockjar "list -l #{jarfile_lock_path}"
|
75
|
+
expect(@out).to match(expect_expr)
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
context "install" do
|
80
|
+
it "should install jar archives with default path" do
|
81
|
+
FileUtils.rm("Jarfile.lock") rescue nil
|
82
|
+
lockjar "lock"
|
83
|
+
|
84
|
+
lockjar "install"
|
85
|
+
expect(@out).to eq("Installing Jars from Jarfile.lock for [\"default\"]")
|
86
|
+
LockJar.load
|
87
|
+
expect(Java::ComGoogleCommonCollect::Multimap).to be_kind_of(Module) if is_jruby?
|
88
|
+
end
|
89
|
+
|
90
|
+
it "should install jar archives with specific path" do
|
91
|
+
jarfile_path = File.join("spec", "support", "Jarfile")
|
92
|
+
jarfile_lock_path = File.join("spec", "support", "Jarfile.lock")
|
93
|
+
FileUtils.rm(jarfile_lock_path) rescue nil
|
94
|
+
lockjar "lock -j #{jarfile_path} -l #{jarfile_lock_path}"
|
95
|
+
|
96
|
+
lockjar "install -l #{jarfile_lock_path}"
|
97
|
+
expect(@out).to eq("Installing Jars from #{jarfile_lock_path} for [\"default\"]")
|
98
|
+
LockJar.load(jarfile_lock_path)
|
99
|
+
expect(Java::ComGoogleCommonCollect::Multimap).to be_kind_of(Module) if is_jruby?
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require 'spec_helper'
|
2
2
|
|
3
3
|
require 'lock_jar/domain/dsl_helper'
|
4
4
|
|
@@ -49,4 +49,4 @@ describe LockJar::Domain::DslHelper do
|
|
49
49
|
dsl.remote_repositories.should eql( ["http://repository.jboss.org/nexus/content/groups/public-jboss", 'http://new-repo'] )
|
50
50
|
|
51
51
|
end
|
52
|
-
end
|
52
|
+
end
|
@@ -1,5 +1,6 @@
|
|
1
|
-
require
|
1
|
+
require 'spec_helper'
|
2
2
|
require 'lock_jar/domain/artifact'
|
3
|
+
|
3
4
|
describe LockJar::Domain::Dsl do
|
4
5
|
context "Instance" do
|
5
6
|
it "should load a Jarfile" do
|
@@ -51,4 +52,4 @@ describe LockJar::Domain::Dsl do
|
|
51
52
|
end
|
52
53
|
|
53
54
|
end
|
54
|
-
end
|
55
|
+
end
|
data/spec/lock_jar/maven_spec.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
require
|
2
|
-
require '
|
3
|
-
require '
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'lock_jar'
|
3
|
+
require 'lock_jar/maven'
|
4
4
|
require 'naether'
|
5
5
|
|
6
6
|
describe LockJar::Maven do
|
@@ -15,9 +15,9 @@ describe LockJar::Maven do
|
|
15
15
|
end
|
16
16
|
|
17
17
|
it "should install artifact" do
|
18
|
-
LockJar::Maven.install( "maven_spec:install:7", "spec/pom.xml", nil, :local_repo =>
|
18
|
+
LockJar::Maven.install( "maven_spec:install:7", "spec/pom.xml", nil, :local_repo => "#{TEMP_DIR}/test-repo" )
|
19
19
|
|
20
|
-
File.exists?(
|
20
|
+
File.exists?( "#{TEMP_DIR}/test-repo/maven_spec/install/7/install-7.pom" ).should be_true
|
21
21
|
end
|
22
22
|
end
|
23
|
-
end
|
23
|
+
end
|
@@ -1,26 +1,26 @@
|
|
1
|
-
require
|
2
|
-
require '
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'lock_jar/resolver'
|
3
3
|
require 'fileutils'
|
4
4
|
require 'naether'
|
5
5
|
|
6
6
|
describe LockJar::Resolver do
|
7
7
|
context "Instance" do
|
8
8
|
before(:each) do
|
9
|
-
FileUtils.mkdir_p(
|
10
|
-
@resolver = LockJar::Resolver.new( :local_repo =>
|
9
|
+
FileUtils.mkdir_p( "#{TEMP_DIR}/test-repo" )
|
10
|
+
@resolver = LockJar::Resolver.new( :local_repo => "#{TEMP_DIR}/test-repo" )
|
11
11
|
end
|
12
12
|
|
13
13
|
it "should bootstrap naether" do
|
14
|
-
deps = Naether::Bootstrap.check_local_repo_for_deps(
|
14
|
+
deps = Naether::Bootstrap.check_local_repo_for_deps( "#{TEMP_DIR}/test-repo" )
|
15
15
|
deps[:missing].should eql([])
|
16
16
|
deps[:exists].each do |dep|
|
17
|
-
dep.values[0].should match
|
17
|
+
dep.values[0].should match /#{TEMP_DIR}#{File::SEPARATOR}test-repo#{File::SEPARATOR}.+/
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
21
21
|
it "should return local paths for notations" do
|
22
22
|
@resolver.to_local_paths( ["junit:junit:jar:4.10"] ).should
|
23
|
-
|
23
|
+
eql( [File.expand_path("#{TEMP_DIR}/test-repo/junit/junit/4.10/junit-4.10.jar")] )
|
24
24
|
end
|
25
25
|
end
|
26
|
-
end
|
26
|
+
end
|
@@ -1,27 +1,26 @@
|
|
1
|
-
require
|
2
|
-
require '
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'lock_jar/runtime'
|
3
3
|
|
4
4
|
describe LockJar::Runtime do
|
5
5
|
context "Singleton" do
|
6
6
|
it "should set local repo" do
|
7
|
-
LockJar::Runtime.instance.load( nil, [], :resolve => true, :local_repo =>
|
7
|
+
LockJar::Runtime.instance.load( nil, [], :resolve => true, :local_repo => TEST_REPO ) do
|
8
8
|
jar 'junit:junit:4.10'
|
9
9
|
end
|
10
10
|
|
11
|
-
LockJar::Runtime.instance.current_resolver.naether.local_repo_path.should eql
|
11
|
+
LockJar::Runtime.instance.current_resolver.naether.local_repo_path.should eql TEST_REPO
|
12
12
|
|
13
|
-
LockJar::Runtime.instance.load( nil, [], :local_repo =>
|
14
|
-
|
13
|
+
LockJar::Runtime.instance.load( nil, [], :local_repo => PARAM_CONFIG ) do
|
14
|
+
local_repo 'dsl_config'
|
15
15
|
end
|
16
16
|
|
17
|
-
LockJar::Runtime.instance.current_resolver.naether.local_repo_path.should eql
|
17
|
+
LockJar::Runtime.instance.current_resolver.naether.local_repo_path.should eql PARAM_CONFIG
|
18
18
|
|
19
|
-
LockJar::Runtime.instance.load( nil ) do
|
20
|
-
|
19
|
+
LockJar::Runtime.instance.load( nil ) do
|
20
|
+
local_repo DSL_CONFIG
|
21
21
|
end
|
22
22
|
|
23
|
-
LockJar::Runtime.instance.current_resolver.naether.local_repo_path.should eql
|
24
|
-
|
23
|
+
LockJar::Runtime.instance.current_resolver.naether.local_repo_path.should eql DSL_CONFIG
|
25
24
|
end
|
26
25
|
end
|
27
|
-
end
|
26
|
+
end
|
data/spec/lock_jar_spec.rb
CHANGED
@@ -6,16 +6,16 @@ require 'naether'
|
|
6
6
|
|
7
7
|
describe LockJar, "#lock" do
|
8
8
|
it "should create a lock file" do
|
9
|
-
if File.exists?(
|
10
|
-
File.delete(
|
9
|
+
if File.exists?( TEMP_DIR )
|
10
|
+
File.delete( "#{TEMP_DIR}/Jarfile.lock" ) if File.exists?( "#{TEMP_DIR}/Jarfile.lock" )
|
11
11
|
else
|
12
|
-
Dir.mkdir(
|
12
|
+
Dir.mkdir( TEMP_DIR )
|
13
13
|
end
|
14
14
|
|
15
|
-
LockJar.lock( "spec/Jarfile", :local_repo =>
|
16
|
-
File.exists?(
|
15
|
+
LockJar.lock( "spec/Jarfile", :local_repo => "#{TEMP_DIR}/test-repo", :lockfile => "#{TEMP_DIR}/Jarfile.lock" )
|
16
|
+
File.exists?( "#{TEMP_DIR}/Jarfile.lock" ).should be_true
|
17
17
|
|
18
|
-
lockfile = LockJar.read(
|
18
|
+
lockfile = LockJar.read("#{TEMP_DIR}/Jarfile.lock")
|
19
19
|
lockfile.to_hash.should eql({
|
20
20
|
"version"=> LockJar::VERSION,
|
21
21
|
"local_repository"=>"~/.m2/repository",
|
@@ -72,15 +72,15 @@ describe LockJar, "#lock" do
|
|
72
72
|
|
73
73
|
it "should replace dependencies with map" do
|
74
74
|
dsl = LockJar::Domain::Dsl.create do
|
75
|
-
map 'junit:junit:4.10',
|
75
|
+
map 'junit:junit:4.10', "#{TEMP_DIR}"
|
76
76
|
jar 'junit:junit:4.10'
|
77
77
|
end
|
78
78
|
|
79
|
-
LockJar.lock( dsl, :local_repo =>
|
80
|
-
lockfile = LockJar.read(
|
79
|
+
LockJar.lock( dsl, :local_repo => "#{TEMP_DIR}/test-repo", :lockfile => "#{TEMP_DIR}/Jarfile.lock" )
|
80
|
+
lockfile = LockJar.read("#{TEMP_DIR}/Jarfile.lock")
|
81
81
|
lockfile.to_hash.should eql({
|
82
82
|
"version"=> LockJar::VERSION,
|
83
|
-
"maps"=>{"junit:junit:4.10"=>["
|
83
|
+
"maps"=>{"junit:junit:4.10"=>["#{TEMP_DIR}"]},
|
84
84
|
"groups"=>{
|
85
85
|
"default"=>{
|
86
86
|
"dependencies"=>["junit:junit:jar:4.10", "org.hamcrest:hamcrest-core:jar:1.1"],
|
@@ -100,9 +100,9 @@ describe LockJar, "#lock" do
|
|
100
100
|
jar 'opensymphony:oscache:jar:2.4.1'
|
101
101
|
end
|
102
102
|
|
103
|
-
LockJar.lock( dsl, :local_repo =>
|
104
|
-
File.exists?(
|
105
|
-
lockfile = LockJar.read(
|
103
|
+
LockJar.lock( dsl, :local_repo => "#{TEMP_DIR}/test-repo", :lockfile => "#{TEMP_DIR}/Jarfile.lock" )
|
104
|
+
File.exists?( "#{TEMP_DIR}/Jarfile.lock" ).should be_true
|
105
|
+
lockfile = LockJar.read("#{TEMP_DIR}/Jarfile.lock")
|
106
106
|
lockfile.to_hash.should eql({
|
107
107
|
"version"=> LockJar::VERSION,
|
108
108
|
"excludes"=>["commons-logging", "logkit"],
|
@@ -134,13 +134,13 @@ describe LockJar, "#lock" do
|
|
134
134
|
|
135
135
|
|
136
136
|
it "should lock using a block" do
|
137
|
-
LockJar.lock( :local_repo =>
|
137
|
+
LockJar.lock( :local_repo => "#{TEMP_DIR}/test-repo", :lockfile => "#{TEMP_DIR}/NoRepoJarfile.lock" ) do
|
138
138
|
jar "org.eclipse.jetty:jetty-servlet:8.1.3.v20120416"
|
139
139
|
end
|
140
140
|
|
141
|
-
File.exists?(
|
141
|
+
File.exists?( "#{TEMP_DIR}/NoRepoJarfile.lock" ).should be_true
|
142
142
|
|
143
|
-
lockfile = LockJar.read(
|
143
|
+
lockfile = LockJar.read("#{TEMP_DIR}/NoRepoJarfile.lock")
|
144
144
|
lockfile.to_hash.should eql({
|
145
145
|
"version"=> LockJar::VERSION,
|
146
146
|
"groups"=>{
|
@@ -179,21 +179,20 @@ end
|
|
179
179
|
describe LockJar, "#install" do
|
180
180
|
it "should install jars" do
|
181
181
|
|
182
|
-
LockJar.lock( "spec/Jarfile", :download_artifacts => false, :local_repo =>
|
182
|
+
LockJar.lock( "spec/Jarfile", :download_artifacts => false, :local_repo => "#{TEMP_DIR}/test-repo-install", :lockfile => "#{TEMP_DIR}/Jarfile.lock" )
|
183
183
|
|
184
|
-
jars = LockJar.install(
|
184
|
+
jars = LockJar.install( "#{TEMP_DIR}/Jarfile.lock", ['default'], :local_repo => "#{TEMP_DIR}/test-repo-install" )
|
185
185
|
jars.should eql([
|
186
|
-
File.expand_path("
|
187
|
-
File.expand_path("
|
188
|
-
File.expand_path("
|
189
|
-
File.expand_path("
|
190
|
-
File.expand_path("
|
191
|
-
File.expand_path("
|
192
|
-
File.expand_path("
|
193
|
-
File.expand_path("
|
194
|
-
File.expand_path("
|
195
|
-
File.expand_path("
|
196
|
-
|
186
|
+
File.expand_path("#{TEMP_DIR}/test-repo-install/ch/qos/logback/logback-classic/0.9.24/logback-classic-0.9.24.jar"),
|
187
|
+
File.expand_path("#{TEMP_DIR}/test-repo-install/ch/qos/logback/logback-core/0.9.24/logback-core-0.9.24.jar"),
|
188
|
+
File.expand_path("#{TEMP_DIR}/test-repo-install/com/metapossum/metapossum-scanner/1.0/metapossum-scanner-1.0.jar"),
|
189
|
+
File.expand_path("#{TEMP_DIR}/test-repo-install/com/slackworks/modelcitizen/0.2.2/modelcitizen-0.2.2.jar"),
|
190
|
+
File.expand_path("#{TEMP_DIR}/test-repo-install/commons-beanutils/commons-beanutils/1.8.3/commons-beanutils-1.8.3.jar"),
|
191
|
+
File.expand_path("#{TEMP_DIR}/test-repo-install/commons-io/commons-io/1.4/commons-io-1.4.jar"),
|
192
|
+
File.expand_path("#{TEMP_DIR}/test-repo-install/commons-lang/commons-lang/2.6/commons-lang-2.6.jar"),
|
193
|
+
File.expand_path("#{TEMP_DIR}/test-repo-install/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar"),
|
194
|
+
File.expand_path("#{TEMP_DIR}/test-repo-install/org/apache/mina/mina-core/2.0.4/mina-core-2.0.4.jar"),
|
195
|
+
File.expand_path("#{TEMP_DIR}/test-repo-install/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar")
|
197
196
|
])
|
198
197
|
end
|
199
198
|
|
@@ -202,9 +201,9 @@ end
|
|
202
201
|
describe LockJar, "#list" do
|
203
202
|
it "should list jars" do
|
204
203
|
|
205
|
-
LockJar.lock( "spec/Jarfile", :local_repo =>
|
204
|
+
LockJar.lock( "spec/Jarfile", :local_repo => "#{TEMP_DIR}/test-repo", :lockfile => "#{TEMP_DIR}/Jarfile.lock" )
|
206
205
|
|
207
|
-
jars = LockJar.list(
|
206
|
+
jars = LockJar.list( "#{TEMP_DIR}/Jarfile.lock", ['default', 'development', 'bad scope'], :local_repo => "#{TEMP_DIR}/test-repo" )
|
208
207
|
jars.should eql([
|
209
208
|
"ch.qos.logback:logback-classic:jar:0.9.24", "ch.qos.logback:logback-core:jar:0.9.24",
|
210
209
|
"com.metapossum:metapossum-scanner:jar:1.0", "com.slackworks:modelcitizen:jar:0.2.2",
|
@@ -216,55 +215,55 @@ describe LockJar, "#list" do
|
|
216
215
|
|
217
216
|
it "should replace dependencies with maps" do
|
218
217
|
dsl = LockJar::Domain::Dsl.create do
|
219
|
-
map 'junit:junit',
|
218
|
+
map 'junit:junit', "#{TEMP_DIR}"
|
220
219
|
jar 'junit:junit:4.10'
|
221
220
|
end
|
222
221
|
|
223
|
-
LockJar.lock( dsl, :local_repo =>
|
224
|
-
paths = LockJar.list(
|
225
|
-
paths.should eql( [ "
|
222
|
+
LockJar.lock( dsl, :local_repo => "#{TEMP_DIR}/test-repo", :lockfile => "#{TEMP_DIR}/ListJarfile.lock")
|
223
|
+
paths = LockJar.list( "#{TEMP_DIR}/ListJarfile.lock", :local_repo => "#{TEMP_DIR}/test-repo" )
|
224
|
+
paths.should eql( [ "#{TEMP_DIR}", "org.hamcrest:hamcrest-core:jar:1.1"] )
|
226
225
|
end
|
227
226
|
|
228
227
|
it "should replace dependencies with maps and get local paths" do
|
229
228
|
dsl = LockJar::Domain::Dsl.create do
|
230
|
-
map 'junit:junit',
|
229
|
+
map 'junit:junit', "#{TEMP_DIR}"
|
231
230
|
jar 'junit:junit:4.10'
|
232
231
|
end
|
233
232
|
|
234
|
-
LockJar.lock( dsl, :local_repo =>
|
235
|
-
paths = LockJar.list(
|
236
|
-
paths.should eql( [ "
|
233
|
+
LockJar.lock( dsl, :local_repo => "#{TEMP_DIR}/test-repo", :lockfile => "#{TEMP_DIR}/ListJarfile.lock" )
|
234
|
+
paths = LockJar.list( "#{TEMP_DIR}/ListJarfile.lock", :local_repo => "#{TEMP_DIR}/test-repo" )
|
235
|
+
paths.should eql( [ "#{TEMP_DIR}", "org.hamcrest:hamcrest-core:jar:1.1"] )
|
237
236
|
end
|
238
237
|
end
|
239
238
|
|
240
239
|
describe LockJar, "#load" do
|
241
240
|
it "by Jarfile.lock" do
|
242
241
|
if Naether.platform == 'java'
|
243
|
-
lambda {
|
242
|
+
lambda { java_import 'org.apache.mina.core.IoUtil' }.should raise_error
|
244
243
|
else
|
245
244
|
lambda { Rjb::import('org.apache.mina.core.IoUtil') }.should raise_error
|
246
245
|
end
|
247
246
|
|
248
247
|
|
249
|
-
LockJar.lock( "spec/Jarfile", :local_repo =>
|
248
|
+
LockJar.lock( "spec/Jarfile", :local_repo => "#{TEMP_DIR}/test-repo", :lockfile => "#{TEMP_DIR}/Jarfile.lock" )
|
250
249
|
|
251
|
-
jars = LockJar.load(
|
252
|
-
LockJar::Registry.instance.lockfile_registered?( "
|
250
|
+
jars = LockJar.load( "#{TEMP_DIR}/Jarfile.lock", ['default'], :local_repo => "#{TEMP_DIR}/test-repo" )
|
251
|
+
LockJar::Registry.instance.lockfile_registered?( "#{TEMP_DIR}/Jarfile.lock" ).should be_false
|
253
252
|
|
254
253
|
jars.should eql([
|
255
|
-
File.expand_path("
|
256
|
-
File.expand_path("
|
257
|
-
File.expand_path("
|
258
|
-
File.expand_path("
|
259
|
-
File.expand_path("
|
260
|
-
File.expand_path("
|
261
|
-
File.expand_path("
|
262
|
-
File.expand_path("
|
263
|
-
File.expand_path("
|
264
|
-
File.expand_path("
|
254
|
+
File.expand_path("#{TEMP_DIR}/test-repo/ch/qos/logback/logback-classic/0.9.24/logback-classic-0.9.24.jar"),
|
255
|
+
File.expand_path("#{TEMP_DIR}/test-repo/ch/qos/logback/logback-core/0.9.24/logback-core-0.9.24.jar"),
|
256
|
+
File.expand_path("#{TEMP_DIR}/test-repo/com/metapossum/metapossum-scanner/1.0/metapossum-scanner-1.0.jar"),
|
257
|
+
File.expand_path("#{TEMP_DIR}/test-repo/com/slackworks/modelcitizen/0.2.2/modelcitizen-0.2.2.jar"),
|
258
|
+
File.expand_path("#{TEMP_DIR}/test-repo/commons-beanutils/commons-beanutils/1.8.3/commons-beanutils-1.8.3.jar"),
|
259
|
+
File.expand_path("#{TEMP_DIR}/test-repo/commons-io/commons-io/1.4/commons-io-1.4.jar"),
|
260
|
+
File.expand_path("#{TEMP_DIR}/test-repo/commons-lang/commons-lang/2.6/commons-lang-2.6.jar"),
|
261
|
+
File.expand_path("#{TEMP_DIR}/test-repo/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar"),
|
262
|
+
File.expand_path("#{TEMP_DIR}/test-repo/org/apache/mina/mina-core/2.0.4/mina-core-2.0.4.jar"),
|
263
|
+
File.expand_path("#{TEMP_DIR}/test-repo/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar"),
|
265
264
|
])
|
266
265
|
if Naether.platform == 'java'
|
267
|
-
lambda {
|
266
|
+
lambda { java_import 'org.apache.mina.core.IoUtil' }.should_not raise_error
|
268
267
|
else
|
269
268
|
lambda { Rjb::import('org.apache.mina.core.IoUtil') }.should_not raise_error
|
270
269
|
end
|
@@ -274,19 +273,19 @@ describe LockJar, "#load" do
|
|
274
273
|
|
275
274
|
it "by block with resolve option" do
|
276
275
|
if Naether.platform == 'java'
|
277
|
-
lambda {
|
276
|
+
lambda { java_import 'org.modeshape.common.math.Duration' }.should raise_error
|
278
277
|
else
|
279
278
|
lambda { Rjb::import('org.modeshape.common.math.Duration') }.should raise_error
|
280
279
|
end
|
281
280
|
|
282
|
-
jars = LockJar.load( :resolve => true
|
283
|
-
jar 'org.modeshape:modeshape-common:
|
281
|
+
jars = LockJar.load(:local_repo => TEST_REPO, :resolve => true) do
|
282
|
+
jar 'org.modeshape:modeshape-common:3.4.0.Final'
|
284
283
|
end
|
285
|
-
|
286
|
-
jars.should eql( ["/
|
284
|
+
|
285
|
+
jars.should eql( [File.expand_path(TEST_REPO + "/org/modeshape/modeshape-common/3.4.0.Final/modeshape-common-3.4.0.Final.jar")] )
|
287
286
|
|
288
287
|
if Naether.platform == 'java'
|
289
|
-
lambda {
|
288
|
+
lambda { java_import 'org.modeshape.common.math.Duration' }.should_not raise_error
|
290
289
|
else
|
291
290
|
lambda { Rjb::import('org.modeshape.common.math.Duration') }.should_not raise_error
|
292
291
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -4,8 +4,11 @@ $:.unshift File.expand_path(File.join('..', File.dirname(__FILE__), 'lib'))
|
|
4
4
|
|
5
5
|
require 'rubygems'
|
6
6
|
require 'rspec'
|
7
|
-
require '
|
7
|
+
require 'lock_jar'
|
8
|
+
require 'lock_jar/cli'
|
8
9
|
require 'stringio'
|
10
|
+
require 'fileutils'
|
11
|
+
require 'support/helper'
|
9
12
|
|
10
13
|
def mock_terminal
|
11
14
|
@input = StringIO.new
|
@@ -13,9 +16,23 @@ def mock_terminal
|
|
13
16
|
$terminal = HighLine.new @input, @output
|
14
17
|
end
|
15
18
|
|
19
|
+
TEMP_DIR = File.expand_path(File.join(File.dirname(__FILE__), "..", ".spec-tmp"))
|
20
|
+
TEST_REPO = File.expand_path(File.join(TEMP_DIR, "test-repo"))
|
21
|
+
PARAM_CONFIG = File.expand_path(File.join(TEMP_DIR, "param_config"))
|
22
|
+
DSL_CONFIG = File.expand_path(File.join(TEMP_DIR, "dsl_config"))
|
23
|
+
|
16
24
|
RSpec.configure do |config|
|
17
25
|
config.order = 'default'
|
18
26
|
config.treat_symbols_as_metadata_keys_with_true_values = true
|
19
27
|
config.run_all_when_everything_filtered = true
|
20
28
|
config.filter_run :focus
|
21
|
-
|
29
|
+
|
30
|
+
config.before(:suite) do
|
31
|
+
FileUtils.mkdir_p(DSL_CONFIG)
|
32
|
+
end
|
33
|
+
|
34
|
+
config.after(:suite) do
|
35
|
+
FileUtils.rm_rf(PARAM_CONFIG)
|
36
|
+
FileUtils.rm_rf(DSL_CONFIG)
|
37
|
+
end
|
38
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
jar "com.google.guava:guava:14.0.1"
|
@@ -0,0 +1,44 @@
|
|
1
|
+
require 'open3'
|
2
|
+
require 'pathname'
|
3
|
+
|
4
|
+
module Spec
|
5
|
+
module Helpers
|
6
|
+
def lockjar(cmd, options = {})
|
7
|
+
lockjar_bin = File.expand_path('../../../bin/lockjar', __FILE__)
|
8
|
+
cmd = "ruby -I#{lib} #{lockjar_bin} #{cmd}"
|
9
|
+
|
10
|
+
sys_exec(cmd)
|
11
|
+
end
|
12
|
+
|
13
|
+
def lib
|
14
|
+
File.expand_path('../../../lib', __FILE__)
|
15
|
+
end
|
16
|
+
|
17
|
+
def sys_exec(cmd, expect_err = false)
|
18
|
+
Open3.popen3(cmd.to_s) do |stdin, stdout, stderr|
|
19
|
+
@in_p, @out_p, @err_p = stdin, stdout, stderr
|
20
|
+
|
21
|
+
yield @in_p if block_given?
|
22
|
+
@in_p.close
|
23
|
+
|
24
|
+
@out = @out_p.read.strip
|
25
|
+
@err = @err_p.read.strip
|
26
|
+
end
|
27
|
+
|
28
|
+
puts @err unless expect_err || @err.empty? || !$show_err
|
29
|
+
@out
|
30
|
+
end
|
31
|
+
|
32
|
+
def install_jarfile(*args)
|
33
|
+
root_path ||= Pathname.new(File.expand_path("../../..", __FILE__))
|
34
|
+
jarfile_path = root_path.join("Jarfile")
|
35
|
+
File.open(jarfile_path.to_s, 'w') do |f|
|
36
|
+
f.puts args.last
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
def is_jruby?
|
41
|
+
defined?(RUBY_ENGINE) && (RUBY_ENGINE == "jruby")
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
metadata
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
name: lock_jar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.7.
|
5
|
+
version: 0.7.5
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Michael Guymon
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-08-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: naether
|
@@ -17,13 +17,13 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 0.10.
|
20
|
+
version: 0.10.1
|
21
21
|
none: false
|
22
22
|
requirement: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.10.
|
26
|
+
version: 0.10.1
|
27
27
|
none: false
|
28
28
|
prerelease: false
|
29
29
|
type: :runtime
|
@@ -33,13 +33,13 @@ dependencies:
|
|
33
33
|
requirements:
|
34
34
|
- - "~>"
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version: 0.
|
36
|
+
version: 0.18.1
|
37
37
|
none: false
|
38
38
|
requirement: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
40
|
- - "~>"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 0.
|
42
|
+
version: 0.18.1
|
43
43
|
none: false
|
44
44
|
prerelease: false
|
45
45
|
type: :runtime
|
@@ -49,61 +49,61 @@ dependencies:
|
|
49
49
|
requirements:
|
50
50
|
- - "~>"
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version: 2.
|
52
|
+
version: 2.14.1
|
53
53
|
none: false
|
54
54
|
requirement: !ruby/object:Gem::Requirement
|
55
55
|
requirements:
|
56
56
|
- - "~>"
|
57
57
|
- !ruby/object:Gem::Version
|
58
|
-
version: 2.
|
58
|
+
version: 2.14.1
|
59
59
|
none: false
|
60
60
|
prerelease: false
|
61
61
|
type: :development
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
|
-
name:
|
63
|
+
name: pry
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 0.9.12.2
|
69
69
|
none: false
|
70
70
|
requirement: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version:
|
74
|
+
version: 0.9.12.2
|
75
75
|
none: false
|
76
76
|
prerelease: false
|
77
77
|
type: :development
|
78
78
|
- !ruby/object:Gem::Dependency
|
79
|
-
name:
|
79
|
+
name: jeweler
|
80
80
|
version_requirements: !ruby/object:Gem::Requirement
|
81
81
|
requirements:
|
82
82
|
- - "~>"
|
83
83
|
- !ruby/object:Gem::Version
|
84
|
-
version:
|
84
|
+
version: 1.8.4
|
85
85
|
none: false
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
88
|
- - "~>"
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version:
|
90
|
+
version: 1.8.4
|
91
91
|
none: false
|
92
92
|
prerelease: false
|
93
93
|
type: :development
|
94
94
|
- !ruby/object:Gem::Dependency
|
95
|
-
name:
|
95
|
+
name: yard
|
96
96
|
version_requirements: !ruby/object:Gem::Requirement
|
97
97
|
requirements:
|
98
98
|
- - "~>"
|
99
99
|
- !ruby/object:Gem::Version
|
100
|
-
version: 0.
|
100
|
+
version: 0.8.0
|
101
101
|
none: false
|
102
102
|
requirement: !ruby/object:Gem::Requirement
|
103
103
|
requirements:
|
104
104
|
- - "~>"
|
105
105
|
- !ruby/object:Gem::Version
|
106
|
-
version: 0.
|
106
|
+
version: 0.8.0
|
107
107
|
none: false
|
108
108
|
prerelease: false
|
109
109
|
type: :development
|
@@ -138,6 +138,8 @@ extra_rdoc_files:
|
|
138
138
|
- README.md
|
139
139
|
files:
|
140
140
|
- ".gitignore"
|
141
|
+
- ".travis.yml"
|
142
|
+
- CHANGELOG.md
|
141
143
|
- Gemfile
|
142
144
|
- LICENSE
|
143
145
|
- README.md
|
@@ -163,6 +165,7 @@ files:
|
|
163
165
|
- lock_jar.gemspec
|
164
166
|
- spec/Jarfile
|
165
167
|
- spec/lock_jar/class_loader_spec.rb
|
168
|
+
- spec/lock_jar/cli_spec.rb
|
166
169
|
- spec/lock_jar/domain/dsl_helper_spec.rb
|
167
170
|
- spec/lock_jar/domain/dsl_spec.rb
|
168
171
|
- spec/lock_jar/maven_spec.rb
|
@@ -171,6 +174,8 @@ files:
|
|
171
174
|
- spec/lock_jar_spec.rb
|
172
175
|
- spec/pom.xml
|
173
176
|
- spec/spec_helper.rb
|
177
|
+
- spec/support/Jarfile
|
178
|
+
- spec/support/helper.rb
|
174
179
|
homepage: http://github.com/mguymon/lock_jar
|
175
180
|
licenses:
|
176
181
|
- Apache
|
@@ -182,11 +187,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
182
187
|
requirements:
|
183
188
|
- - ">="
|
184
189
|
- !ruby/object:Gem::Version
|
185
|
-
version: !binary |-
|
186
|
-
MA==
|
187
190
|
segments:
|
188
191
|
- 0
|
189
192
|
hash: 2
|
193
|
+
version: !binary |-
|
194
|
+
MA==
|
190
195
|
none: false
|
191
196
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
192
197
|
requirements:
|