right_scraper 5.2.5 → 5.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/right_scraper-retrieve +1 -0
- data/lib/right_scraper/resources/cookbook.rb +2 -2
- data/lib/right_scraper/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d0f4743b9708a7db530addd398b01bc074a9269
|
4
|
+
data.tar.gz: 368b95e3ce17f4685ced0b5b14c5be9f56412ba7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f28c16cf5fb7beb57b4be3bc5981726cc556a82892724203f6ca8da5bca9fb30b06239bdb1b9d1f633a99c829c131e30bdd121eea65a9073e60c74e0f848c660
|
7
|
+
data.tar.gz: e4d92e9cca35788d7af0c571f0275bce7979471ddcb2074c6e1abd19456282e46510a87623c02843e471b1d0eaaa96322b013e5704be929ea5c6db03b6c860ee
|
data/bin/right_scraper-retrieve
CHANGED
@@ -59,6 +59,7 @@ begin
|
|
59
59
|
# order to run scanners subsequently.
|
60
60
|
%w(first_credential second_credential).each { |k| repository.delete(k) }
|
61
61
|
repository['tag'] = retrieved[:repository].revision # send back commit SHA, if any, for comparison
|
62
|
+
repository['repository_hash'] = retrieved[:repository].repository_hash
|
62
63
|
retrieved[:repository] = repository
|
63
64
|
retrieved[:warnings] = main.warnings unless main.warnings.empty?
|
64
65
|
$stdout.puts(::JSON.generate(retrieved))
|
@@ -72,8 +72,8 @@ module RightScraper::Resources
|
|
72
72
|
def to_hash
|
73
73
|
{
|
74
74
|
repository: repository,
|
75
|
-
|
76
|
-
|
75
|
+
resource_hash: resource_hash, # location of cookbook manifest in S3
|
76
|
+
metadata: ::JSON.dump(metadata), # pass as opaque JSON blob
|
77
77
|
pos: pos
|
78
78
|
}
|
79
79
|
end
|