http_store 0.3.24 → 0.3.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/http_store/helpers/storable.rb +6 -2
- data/lib/http_store/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ea5b823d0827eb5eab4f525425f1b40ae92e738ce5051f82a1194ef93109af2
|
4
|
+
data.tar.gz: 96cda715cd019a616638462a049c2f98c40ae25a2fc9c623377e4de1357ff72e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1309b79c2849852c398ec5213cc3bdf4969f7896410547fd50f6993a10e56ca15df8b5a666dbf9abcb7956834c115f350266221044803fdc9f7535cad02b8980
|
7
|
+
data.tar.gz: 478086a9d32bb0fe9925459d9bf00428aaa6a59dd234fa58ab675c467f98aa57b184c02b58a09a1de35fe8647f64904daf40315f21239f8808f9256467915635
|
data/Gemfile.lock
CHANGED
@@ -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
|
-
|
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.
|
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
|
|
data/lib/http_store/version.rb
CHANGED