http_store 0.6.18 → 0.7.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 +4 -4
- data/Gemfile.lock +93 -93
- data/lib/http_store/client.rb +2 -1
- data/lib/http_store/helpers/requestable.rb +3 -1
- 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: 53b96609132554b6cc8f0aee674e8de99cbdb3810f8e29f2aeb6ab7225abf233
|
4
|
+
data.tar.gz: 3ed49378b3dd4b8e8a6bd0f5f3749c3562c4e457916d6cbe6afd826de4578861
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d10e7d6ed5accc21c1347c7e8d5ed0b53d49c42f6314ccf4f5c7bcd38ae4cec6bae62a9a1e5eb9f032ed07ce4cc0e1f627d8f91a372fbf94ddea284f80139bd
|
7
|
+
data.tar.gz: 1fa488c0256a39f314a7eb94b72a8f3781c99681ad846e12d54456c4eccc082a5d97b0082047bedd221dae64e5f78dda7b7f5183610b0119ec7a545ed9614448
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
http_store (0.
|
4
|
+
http_store (0.7.0)
|
5
5
|
activerecord
|
6
6
|
hashie
|
7
7
|
rails
|
@@ -10,105 +10,104 @@ PATH
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
12
12
|
specs:
|
13
|
-
actioncable (
|
14
|
-
actionpack (=
|
15
|
-
activesupport (=
|
13
|
+
actioncable (8.0.0)
|
14
|
+
actionpack (= 8.0.0)
|
15
|
+
activesupport (= 8.0.0)
|
16
16
|
nio4r (~> 2.0)
|
17
17
|
websocket-driver (>= 0.6.1)
|
18
18
|
zeitwerk (~> 2.6)
|
19
|
-
actionmailbox (
|
20
|
-
actionpack (=
|
21
|
-
activejob (=
|
22
|
-
activerecord (=
|
23
|
-
activestorage (=
|
24
|
-
activesupport (=
|
25
|
-
mail (>= 2.
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
activejob (= 7.1.3.2)
|
33
|
-
activesupport (= 7.1.3.2)
|
34
|
-
mail (~> 2.5, >= 2.5.4)
|
35
|
-
net-imap
|
36
|
-
net-pop
|
37
|
-
net-smtp
|
19
|
+
actionmailbox (8.0.0)
|
20
|
+
actionpack (= 8.0.0)
|
21
|
+
activejob (= 8.0.0)
|
22
|
+
activerecord (= 8.0.0)
|
23
|
+
activestorage (= 8.0.0)
|
24
|
+
activesupport (= 8.0.0)
|
25
|
+
mail (>= 2.8.0)
|
26
|
+
actionmailer (8.0.0)
|
27
|
+
actionpack (= 8.0.0)
|
28
|
+
actionview (= 8.0.0)
|
29
|
+
activejob (= 8.0.0)
|
30
|
+
activesupport (= 8.0.0)
|
31
|
+
mail (>= 2.8.0)
|
38
32
|
rails-dom-testing (~> 2.2)
|
39
|
-
actionpack (
|
40
|
-
actionview (=
|
41
|
-
activesupport (=
|
33
|
+
actionpack (8.0.0)
|
34
|
+
actionview (= 8.0.0)
|
35
|
+
activesupport (= 8.0.0)
|
42
36
|
nokogiri (>= 1.8.5)
|
43
|
-
racc
|
44
37
|
rack (>= 2.2.4)
|
45
38
|
rack-session (>= 1.0.1)
|
46
39
|
rack-test (>= 0.6.3)
|
47
40
|
rails-dom-testing (~> 2.2)
|
48
41
|
rails-html-sanitizer (~> 1.6)
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
42
|
+
useragent (~> 0.16)
|
43
|
+
actiontext (8.0.0)
|
44
|
+
actionpack (= 8.0.0)
|
45
|
+
activerecord (= 8.0.0)
|
46
|
+
activestorage (= 8.0.0)
|
47
|
+
activesupport (= 8.0.0)
|
54
48
|
globalid (>= 0.6.0)
|
55
49
|
nokogiri (>= 1.8.5)
|
56
|
-
actionview (
|
57
|
-
activesupport (=
|
50
|
+
actionview (8.0.0)
|
51
|
+
activesupport (= 8.0.0)
|
58
52
|
builder (~> 3.1)
|
59
53
|
erubi (~> 1.11)
|
60
54
|
rails-dom-testing (~> 2.2)
|
61
55
|
rails-html-sanitizer (~> 1.6)
|
62
|
-
activejob (
|
63
|
-
activesupport (=
|
56
|
+
activejob (8.0.0)
|
57
|
+
activesupport (= 8.0.0)
|
64
58
|
globalid (>= 0.3.6)
|
65
|
-
activemodel (
|
66
|
-
activesupport (=
|
67
|
-
activerecord (
|
68
|
-
activemodel (=
|
69
|
-
activesupport (=
|
59
|
+
activemodel (8.0.0)
|
60
|
+
activesupport (= 8.0.0)
|
61
|
+
activerecord (8.0.0)
|
62
|
+
activemodel (= 8.0.0)
|
63
|
+
activesupport (= 8.0.0)
|
70
64
|
timeout (>= 0.4.0)
|
71
|
-
activestorage (
|
72
|
-
actionpack (=
|
73
|
-
activejob (=
|
74
|
-
activerecord (=
|
75
|
-
activesupport (=
|
65
|
+
activestorage (8.0.0)
|
66
|
+
actionpack (= 8.0.0)
|
67
|
+
activejob (= 8.0.0)
|
68
|
+
activerecord (= 8.0.0)
|
69
|
+
activesupport (= 8.0.0)
|
76
70
|
marcel (~> 1.0)
|
77
|
-
activesupport (
|
71
|
+
activesupport (8.0.0)
|
78
72
|
base64
|
73
|
+
benchmark (>= 0.3)
|
79
74
|
bigdecimal
|
80
|
-
concurrent-ruby (~> 1.0, >= 1.
|
75
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
81
76
|
connection_pool (>= 2.2.5)
|
82
77
|
drb
|
83
78
|
i18n (>= 1.6, < 2)
|
79
|
+
logger (>= 1.4.2)
|
84
80
|
minitest (>= 5.1)
|
85
|
-
|
86
|
-
tzinfo (~> 2.0)
|
81
|
+
securerandom (>= 0.3)
|
82
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
83
|
+
uri (>= 0.13.1)
|
87
84
|
base64 (0.2.0)
|
85
|
+
benchmark (0.4.0)
|
88
86
|
bigdecimal (3.1.8)
|
89
|
-
builder (3.
|
87
|
+
builder (3.3.0)
|
90
88
|
byebug (11.1.3)
|
91
|
-
concurrent-ruby (1.3.
|
89
|
+
concurrent-ruby (1.3.4)
|
92
90
|
connection_pool (2.4.1)
|
93
91
|
crass (1.0.6)
|
94
|
-
date (3.
|
92
|
+
date (3.4.0)
|
95
93
|
diff-lcs (1.5.0)
|
96
94
|
domain_name (0.6.20240107)
|
97
95
|
drb (2.2.1)
|
98
|
-
erubi (1.
|
96
|
+
erubi (1.13.0)
|
99
97
|
globalid (1.2.1)
|
100
98
|
activesupport (>= 6.1)
|
101
99
|
hashie (5.0.0)
|
102
100
|
http-accept (1.7.0)
|
103
101
|
http-cookie (1.0.7)
|
104
102
|
domain_name (~> 0.5)
|
105
|
-
i18n (1.14.
|
103
|
+
i18n (1.14.6)
|
106
104
|
concurrent-ruby (~> 1.0)
|
107
105
|
io-console (0.7.2)
|
108
|
-
irb (1.
|
106
|
+
irb (1.14.1)
|
109
107
|
rdoc (>= 4.0.0)
|
110
108
|
reline (>= 0.4.2)
|
111
|
-
|
109
|
+
logger (1.6.1)
|
110
|
+
loofah (2.23.1)
|
112
111
|
crass (~> 1.0.2)
|
113
112
|
nokogiri (>= 1.12.0)
|
114
113
|
mail (2.8.1)
|
@@ -117,13 +116,13 @@ GEM
|
|
117
116
|
net-pop
|
118
117
|
net-smtp
|
119
118
|
marcel (1.0.4)
|
120
|
-
mime-types (3.
|
119
|
+
mime-types (3.6.0)
|
120
|
+
logger
|
121
121
|
mime-types-data (~> 3.2015)
|
122
|
-
mime-types-data (3.2024.
|
122
|
+
mime-types-data (3.2024.1105)
|
123
123
|
mini_mime (1.1.5)
|
124
|
-
minitest (5.
|
125
|
-
|
126
|
-
net-imap (0.4.11)
|
124
|
+
minitest (5.25.1)
|
125
|
+
net-imap (0.5.1)
|
127
126
|
date
|
128
127
|
net-protocol
|
129
128
|
net-pop (0.1.2)
|
@@ -133,34 +132,33 @@ GEM
|
|
133
132
|
net-smtp (0.5.0)
|
134
133
|
net-protocol
|
135
134
|
netrc (0.11.0)
|
136
|
-
nio4r (2.7.
|
137
|
-
nokogiri (1.16.
|
135
|
+
nio4r (2.7.4)
|
136
|
+
nokogiri (1.16.7-arm64-darwin)
|
138
137
|
racc (~> 1.4)
|
139
|
-
psych (5.
|
138
|
+
psych (5.2.0)
|
140
139
|
stringio
|
141
|
-
racc (1.
|
142
|
-
rack (3.
|
140
|
+
racc (1.8.1)
|
141
|
+
rack (3.1.8)
|
143
142
|
rack-session (2.0.0)
|
144
143
|
rack (>= 3.0.0)
|
145
144
|
rack-test (2.1.0)
|
146
145
|
rack (>= 1.3)
|
147
|
-
rackup (2.1
|
146
|
+
rackup (2.2.1)
|
148
147
|
rack (>= 3)
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
activesupport (= 7.1.3.2)
|
148
|
+
rails (8.0.0)
|
149
|
+
actioncable (= 8.0.0)
|
150
|
+
actionmailbox (= 8.0.0)
|
151
|
+
actionmailer (= 8.0.0)
|
152
|
+
actionpack (= 8.0.0)
|
153
|
+
actiontext (= 8.0.0)
|
154
|
+
actionview (= 8.0.0)
|
155
|
+
activejob (= 8.0.0)
|
156
|
+
activemodel (= 8.0.0)
|
157
|
+
activerecord (= 8.0.0)
|
158
|
+
activestorage (= 8.0.0)
|
159
|
+
activesupport (= 8.0.0)
|
162
160
|
bundler (>= 1.15.0)
|
163
|
-
railties (=
|
161
|
+
railties (= 8.0.0)
|
164
162
|
rails-dom-testing (2.2.0)
|
165
163
|
activesupport (>= 5.0.0)
|
166
164
|
minitest
|
@@ -168,18 +166,18 @@ GEM
|
|
168
166
|
rails-html-sanitizer (1.6.0)
|
169
167
|
loofah (~> 2.21)
|
170
168
|
nokogiri (~> 1.14)
|
171
|
-
railties (
|
172
|
-
actionpack (=
|
173
|
-
activesupport (=
|
174
|
-
irb
|
169
|
+
railties (8.0.0)
|
170
|
+
actionpack (= 8.0.0)
|
171
|
+
activesupport (= 8.0.0)
|
172
|
+
irb (~> 1.13)
|
175
173
|
rackup (>= 1.0.0)
|
176
174
|
rake (>= 12.2)
|
177
175
|
thor (~> 1.0, >= 1.2.2)
|
178
176
|
zeitwerk (~> 2.6)
|
179
177
|
rake (13.0.6)
|
180
|
-
rdoc (6.
|
178
|
+
rdoc (6.8.1)
|
181
179
|
psych (>= 4.0.0)
|
182
|
-
reline (0.5.
|
180
|
+
reline (0.5.11)
|
183
181
|
io-console (~> 0.5)
|
184
182
|
rest-client (2.1.0)
|
185
183
|
http-accept (>= 1.7.0, < 2.0)
|
@@ -199,16 +197,18 @@ GEM
|
|
199
197
|
diff-lcs (>= 1.2.0, < 2.0)
|
200
198
|
rspec-support (~> 3.12.0)
|
201
199
|
rspec-support (3.12.1)
|
202
|
-
|
203
|
-
|
204
|
-
|
200
|
+
securerandom (0.3.2)
|
201
|
+
stringio (3.1.2)
|
202
|
+
thor (1.3.2)
|
203
|
+
timeout (0.4.2)
|
205
204
|
tzinfo (2.0.6)
|
206
205
|
concurrent-ruby (~> 1.0)
|
207
|
-
|
206
|
+
uri (1.0.2)
|
207
|
+
useragent (0.16.10)
|
208
208
|
websocket-driver (0.7.6)
|
209
209
|
websocket-extensions (>= 0.1.0)
|
210
210
|
websocket-extensions (0.1.5)
|
211
|
-
zeitwerk (2.
|
211
|
+
zeitwerk (2.7.1)
|
212
212
|
|
213
213
|
PLATFORMS
|
214
214
|
arm64-darwin-23
|
data/lib/http_store/client.rb
CHANGED
@@ -75,7 +75,8 @@ module HttpStore
|
|
75
75
|
def http_post_execute
|
76
76
|
real_data = json_request? ? data.to_json : data.to_hash
|
77
77
|
# RestClient.post(uri, real_data, headers.symbolize_keys)
|
78
|
-
|
78
|
+
|
79
|
+
RestClient::Request.execute(method: @meta.http_method, url: uri, payload: real_data, headers: headers.to_h.symbolize_keys, verify_ssl: verify_ssl)
|
79
80
|
end
|
80
81
|
end
|
81
82
|
end
|
@@ -16,6 +16,8 @@ module HttpStore
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def uri
|
19
|
+
return url if query_params.blank?
|
20
|
+
|
19
21
|
"#{url}?#{query_params.to_query}"
|
20
22
|
end
|
21
23
|
|
@@ -28,7 +30,7 @@ module HttpStore
|
|
28
30
|
end
|
29
31
|
|
30
32
|
def format_request
|
31
|
-
@meta.http_method =
|
33
|
+
@meta.http_method = http_method.downcase
|
32
34
|
|
33
35
|
@meta.headers ||= { charset: 'UTF-8' }
|
34
36
|
@meta.headers[:content_type] = :json if json_request?
|
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.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- black
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -174,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
174
174
|
- !ruby/object:Gem::Version
|
175
175
|
version: '0'
|
176
176
|
requirements: []
|
177
|
-
rubygems_version: 3.
|
177
|
+
rubygems_version: 3.5.23
|
178
178
|
signing_key:
|
179
179
|
specification_version: 4
|
180
180
|
summary: store the http request, it based on rest-client
|