http_store 0.7.0 → 0.7.2

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
  SHA256:
3
- metadata.gz: 53b96609132554b6cc8f0aee674e8de99cbdb3810f8e29f2aeb6ab7225abf233
4
- data.tar.gz: 3ed49378b3dd4b8e8a6bd0f5f3749c3562c4e457916d6cbe6afd826de4578861
3
+ metadata.gz: 6c889a2e1684bfbd04644940680f399e3ffdd816328bdd3a588c633e1e503113
4
+ data.tar.gz: 8b5d9658c4d5c28cb6c6981e4503824b1500a40e825c570730407d6cea8402d8
5
5
  SHA512:
6
- metadata.gz: 2d10e7d6ed5accc21c1347c7e8d5ed0b53d49c42f6314ccf4f5c7bcd38ae4cec6bae62a9a1e5eb9f032ed07ce4cc0e1f627d8f91a372fbf94ddea284f80139bd
7
- data.tar.gz: 1fa488c0256a39f314a7eb94b72a8f3781c99681ad846e12d54456c4eccc082a5d97b0082047bedd221dae64e5f78dda7b7f5183610b0119ec7a545ed9614448
6
+ metadata.gz: 8c09b99b38c6c49765dc2c0ba36e48693aa72bf7527bd7f946a2aa95908779853b94fc72dab0e8500247af09c3b7affe7ca903323937fe219825b281cb904a64
7
+ data.tar.gz: d6da62d397254f71f1acabca5d9724679fe2a8da768c77363c97dfcb7414971cfeddf4280b4cec06232d1d55a47c83b510263e2ffa006cfdaf29ef959e9adee8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- http_store (0.7.0)
4
+ http_store (0.7.2)
5
5
  activerecord
6
6
  hashie
7
7
  rails
@@ -10,29 +10,29 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- actioncable (8.0.0)
14
- actionpack (= 8.0.0)
15
- activesupport (= 8.0.0)
13
+ actioncable (8.0.2.1)
14
+ actionpack (= 8.0.2.1)
15
+ activesupport (= 8.0.2.1)
16
16
  nio4r (~> 2.0)
17
17
  websocket-driver (>= 0.6.1)
18
18
  zeitwerk (~> 2.6)
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)
19
+ actionmailbox (8.0.2.1)
20
+ actionpack (= 8.0.2.1)
21
+ activejob (= 8.0.2.1)
22
+ activerecord (= 8.0.2.1)
23
+ activestorage (= 8.0.2.1)
24
+ activesupport (= 8.0.2.1)
25
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)
26
+ actionmailer (8.0.2.1)
27
+ actionpack (= 8.0.2.1)
28
+ actionview (= 8.0.2.1)
29
+ activejob (= 8.0.2.1)
30
+ activesupport (= 8.0.2.1)
31
31
  mail (>= 2.8.0)
32
32
  rails-dom-testing (~> 2.2)
33
- actionpack (8.0.0)
34
- actionview (= 8.0.0)
35
- activesupport (= 8.0.0)
33
+ actionpack (8.0.2.1)
34
+ actionview (= 8.0.2.1)
35
+ activesupport (= 8.0.2.1)
36
36
  nokogiri (>= 1.8.5)
37
37
  rack (>= 2.2.4)
38
38
  rack-session (>= 1.0.1)
@@ -40,35 +40,35 @@ GEM
40
40
  rails-dom-testing (~> 2.2)
41
41
  rails-html-sanitizer (~> 1.6)
42
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)
43
+ actiontext (8.0.2.1)
44
+ actionpack (= 8.0.2.1)
45
+ activerecord (= 8.0.2.1)
46
+ activestorage (= 8.0.2.1)
47
+ activesupport (= 8.0.2.1)
48
48
  globalid (>= 0.6.0)
49
49
  nokogiri (>= 1.8.5)
50
- actionview (8.0.0)
51
- activesupport (= 8.0.0)
50
+ actionview (8.0.2.1)
51
+ activesupport (= 8.0.2.1)
52
52
  builder (~> 3.1)
53
53
  erubi (~> 1.11)
54
54
  rails-dom-testing (~> 2.2)
55
55
  rails-html-sanitizer (~> 1.6)
56
- activejob (8.0.0)
57
- activesupport (= 8.0.0)
56
+ activejob (8.0.2.1)
57
+ activesupport (= 8.0.2.1)
58
58
  globalid (>= 0.3.6)
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)
59
+ activemodel (8.0.2.1)
60
+ activesupport (= 8.0.2.1)
61
+ activerecord (8.0.2.1)
62
+ activemodel (= 8.0.2.1)
63
+ activesupport (= 8.0.2.1)
64
64
  timeout (>= 0.4.0)
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)
65
+ activestorage (8.0.2.1)
66
+ actionpack (= 8.0.2.1)
67
+ activejob (= 8.0.2.1)
68
+ activerecord (= 8.0.2.1)
69
+ activesupport (= 8.0.2.1)
70
70
  marcel (~> 1.0)
71
- activesupport (8.0.0)
71
+ activesupport (8.0.2.1)
72
72
  base64
73
73
  benchmark (>= 0.3)
74
74
  bigdecimal
@@ -81,33 +81,35 @@ GEM
81
81
  securerandom (>= 0.3)
82
82
  tzinfo (~> 2.0, >= 2.0.5)
83
83
  uri (>= 0.13.1)
84
- base64 (0.2.0)
85
- benchmark (0.4.0)
86
- bigdecimal (3.1.8)
84
+ base64 (0.3.0)
85
+ benchmark (0.4.1)
86
+ bigdecimal (3.2.2)
87
87
  builder (3.3.0)
88
88
  byebug (11.1.3)
89
- concurrent-ruby (1.3.4)
90
- connection_pool (2.4.1)
89
+ concurrent-ruby (1.3.5)
90
+ connection_pool (2.5.3)
91
91
  crass (1.0.6)
92
- date (3.4.0)
92
+ date (3.4.1)
93
93
  diff-lcs (1.5.0)
94
94
  domain_name (0.6.20240107)
95
- drb (2.2.1)
96
- erubi (1.13.0)
95
+ drb (2.2.3)
96
+ erb (5.0.2)
97
+ erubi (1.13.1)
97
98
  globalid (1.2.1)
98
99
  activesupport (>= 6.1)
99
100
  hashie (5.0.0)
100
101
  http-accept (1.7.0)
101
- http-cookie (1.0.7)
102
+ http-cookie (1.0.8)
102
103
  domain_name (~> 0.5)
103
- i18n (1.14.6)
104
+ i18n (1.14.7)
104
105
  concurrent-ruby (~> 1.0)
105
- io-console (0.7.2)
106
- irb (1.14.1)
106
+ io-console (0.8.1)
107
+ irb (1.15.2)
108
+ pp (>= 0.6.0)
107
109
  rdoc (>= 4.0.0)
108
110
  reline (>= 0.4.2)
109
- logger (1.6.1)
110
- loofah (2.23.1)
111
+ logger (1.7.0)
112
+ loofah (2.24.1)
111
113
  crass (~> 1.0.2)
112
114
  nokogiri (>= 1.12.0)
113
115
  mail (2.8.1)
@@ -116,68 +118,74 @@ GEM
116
118
  net-pop
117
119
  net-smtp
118
120
  marcel (1.0.4)
119
- mime-types (3.6.0)
121
+ mime-types (3.7.0)
120
122
  logger
121
- mime-types-data (~> 3.2015)
122
- mime-types-data (3.2024.1105)
123
+ mime-types-data (~> 3.2025, >= 3.2025.0507)
124
+ mime-types-data (3.2025.0812)
123
125
  mini_mime (1.1.5)
124
- minitest (5.25.1)
125
- net-imap (0.5.1)
126
+ minitest (5.25.5)
127
+ net-imap (0.5.9)
126
128
  date
127
129
  net-protocol
128
130
  net-pop (0.1.2)
129
131
  net-protocol
130
132
  net-protocol (0.2.2)
131
133
  timeout
132
- net-smtp (0.5.0)
134
+ net-smtp (0.5.1)
133
135
  net-protocol
134
136
  netrc (0.11.0)
135
137
  nio4r (2.7.4)
136
- nokogiri (1.16.7-arm64-darwin)
138
+ nokogiri (1.18.9-arm64-darwin)
137
139
  racc (~> 1.4)
138
- psych (5.2.0)
140
+ pp (0.6.2)
141
+ prettyprint
142
+ prettyprint (0.2.0)
143
+ psych (5.2.6)
144
+ date
139
145
  stringio
140
146
  racc (1.8.1)
141
- rack (3.1.8)
142
- rack-session (2.0.0)
147
+ rack (3.2.0)
148
+ rack-session (2.1.1)
149
+ base64 (>= 0.1.0)
143
150
  rack (>= 3.0.0)
144
- rack-test (2.1.0)
151
+ rack-test (2.2.0)
145
152
  rack (>= 1.3)
146
153
  rackup (2.2.1)
147
154
  rack (>= 3)
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)
155
+ rails (8.0.2.1)
156
+ actioncable (= 8.0.2.1)
157
+ actionmailbox (= 8.0.2.1)
158
+ actionmailer (= 8.0.2.1)
159
+ actionpack (= 8.0.2.1)
160
+ actiontext (= 8.0.2.1)
161
+ actionview (= 8.0.2.1)
162
+ activejob (= 8.0.2.1)
163
+ activemodel (= 8.0.2.1)
164
+ activerecord (= 8.0.2.1)
165
+ activestorage (= 8.0.2.1)
166
+ activesupport (= 8.0.2.1)
160
167
  bundler (>= 1.15.0)
161
- railties (= 8.0.0)
162
- rails-dom-testing (2.2.0)
168
+ railties (= 8.0.2.1)
169
+ rails-dom-testing (2.3.0)
163
170
  activesupport (>= 5.0.0)
164
171
  minitest
165
172
  nokogiri (>= 1.6)
166
- rails-html-sanitizer (1.6.0)
173
+ rails-html-sanitizer (1.6.2)
167
174
  loofah (~> 2.21)
168
- nokogiri (~> 1.14)
169
- railties (8.0.0)
170
- actionpack (= 8.0.0)
171
- activesupport (= 8.0.0)
175
+ nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
176
+ railties (8.0.2.1)
177
+ actionpack (= 8.0.2.1)
178
+ activesupport (= 8.0.2.1)
172
179
  irb (~> 1.13)
173
180
  rackup (>= 1.0.0)
174
181
  rake (>= 12.2)
175
182
  thor (~> 1.0, >= 1.2.2)
176
183
  zeitwerk (~> 2.6)
177
184
  rake (13.0.6)
178
- rdoc (6.8.1)
185
+ rdoc (6.14.2)
186
+ erb
179
187
  psych (>= 4.0.0)
180
- reline (0.5.11)
188
+ reline (0.6.2)
181
189
  io-console (~> 0.5)
182
190
  rest-client (2.1.0)
183
191
  http-accept (>= 1.7.0, < 2.0)
@@ -197,18 +205,19 @@ GEM
197
205
  diff-lcs (>= 1.2.0, < 2.0)
198
206
  rspec-support (~> 3.12.0)
199
207
  rspec-support (3.12.1)
200
- securerandom (0.3.2)
201
- stringio (3.1.2)
202
- thor (1.3.2)
203
- timeout (0.4.2)
208
+ securerandom (0.4.1)
209
+ stringio (3.1.7)
210
+ thor (1.4.0)
211
+ timeout (0.4.3)
204
212
  tzinfo (2.0.6)
205
213
  concurrent-ruby (~> 1.0)
206
- uri (1.0.2)
207
- useragent (0.16.10)
208
- websocket-driver (0.7.6)
214
+ uri (1.0.3)
215
+ useragent (0.16.11)
216
+ websocket-driver (0.8.0)
217
+ base64
209
218
  websocket-extensions (>= 0.1.0)
210
219
  websocket-extensions (0.1.5)
211
- zeitwerk (2.7.1)
220
+ zeitwerk (2.7.3)
212
221
 
213
222
  PLATFORMS
214
223
  arm64-darwin-23
@@ -73,7 +73,7 @@ module HttpStore
73
73
  end
74
74
 
75
75
  def http_post_execute
76
- real_data = json_request? ? data.to_json : data.to_hash
76
+ real_data = json_request? ? data.to_json : data
77
77
  # RestClient.post(uri, real_data, headers.symbolize_keys)
78
78
 
79
79
  RestClient::Request.execute(method: @meta.http_method, url: uri, payload: real_data, headers: headers.to_h.symbolize_keys, verify_ssl: verify_ssl)
@@ -13,8 +13,10 @@ module HttpStore
13
13
  status, headers, body = @app.call(env)
14
14
  [status, headers, body]
15
15
  ensure
16
- build_meta(env, status, headers, body)
17
- store_request
16
+ unless headers.try(:[], 'skip-http-store')
17
+ build_meta(env, status, headers, body)
18
+ store_request
19
+ end
18
20
  end
19
21
 
20
22
  def build_meta(env, status, headers, body)
@@ -1,3 +1,3 @@
1
1
  module HttpStore
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: http_store
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - black
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2025-03-06 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: rest-client
@@ -159,7 +158,6 @@ metadata:
159
158
  allowed_push_host: https://rubygems.org
160
159
  homepage_uri: https://github.com/308820773/http-store
161
160
  source_code_uri: https://github.com/308820773/http-store
162
- post_install_message:
163
161
  rdoc_options: []
164
162
  require_paths:
165
163
  - lib
@@ -174,8 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
174
172
  - !ruby/object:Gem::Version
175
173
  version: '0'
176
174
  requirements: []
177
- rubygems_version: 3.5.23
178
- signing_key:
175
+ rubygems_version: 3.7.1
179
176
  specification_version: 4
180
177
  summary: store the http request, it based on rest-client
181
178
  test_files: []