pupa 0.1.3 → 0.1.4
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 +4 -4
- data/lib/pupa/processor.rb +1 -1
- data/lib/pupa/processor/client.rb +2 -2
- data/lib/pupa/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b859cc31c591efea3402d3d4b0134fdccb394550
|
4
|
+
data.tar.gz: f077f4c7765c50c463e8f65124b19ce14b42f095
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e9eeddce347575a99e50ea67d57e8eb8c1310b8929184f10ffc5ca62da9cc843198a831241411abef829c9d8cb8165f3a6438b67fe6e4b32f4e1317ae7e0f67
|
7
|
+
data.tar.gz: 8ca3a8dde166ac6712baaf53743846ba8cd80e6af87e8436eb8f9481fc24f4cbde180ae9e12f3fc747838292bfbf67f6f3b0659bcf8cb0693772c96b5f5c0e83
|
data/lib/pupa/processor.rb
CHANGED
@@ -24,7 +24,7 @@ module Pupa
|
|
24
24
|
# @param [String] cache_dir the directory or Memcached address
|
25
25
|
# (e.g. `memcached://localhost:11211`) in which to cache HTTP responses
|
26
26
|
# @param [Integer] expires_in the cache's expiration time in seconds
|
27
|
-
# @param [Integer
|
27
|
+
# @param [Integer] value_max_bytes the maximum Memcached item size
|
28
28
|
# @param [String] database_url the database URL
|
29
29
|
# @param [Boolean] validate whether to validate JSON documents
|
30
30
|
# @param [String] level the log level
|
@@ -29,7 +29,7 @@ module Pupa
|
|
29
29
|
# @param [String] cache_dir a directory or a Memcached address
|
30
30
|
# (e.g. `memcached://localhost:11211`) in which to cache requests
|
31
31
|
# @param [Integer] expires_in the cache's expiration time in seconds
|
32
|
-
# @param [Integer
|
32
|
+
# @param [Integer] value_max_bytes the maximum Memcached item size
|
33
33
|
# @param [String] level the log level
|
34
34
|
# @return [Faraday::Connection] a configured Faraday HTTP client
|
35
35
|
def self.new(cache_dir: nil, expires_in: 86400, value_max_bytes: 1048576, level: 'INFO') # 1 day
|
@@ -59,7 +59,7 @@ module Pupa
|
|
59
59
|
connection.response :caching do
|
60
60
|
address = cache_dir[%r{\Amemcached://(.+)\z}, 1]
|
61
61
|
if address
|
62
|
-
ActiveSupport::Cache::MemCacheStore.new(address, expires_in: expires_in, value_max_bytes: value_max_bytes)
|
62
|
+
ActiveSupport::Cache::MemCacheStore.new(address, expires_in: expires_in, value_max_bytes: Integer(value_max_bytes))
|
63
63
|
else
|
64
64
|
ActiveSupport::Cache::FileStore.new(cache_dir, expires_in: expires_in)
|
65
65
|
end
|
data/lib/pupa/version.rb
CHANGED