continuum-stager-api 0.1.9 → 0.2.0
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a772a7cfdef4a181c2eeda54ae1347092681fe56
|
|
4
|
+
data.tar.gz: 6be1d1dac09012154e15317b5387c7fc732e37b6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 96342dbc44cbc840f14405692e9ee347e9ea714389d729071cb4a292504e562ff93baec7cad6a4d27a17e3b628cf3bc9b6c29257cb6d4a06ef5c75d6e1a922e3
|
|
7
|
+
data.tar.gz: 0bc1aedc86f1f609a00613b16b86aa2371e8667e9ada6ec3ba7c82235ddf6483bf7254b176cd4ceb904c70f8db77ea153b5ed6dee9de68cc3ec5a75ba9e922ea
|
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |gem|
|
|
|
15
15
|
gem.test_files = `git ls-files -- {spec}/*`.split("\n")
|
|
16
16
|
gem.name = "continuum-stager-api"
|
|
17
17
|
gem.require_paths = ["lib"]
|
|
18
|
-
gem.version = "0.
|
|
18
|
+
gem.version = "0.2.0"
|
|
19
19
|
|
|
20
20
|
gem.add_development_dependency 'rspec', '~> 2.6.0'
|
|
21
21
|
gem.add_development_dependency 'rake'
|
data/lib/apcera/stager/stager.rb
CHANGED
|
@@ -19,8 +19,8 @@ module Apcera
|
|
|
19
19
|
def download
|
|
20
20
|
uri = URI(@stager_url + "/data")
|
|
21
21
|
|
|
22
|
-
Net::HTTP.start(uri.host, uri.port) do |http|
|
|
23
|
-
request = Net::HTTP::Get.new uri
|
|
22
|
+
Net::HTTP.start(uri.host.to_s, uri.port.to_s) do |http|
|
|
23
|
+
request = Net::HTTP::Get.new uri.request_uri
|
|
24
24
|
|
|
25
25
|
http.request request do |response|
|
|
26
26
|
if response.code.to_i == 200
|
|
@@ -52,67 +52,4 @@ http_interactions:
|
|
|
52
52
|
string: OK
|
|
53
53
|
http_version:
|
|
54
54
|
recorded_at: Mon, 25 Aug 2014 02:37:56 GMT
|
|
55
|
-
- request:
|
|
56
|
-
method: post
|
|
57
|
-
uri: http://example.com/failed
|
|
58
|
-
body:
|
|
59
|
-
encoding: ASCII-8BIT
|
|
60
|
-
string: ''
|
|
61
|
-
headers:
|
|
62
|
-
Accept:
|
|
63
|
-
- "*/*; q=0.5, application/xml"
|
|
64
|
-
Accept-Encoding:
|
|
65
|
-
- gzip, deflate
|
|
66
|
-
Content-Length:
|
|
67
|
-
- '0'
|
|
68
|
-
Content-Type:
|
|
69
|
-
- application/x-www-form-urlencoded
|
|
70
|
-
User-Agent:
|
|
71
|
-
- Ruby
|
|
72
|
-
response:
|
|
73
|
-
status:
|
|
74
|
-
code: 404
|
|
75
|
-
message: Not Found
|
|
76
|
-
headers:
|
|
77
|
-
Accept-Ranges:
|
|
78
|
-
- bytes
|
|
79
|
-
Cache-Control:
|
|
80
|
-
- max-age=604800
|
|
81
|
-
Content-Type:
|
|
82
|
-
- text/html
|
|
83
|
-
Date:
|
|
84
|
-
- Tue, 26 Aug 2014 08:19:48 GMT
|
|
85
|
-
Etag:
|
|
86
|
-
- '"359670651"'
|
|
87
|
-
Expires:
|
|
88
|
-
- Tue, 02 Sep 2014 08:19:48 GMT
|
|
89
|
-
Last-Modified:
|
|
90
|
-
- Fri, 09 Aug 2013 23:54:35 GMT
|
|
91
|
-
Server:
|
|
92
|
-
- EOS (lax004/45BF)
|
|
93
|
-
X-Ec-Custom-Error:
|
|
94
|
-
- '1'
|
|
95
|
-
Content-Length:
|
|
96
|
-
- '1270'
|
|
97
|
-
body:
|
|
98
|
-
encoding: UTF-8
|
|
99
|
-
string: "<!doctype html>\n<html>\n<head>\n <title>Example Domain</title>\n\n
|
|
100
|
-
\ <meta charset=\"utf-8\" />\n <meta http-equiv=\"Content-type\" content=\"text/html;
|
|
101
|
-
charset=utf-8\" />\n <meta name=\"viewport\" content=\"width=device-width,
|
|
102
|
-
initial-scale=1\" />\n <style type=\"text/css\">\n body {\n background-color:
|
|
103
|
-
#f0f0f2;\n margin: 0;\n padding: 0;\n font-family: \"Open
|
|
104
|
-
Sans\", \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n \n }\n
|
|
105
|
-
\ div {\n width: 600px;\n margin: 5em auto;\n padding:
|
|
106
|
-
50px;\n background-color: #fff;\n border-radius: 1em;\n }\n
|
|
107
|
-
\ a:link, a:visited {\n color: #38488f;\n text-decoration:
|
|
108
|
-
none;\n }\n @media (max-width: 700px) {\n body {\n background-color:
|
|
109
|
-
#fff;\n }\n div {\n width: auto;\n margin:
|
|
110
|
-
0 auto;\n border-radius: 0;\n padding: 1em;\n }\n
|
|
111
|
-
\ }\n </style> \n</head>\n\n<body>\n<div>\n <h1>Example Domain</h1>\n
|
|
112
|
-
\ <p>This domain is established to be used for illustrative examples in
|
|
113
|
-
documents. You may use this\n domain in examples without prior coordination
|
|
114
|
-
or asking for permission.</p>\n <p><a href=\"http://www.iana.org/domains/example\">More
|
|
115
|
-
information...</a></p>\n</div>\n</body>\n</html>\n"
|
|
116
|
-
http_version:
|
|
117
|
-
recorded_at: Tue, 26 Aug 2014 08:19:48 GMT
|
|
118
55
|
recorded_with: VCR 2.9.2
|
|
@@ -37397,4 +37397,67 @@ http_interactions:
|
|
|
37397
37397
|
9ADILQA=
|
|
37398
37398
|
http_version:
|
|
37399
37399
|
recorded_at: Mon, 25 Aug 2014 00:26:49 GMT
|
|
37400
|
+
- request:
|
|
37401
|
+
method: post
|
|
37402
|
+
uri: http://example.com/failed
|
|
37403
|
+
body:
|
|
37404
|
+
encoding: ASCII-8BIT
|
|
37405
|
+
string: !binary ""
|
|
37406
|
+
headers:
|
|
37407
|
+
Accept:
|
|
37408
|
+
- ! '*/*; q=0.5, application/xml'
|
|
37409
|
+
Accept-Encoding:
|
|
37410
|
+
- gzip, deflate
|
|
37411
|
+
Content-Length:
|
|
37412
|
+
- '0'
|
|
37413
|
+
Content-Type:
|
|
37414
|
+
- application/x-www-form-urlencoded
|
|
37415
|
+
User-Agent:
|
|
37416
|
+
- Ruby
|
|
37417
|
+
response:
|
|
37418
|
+
status:
|
|
37419
|
+
code: 404
|
|
37420
|
+
message: Not Found
|
|
37421
|
+
headers:
|
|
37422
|
+
Accept-Ranges:
|
|
37423
|
+
- bytes
|
|
37424
|
+
Cache-Control:
|
|
37425
|
+
- max-age=604800
|
|
37426
|
+
Content-Type:
|
|
37427
|
+
- text/html
|
|
37428
|
+
Date:
|
|
37429
|
+
- Wed, 27 Aug 2014 02:26:40 GMT
|
|
37430
|
+
Etag:
|
|
37431
|
+
- ! '"359670651"'
|
|
37432
|
+
Expires:
|
|
37433
|
+
- Wed, 03 Sep 2014 02:26:40 GMT
|
|
37434
|
+
Last-Modified:
|
|
37435
|
+
- Fri, 09 Aug 2013 23:54:35 GMT
|
|
37436
|
+
Server:
|
|
37437
|
+
- EOS (lax004/45C6)
|
|
37438
|
+
X-Ec-Custom-Error:
|
|
37439
|
+
- '1'
|
|
37440
|
+
Content-Length:
|
|
37441
|
+
- '1270'
|
|
37442
|
+
body:
|
|
37443
|
+
encoding: US-ASCII
|
|
37444
|
+
string: ! "<!doctype html>\n<html>\n<head>\n <title>Example Domain</title>\n\n
|
|
37445
|
+
\ <meta charset=\"utf-8\" />\n <meta http-equiv=\"Content-type\" content=\"text/html;
|
|
37446
|
+
charset=utf-8\" />\n <meta name=\"viewport\" content=\"width=device-width,
|
|
37447
|
+
initial-scale=1\" />\n <style type=\"text/css\">\n body {\n background-color:
|
|
37448
|
+
#f0f0f2;\n margin: 0;\n padding: 0;\n font-family: \"Open
|
|
37449
|
+
Sans\", \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n \n }\n
|
|
37450
|
+
\ div {\n width: 600px;\n margin: 5em auto;\n padding:
|
|
37451
|
+
50px;\n background-color: #fff;\n border-radius: 1em;\n }\n
|
|
37452
|
+
\ a:link, a:visited {\n color: #38488f;\n text-decoration:
|
|
37453
|
+
none;\n }\n @media (max-width: 700px) {\n body {\n background-color:
|
|
37454
|
+
#fff;\n }\n div {\n width: auto;\n margin:
|
|
37455
|
+
0 auto;\n border-radius: 0;\n padding: 1em;\n }\n
|
|
37456
|
+
\ }\n </style> \n</head>\n\n<body>\n<div>\n <h1>Example Domain</h1>\n
|
|
37457
|
+
\ <p>This domain is established to be used for illustrative examples in
|
|
37458
|
+
documents. You may use this\n domain in examples without prior coordination
|
|
37459
|
+
or asking for permission.</p>\n <p><a href=\"http://www.iana.org/domains/example\">More
|
|
37460
|
+
information...</a></p>\n</div>\n</body>\n</html>\n"
|
|
37461
|
+
http_version:
|
|
37462
|
+
recorded_at: Wed, 27 Aug 2014 02:26:40 GMT
|
|
37400
37463
|
recorded_with: VCR 2.9.2
|
|
@@ -79,15 +79,15 @@ http_interactions:
|
|
|
79
79
|
Content-Type:
|
|
80
80
|
- text/html
|
|
81
81
|
Date:
|
|
82
|
-
-
|
|
82
|
+
- Wed, 27 Aug 2014 02:26:58 GMT
|
|
83
83
|
Etag:
|
|
84
84
|
- ! '"359670651"'
|
|
85
85
|
Expires:
|
|
86
|
-
-
|
|
86
|
+
- Wed, 03 Sep 2014 02:26:58 GMT
|
|
87
87
|
Last-Modified:
|
|
88
88
|
- Fri, 09 Aug 2013 23:54:35 GMT
|
|
89
89
|
Server:
|
|
90
|
-
- EOS (lax004/
|
|
90
|
+
- EOS (lax004/2813)
|
|
91
91
|
X-Ec-Custom-Error:
|
|
92
92
|
- '1'
|
|
93
93
|
Content-Length:
|
|
@@ -112,5 +112,5 @@ http_interactions:
|
|
|
112
112
|
or asking for permission.</p>\n <p><a href=\"http://www.iana.org/domains/example\">More
|
|
113
113
|
information...</a></p>\n</div>\n</body>\n</html>\n"
|
|
114
114
|
http_version:
|
|
115
|
-
recorded_at:
|
|
115
|
+
recorded_at: Wed, 27 Aug 2014 02:26:58 GMT
|
|
116
116
|
recorded_with: VCR 2.9.2
|