http_store 0.6.5 → 0.6.6

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: f2e4186bd3b3e01595c14925d778912591b3c99a5642f3a6ad6e964767dfd3cd
4
- data.tar.gz: bc501f774c428c046799401c7e599ae7a174491787e668e83682eee88c483e78
3
+ metadata.gz: 50289b06d6a5fa0b7375403017e4343aa29a2b807342090be766b1acee7209ac
4
+ data.tar.gz: dd354079a1e281a3a6178c678cfeebdb980d29c802ff603ddecd70bac367d5ef
5
5
  SHA512:
6
- metadata.gz: 141855265f8240eddd298a057efc71d0ae144959d24fdc21384fa12ab98d1cfb05682ed789d777d11767b4ececb9c4a0343af5c97e9b7a1a6f6a3d72e3e9a14a
7
- data.tar.gz: f611ca17409ba059e6fa1aef48ad787f8a0cfe07e3163eb3ed00b28cbafd78fa36142ec7d4fcb0c96cdcbd00c063c45df332c5d718d5013e2c1a1e1d0c5a2f05
6
+ metadata.gz: 638b4bc61e69972a50bae124dc71f20309806635575fa6b5738bf4d7948ab5c966c8e87b01c67ace70c7d206ecbecb55bdf43aceaf7fcfebadb2ecc6404a5949
7
+ data.tar.gz: 84936e2a03d2255d0aa667c350a245b3537fe7a1ed75fd4582f90035f8192ca175505072f42bdb4ba69bc30492d2b0b24ef2efb46ab92f5c94fd0d12dec3d16b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- http_store (0.6.5)
4
+ http_store (0.6.6)
5
5
  activerecord
6
6
  hashie
7
7
  rails
@@ -10,35 +10,35 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- actioncable (7.1.2)
14
- actionpack (= 7.1.2)
15
- activesupport (= 7.1.2)
13
+ actioncable (7.1.3)
14
+ actionpack (= 7.1.3)
15
+ activesupport (= 7.1.3)
16
16
  nio4r (~> 2.0)
17
17
  websocket-driver (>= 0.6.1)
18
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)
19
+ actionmailbox (7.1.3)
20
+ actionpack (= 7.1.3)
21
+ activejob (= 7.1.3)
22
+ activerecord (= 7.1.3)
23
+ activestorage (= 7.1.3)
24
+ activesupport (= 7.1.3)
25
25
  mail (>= 2.7.1)
26
26
  net-imap
27
27
  net-pop
28
28
  net-smtp
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)
29
+ actionmailer (7.1.3)
30
+ actionpack (= 7.1.3)
31
+ actionview (= 7.1.3)
32
+ activejob (= 7.1.3)
33
+ activesupport (= 7.1.3)
34
34
  mail (~> 2.5, >= 2.5.4)
35
35
  net-imap
36
36
  net-pop
37
37
  net-smtp
38
38
  rails-dom-testing (~> 2.2)
39
- actionpack (7.1.2)
40
- actionview (= 7.1.2)
41
- activesupport (= 7.1.2)
39
+ actionpack (7.1.3)
40
+ actionview (= 7.1.3)
41
+ activesupport (= 7.1.3)
42
42
  nokogiri (>= 1.8.5)
43
43
  racc
44
44
  rack (>= 2.2.4)
@@ -46,35 +46,35 @@ GEM
46
46
  rack-test (>= 0.6.3)
47
47
  rails-dom-testing (~> 2.2)
48
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)
49
+ actiontext (7.1.3)
50
+ actionpack (= 7.1.3)
51
+ activerecord (= 7.1.3)
52
+ activestorage (= 7.1.3)
53
+ activesupport (= 7.1.3)
54
54
  globalid (>= 0.6.0)
55
55
  nokogiri (>= 1.8.5)
56
- actionview (7.1.2)
57
- activesupport (= 7.1.2)
56
+ actionview (7.1.3)
57
+ activesupport (= 7.1.3)
58
58
  builder (~> 3.1)
59
59
  erubi (~> 1.11)
60
60
  rails-dom-testing (~> 2.2)
61
61
  rails-html-sanitizer (~> 1.6)
62
- activejob (7.1.2)
63
- activesupport (= 7.1.2)
62
+ activejob (7.1.3)
63
+ activesupport (= 7.1.3)
64
64
  globalid (>= 0.3.6)
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)
65
+ activemodel (7.1.3)
66
+ activesupport (= 7.1.3)
67
+ activerecord (7.1.3)
68
+ activemodel (= 7.1.3)
69
+ activesupport (= 7.1.3)
70
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
+ activestorage (7.1.3)
72
+ actionpack (= 7.1.3)
73
+ activejob (= 7.1.3)
74
+ activerecord (= 7.1.3)
75
+ activesupport (= 7.1.3)
76
76
  marcel (~> 1.0)
77
- activesupport (7.1.2)
77
+ activesupport (7.1.3)
78
78
  base64
79
79
  bigdecimal
80
80
  concurrent-ruby (~> 1.0, >= 1.0.2)
@@ -85,15 +85,15 @@ GEM
85
85
  mutex_m
86
86
  tzinfo (~> 2.0)
87
87
  base64 (0.2.0)
88
- bigdecimal (3.1.5)
88
+ bigdecimal (3.1.6)
89
89
  builder (3.2.4)
90
90
  byebug (11.1.3)
91
- concurrent-ruby (1.2.2)
91
+ concurrent-ruby (1.2.3)
92
92
  connection_pool (2.4.1)
93
93
  crass (1.0.6)
94
94
  date (3.3.4)
95
95
  diff-lcs (1.5.0)
96
- domain_name (0.6.20231109)
96
+ domain_name (0.6.20240107)
97
97
  drb (2.2.0)
98
98
  ruby2_keywords
99
99
  erubi (1.12.0)
@@ -105,10 +105,10 @@ GEM
105
105
  domain_name (~> 0.5)
106
106
  i18n (1.14.1)
107
107
  concurrent-ruby (~> 1.0)
108
- io-console (0.7.1)
109
- irb (1.11.0)
108
+ io-console (0.7.2)
109
+ irb (1.11.1)
110
110
  rdoc
111
- reline (>= 0.3.8)
111
+ reline (>= 0.4.2)
112
112
  loofah (2.22.0)
113
113
  crass (~> 1.0.2)
114
114
  nokogiri (>= 1.12.0)
@@ -118,20 +118,20 @@ GEM
118
118
  net-pop
119
119
  net-smtp
120
120
  marcel (1.0.2)
121
- mime-types (3.5.1)
121
+ mime-types (3.5.2)
122
122
  mime-types-data (~> 3.2015)
123
123
  mime-types-data (3.2023.1205)
124
124
  mini_mime (1.1.5)
125
- minitest (5.20.0)
125
+ minitest (5.21.2)
126
126
  mutex_m (0.2.0)
127
- net-imap (0.4.9)
127
+ net-imap (0.4.9.1)
128
128
  date
129
129
  net-protocol
130
130
  net-pop (0.1.2)
131
131
  net-protocol
132
132
  net-protocol (0.2.2)
133
133
  timeout
134
- net-smtp (0.4.0)
134
+ net-smtp (0.4.0.1)
135
135
  net-protocol
136
136
  netrc (0.11.0)
137
137
  nio4r (2.7.0)
@@ -148,20 +148,20 @@ GEM
148
148
  rackup (2.1.0)
149
149
  rack (>= 3)
150
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)
151
+ rails (7.1.3)
152
+ actioncable (= 7.1.3)
153
+ actionmailbox (= 7.1.3)
154
+ actionmailer (= 7.1.3)
155
+ actionpack (= 7.1.3)
156
+ actiontext (= 7.1.3)
157
+ actionview (= 7.1.3)
158
+ activejob (= 7.1.3)
159
+ activemodel (= 7.1.3)
160
+ activerecord (= 7.1.3)
161
+ activestorage (= 7.1.3)
162
+ activesupport (= 7.1.3)
163
163
  bundler (>= 1.15.0)
164
- railties (= 7.1.2)
164
+ railties (= 7.1.3)
165
165
  rails-dom-testing (2.2.0)
166
166
  activesupport (>= 5.0.0)
167
167
  minitest
@@ -169,9 +169,9 @@ GEM
169
169
  rails-html-sanitizer (1.6.0)
170
170
  loofah (~> 2.21)
171
171
  nokogiri (~> 1.14)
172
- railties (7.1.2)
173
- actionpack (= 7.1.2)
174
- activesupport (= 7.1.2)
172
+ railties (7.1.3)
173
+ actionpack (= 7.1.3)
174
+ activesupport (= 7.1.3)
175
175
  irb
176
176
  rackup (>= 1.0.0)
177
177
  rake (>= 12.2)
@@ -180,7 +180,7 @@ GEM
180
180
  rake (13.0.6)
181
181
  rdoc (6.6.2)
182
182
  psych (>= 4.0.0)
183
- reline (0.4.1)
183
+ reline (0.4.2)
184
184
  io-console (~> 0.5)
185
185
  rest-client (2.1.0)
186
186
  http-accept (>= 1.7.0, < 2.0)
@@ -56,8 +56,12 @@ module HttpStore
56
56
  store_request
57
57
  end
58
58
 
59
+ def verify_ssl
60
+ !!other_params[:verify_ssl]
61
+ end
62
+
59
63
  def http_get_execute
60
- RestClient.get(uri, headers)
64
+ RestClient::Request.execute(method: :get, url: uri, headers: headers.symbolize_keys, verify_ssl: verify_ssl)
61
65
  rescue RestClient::ExceptionWithResponse => e
62
66
  # :nocov:
63
67
  e.response
@@ -67,7 +71,7 @@ module HttpStore
67
71
  def http_post_execute
68
72
  real_data = json_request? ? data.to_json : data.to_hash
69
73
  # RestClient.post(uri, real_data, headers.symbolize_keys)
70
- RestClient::Request.execute(method: :post, url: url, payload: real_data, headers: headers.symbolize_keys, verify_ssl: false)
74
+ RestClient::Request.execute(method: :post, url: url, payload: real_data, headers: headers.symbolize_keys, verify_ssl: verify_ssl)
71
75
  rescue RestClient::ExceptionWithResponse => e
72
76
  # :nocov:
73
77
  e.response
@@ -1,3 +1,3 @@
1
1
  module HttpStore
2
- VERSION = "0.6.5"
2
+ VERSION = "0.6.6"
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.5
4
+ version: 0.6.6
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-28 00:00:00.000000000 Z
11
+ date: 2024-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client