http_store 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d19ed690d1cf9d1fb09ea54be7077ba76d99de22adef71981d8ec223ef9233f2
4
- data.tar.gz: 67e08a8941b383daf5ddf8c682848b1436d74a1aa18029b49137f6c17265cf90
3
+ metadata.gz: efe74a757031f1123ecc87e61f81e2743ee95a8edb288a5feab2097a621c59cb
4
+ data.tar.gz: ee93a150b6b6059663cfc73ce91d013777c0e876c66ccdc6204f32ca5ca18189
5
5
  SHA512:
6
- metadata.gz: e5ea3799b181497e6b2a323743a440d598992837ccc421982c4e6177615ed13a0e30ad01b535348d9dbf5f0afd8207ddeaec5f1d9c1f42ce52d7797f9e0ec431
7
- data.tar.gz: 248bacb945b9f30c1c878f925e9c1607786c94fbea26b6c37841f88e984c9349dd592c051c8067c0bd74d5542b90fe28e0eb7acaeca5de798547d03d3c25dca3
6
+ metadata.gz: a5d5c446224bfeb89f9c4336b53f572f0b2db3bbf83d3c366c70898f9bf6b9cb82c1270fbb662cad65cabaf13855b84dfc6701775912d548115453af07aa5989
7
+ data.tar.gz: '09e9c146add47d8cb6482cc0e98d59ba289d1783ba227c02402339fb5b25372d839e77a76bcec5c71a4ba7ed9d3b56ba4f6bcb4546c8be2045bfc8edb979efb7'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- http_store (0.3.0)
4
+ http_store (0.3.1)
5
5
  activerecord (>= 5.0, < 6.1)
6
6
  hashie (~> 3.0)
7
7
  rails (>= 5, < 7)
@@ -3,7 +3,7 @@ class CreateHttpLogs < ActiveRecord::Migration[5.2]
3
3
  create_table :http_logs do |t|
4
4
  # request
5
5
  t.string :http_method, comment: '请求方法'
6
- t.string :url, comment: '请求 URL'
6
+ t.text :url, comment: '请求 URL'
7
7
  t.string :data_type, comment: 'data 参数类型 (form/json)'
8
8
  t.text :headers, comment: '请求 header'
9
9
  t.text :query_params, comment: 'url 参数'
@@ -41,7 +41,7 @@ module HttpStore
41
41
  end
42
42
 
43
43
  def add_meta(hash)
44
- @meta.merge! Hashie::Mash.new(hash).slice(*META_KEYS)
44
+ @meta.merge! Hashie::Mash.new(hash).slice(*HttpStore::REQUEST_KEYS)
45
45
  end
46
46
 
47
47
  def execute
@@ -13,7 +13,7 @@ module HttpStore
13
13
  def store_request
14
14
  return unless HttpStore.config.store_enable
15
15
 
16
- storeable_class.new(storable_meta).save
16
+ HttpStore.config.store_class.new(storable_meta).save
17
17
  end
18
18
 
19
19
  private
@@ -1,3 +1,3 @@
1
1
  module HttpStore
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: http_store
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - black