papers 2.4.2 → 2.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/CHANGELOG.md +3 -0
- data/README.md +10 -0
- data/lib/papers/manifest_updater.rb +4 -1
- data/lib/papers/version.rb +1 -1
- data/spec/manifest_updater_spec.rb +13 -13
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: efd25a0475f3b500b0a0636f9ad4386b20dea7b2709f699cb5c707ee8f332620
|
4
|
+
data.tar.gz: f466828f491587392959a6e15404b0b8f194a1d57ed0885f7a5804e7d5bd88e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a1a07bb78d1f4f85149d2d9835524b221ba239ee3ff15d6de189468cd68a0f17dc2c28d551826052a7ba3d9587f3032097bc61a2c56f4695a5d5c876d3d9994
|
7
|
+
data.tar.gz: f9140eab42fe22bfd082af2e809d541d403cb3be1ba1f2767726d343444cf341b8b009f881a744e2a3da288122f215f5c6d4e56dc4db7b2493d67c62e7787f8a
|
data/CHANGELOG.md
CHANGED
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)
|
data/lib/papers/version.rb
CHANGED
@@ -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.
|
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:
|
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
|
-
|
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
|