http_store 0.3.20 → 0.3.21
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 +9 -1
- 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: 8e3ecccd71c5367524c82782ce1ddac70fe326f39f2357704be8ef59b27e5943
|
4
|
+
data.tar.gz: 2fb39abc81ee407414b47f2043968ec58d5fa42593d8137e5de861ce6d8d04ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10982d75255d69580a46657c3dda18410bbfc1a86d8fe163cb43950a6f5ce3675ece13f7980116a806f95c8e73aaf4a32946f5715568a805153acda1e54a7731
|
7
|
+
data.tar.gz: abeda91adc7daa9a1febbcb9998f2bbed1c0e97acd1a06a79c3de8c163c71bb7b89b875a967386a1fe75955a886a22539ff0c81ac761d50ccd684ee4b1f1598f
|
data/Gemfile.lock
CHANGED
@@ -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
|
-
|
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) }
|
data/lib/http_store/version.rb
CHANGED