diff options
author | Pete Higgins <pete@peterhiggins.org> | 2020-12-18 13:13:36 -0800 |
---|---|---|
committer | Pete Higgins <pete@peterhiggins.org> | 2020-12-28 15:18:54 -0800 |
commit | a42a13afef0855b878c0bbc793f3298c38d8284e (patch) | |
tree | 921b31b92bb37f722e65b4588ff93094a37df123 /spec/data | |
parent | 37d6e01d39993e43efdf12cd2a9aead8d0b71295 (diff) | |
download | chef-a42a13afef0855b878c0bbc793f3298c38d8284e.tar.gz |
Stub http requests in rubygems tests.
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
This commit includes a trimmed version of rubygems.org API output.
To recreate this file:
* Download the file from rubygems.org:
curl "https://rubygems.org/latest_specs.4.8.gz"
* Read the file, uncompress it, filter for the data you want, and
reverse the process:
File.write("latest_specs.4.8.gz", Gem::Util.gzip(Marshal.dump(Marshal.load(Gem::Util.gunzip(File.read("latest_specs.4.8.gz"))).select {|m| m.first == "sexp_processor" })))
Diffstat (limited to 'spec/data')
-rw-r--r-- | spec/data/rubygems.org/latest_specs.4.8.gz | bin | 0 -> 86 bytes |
-rw-r--r-- | spec/data/rubygems.org/nonexistent_gem | bin | 0 -> 4 bytes |
-rw-r--r-- | spec/data/rubygems.org/sexp_processor | bin | 0 -> 2737 bytes |
-rw-r--r-- | spec/data/rubygems.org/sexp_processor-4.15.1.gemspec.rz | bin | 0 -> 519 bytes |
4 files changed, 0 insertions, 0 deletions
diff --git a/spec/data/rubygems.org/latest_specs.4.8.gz b/spec/data/rubygems.org/latest_specs.4.8.gz Binary files differnew file mode 100644 index 0000000000..ab6a175f32 --- /dev/null +++ b/spec/data/rubygems.org/latest_specs.4.8.gz diff --git a/spec/data/rubygems.org/nonexistent_gem b/spec/data/rubygems.org/nonexistent_gem Binary files differnew file mode 100644 index 0000000000..0ba94359df --- /dev/null +++ b/spec/data/rubygems.org/nonexistent_gem diff --git a/spec/data/rubygems.org/sexp_processor b/spec/data/rubygems.org/sexp_processor Binary files differnew file mode 100644 index 0000000000..37c6e97769 --- /dev/null +++ b/spec/data/rubygems.org/sexp_processor diff --git a/spec/data/rubygems.org/sexp_processor-4.15.1.gemspec.rz b/spec/data/rubygems.org/sexp_processor-4.15.1.gemspec.rz Binary files differnew file mode 100644 index 0000000000..38840f2682 --- /dev/null +++ b/spec/data/rubygems.org/sexp_processor-4.15.1.gemspec.rz |