papers 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +12 -0
- data/README.md +1 -1
- data/lib/papers/version.rb +10 -4
- data/spec/papers_spec.rb +4 -4
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfd7610ff7eff6eb48c83d3f902c4f7c4ef4d214
|
4
|
+
data.tar.gz: 45cb1a15b0fba628c1eb364aae04334a9dfd0d65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06ba1ff51f47f3ca4f0d83de73e603b4bb81b8a1221a3dd7bb7df879960a345cb36dd390d78db3c4d7d9f3b1dbca526491f5e3a89fe3678aaeb61b6145b6721c
|
7
|
+
data.tar.gz: d3b580aadb4eade7e5bb0b054d119e5c31589d6e58bcbd0b55bd70a8a0475b36e567668d251f5684fffb23cd09439fb993fd66f6ac2bcb81590abf816742bbd9
|
data/.travis.yml
ADDED
data/README.md
CHANGED
data/lib/papers/version.rb
CHANGED
@@ -1,8 +1,14 @@
|
|
1
1
|
module Papers
|
2
|
-
|
3
|
-
|
4
|
-
|
2
|
+
class Version
|
3
|
+
MAJOR = 1
|
4
|
+
MINOR = 3
|
5
|
+
PATCH = 0
|
5
6
|
|
6
|
-
|
7
|
+
def self.to_s
|
8
|
+
[MAJOR, MINOR, PATCH].join('.')
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
VERSION = Version.to_s
|
7
13
|
end
|
8
14
|
|
data/spec/papers_spec.rb
CHANGED
@@ -13,7 +13,7 @@ describe 'Papers' do
|
|
13
13
|
})
|
14
14
|
Papers::Gem.stub(:introspected).and_return([])
|
15
15
|
|
16
|
-
expect(validator.valid?).to
|
16
|
+
expect(validator.valid?).to be_truthy
|
17
17
|
end
|
18
18
|
|
19
19
|
it 'detects mismatched gems' do
|
@@ -29,7 +29,7 @@ describe 'Papers' do
|
|
29
29
|
double(name: 'baz', version: '1.3', licenses: ['BSD'])
|
30
30
|
])
|
31
31
|
|
32
|
-
expect(validator.valid?).to
|
32
|
+
expect(validator.valid?).to be_falsey
|
33
33
|
|
34
34
|
expect(validator.errors).to eq([
|
35
35
|
'bar-1.2 is included in the application, but not in the manifest',
|
@@ -54,7 +54,7 @@ describe 'Papers' do
|
|
54
54
|
double(name: 'baz', version: '1.2', licenses: ['BSD'])
|
55
55
|
])
|
56
56
|
|
57
|
-
expect(validator.valid?).to
|
57
|
+
expect(validator.valid?).to be_falsey
|
58
58
|
|
59
59
|
expect(validator.errors).to eq([
|
60
60
|
'baz-1.2 is included in the application, but not in the manifest',
|
@@ -100,7 +100,7 @@ describe 'Papers' do
|
|
100
100
|
double(name: 'baz', version: '1.2', licenses: ['BSD'])
|
101
101
|
])
|
102
102
|
|
103
|
-
expect(validator.valid?).to
|
103
|
+
expect(validator.valid?).to be_truthy
|
104
104
|
end
|
105
105
|
|
106
106
|
it 'is OK with whitelisting gem versions on a specific license' do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: papers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ralph Bodenner
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2014-
|
15
|
+
date: 2014-06-16 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: rake
|
@@ -53,6 +53,7 @@ extensions: []
|
|
53
53
|
extra_rdoc_files: []
|
54
54
|
files:
|
55
55
|
- ".gitignore"
|
56
|
+
- ".travis.yml"
|
56
57
|
- CHANGELOG.md
|
57
58
|
- Gemfile
|
58
59
|
- MIT-LICENSE
|
@@ -91,9 +92,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
92
|
version: '0'
|
92
93
|
requirements: []
|
93
94
|
rubyforge_project:
|
94
|
-
rubygems_version: 2.2.
|
95
|
+
rubygems_version: 2.2.2
|
95
96
|
signing_key:
|
96
97
|
specification_version: 4
|
97
98
|
summary: Validate the licenses of software dependencies you use
|
98
99
|
test_files:
|
99
100
|
- spec/papers_spec.rb
|
101
|
+
has_rdoc:
|