http_store 0.5.6 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/Gemfile.lock +118 -89
- data/README.md +11 -2
- data/db/migrate/3_add_index_to_http_log.rb +5 -0
- data/lib/http_store/middleware/request_log.rb +1 -0
- data/lib/http_store/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3fc35f82b4c13ee6d7fa07fc1e4e6e94c64888ead6e5287baac7481d4b873cc3
|
4
|
+
data.tar.gz: b6eb03d409312936461f71e0785194583d738baad2d7c175f69c589480e88ba0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1e33fd7b35fcd01a17f864137a43ff1f757083f5da10a9cbb7d841f98da584eba59ffb247e731040d084554f1bc562202544d38fd34d23fffeba534f2a6ccd5
|
7
|
+
data.tar.gz: 54f1031493c66d8bdbb5c987c3100556698cdc9e3ea751d3b6826b5bfbc78443a51194e1d457262c0f709dea806450ea5fb5acfd2461c5b83a7e435a3d3c31e7
|
data/.gitignore
CHANGED
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.6.0)
|
5
5
|
activerecord
|
6
6
|
hashie
|
7
7
|
rails
|
@@ -10,89 +10,106 @@ PATH
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
12
12
|
specs:
|
13
|
-
actioncable (7.
|
14
|
-
actionpack (= 7.
|
15
|
-
activesupport (= 7.
|
13
|
+
actioncable (7.1.2)
|
14
|
+
actionpack (= 7.1.2)
|
15
|
+
activesupport (= 7.1.2)
|
16
16
|
nio4r (~> 2.0)
|
17
17
|
websocket-driver (>= 0.6.1)
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
18
|
+
zeitwerk (~> 2.6)
|
19
|
+
actionmailbox (7.1.2)
|
20
|
+
actionpack (= 7.1.2)
|
21
|
+
activejob (= 7.1.2)
|
22
|
+
activerecord (= 7.1.2)
|
23
|
+
activestorage (= 7.1.2)
|
24
|
+
activesupport (= 7.1.2)
|
24
25
|
mail (>= 2.7.1)
|
25
26
|
net-imap
|
26
27
|
net-pop
|
27
28
|
net-smtp
|
28
|
-
actionmailer (7.
|
29
|
-
actionpack (= 7.
|
30
|
-
actionview (= 7.
|
31
|
-
activejob (= 7.
|
32
|
-
activesupport (= 7.
|
29
|
+
actionmailer (7.1.2)
|
30
|
+
actionpack (= 7.1.2)
|
31
|
+
actionview (= 7.1.2)
|
32
|
+
activejob (= 7.1.2)
|
33
|
+
activesupport (= 7.1.2)
|
33
34
|
mail (~> 2.5, >= 2.5.4)
|
34
35
|
net-imap
|
35
36
|
net-pop
|
36
37
|
net-smtp
|
37
|
-
rails-dom-testing (~> 2.
|
38
|
-
actionpack (7.
|
39
|
-
actionview (= 7.
|
40
|
-
activesupport (= 7.
|
41
|
-
|
38
|
+
rails-dom-testing (~> 2.2)
|
39
|
+
actionpack (7.1.2)
|
40
|
+
actionview (= 7.1.2)
|
41
|
+
activesupport (= 7.1.2)
|
42
|
+
nokogiri (>= 1.8.5)
|
43
|
+
racc
|
44
|
+
rack (>= 2.2.4)
|
45
|
+
rack-session (>= 1.0.1)
|
42
46
|
rack-test (>= 0.6.3)
|
43
|
-
rails-dom-testing (~> 2.
|
44
|
-
rails-html-sanitizer (~> 1.
|
45
|
-
actiontext (7.
|
46
|
-
actionpack (= 7.
|
47
|
-
activerecord (= 7.
|
48
|
-
activestorage (= 7.
|
49
|
-
activesupport (= 7.
|
47
|
+
rails-dom-testing (~> 2.2)
|
48
|
+
rails-html-sanitizer (~> 1.6)
|
49
|
+
actiontext (7.1.2)
|
50
|
+
actionpack (= 7.1.2)
|
51
|
+
activerecord (= 7.1.2)
|
52
|
+
activestorage (= 7.1.2)
|
53
|
+
activesupport (= 7.1.2)
|
50
54
|
globalid (>= 0.6.0)
|
51
55
|
nokogiri (>= 1.8.5)
|
52
|
-
actionview (7.
|
53
|
-
activesupport (= 7.
|
56
|
+
actionview (7.1.2)
|
57
|
+
activesupport (= 7.1.2)
|
54
58
|
builder (~> 3.1)
|
55
|
-
erubi (~> 1.
|
56
|
-
rails-dom-testing (~> 2.
|
57
|
-
rails-html-sanitizer (~> 1.
|
58
|
-
activejob (7.
|
59
|
-
activesupport (= 7.
|
59
|
+
erubi (~> 1.11)
|
60
|
+
rails-dom-testing (~> 2.2)
|
61
|
+
rails-html-sanitizer (~> 1.6)
|
62
|
+
activejob (7.1.2)
|
63
|
+
activesupport (= 7.1.2)
|
60
64
|
globalid (>= 0.3.6)
|
61
|
-
activemodel (7.
|
62
|
-
activesupport (= 7.
|
63
|
-
activerecord (7.
|
64
|
-
activemodel (= 7.
|
65
|
-
activesupport (= 7.
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
65
|
+
activemodel (7.1.2)
|
66
|
+
activesupport (= 7.1.2)
|
67
|
+
activerecord (7.1.2)
|
68
|
+
activemodel (= 7.1.2)
|
69
|
+
activesupport (= 7.1.2)
|
70
|
+
timeout (>= 0.4.0)
|
71
|
+
activestorage (7.1.2)
|
72
|
+
actionpack (= 7.1.2)
|
73
|
+
activejob (= 7.1.2)
|
74
|
+
activerecord (= 7.1.2)
|
75
|
+
activesupport (= 7.1.2)
|
71
76
|
marcel (~> 1.0)
|
72
|
-
|
73
|
-
|
77
|
+
activesupport (7.1.2)
|
78
|
+
base64
|
79
|
+
bigdecimal
|
74
80
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
81
|
+
connection_pool (>= 2.2.5)
|
82
|
+
drb
|
75
83
|
i18n (>= 1.6, < 2)
|
76
84
|
minitest (>= 5.1)
|
85
|
+
mutex_m
|
77
86
|
tzinfo (~> 2.0)
|
87
|
+
base64 (0.2.0)
|
88
|
+
bigdecimal (3.1.5)
|
78
89
|
builder (3.2.4)
|
79
90
|
byebug (11.1.3)
|
80
91
|
concurrent-ruby (1.2.2)
|
92
|
+
connection_pool (2.4.1)
|
81
93
|
crass (1.0.6)
|
82
|
-
date (3.3.
|
94
|
+
date (3.3.4)
|
83
95
|
diff-lcs (1.5.0)
|
84
|
-
domain_name (0.
|
85
|
-
|
96
|
+
domain_name (0.6.20231109)
|
97
|
+
drb (2.2.0)
|
98
|
+
ruby2_keywords
|
86
99
|
erubi (1.12.0)
|
87
|
-
globalid (1.1
|
88
|
-
activesupport (>=
|
100
|
+
globalid (1.2.1)
|
101
|
+
activesupport (>= 6.1)
|
89
102
|
hashie (5.0.0)
|
90
103
|
http-accept (1.7.0)
|
91
104
|
http-cookie (1.0.5)
|
92
105
|
domain_name (~> 0.5)
|
93
106
|
i18n (1.14.1)
|
94
107
|
concurrent-ruby (~> 1.0)
|
95
|
-
|
108
|
+
io-console (0.7.1)
|
109
|
+
irb (1.10.1)
|
110
|
+
rdoc
|
111
|
+
reline (>= 0.3.8)
|
112
|
+
loofah (2.22.0)
|
96
113
|
crass (~> 1.0.2)
|
97
114
|
nokogiri (>= 1.12.0)
|
98
115
|
mail (2.8.1)
|
@@ -101,58 +118,70 @@ GEM
|
|
101
118
|
net-pop
|
102
119
|
net-smtp
|
103
120
|
marcel (1.0.2)
|
104
|
-
|
105
|
-
mime-types (3.4.1)
|
121
|
+
mime-types (3.5.1)
|
106
122
|
mime-types-data (~> 3.2015)
|
107
|
-
mime-types-data (3.2023.
|
123
|
+
mime-types-data (3.2023.1205)
|
108
124
|
mini_mime (1.1.5)
|
109
|
-
minitest (5.
|
110
|
-
|
125
|
+
minitest (5.20.0)
|
126
|
+
mutex_m (0.2.0)
|
127
|
+
net-imap (0.4.8)
|
111
128
|
date
|
112
129
|
net-protocol
|
113
130
|
net-pop (0.1.2)
|
114
131
|
net-protocol
|
115
|
-
net-protocol (0.2.
|
132
|
+
net-protocol (0.2.2)
|
116
133
|
timeout
|
117
|
-
net-smtp (0.
|
134
|
+
net-smtp (0.4.0)
|
118
135
|
net-protocol
|
119
136
|
netrc (0.11.0)
|
120
|
-
nio4r (2.
|
121
|
-
nokogiri (1.15.
|
137
|
+
nio4r (2.7.0)
|
138
|
+
nokogiri (1.15.5-x86_64-darwin)
|
122
139
|
racc (~> 1.4)
|
123
|
-
|
124
|
-
|
140
|
+
psych (5.1.2)
|
141
|
+
stringio
|
142
|
+
racc (1.7.3)
|
143
|
+
rack (3.0.8)
|
144
|
+
rack-session (2.0.0)
|
145
|
+
rack (>= 3.0.0)
|
125
146
|
rack-test (2.1.0)
|
126
147
|
rack (>= 1.3)
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
148
|
+
rackup (2.1.0)
|
149
|
+
rack (>= 3)
|
150
|
+
webrick (~> 1.8)
|
151
|
+
rails (7.1.2)
|
152
|
+
actioncable (= 7.1.2)
|
153
|
+
actionmailbox (= 7.1.2)
|
154
|
+
actionmailer (= 7.1.2)
|
155
|
+
actionpack (= 7.1.2)
|
156
|
+
actiontext (= 7.1.2)
|
157
|
+
actionview (= 7.1.2)
|
158
|
+
activejob (= 7.1.2)
|
159
|
+
activemodel (= 7.1.2)
|
160
|
+
activerecord (= 7.1.2)
|
161
|
+
activestorage (= 7.1.2)
|
162
|
+
activesupport (= 7.1.2)
|
139
163
|
bundler (>= 1.15.0)
|
140
|
-
railties (= 7.
|
141
|
-
rails-dom-testing (2.
|
164
|
+
railties (= 7.1.2)
|
165
|
+
rails-dom-testing (2.2.0)
|
142
166
|
activesupport (>= 5.0.0)
|
143
167
|
minitest
|
144
168
|
nokogiri (>= 1.6)
|
145
169
|
rails-html-sanitizer (1.6.0)
|
146
170
|
loofah (~> 2.21)
|
147
171
|
nokogiri (~> 1.14)
|
148
|
-
railties (7.
|
149
|
-
actionpack (= 7.
|
150
|
-
activesupport (= 7.
|
151
|
-
|
172
|
+
railties (7.1.2)
|
173
|
+
actionpack (= 7.1.2)
|
174
|
+
activesupport (= 7.1.2)
|
175
|
+
irb
|
176
|
+
rackup (>= 1.0.0)
|
152
177
|
rake (>= 12.2)
|
153
|
-
thor (~> 1.0)
|
154
|
-
zeitwerk (~> 2.
|
178
|
+
thor (~> 1.0, >= 1.2.2)
|
179
|
+
zeitwerk (~> 2.6)
|
155
180
|
rake (13.0.6)
|
181
|
+
rdoc (6.6.2)
|
182
|
+
psych (>= 4.0.0)
|
183
|
+
reline (0.4.1)
|
184
|
+
io-console (~> 0.5)
|
156
185
|
rest-client (2.1.0)
|
157
186
|
http-accept (>= 1.7.0, < 2.0)
|
158
187
|
http-cookie (>= 1.0.2, < 2.0)
|
@@ -171,17 +200,17 @@ GEM
|
|
171
200
|
diff-lcs (>= 1.2.0, < 2.0)
|
172
201
|
rspec-support (~> 3.12.0)
|
173
202
|
rspec-support (3.12.1)
|
174
|
-
|
175
|
-
|
203
|
+
ruby2_keywords (0.0.5)
|
204
|
+
stringio (3.1.0)
|
205
|
+
thor (1.3.0)
|
206
|
+
timeout (0.4.1)
|
176
207
|
tzinfo (2.0.6)
|
177
208
|
concurrent-ruby (~> 1.0)
|
178
|
-
|
179
|
-
unf_ext
|
180
|
-
unf_ext (0.0.8.2)
|
209
|
+
webrick (1.8.1)
|
181
210
|
websocket-driver (0.7.6)
|
182
211
|
websocket-extensions (>= 0.1.0)
|
183
212
|
websocket-extensions (0.1.5)
|
184
|
-
zeitwerk (2.6.
|
213
|
+
zeitwerk (2.6.12)
|
185
214
|
|
186
215
|
PLATFORMS
|
187
216
|
x86_64-darwin-21
|
data/README.md
CHANGED
@@ -24,7 +24,7 @@ first, you need create migration whit this command.
|
|
24
24
|
|
25
25
|
```bash
|
26
26
|
rake http_store_engine:install:migrations # create table(default)
|
27
|
-
rails
|
27
|
+
rails g http_store:initializer # create global settings
|
28
28
|
```
|
29
29
|
|
30
30
|
|
@@ -71,6 +71,15 @@ class BaseClient < HttpStore::Client
|
|
71
71
|
end
|
72
72
|
```
|
73
73
|
|
74
|
+
### store all rails request
|
75
|
+
|
76
|
+
```ruby
|
77
|
+
# config/application.rb
|
78
|
+
|
79
|
+
config.middleware.use HttpStore::Middleware::RequestLog
|
80
|
+
|
81
|
+
```
|
82
|
+
|
74
83
|
### HttpStore::HttpLog
|
75
84
|
|
76
85
|
Default use activerecord, you can to rewrite it by setting
|
@@ -92,4 +101,4 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
92
101
|
|
93
102
|
## Contributing
|
94
103
|
|
95
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
104
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/blackerhand/http-store.
|
@@ -30,6 +30,7 @@ module HttpStore
|
|
30
30
|
path: request.path,
|
31
31
|
http_method: request.request_method,
|
32
32
|
data: request.params,
|
33
|
+
client_type: request.params.client_type,
|
33
34
|
headers: request.headers.select { |k, _v| k.start_with? 'HTTP_' }.to_h,
|
34
35
|
query_params: request.query_parameters,
|
35
36
|
force: true,
|
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.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- black
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-12-
|
11
|
+
date: 2023-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -141,6 +141,7 @@ files:
|
|
141
141
|
- bin/setup
|
142
142
|
- db/migrate/1_create_http_logs.rb
|
143
143
|
- db/migrate/2_add_cache_response_field_to_http_log.rb
|
144
|
+
- db/migrate/3_add_index_to_http_log.rb
|
144
145
|
- db/migrate/3_add_retry_times_field_to_http_log.rb
|
145
146
|
- http_store.gemspec
|
146
147
|
- lib/generators/http_store/initializer_generator.rb
|