http_store 0.3.14 → 0.3.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +51 -67
- data/lib/http_store/helpers/storable.rb +1 -5
- 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: ab2f3e80f1c8a6d5ffce3c6393ee4ec304986deb01396b5462f1d485191acd41
|
4
|
+
data.tar.gz: cbff2df0c9d9c0fc84fd197de25ef7ed597425b45f754a8a8dfbaa0a35dce1c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 252015a8e3e4d7bfc4bc5cb7602f9171d00e00c1b19296f2571e94c4c04344c13b5052bd90c0c83d9218f6893b7053c6d68e3839f47301ffd02687e72e336bcf
|
7
|
+
data.tar.gz: 567b619a91c16a60d38da313e37d43f603a50018c221e88ff48e2b23cbd9bbe82afc36e1e45a3a2fb29a96905a4a29cf4c1562c6e41a7e9f902e7de388ae548a
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
http_store (0.3.
|
4
|
+
http_store (0.3.15)
|
5
5
|
activerecord (>= 5.0, < 6.1)
|
6
6
|
hashie (~> 3.0)
|
7
7
|
rails (>= 5, < 7)
|
@@ -10,78 +10,65 @@ PATH
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
12
12
|
specs:
|
13
|
-
actioncable (
|
14
|
-
actionpack (=
|
13
|
+
actioncable (5.2.3)
|
14
|
+
actionpack (= 5.2.3)
|
15
15
|
nio4r (~> 2.0)
|
16
16
|
websocket-driver (>= 0.6.1)
|
17
|
-
|
18
|
-
actionpack (=
|
19
|
-
|
20
|
-
|
21
|
-
activestorage (= 6.0.0)
|
22
|
-
activesupport (= 6.0.0)
|
23
|
-
mail (>= 2.7.1)
|
24
|
-
actionmailer (6.0.0)
|
25
|
-
actionpack (= 6.0.0)
|
26
|
-
actionview (= 6.0.0)
|
27
|
-
activejob (= 6.0.0)
|
17
|
+
actionmailer (5.2.3)
|
18
|
+
actionpack (= 5.2.3)
|
19
|
+
actionview (= 5.2.3)
|
20
|
+
activejob (= 5.2.3)
|
28
21
|
mail (~> 2.5, >= 2.5.4)
|
29
22
|
rails-dom-testing (~> 2.0)
|
30
|
-
actionpack (
|
31
|
-
actionview (=
|
32
|
-
activesupport (=
|
23
|
+
actionpack (5.2.3)
|
24
|
+
actionview (= 5.2.3)
|
25
|
+
activesupport (= 5.2.3)
|
33
26
|
rack (~> 2.0)
|
34
27
|
rack-test (>= 0.6.3)
|
35
28
|
rails-dom-testing (~> 2.0)
|
36
|
-
rails-html-sanitizer (~> 1.0, >= 1.2
|
37
|
-
|
38
|
-
|
39
|
-
activerecord (= 6.0.0)
|
40
|
-
activestorage (= 6.0.0)
|
41
|
-
activesupport (= 6.0.0)
|
42
|
-
nokogiri (>= 1.8.5)
|
43
|
-
actionview (6.0.0)
|
44
|
-
activesupport (= 6.0.0)
|
29
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
30
|
+
actionview (5.2.3)
|
31
|
+
activesupport (= 5.2.3)
|
45
32
|
builder (~> 3.1)
|
46
33
|
erubi (~> 1.4)
|
47
34
|
rails-dom-testing (~> 2.0)
|
48
|
-
rails-html-sanitizer (~> 1.
|
49
|
-
activejob (
|
50
|
-
activesupport (=
|
35
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
36
|
+
activejob (5.2.3)
|
37
|
+
activesupport (= 5.2.3)
|
51
38
|
globalid (>= 0.3.6)
|
52
|
-
activemodel (
|
53
|
-
activesupport (=
|
54
|
-
activerecord (
|
55
|
-
activemodel (=
|
56
|
-
activesupport (=
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
activerecord (=
|
39
|
+
activemodel (5.2.3)
|
40
|
+
activesupport (= 5.2.3)
|
41
|
+
activerecord (5.2.3)
|
42
|
+
activemodel (= 5.2.3)
|
43
|
+
activesupport (= 5.2.3)
|
44
|
+
arel (>= 9.0)
|
45
|
+
activestorage (5.2.3)
|
46
|
+
actionpack (= 5.2.3)
|
47
|
+
activerecord (= 5.2.3)
|
61
48
|
marcel (~> 0.3.1)
|
62
|
-
activesupport (
|
49
|
+
activesupport (5.2.3)
|
63
50
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
64
51
|
i18n (>= 0.7, < 2)
|
65
52
|
minitest (~> 5.1)
|
66
53
|
tzinfo (~> 1.1)
|
67
|
-
|
54
|
+
arel (9.0.0)
|
68
55
|
builder (3.2.3)
|
69
56
|
byebug (11.0.1)
|
70
57
|
concurrent-ruby (1.1.5)
|
71
|
-
crass (1.0.
|
58
|
+
crass (1.0.4)
|
72
59
|
diff-lcs (1.3)
|
73
60
|
domain_name (0.5.20190701)
|
74
61
|
unf (>= 0.0.5, < 1.0.0)
|
75
|
-
erubi (1.
|
62
|
+
erubi (1.8.0)
|
76
63
|
globalid (0.4.2)
|
77
64
|
activesupport (>= 4.2.0)
|
78
65
|
hashie (3.6.0)
|
79
66
|
http-accept (1.7.0)
|
80
67
|
http-cookie (1.0.3)
|
81
68
|
domain_name (~> 0.5)
|
82
|
-
i18n (1.
|
69
|
+
i18n (1.6.0)
|
83
70
|
concurrent-ruby (~> 1.0)
|
84
|
-
loofah (2.3
|
71
|
+
loofah (2.2.3)
|
85
72
|
crass (~> 1.0.2)
|
86
73
|
nokogiri (>= 1.5.9)
|
87
74
|
mail (2.7.1)
|
@@ -95,40 +82,38 @@ GEM
|
|
95
82
|
mimemagic (0.3.3)
|
96
83
|
mini_mime (1.0.2)
|
97
84
|
mini_portile2 (2.4.0)
|
98
|
-
minitest (5.
|
85
|
+
minitest (5.11.3)
|
99
86
|
netrc (0.11.0)
|
100
|
-
nio4r (2.5.
|
87
|
+
nio4r (2.5.1)
|
101
88
|
nokogiri (1.10.4)
|
102
89
|
mini_portile2 (~> 2.4.0)
|
103
90
|
rack (2.0.7)
|
104
91
|
rack-test (1.1.0)
|
105
92
|
rack (>= 1.0, < 3)
|
106
|
-
rails (
|
107
|
-
actioncable (=
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
activestorage (= 6.0.0)
|
117
|
-
activesupport (= 6.0.0)
|
93
|
+
rails (5.2.3)
|
94
|
+
actioncable (= 5.2.3)
|
95
|
+
actionmailer (= 5.2.3)
|
96
|
+
actionpack (= 5.2.3)
|
97
|
+
actionview (= 5.2.3)
|
98
|
+
activejob (= 5.2.3)
|
99
|
+
activemodel (= 5.2.3)
|
100
|
+
activerecord (= 5.2.3)
|
101
|
+
activestorage (= 5.2.3)
|
102
|
+
activesupport (= 5.2.3)
|
118
103
|
bundler (>= 1.3.0)
|
119
|
-
railties (=
|
104
|
+
railties (= 5.2.3)
|
120
105
|
sprockets-rails (>= 2.0.0)
|
121
106
|
rails-dom-testing (2.0.3)
|
122
107
|
activesupport (>= 4.2.0)
|
123
108
|
nokogiri (>= 1.6)
|
124
|
-
rails-html-sanitizer (1.
|
125
|
-
loofah (~> 2.
|
126
|
-
railties (
|
127
|
-
actionpack (=
|
128
|
-
activesupport (=
|
109
|
+
rails-html-sanitizer (1.2.0)
|
110
|
+
loofah (~> 2.2, >= 2.2.2)
|
111
|
+
railties (5.2.3)
|
112
|
+
actionpack (= 5.2.3)
|
113
|
+
activesupport (= 5.2.3)
|
129
114
|
method_source
|
130
115
|
rake (>= 0.8.7)
|
131
|
-
thor (>= 0.
|
116
|
+
thor (>= 0.19.0, < 2.0)
|
132
117
|
rake (10.5.0)
|
133
118
|
rest-client (2.1.0)
|
134
119
|
http-accept (>= 1.7.0, < 2.0)
|
@@ -148,7 +133,7 @@ GEM
|
|
148
133
|
diff-lcs (>= 1.2.0, < 2.0)
|
149
134
|
rspec-support (~> 3.8.0)
|
150
135
|
rspec-support (3.8.2)
|
151
|
-
sprockets (
|
136
|
+
sprockets (3.7.2)
|
152
137
|
concurrent-ruby (~> 1.0)
|
153
138
|
rack (> 1, < 3)
|
154
139
|
sprockets-rails (3.2.1)
|
@@ -165,7 +150,6 @@ GEM
|
|
165
150
|
websocket-driver (0.7.1)
|
166
151
|
websocket-extensions (>= 0.1.0)
|
167
152
|
websocket-extensions (0.1.4)
|
168
|
-
zeitwerk (2.2.0)
|
169
153
|
|
170
154
|
PLATFORMS
|
171
155
|
ruby
|
@@ -26,7 +26,7 @@ module HttpStore
|
|
26
26
|
return unless HttpStore.config.store_enable
|
27
27
|
|
28
28
|
@meta.parent_id = storeable_record.id if use_cache?
|
29
|
-
@storeable_record = HttpStore.config.store_class.new(
|
29
|
+
@storeable_record = HttpStore.config.store_class.new(gen_storable_meta)
|
30
30
|
@storeable_record.save!
|
31
31
|
end
|
32
32
|
|
@@ -34,10 +34,6 @@ module HttpStore
|
|
34
34
|
@use_cache ||= !@meta.force && storeable_record.present?
|
35
35
|
end
|
36
36
|
|
37
|
-
def storable_meta
|
38
|
-
@storable_meta ||= gen_storable_meta
|
39
|
-
end
|
40
|
-
|
41
37
|
def gen_storable_meta
|
42
38
|
@meta.slice(*HttpStore::STORE_KEYS).map do |k, v|
|
43
39
|
[k, v.is_a?(Hash) || v.is_a?(Array) ? storable(v).to_json[0..STRING_LIMIT_SIZE] : v]
|
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.3.
|
4
|
+
version: 0.3.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- black
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -186,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
186
186
|
- !ruby/object:Gem::Version
|
187
187
|
version: '0'
|
188
188
|
requirements: []
|
189
|
-
rubygems_version: 3.0.
|
189
|
+
rubygems_version: 3.0.4
|
190
190
|
signing_key:
|
191
191
|
specification_version: 4
|
192
192
|
summary: store the http request, it based on rest-client
|