http_store 0.6.7 → 0.6.9
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/Gemfile.lock +73 -72
- data/lib/http_store/client.rb +10 -11
- data/lib/http_store/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10419d24ee7614ed7d85ad810fc31a20ddfe58985a66cb7e2503582f1aa8e039
|
4
|
+
data.tar.gz: 56caf93f6aabf935467b0bfd733d9b693b26eeb94d3fd1dde2ff1dd72b645407
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b028440943a59a3dfeca34b3eb706b2d67ae1bf60aa5367e4b8b139fcc42e1fb6c319168a71d88e4b9c7f2cb3a63bb10fee70dc4dfadff4d073f050dbdcb5e6a
|
7
|
+
data.tar.gz: 58248c2a969671ac236302aa7cd7b44c6a186e6370aa84d8507080d0da2bb6945ff8a6feb4c6e12a2d0a598471bec9cfc3933de36d072de298fbe8f6cd3ff410
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
http_store (0.6.
|
4
|
+
http_store (0.6.9)
|
5
5
|
activerecord
|
6
6
|
hashie
|
7
7
|
rails
|
@@ -10,35 +10,35 @@ PATH
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
12
12
|
specs:
|
13
|
-
actioncable (7.1.3)
|
14
|
-
actionpack (= 7.1.3)
|
15
|
-
activesupport (= 7.1.3)
|
13
|
+
actioncable (7.1.3.2)
|
14
|
+
actionpack (= 7.1.3.2)
|
15
|
+
activesupport (= 7.1.3.2)
|
16
16
|
nio4r (~> 2.0)
|
17
17
|
websocket-driver (>= 0.6.1)
|
18
18
|
zeitwerk (~> 2.6)
|
19
|
-
actionmailbox (7.1.3)
|
20
|
-
actionpack (= 7.1.3)
|
21
|
-
activejob (= 7.1.3)
|
22
|
-
activerecord (= 7.1.3)
|
23
|
-
activestorage (= 7.1.3)
|
24
|
-
activesupport (= 7.1.3)
|
19
|
+
actionmailbox (7.1.3.2)
|
20
|
+
actionpack (= 7.1.3.2)
|
21
|
+
activejob (= 7.1.3.2)
|
22
|
+
activerecord (= 7.1.3.2)
|
23
|
+
activestorage (= 7.1.3.2)
|
24
|
+
activesupport (= 7.1.3.2)
|
25
25
|
mail (>= 2.7.1)
|
26
26
|
net-imap
|
27
27
|
net-pop
|
28
28
|
net-smtp
|
29
|
-
actionmailer (7.1.3)
|
30
|
-
actionpack (= 7.1.3)
|
31
|
-
actionview (= 7.1.3)
|
32
|
-
activejob (= 7.1.3)
|
33
|
-
activesupport (= 7.1.3)
|
29
|
+
actionmailer (7.1.3.2)
|
30
|
+
actionpack (= 7.1.3.2)
|
31
|
+
actionview (= 7.1.3.2)
|
32
|
+
activejob (= 7.1.3.2)
|
33
|
+
activesupport (= 7.1.3.2)
|
34
34
|
mail (~> 2.5, >= 2.5.4)
|
35
35
|
net-imap
|
36
36
|
net-pop
|
37
37
|
net-smtp
|
38
38
|
rails-dom-testing (~> 2.2)
|
39
|
-
actionpack (7.1.3)
|
40
|
-
actionview (= 7.1.3)
|
41
|
-
activesupport (= 7.1.3)
|
39
|
+
actionpack (7.1.3.2)
|
40
|
+
actionview (= 7.1.3.2)
|
41
|
+
activesupport (= 7.1.3.2)
|
42
42
|
nokogiri (>= 1.8.5)
|
43
43
|
racc
|
44
44
|
rack (>= 2.2.4)
|
@@ -46,35 +46,35 @@ GEM
|
|
46
46
|
rack-test (>= 0.6.3)
|
47
47
|
rails-dom-testing (~> 2.2)
|
48
48
|
rails-html-sanitizer (~> 1.6)
|
49
|
-
actiontext (7.1.3)
|
50
|
-
actionpack (= 7.1.3)
|
51
|
-
activerecord (= 7.1.3)
|
52
|
-
activestorage (= 7.1.3)
|
53
|
-
activesupport (= 7.1.3)
|
49
|
+
actiontext (7.1.3.2)
|
50
|
+
actionpack (= 7.1.3.2)
|
51
|
+
activerecord (= 7.1.3.2)
|
52
|
+
activestorage (= 7.1.3.2)
|
53
|
+
activesupport (= 7.1.3.2)
|
54
54
|
globalid (>= 0.6.0)
|
55
55
|
nokogiri (>= 1.8.5)
|
56
|
-
actionview (7.1.3)
|
57
|
-
activesupport (= 7.1.3)
|
56
|
+
actionview (7.1.3.2)
|
57
|
+
activesupport (= 7.1.3.2)
|
58
58
|
builder (~> 3.1)
|
59
59
|
erubi (~> 1.11)
|
60
60
|
rails-dom-testing (~> 2.2)
|
61
61
|
rails-html-sanitizer (~> 1.6)
|
62
|
-
activejob (7.1.3)
|
63
|
-
activesupport (= 7.1.3)
|
62
|
+
activejob (7.1.3.2)
|
63
|
+
activesupport (= 7.1.3.2)
|
64
64
|
globalid (>= 0.3.6)
|
65
|
-
activemodel (7.1.3)
|
66
|
-
activesupport (= 7.1.3)
|
67
|
-
activerecord (7.1.3)
|
68
|
-
activemodel (= 7.1.3)
|
69
|
-
activesupport (= 7.1.3)
|
65
|
+
activemodel (7.1.3.2)
|
66
|
+
activesupport (= 7.1.3.2)
|
67
|
+
activerecord (7.1.3.2)
|
68
|
+
activemodel (= 7.1.3.2)
|
69
|
+
activesupport (= 7.1.3.2)
|
70
70
|
timeout (>= 0.4.0)
|
71
|
-
activestorage (7.1.3)
|
72
|
-
actionpack (= 7.1.3)
|
73
|
-
activejob (= 7.1.3)
|
74
|
-
activerecord (= 7.1.3)
|
75
|
-
activesupport (= 7.1.3)
|
71
|
+
activestorage (7.1.3.2)
|
72
|
+
actionpack (= 7.1.3.2)
|
73
|
+
activejob (= 7.1.3.2)
|
74
|
+
activerecord (= 7.1.3.2)
|
75
|
+
activesupport (= 7.1.3.2)
|
76
76
|
marcel (~> 1.0)
|
77
|
-
activesupport (7.1.3)
|
77
|
+
activesupport (7.1.3.2)
|
78
78
|
base64
|
79
79
|
bigdecimal
|
80
80
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
@@ -85,7 +85,7 @@ GEM
|
|
85
85
|
mutex_m
|
86
86
|
tzinfo (~> 2.0)
|
87
87
|
base64 (0.2.0)
|
88
|
-
bigdecimal (3.1.
|
88
|
+
bigdecimal (3.1.7)
|
89
89
|
builder (3.2.4)
|
90
90
|
byebug (11.1.3)
|
91
91
|
concurrent-ruby (1.2.3)
|
@@ -94,8 +94,7 @@ GEM
|
|
94
94
|
date (3.3.4)
|
95
95
|
diff-lcs (1.5.0)
|
96
96
|
domain_name (0.6.20240107)
|
97
|
-
drb (2.2.
|
98
|
-
ruby2_keywords
|
97
|
+
drb (2.2.1)
|
99
98
|
erubi (1.12.0)
|
100
99
|
globalid (1.2.1)
|
101
100
|
activesupport (>= 6.1)
|
@@ -103,10 +102,10 @@ GEM
|
|
103
102
|
http-accept (1.7.0)
|
104
103
|
http-cookie (1.0.5)
|
105
104
|
domain_name (~> 0.5)
|
106
|
-
i18n (1.14.
|
105
|
+
i18n (1.14.4)
|
107
106
|
concurrent-ruby (~> 1.0)
|
108
107
|
io-console (0.7.2)
|
109
|
-
irb (1.
|
108
|
+
irb (1.12.0)
|
110
109
|
rdoc
|
111
110
|
reline (>= 0.4.2)
|
112
111
|
loofah (2.22.0)
|
@@ -117,30 +116,32 @@ GEM
|
|
117
116
|
net-imap
|
118
117
|
net-pop
|
119
118
|
net-smtp
|
120
|
-
marcel (1.0.
|
119
|
+
marcel (1.0.4)
|
121
120
|
mime-types (3.5.2)
|
122
121
|
mime-types-data (~> 3.2015)
|
123
|
-
mime-types-data (3.
|
122
|
+
mime-types-data (3.2024.0305)
|
124
123
|
mini_mime (1.1.5)
|
125
|
-
minitest (5.
|
124
|
+
minitest (5.22.3)
|
126
125
|
mutex_m (0.2.0)
|
127
|
-
net-imap (0.4.
|
126
|
+
net-imap (0.4.10)
|
128
127
|
date
|
129
128
|
net-protocol
|
130
129
|
net-pop (0.1.2)
|
131
130
|
net-protocol
|
132
131
|
net-protocol (0.2.2)
|
133
132
|
timeout
|
134
|
-
net-smtp (0.
|
133
|
+
net-smtp (0.5.0)
|
135
134
|
net-protocol
|
136
135
|
netrc (0.11.0)
|
137
|
-
nio4r (2.7.
|
138
|
-
nokogiri (1.
|
136
|
+
nio4r (2.7.1)
|
137
|
+
nokogiri (1.16.4-arm64-darwin)
|
138
|
+
racc (~> 1.4)
|
139
|
+
nokogiri (1.16.4-x86_64-darwin)
|
139
140
|
racc (~> 1.4)
|
140
141
|
psych (5.1.2)
|
141
142
|
stringio
|
142
143
|
racc (1.7.3)
|
143
|
-
rack (3.0.
|
144
|
+
rack (3.0.10)
|
144
145
|
rack-session (2.0.0)
|
145
146
|
rack (>= 3.0.0)
|
146
147
|
rack-test (2.1.0)
|
@@ -148,20 +149,20 @@ GEM
|
|
148
149
|
rackup (2.1.0)
|
149
150
|
rack (>= 3)
|
150
151
|
webrick (~> 1.8)
|
151
|
-
rails (7.1.3)
|
152
|
-
actioncable (= 7.1.3)
|
153
|
-
actionmailbox (= 7.1.3)
|
154
|
-
actionmailer (= 7.1.3)
|
155
|
-
actionpack (= 7.1.3)
|
156
|
-
actiontext (= 7.1.3)
|
157
|
-
actionview (= 7.1.3)
|
158
|
-
activejob (= 7.1.3)
|
159
|
-
activemodel (= 7.1.3)
|
160
|
-
activerecord (= 7.1.3)
|
161
|
-
activestorage (= 7.1.3)
|
162
|
-
activesupport (= 7.1.3)
|
152
|
+
rails (7.1.3.2)
|
153
|
+
actioncable (= 7.1.3.2)
|
154
|
+
actionmailbox (= 7.1.3.2)
|
155
|
+
actionmailer (= 7.1.3.2)
|
156
|
+
actionpack (= 7.1.3.2)
|
157
|
+
actiontext (= 7.1.3.2)
|
158
|
+
actionview (= 7.1.3.2)
|
159
|
+
activejob (= 7.1.3.2)
|
160
|
+
activemodel (= 7.1.3.2)
|
161
|
+
activerecord (= 7.1.3.2)
|
162
|
+
activestorage (= 7.1.3.2)
|
163
|
+
activesupport (= 7.1.3.2)
|
163
164
|
bundler (>= 1.15.0)
|
164
|
-
railties (= 7.1.3)
|
165
|
+
railties (= 7.1.3.2)
|
165
166
|
rails-dom-testing (2.2.0)
|
166
167
|
activesupport (>= 5.0.0)
|
167
168
|
minitest
|
@@ -169,18 +170,18 @@ GEM
|
|
169
170
|
rails-html-sanitizer (1.6.0)
|
170
171
|
loofah (~> 2.21)
|
171
172
|
nokogiri (~> 1.14)
|
172
|
-
railties (7.1.3)
|
173
|
-
actionpack (= 7.1.3)
|
174
|
-
activesupport (= 7.1.3)
|
173
|
+
railties (7.1.3.2)
|
174
|
+
actionpack (= 7.1.3.2)
|
175
|
+
activesupport (= 7.1.3.2)
|
175
176
|
irb
|
176
177
|
rackup (>= 1.0.0)
|
177
178
|
rake (>= 12.2)
|
178
179
|
thor (~> 1.0, >= 1.2.2)
|
179
180
|
zeitwerk (~> 2.6)
|
180
181
|
rake (13.0.6)
|
181
|
-
rdoc (6.6.
|
182
|
+
rdoc (6.6.3.1)
|
182
183
|
psych (>= 4.0.0)
|
183
|
-
reline (0.
|
184
|
+
reline (0.5.2)
|
184
185
|
io-console (~> 0.5)
|
185
186
|
rest-client (2.1.0)
|
186
187
|
http-accept (>= 1.7.0, < 2.0)
|
@@ -200,9 +201,8 @@ GEM
|
|
200
201
|
diff-lcs (>= 1.2.0, < 2.0)
|
201
202
|
rspec-support (~> 3.12.0)
|
202
203
|
rspec-support (3.12.1)
|
203
|
-
ruby2_keywords (0.0.5)
|
204
204
|
stringio (3.1.0)
|
205
|
-
thor (1.3.
|
205
|
+
thor (1.3.1)
|
206
206
|
timeout (0.4.1)
|
207
207
|
tzinfo (2.0.6)
|
208
208
|
concurrent-ruby (~> 1.0)
|
@@ -210,9 +210,10 @@ GEM
|
|
210
210
|
websocket-driver (0.7.6)
|
211
211
|
websocket-extensions (>= 0.1.0)
|
212
212
|
websocket-extensions (0.1.5)
|
213
|
-
zeitwerk (2.6.
|
213
|
+
zeitwerk (2.6.13)
|
214
214
|
|
215
215
|
PLATFORMS
|
216
|
+
arm64-darwin-23
|
216
217
|
x86_64-darwin-21
|
217
218
|
|
218
219
|
DEPENDENCIES
|
data/lib/http_store/client.rb
CHANGED
@@ -48,7 +48,15 @@ module HttpStore
|
|
48
48
|
end
|
49
49
|
|
50
50
|
def execute
|
51
|
-
@meta.response_obj =
|
51
|
+
@meta.response_obj =
|
52
|
+
begin
|
53
|
+
get? ? http_get_execute : http_post_execute
|
54
|
+
rescue RestClient::ExceptionWithResponse => e
|
55
|
+
e.response
|
56
|
+
# rescue Errno::ECONNREFUSED => e
|
57
|
+
# Hashie::Mash.new(code: 500, body: e.message)
|
58
|
+
end
|
59
|
+
|
52
60
|
raise HttpStore::RequestError, 'response_obj is nil' if response_obj.nil?
|
53
61
|
|
54
62
|
build_response
|
@@ -62,21 +70,12 @@ module HttpStore
|
|
62
70
|
|
63
71
|
def http_get_execute
|
64
72
|
RestClient::Request.execute(method: :get, url: uri, headers: headers.symbolize_keys, verify_ssl: verify_ssl)
|
65
|
-
rescue RestClient::ExceptionWithResponse => e
|
66
|
-
# :nocov:
|
67
|
-
e.response
|
68
|
-
# :nocov:
|
69
73
|
end
|
70
74
|
|
71
75
|
def http_post_execute
|
72
76
|
real_data = json_request? ? data.to_json : data.to_hash
|
73
77
|
# RestClient.post(uri, real_data, headers.symbolize_keys)
|
74
|
-
RestClient::Request.execute(method: :post, url:
|
75
|
-
rescue RestClient::ExceptionWithResponse => e
|
76
|
-
# :nocov:
|
77
|
-
e.response
|
78
|
-
# :nocov:
|
78
|
+
RestClient::Request.execute(method: :post, url: uri, payload: real_data, headers: headers.symbolize_keys, verify_ssl: verify_ssl)
|
79
79
|
end
|
80
80
|
end
|
81
81
|
end
|
82
|
-
|
data/lib/http_store/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: http_store
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- black
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -173,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
173
173
|
- !ruby/object:Gem::Version
|
174
174
|
version: '0'
|
175
175
|
requirements: []
|
176
|
-
rubygems_version: 3.
|
176
|
+
rubygems_version: 3.4.10
|
177
177
|
signing_key:
|
178
178
|
specification_version: 4
|
179
179
|
summary: store the http request, it based on rest-client
|