spaceborne 0.1.17 → 0.1.18
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 +4 -4
- data/lib/spaceborne.rb +4 -5
- data/lib/spaceborne/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c5b4c72798174a5029aa6196647a660d7e54cb66
|
|
4
|
+
data.tar.gz: 129182edd0bbdb187b17dbd84188300c1b817a43
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6ddc6c9b2e839e7598c87c180fd5eaa2eb79f6072d9b534c5d2a859305bcaf411f0d52abb4e8eadb160515d733e47a7a5e26beff97ca50cfbce307ec6833a9af
|
|
7
|
+
data.tar.gz: 11300c0550ed4fe180679cb3bf3d94ac24bf98f7a22d4a28c9440421245087326dba5227b87dfbfcf6c6a2caf1ad4039af60cd283fd038cd5d9532562b7b0945
|
data/lib/spaceborne.rb
CHANGED
|
@@ -41,7 +41,7 @@ module Spaceborne
|
|
|
41
41
|
str
|
|
42
42
|
end
|
|
43
43
|
|
|
44
|
-
def request_info(str =
|
|
44
|
+
def request_info(str = "\n")
|
|
45
45
|
str << add_time << add_request << add_response
|
|
46
46
|
str
|
|
47
47
|
end
|
|
@@ -50,7 +50,7 @@ module Spaceborne
|
|
|
50
50
|
yield
|
|
51
51
|
rescue Exception => e
|
|
52
52
|
raise e unless response
|
|
53
|
-
|
|
53
|
+
e.message << request_info
|
|
54
54
|
raise e
|
|
55
55
|
end
|
|
56
56
|
end
|
|
@@ -121,9 +121,8 @@ module Airborne
|
|
|
121
121
|
local_options = split_options(options)
|
|
122
122
|
handle_proxy(options, local_options)
|
|
123
123
|
hdrs = calc_headers(options, local_options)
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
calc_body(options, local_options), hdrs)
|
|
124
|
+
@request_body = calc_body(options, local_options)
|
|
125
|
+
send_restclient(method, get_url(url), @request_body, hdrs)
|
|
127
126
|
rescue RestClient::Exception => e
|
|
128
127
|
e.response
|
|
129
128
|
end
|
data/lib/spaceborne/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: spaceborne
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.18
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Keith Williams
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-09-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|