pupa 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 42f24f0ce80904061a8e69816d4e79fde4dbe670
4
- data.tar.gz: 0fed52e60471fd221c754e78cb4f5c693d65685f
3
+ metadata.gz: b859cc31c591efea3402d3d4b0134fdccb394550
4
+ data.tar.gz: f077f4c7765c50c463e8f65124b19ce14b42f095
5
5
  SHA512:
6
- metadata.gz: a92f9eee8c77f8aa64e308a046dfb458915915d698dcde93966fb34e0dd1fc619db3721ad8d63e0573634799ba575b05659665ff09fb7a16d7f694f5defe14c7
7
- data.tar.gz: e783da61d5569f39db20b01c3f27916ac360155aecaf1e0435343ae48cdf3a7e7b1fa5f7f4754fe4ba22e31f86249fd1a54262e58786f5482ac7b6cc18d2591a
6
+ metadata.gz: 3e9eeddce347575a99e50ea67d57e8eb8c1310b8929184f10ffc5ca62da9cc843198a831241411abef829c9d8cb8165f3a6438b67fe6e4b32f4e1317ae7e0f67
7
+ data.tar.gz: 8ca3a8dde166ac6712baaf53743846ba8cd80e6af87e8436eb8f9481fc24f4cbde180ae9e12f3fc747838292bfbf67f6f3b0659bcf8cb0693772c96b5f5c0e83
@@ -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,String] value_max_bytes the maximum Memcached item size
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,String] value_max_bytes the maximum Memcached item size
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
@@ -1,3 +1,3 @@
1
1
  module Pupa
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pupa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Open North