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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a3dbc559e575243918efffa385aac928d327a56d
4
- data.tar.gz: d3ef809f5a3d9593a82ff4039bd821d58aabf038
3
+ metadata.gz: cfd7610ff7eff6eb48c83d3f902c4f7c4ef4d214
4
+ data.tar.gz: 45cb1a15b0fba628c1eb364aae04334a9dfd0d65
5
5
  SHA512:
6
- metadata.gz: fe00245204a6bdc2116983f15f43af78500c14dbc8a67910bcba588c58cff579f58d3c44573c0997e033ca064cc54f9e8619bc71ba8bf253eb89dec44aaedfcb
7
- data.tar.gz: 5a2067a1aec1942ecb6a2a5170c7f32e43c1f70f9e9ad2f75a1f78c6d26e9c01b030af9d67611665cf16fded5f126f5616ec43e12dd0fd644bb18ca0df5d347c
6
+ metadata.gz: 06ba1ff51f47f3ca4f0d83de73e603b4bb81b8a1221a3dd7bb7df879960a345cb36dd390d78db3c4d7d9f3b1dbca526491f5e3a89fe3678aaeb61b6145b6721c
7
+ data.tar.gz: d3b580aadb4eade7e5bb0b054d119e5c31589d6e58bcbd0b55bd70a8a0475b36e567668d251f5684fffb23cd09439fb993fd66f6ac2bcb81590abf816742bbd9
data/.travis.yml ADDED
@@ -0,0 +1,12 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - 2.0.0
5
+ - 2.1.0
6
+ script: bundle exec rspec
7
+ notifications:
8
+ email:
9
+ recipients:
10
+ - dcelis@newrelic.com
11
+ on_success: change
12
+ on_failure: always
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Papers
1
+ # Papers [![Build Status](https://travis-ci.org/newrelic/papers.svg?branch=master)](https://travis-ci.org/newrelic/papers)
2
2
 
3
3
  > "Papers, please."
4
4
 
@@ -1,8 +1,14 @@
1
1
  module Papers
2
- MAJOR = 1
3
- MINOR = 2
4
- PATCH = 0
2
+ class Version
3
+ MAJOR = 1
4
+ MINOR = 3
5
+ PATCH = 0
5
6
 
6
- VERSION = [MAJOR, MINOR, PATCH].join('.')
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 be_true
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 be_false
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 be_false
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 be_true
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.2.0
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-02-04 00:00:00.000000000 Z
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.0
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: