papers 2.4.2 → 2.4.3

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
- SHA1:
3
- metadata.gz: ff0340e975da31aa959dcddcdd5b7a78c9140ecc
4
- data.tar.gz: fd4265cbcdbd98799e115667658eb9450e52493f
2
+ SHA256:
3
+ metadata.gz: efd25a0475f3b500b0a0636f9ad4386b20dea7b2709f699cb5c707ee8f332620
4
+ data.tar.gz: f466828f491587392959a6e15404b0b8f194a1d57ed0885f7a5804e7d5bd88e1
5
5
  SHA512:
6
- metadata.gz: 0d97ddcc2a8b633bf5a091d1da0451cf19f1c2043c419f38b0cf443b17034045e70923236b46664705fbc6e16195d4644c6787fa65e25a907cf5c2453a7cb883
7
- data.tar.gz: 19262716885a3d898bf6629376a5e76904ed3c45a9b9a2258a36d8995385cb8966efd23f9e0d6591b72a5acfb4671038ffd09d6e37916208355c0bb8f13d308a
6
+ metadata.gz: 8a1a07bb78d1f4f85149d2d9835524b221ba239ee3ff15d6de189468cd68a0f17dc2c28d551826052a7ba3d9587f3032097bc61a2c56f4695a5d5c876d3d9994
7
+ data.tar.gz: f9140eab42fe22bfd082af2e809d541d403cb3be1ba1f2767726d343444cf341b8b009f881a744e2a3da288122f215f5c6d4e56dc4db7b2493d67c62e7787f8a
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.4.3
4
+ * Better whitespace output to avoid trailing spaces.
5
+
3
6
  ## 2.4.2
4
7
  * Support for `package_whitelist` in configuration.
5
8
  * Fix help output from command-line tool
data/README.md CHANGED
@@ -164,6 +164,16 @@ Finished in 0.01043 seconds
164
164
  1 examples, 1 failures
165
165
  ```
166
166
 
167
+ ### Generating the manifest from inside your tests
168
+ If you update your gems on a frequent basis, failing to remember to update the Papers manifest can be a time-consuming effort in getting your tests to pass. You can add this to your test to generate the manifest automatically:
169
+
170
+ ```ruby
171
+ Papers::ManifestUpdater.new.update!
172
+ ```
173
+
174
+ Note that you should not do this if you manually edit your manifest!
175
+
176
+
167
177
  ## License
168
178
 
169
179
  The Papers Gem is licensed under the __MIT License__. See [MIT-LICENSE](https://github.com/newrelic/papers/blob/master/MIT-LICENSE) for full text.
@@ -31,7 +31,10 @@ module Papers
31
31
  update_javascript(result, "bower_components", get_installed_bower_components)
32
32
  update_javascript(result, "npm_packages", get_installed_npm_packages)
33
33
 
34
- build_header + YAML.dump(result)
34
+ manifest_content = build_header + YAML.dump(result)
35
+
36
+ # strip trailing whitespace, ensure file ends with a newline
37
+ manifest_content.gsub(/\s*$/, '') + "\n"
35
38
  end
36
39
 
37
40
  def update_gems(result)
@@ -2,7 +2,7 @@ module Papers
2
2
  class Version
3
3
  MAJOR = 2
4
4
  MINOR = 4
5
- PATCH = 2
5
+ PATCH = 3
6
6
 
7
7
  def self.to_s
8
8
  [MAJOR, MINOR, PATCH].join('.')
@@ -28,11 +28,11 @@ EOS
28
28
  gems:
29
29
  rails-4.2.0:
30
30
  license: MIT
31
- license_url:
31
+ license_url:
32
32
  project_url: https://github.com/rails/rails
33
33
  newrelic_rpm:
34
34
  license: New Relic
35
- license_url:
35
+ license_url:
36
36
  project_url: https://github.com/newrelic/rpm
37
37
  EOS
38
38
  }
@@ -40,7 +40,7 @@ EOS
40
40
  let(:shoes_license) { <<EOS
41
41
  shoes-4.0.0:
42
42
  license: MIT
43
- license_url:
43
+ license_url:
44
44
  project_url: http://shoesrb.com
45
45
  EOS
46
46
  }
@@ -117,26 +117,26 @@ javascripts:
117
117
  project_url: http://newrelic.com
118
118
  app/javascripts/instances/show.js:
119
119
  license: Unknown
120
- license_url:
121
- project_url:
120
+ license_url:
121
+ project_url:
122
122
  bower_components:
123
123
  angular:
124
124
  license: MIT
125
- license_url:
126
- project_url:
125
+ license_url:
126
+ project_url:
127
127
  lodash:
128
128
  license: Unknown
129
- license_url:
130
- project_url:
129
+ license_url:
130
+ project_url:
131
131
  npm_packages:
132
132
  react:
133
133
  license: MIT
134
- license_url:
135
- project_url:
134
+ license_url:
135
+ project_url:
136
136
  redux:
137
137
  license: Unknown
138
- license_url:
139
- project_url:
138
+ license_url:
139
+ project_url:
140
140
  EOS
141
141
  }
142
142
 
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.2
4
+ version: 2.4.3
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: 2017-05-02 00:00:00.000000000 Z
15
+ date: 2020-03-09 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rake
@@ -99,8 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  - !ruby/object:Gem::Version
100
100
  version: '0'
101
101
  requirements: []
102
- rubyforge_project:
103
- rubygems_version: 2.6.11
102
+ rubygems_version: 3.0.3
104
103
  signing_key:
105
104
  specification_version: 4
106
105
  summary: Validate the licenses of software dependencies you use