http_store 0.3.24 → 0.3.25

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: b0d97e88122e731902aea4ed1a0e5aa494dfb82c2940e2715588ed0a9f8a75e4
4
- data.tar.gz: 8224acd49cba235aef780847b5ae7aaeef872f832151fe78c625aec2a1c0ad41
3
+ metadata.gz: 8ea5b823d0827eb5eab4f525425f1b40ae92e738ce5051f82a1194ef93109af2
4
+ data.tar.gz: 96cda715cd019a616638462a049c2f98c40ae25a2fc9c623377e4de1357ff72e
5
5
  SHA512:
6
- metadata.gz: 30db3cc13eca584b133ba2a87391e7c0613f1673cd40433336a4bcf7c098bc4c7017a3c2091a396e72395c08f77bfd68fce86454dff70e3a9fc93d20174e10c6
7
- data.tar.gz: d09d404b82dc70fd35af5b29b210e8f02ac93825821b5dd5757e2989c9942dad1adbe0417976741c910d19685f7350600455f87368ea788868efeba087ffb87c
6
+ metadata.gz: 1309b79c2849852c398ec5213cc3bdf4969f7896410547fd50f6993a10e56ca15df8b5a666dbf9abcb7956834c115f350266221044803fdc9f7535cad02b8980
7
+ data.tar.gz: 478086a9d32bb0fe9925459d9bf00428aaa6a59dd234fa58ab675c467f98aa57b184c02b58a09a1de35fe8647f64904daf40315f21239f8808f9256467915635
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- http_store (0.3.24)
4
+ http_store (0.3.25)
5
5
  activerecord (>= 5.0, < 6.1)
6
6
  hashie (~> 3.0)
7
7
  rails (>= 5, < 7)
@@ -29,7 +29,11 @@ module HttpStore
29
29
  @storeable_record = HttpStore.config.store_class.new(gen_storable_meta)
30
30
  @storeable_record.save!
31
31
  rescue ActiveRecord::StatementInvalid
32
- debugger
32
+
33
+ Rails.logger.info(@storeable_record.response)
34
+ Rails.logger.info(@storeable_record.response.encoding)
35
+ Rails.logger.info(@storeable_record.response.first.encoding)
36
+ Rails.logger.info('xxx' * 2000)
33
37
 
34
38
  @storeable_record.response = Digest::SHA1.hexdigest(@storeable_record.response)
35
39
  @storeable_record.save!
@@ -70,7 +74,7 @@ module HttpStore
70
74
  end
71
75
 
72
76
  def storable_string(str)
73
- str = str.clone.force_encoding("UTF-8")
77
+ str = str.dup.force_encoding("UTF-8")
74
78
  raise EncodingError unless str.encoding.name == 'UTF-8'
75
79
  raise EncodingError unless str.valid_encoding?
76
80
 
@@ -1,3 +1,3 @@
1
1
  module HttpStore
2
- VERSION = "0.3.24"
2
+ VERSION = "0.3.25"
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.24
4
+ version: 0.3.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - black