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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a501ec1855e2771a832413f8c6f7e64ef0914be5
4
- data.tar.gz: edf999ee812b0b0991628f0a0136f500a22f424d
3
+ metadata.gz: 77662210b020b8018d27e9f2888cba6b61a58d16
4
+ data.tar.gz: 604cd4f2f5e59829c98e24daaee8b9c94b77e019
5
5
  SHA512:
6
- metadata.gz: dd676cdb983c3ca29c5709c7ae375440dffc8842f2f2d6aa5352083e4b9045eaeb9f574d9f7612981ff7e2a97a8a5a4d2daa2c89ee516ed8dc3b8ff97fe78665
7
- data.tar.gz: 275ac6f253cf2cb95b6cbad2c33550318b88439080c654815f62b117932861ce38d4ed1a9f1c2933810c8ab3de495837da425b4afc80e90b2486604ff0e0bfd0
6
+ metadata.gz: aa7a0cf071bef428e01cee044ac90956d51876260ef839d8b0caa45fbcc6a4e3e9754a7fca78126296da1353a77bc2d8fb57f11eba620d37229580a43ad861cd
7
+ data.tar.gz: 485b8df1cbaa13f47ddf4c3d610dcf9f0104cb6b9e496230afe94967150b1577e71076edb317b40359c137685f26b7050ffc646b52168ff4060bed561a5519d5
@@ -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!
@@ -2,7 +2,7 @@ module Papers
2
2
  class Version
3
3
  MAJOR = 2
4
4
  MINOR = 4
5
- PATCH = 0
5
+ PATCH = 1
6
6
 
7
7
  def self.to_s
8
8
  [MAJOR, MINOR, PATCH].join('.')
@@ -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.0
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-10-13 00:00:00.000000000 Z
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.6.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: