http_store 0.6.13 → 0.6.15

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: bf49a98c2e4d42899404d4ec30adbae7b4f72f5ed6fb4ca5e683dcc6bd8b2c41
4
- data.tar.gz: ed4cedc6c46bba95f08033ebbfe7dcf7a82c40b28382f0bc2a5288c5f6295e33
3
+ metadata.gz: f160e7bedb07cc6734e7f1531074e1aded2a2f4c0304ae4f06cca72b7a9e9d1a
4
+ data.tar.gz: 76042056d85926fac5e361b85bd501b6722aeef0a8490399e44aa64c46a149df
5
5
  SHA512:
6
- metadata.gz: 32821f61285171f9f5f00b85227e6216d5ae2cf16ab2a687794d13f0297816206905135858c2e902e16020d3558178e9cc148e6a8057332e15cff0c5ac719a8f
7
- data.tar.gz: ac228f5c01ebd9fad4a81367128d636eb7eb5b6c07e0f109ce0673de9bde5f427ec305477e0345f68731d53bb87f4e13155140ca3ea470f0dc475e9ec9335c48
6
+ metadata.gz: ae7f966316e32f3c87003015a5b79ef1dff68905d7a073600edebf525b89820047d3607ea2283bafccca0abb67c7088df3f12f7ddba4793a3b7725fc74da851d
7
+ data.tar.gz: 0073f7ffa2a7e2027ed382706841a8b5d52b71849b5093063613b29889ce2634a5daa88d851b22b108b7da57e2b4392d6ce9b3475df3eb8cbad183abf160bd84
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- http_store (0.6.13)
4
+ http_store (0.6.15)
5
5
  activerecord
6
6
  hashie
7
7
  rails
@@ -10,88 +10,92 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- actioncable (7.2.0)
14
- actionpack (= 7.2.0)
15
- activesupport (= 7.2.0)
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.2.0)
20
- actionpack (= 7.2.0)
21
- activejob (= 7.2.0)
22
- activerecord (= 7.2.0)
23
- activestorage (= 7.2.0)
24
- activesupport (= 7.2.0)
25
- mail (>= 2.8.0)
26
- actionmailer (7.2.0)
27
- actionpack (= 7.2.0)
28
- actionview (= 7.2.0)
29
- activejob (= 7.2.0)
30
- activesupport (= 7.2.0)
31
- mail (>= 2.8.0)
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
+ mail (>= 2.7.1)
26
+ net-imap
27
+ net-pop
28
+ net-smtp
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
+ mail (~> 2.5, >= 2.5.4)
35
+ net-imap
36
+ net-pop
37
+ net-smtp
32
38
  rails-dom-testing (~> 2.2)
33
- actionpack (7.2.0)
34
- actionview (= 7.2.0)
35
- activesupport (= 7.2.0)
39
+ actionpack (7.1.3.2)
40
+ actionview (= 7.1.3.2)
41
+ activesupport (= 7.1.3.2)
36
42
  nokogiri (>= 1.8.5)
37
43
  racc
38
- rack (>= 2.2.4, < 3.2)
44
+ rack (>= 2.2.4)
39
45
  rack-session (>= 1.0.1)
40
46
  rack-test (>= 0.6.3)
41
47
  rails-dom-testing (~> 2.2)
42
48
  rails-html-sanitizer (~> 1.6)
43
- useragent (~> 0.16)
44
- actiontext (7.2.0)
45
- actionpack (= 7.2.0)
46
- activerecord (= 7.2.0)
47
- activestorage (= 7.2.0)
48
- activesupport (= 7.2.0)
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)
49
54
  globalid (>= 0.6.0)
50
55
  nokogiri (>= 1.8.5)
51
- actionview (7.2.0)
52
- activesupport (= 7.2.0)
56
+ actionview (7.1.3.2)
57
+ activesupport (= 7.1.3.2)
53
58
  builder (~> 3.1)
54
59
  erubi (~> 1.11)
55
60
  rails-dom-testing (~> 2.2)
56
61
  rails-html-sanitizer (~> 1.6)
57
- activejob (7.2.0)
58
- activesupport (= 7.2.0)
62
+ activejob (7.1.3.2)
63
+ activesupport (= 7.1.3.2)
59
64
  globalid (>= 0.3.6)
60
- activemodel (7.2.0)
61
- activesupport (= 7.2.0)
62
- activerecord (7.2.0)
63
- activemodel (= 7.2.0)
64
- activesupport (= 7.2.0)
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)
65
70
  timeout (>= 0.4.0)
66
- activestorage (7.2.0)
67
- actionpack (= 7.2.0)
68
- activejob (= 7.2.0)
69
- activerecord (= 7.2.0)
70
- activesupport (= 7.2.0)
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)
71
76
  marcel (~> 1.0)
72
- activesupport (7.2.0)
77
+ activesupport (7.1.3.2)
73
78
  base64
74
79
  bigdecimal
75
- concurrent-ruby (~> 1.0, >= 1.3.1)
80
+ concurrent-ruby (~> 1.0, >= 1.0.2)
76
81
  connection_pool (>= 2.2.5)
77
82
  drb
78
83
  i18n (>= 1.6, < 2)
79
- logger (>= 1.4.2)
80
84
  minitest (>= 5.1)
81
- securerandom (>= 0.3)
82
- tzinfo (~> 2.0, >= 2.0.5)
85
+ mutex_m
86
+ tzinfo (~> 2.0)
83
87
  base64 (0.2.0)
84
88
  bigdecimal (3.1.8)
85
- builder (3.3.0)
89
+ builder (3.2.4)
86
90
  byebug (11.1.3)
87
- concurrent-ruby (1.3.4)
91
+ concurrent-ruby (1.3.3)
88
92
  connection_pool (2.4.1)
89
93
  crass (1.0.6)
90
94
  date (3.3.4)
91
95
  diff-lcs (1.5.0)
92
96
  domain_name (0.6.20240107)
93
97
  drb (2.2.1)
94
- erubi (1.13.0)
98
+ erubi (1.12.0)
95
99
  globalid (1.2.1)
96
100
  activesupport (>= 6.1)
97
101
  hashie (5.0.0)
@@ -101,10 +105,9 @@ GEM
101
105
  i18n (1.14.5)
102
106
  concurrent-ruby (~> 1.0)
103
107
  io-console (0.7.2)
104
- irb (1.14.0)
108
+ irb (1.13.1)
105
109
  rdoc (>= 4.0.0)
106
110
  reline (>= 0.4.2)
107
- logger (1.6.0)
108
111
  loofah (2.22.0)
109
112
  crass (~> 1.0.2)
110
113
  nokogiri (>= 1.12.0)
@@ -118,8 +121,9 @@ GEM
118
121
  mime-types-data (~> 3.2015)
119
122
  mime-types-data (3.2024.0806)
120
123
  mini_mime (1.1.5)
121
- minitest (5.24.1)
122
- net-imap (0.4.14)
124
+ minitest (5.22.3)
125
+ mutex_m (0.2.0)
126
+ net-imap (0.4.11)
123
127
  date
124
128
  net-protocol
125
129
  net-pop (0.1.2)
@@ -130,14 +134,12 @@ GEM
130
134
  net-protocol
131
135
  netrc (0.11.0)
132
136
  nio4r (2.7.3)
133
- nokogiri (1.16.7-arm64-darwin)
134
- racc (~> 1.4)
135
- nokogiri (1.16.7-x86_64-darwin)
137
+ nokogiri (1.16.5-arm64-darwin)
136
138
  racc (~> 1.4)
137
139
  psych (5.1.2)
138
140
  stringio
139
- racc (1.8.1)
140
- rack (3.1.7)
141
+ racc (1.7.3)
142
+ rack (3.0.11)
141
143
  rack-session (2.0.0)
142
144
  rack (>= 3.0.0)
143
145
  rack-test (2.1.0)
@@ -145,20 +147,20 @@ GEM
145
147
  rackup (2.1.0)
146
148
  rack (>= 3)
147
149
  webrick (~> 1.8)
148
- rails (7.2.0)
149
- actioncable (= 7.2.0)
150
- actionmailbox (= 7.2.0)
151
- actionmailer (= 7.2.0)
152
- actionpack (= 7.2.0)
153
- actiontext (= 7.2.0)
154
- actionview (= 7.2.0)
155
- activejob (= 7.2.0)
156
- activemodel (= 7.2.0)
157
- activerecord (= 7.2.0)
158
- activestorage (= 7.2.0)
159
- activesupport (= 7.2.0)
150
+ rails (7.1.3.2)
151
+ actioncable (= 7.1.3.2)
152
+ actionmailbox (= 7.1.3.2)
153
+ actionmailer (= 7.1.3.2)
154
+ actionpack (= 7.1.3.2)
155
+ actiontext (= 7.1.3.2)
156
+ actionview (= 7.1.3.2)
157
+ activejob (= 7.1.3.2)
158
+ activemodel (= 7.1.3.2)
159
+ activerecord (= 7.1.3.2)
160
+ activestorage (= 7.1.3.2)
161
+ activesupport (= 7.1.3.2)
160
162
  bundler (>= 1.15.0)
161
- railties (= 7.2.0)
163
+ railties (= 7.1.3.2)
162
164
  rails-dom-testing (2.2.0)
163
165
  activesupport (>= 5.0.0)
164
166
  minitest
@@ -166,18 +168,18 @@ GEM
166
168
  rails-html-sanitizer (1.6.0)
167
169
  loofah (~> 2.21)
168
170
  nokogiri (~> 1.14)
169
- railties (7.2.0)
170
- actionpack (= 7.2.0)
171
- activesupport (= 7.2.0)
172
- irb (~> 1.13)
171
+ railties (7.1.3.2)
172
+ actionpack (= 7.1.3.2)
173
+ activesupport (= 7.1.3.2)
174
+ irb
173
175
  rackup (>= 1.0.0)
174
176
  rake (>= 12.2)
175
177
  thor (~> 1.0, >= 1.2.2)
176
178
  zeitwerk (~> 2.6)
177
179
  rake (13.0.6)
178
- rdoc (6.7.0)
180
+ rdoc (6.6.3.1)
179
181
  psych (>= 4.0.0)
180
- reline (0.5.9)
182
+ reline (0.5.6)
181
183
  io-console (~> 0.5)
182
184
  rest-client (2.1.0)
183
185
  http-accept (>= 1.7.0, < 2.0)
@@ -197,18 +199,16 @@ GEM
197
199
  diff-lcs (>= 1.2.0, < 2.0)
198
200
  rspec-support (~> 3.12.0)
199
201
  rspec-support (3.12.1)
200
- securerandom (0.3.1)
201
- stringio (3.1.1)
202
+ stringio (3.1.0)
202
203
  thor (1.3.1)
203
204
  timeout (0.4.1)
204
205
  tzinfo (2.0.6)
205
206
  concurrent-ruby (~> 1.0)
206
- useragent (0.16.10)
207
207
  webrick (1.8.1)
208
208
  websocket-driver (0.7.6)
209
209
  websocket-extensions (>= 0.1.0)
210
210
  websocket-extensions (0.1.5)
211
- zeitwerk (2.6.17)
211
+ zeitwerk (2.6.13)
212
212
 
213
213
  PLATFORMS
214
214
  arm64-darwin-23
@@ -24,13 +24,16 @@ module HttpStore
24
24
  end
25
25
 
26
26
  # you can rewrite this callback, to store the request
27
- def store_request
27
+ def store_request(save_now = true)
28
28
  return unless HttpStore.config.store_enable
29
29
 
30
- @meta.parent_id = storeable_record.id if use_cache?
31
- HttpStore::Job::HttpLogStoreJob.perform_later(gen_storable_meta)
32
- # @storeable_record = store_class.new(gen_storable_meta)
33
- # @storeable_record.save!
30
+ if save_now
31
+ @storeable_record = store_class.new(gen_storable_meta)
32
+ @storeable_record.save!
33
+ else
34
+ @meta.parent_id = storeable_record.id if use_cache?
35
+ HttpStore::Job::HttpLogStoreJob.perform_later(gen_storable_meta)
36
+ end
34
37
  end
35
38
 
36
39
  def store_class
@@ -4,7 +4,7 @@ module HttpStore
4
4
  queue_as :default
5
5
 
6
6
  def perform(meta)
7
- @storeable_record = HttpStore.config.store_class.new(meta)
7
+ @storeable_record = HttpStore.config.store_class.to_s.constantize.new(meta)
8
8
  @storeable_record.save!
9
9
  end
10
10
  end
@@ -14,7 +14,7 @@ module HttpStore
14
14
  [status, headers, body]
15
15
  ensure
16
16
  build_meta(env, status, headers, body)
17
- store_request
17
+ store_request(false)
18
18
  end
19
19
 
20
20
  def build_meta(env, status, headers, body)
@@ -1,3 +1,3 @@
1
1
  module HttpStore
2
- VERSION = "0.6.13"
2
+ VERSION = "0.6.15"
3
3
  end
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.13
4
+ version: 0.6.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - black
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-08-11 00:00:00.000000000 Z
11
+ date: 2024-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client