http_store 0.3.20 → 0.3.21

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: b1c5d0b95ad36686545d1526f9737351fe73760517fbb8281208e242d631ce72
4
- data.tar.gz: 5430265079392bed903d80b4e78587a503f7aba397b9f24e627bfd364bd22f85
3
+ metadata.gz: 8e3ecccd71c5367524c82782ce1ddac70fe326f39f2357704be8ef59b27e5943
4
+ data.tar.gz: 2fb39abc81ee407414b47f2043968ec58d5fa42593d8137e5de861ce6d8d04ef
5
5
  SHA512:
6
- metadata.gz: 7af0c6df6f132d85ac7806110f6b8691bf2b2ab96966faa7571151933d66fab50cb4bde9afb0f4c00c60211fb90db5eaef0d99560259522ca48ea8cfcc74c5b6
7
- data.tar.gz: ac2f5d44719f1dcc4ca537989a437094b969a0a9e6d785b9b9a205b8802bd1ae48ffd45a49921bef8988d95878512d68116e21eb28495c09cec144377c2c3125
6
+ metadata.gz: 10982d75255d69580a46657c3dda18410bbfc1a86d8fe163cb43950a6f5ce3675ece13f7980116a806f95c8e73aaf4a32946f5715568a805153acda1e54a7731
7
+ data.tar.gz: abeda91adc7daa9a1febbcb9998f2bbed1c0e97acd1a06a79c3de8c163c71bb7b89b875a967386a1fe75955a886a22539ff0c81ac761d50ccd684ee4b1f1598f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- http_store (0.3.20)
4
+ http_store (0.3.21)
5
5
  activerecord (>= 5.0, < 6.1)
6
6
  hashie (~> 3.0)
7
7
  rails (>= 5, < 7)
@@ -29,7 +29,9 @@ module HttpStore
29
29
  @storeable_record = HttpStore.config.store_class.new(gen_storable_meta)
30
30
  @storeable_record.save!
31
31
  rescue
32
- debugger
32
+ p @storeable_record.response.class
33
+ p @storeable_record.response.encoding.name
34
+ p 'zzzz' * 200
33
35
  end
34
36
 
35
37
  def use_cache?
@@ -62,9 +64,15 @@ module HttpStore
62
64
  end
63
65
 
64
66
  def storable_string(str)
67
+ p str.encoding.name
68
+ p 'xxx' * 200
69
+
65
70
  str = str.clone.encode('UTF-8')
66
71
  raise EncodingError unless str.encoding.name == 'UTF-8'
67
72
 
73
+ p str.encoding.name
74
+ p 'yyyy' * 200
75
+
68
76
  str.length > STRING_LIMIT_SIZE ? { digest: Digest::SHA1.hexdigest(str), origin: str[0..1000] } : str
69
77
  rescue EncodingError
70
78
  { digest: Digest::SHA1.hexdigest(str) }
@@ -1,3 +1,3 @@
1
1
  module HttpStore
2
- VERSION = "0.3.20"
2
+ VERSION = "0.3.21"
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.20
4
+ version: 0.3.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - black