lock_jar 0.10.5 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
data/spec/spec_helper.rb CHANGED
@@ -8,8 +8,12 @@ require 'lock_jar'
8
8
  require 'lock_jar/cli'
9
9
  require 'stringio'
10
10
  require 'fileutils'
11
- require 'support/helper'
12
11
  require 'lock_jar/logging'
12
+ require 'pry'
13
+
14
+ # Requires supporting ruby files with custom matchers and macros, etc,
15
+ # in spec/support/ and its subdirectories.
16
+ Dir[File.expand_path('.') + '/spec/support/**/*.rb'].each { |f| require f }
13
17
 
14
18
  LockJar::Logging.verbose!
15
19
 
@@ -0,0 +1,47 @@
1
+ require 'spec_helper'
2
+
3
+ shared_examples "a lockfile" do
4
+ let(:lockfile_hash) { lockfile.to_h }
5
+
6
+ it 'should have a version' do
7
+ lockfile_hash['version'].should eql LockJar::VERSION
8
+ end
9
+
10
+ it 'should have a excludes' do
11
+ if respond_to? :expected_excludes
12
+ lockfile_hash['excludes'].should eql expected_excludes
13
+ end
14
+ end
15
+
16
+ it 'should have a local repository' do
17
+ if respond_to? :expected_local_repository
18
+ lockfile_hash['local_repository'].should eql expected_local_repository
19
+ end
20
+ end
21
+
22
+ it 'should have a maps' do
23
+ if respond_to? :expected_map
24
+ lockfile_hash['maps'].should eql expected_map
25
+ end
26
+ end
27
+
28
+ it 'should have remote repositories' do
29
+ lockfile_hash["remote_repositories"].should eql expected_remote_repositories
30
+ end
31
+
32
+ context 'for groups' do
33
+ let(:groups) { lockfile_hash['groups'] }
34
+
35
+ it 'should have default' do
36
+ groups['default'].should eql expected_groups['default']
37
+ end
38
+
39
+ it 'should match development' do
40
+ groups['development'].should eql expected_groups['development']
41
+ end
42
+
43
+ it 'should match test' do
44
+ groups['test'].should eql expected_groups['test']
45
+ end
46
+ end
47
+ end
metadata CHANGED
@@ -1,46 +1,44 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lock_jar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.5
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Guymon
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2014-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: naether
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
- - - "~>"
16
+ - - ~>
18
17
  - !ruby/object:Gem::Version
19
18
  version: 0.14.0
20
- type: :runtime
19
+ name: naether
21
20
  prerelease: false
21
+ type: :runtime
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.14.0
27
27
  - !ruby/object:Gem::Dependency
28
- name: thor
29
28
  requirement: !ruby/object:Gem::Requirement
30
29
  requirements:
31
- - - ">="
30
+ - - '>='
32
31
  - !ruby/object:Gem::Version
33
32
  version: 0.18.1
34
- type: :runtime
33
+ name: thor
35
34
  prerelease: false
35
+ type: :runtime
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: 0.18.1
41
- description: Manage Jar files for Ruby. In the spirit of Bundler, a Jarfile is used
42
- to generate a Jarfile.lock that contains all the resolved jar dependencies for scopes
43
- runtime, compile, and test. The Jarfile.lock can be used to populate the classpath
41
+ description: Manage Jar files for Ruby. In the spirit of Bundler, a Jarfile is used to generate a Jarfile.lock that contains all the resolved jar dependencies for scopes runtime, compile, and test. The Jarfile.lock can be used to populate the classpath
44
42
  email: michael@tobedevoured.com
45
43
  executables:
46
44
  - lockjar
@@ -49,10 +47,11 @@ extra_rdoc_files:
49
47
  - LICENSE
50
48
  - README.md
51
49
  files:
52
- - ".gitignore"
53
- - ".travis.yml"
50
+ - .gitignore
51
+ - .travis.yml
54
52
  - CHANGELOG.md
55
53
  - Gemfile
54
+ - Gemfile.lock
56
55
  - Guardfile
57
56
  - LICENSE
58
57
  - README.md
@@ -105,28 +104,29 @@ files:
105
104
  - spec/spec_helper.rb
106
105
  - spec/support/Jarfile
107
106
  - spec/support/helper.rb
107
+ - spec/support/shared_examples/lockfile.rb
108
108
  homepage: http://github.com/mguymon/lock_jar
109
109
  licenses:
110
110
  - Apache
111
111
  metadata: {}
112
- post_install_message:
112
+ post_install_message:
113
113
  rdoc_options: []
114
114
  require_paths:
115
115
  - lib
116
116
  required_ruby_version: !ruby/object:Gem::Requirement
117
117
  requirements:
118
- - - ">="
118
+ - - '>='
119
119
  - !ruby/object:Gem::Version
120
120
  version: '0'
121
121
  required_rubygems_version: !ruby/object:Gem::Requirement
122
122
  requirements:
123
- - - ">="
123
+ - - '>='
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
126
  requirements: []
127
- rubyforge_project:
128
- rubygems_version: 2.2.2
129
- signing_key:
127
+ rubyforge_project:
128
+ rubygems_version: 2.1.9
129
+ signing_key:
130
130
  specification_version: 4
131
131
  summary: Manage Jar files for Ruby
132
132
  test_files:
@@ -145,4 +145,5 @@ test_files:
145
145
  - spec/spec_helper.rb
146
146
  - spec/support/Jarfile
147
147
  - spec/support/helper.rb
148
- has_rdoc:
148
+ - spec/support/shared_examples/lockfile.rb
149
+ has_rdoc: