papers 2.4.0 → 2.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/papers/manifest_updater.rb +1 -1
- data/lib/papers/version.rb +1 -1
- data/spec/manifest_updater_spec.rb +10 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77662210b020b8018d27e9f2888cba6b61a58d16
|
4
|
+
data.tar.gz: 604cd4f2f5e59829c98e24daaee8b9c94b77e019
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa7a0cf071bef428e01cee044ac90956d51876260ef839d8b0caa45fbcc6a4e3e9754a7fca78126296da1353a77bc2d8fb57f11eba620d37229580a43ad861cd
|
7
|
+
data.tar.gz: 485b8df1cbaa13f47ddf4c3d610dcf9f0104cb6b9e496230afe94967150b1577e71076edb317b40359c137685f26b7050ffc646b52168ff4060bed561a5519d5
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 2.4.1
|
4
|
+
* Fix problem where missing licenses from gemspecs overrode hand-authored manifest values.
|
5
|
+
|
6
|
+
## 2.4.0
|
7
|
+
* Support `papers --update` to bring manifest up to date with current libraries installed.
|
8
|
+
|
3
9
|
## 2.3.0
|
4
10
|
* Add `config.ignore_npm_dev_dependencies` option to not apply validation to npm devDepdency modules. This is useful if you don't need to consider packages that aren't use in production.
|
5
11
|
|
@@ -69,7 +69,7 @@ module Papers
|
|
69
69
|
|
70
70
|
def update_gem(result_gems, gemspec, manifest_gem_key)
|
71
71
|
manifest_gem = result_gems.delete(manifest_gem_key)
|
72
|
-
if gemspec.license != manifest_gem["license"]
|
72
|
+
if gemspec.license && gemspec.license != manifest_gem["license"]
|
73
73
|
new_licenses = gemspec.licenses || []
|
74
74
|
new_licenses << gemspec.license
|
75
75
|
new_licenses.uniq!
|
data/lib/papers/version.rb
CHANGED
@@ -95,6 +95,16 @@ EOS
|
|
95
95
|
sub(/MIT/, "License Change! Was 'MIT', is now [\"NOT-MIT\"]")
|
96
96
|
expect(updater.update).to eq(expected)
|
97
97
|
end
|
98
|
+
|
99
|
+
it "doesn't touch licenses when missing license in gemspec" do
|
100
|
+
allow(updater).to receive(:gemspecs).and_return([
|
101
|
+
double(name: 'rails', version: '5.0.0', license: nil, licenses: []),
|
102
|
+
double(name: 'newrelic_rpm', version: '3.16.2.321', license: "New Relic", licenses: ["New Relic"]),
|
103
|
+
])
|
104
|
+
|
105
|
+
expected = original_content.gsub(/rails-4.2.0/, "rails-5.0.0")
|
106
|
+
expect(updater.update).to eq(expected)
|
107
|
+
end
|
98
108
|
end
|
99
109
|
|
100
110
|
describe "Javascript" 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: 2.4.
|
4
|
+
version: 2.4.1
|
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: 2016-
|
15
|
+
date: 2016-12-09 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: rake
|
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
100
100
|
version: '0'
|
101
101
|
requirements: []
|
102
102
|
rubyforge_project:
|
103
|
-
rubygems_version: 2.
|
103
|
+
rubygems_version: 2.5.1
|
104
104
|
signing_key:
|
105
105
|
specification_version: 4
|
106
106
|
summary: Validate the licenses of software dependencies you use
|
@@ -111,3 +111,4 @@ test_files:
|
|
111
111
|
- spec/spec_helper.rb
|
112
112
|
- spec/support/package.json
|
113
113
|
- spec/support/package_with_error.json
|
114
|
+
has_rdoc:
|