rest-tor 0.1.4 → 0.1.5

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
  SHA1:
3
- metadata.gz: 2e8915b30c4321b069ab153e473351376943242e
4
- data.tar.gz: d1091b5f18c5ab86d234786aa2111871539beda2
3
+ metadata.gz: 5e50d7b404cef945ffc0aaf379acad03d87ec101
4
+ data.tar.gz: f7107864fc0f7e5f18dc1353b5d9b7363cfc08f9
5
5
  SHA512:
6
- metadata.gz: 75a266319482a39a9ac9df64e140c395aeac2c6ca1fe476d5966974f7afeca8277979920ead6d9ee63a1473159a331ee6976e8deba5d53d272d70ce5529cecdf
7
- data.tar.gz: 5736e68c8a496d9c354de9591f9b4bacdfc5c79a4fd9cd63a6e03a3481b55e2426ec13c05da37698aa17826f4b9ee87e7c432cf2120d127e40f294beedc69598
6
+ metadata.gz: 7526c39536f9f345c5df205f295991b28359f6f6070e4611179e98e3a438a8707f0cfe39e1f3a91a767dd35c9a18e3ca3c9d0642b41b78a4094d2a23b52d0ed2
7
+ data.tar.gz: f7aafdca0a6728767c12b1453645b6eb0fc6e6d7a9c5313ce1e164d50b4da6c647b7de2c71a48ee146e09f658ec20553401904baaed93b3277a928d5a0199d8e
@@ -1,6 +1,6 @@
1
1
  module Tor
2
2
  module Lock
3
- def lock(key, expires: 10*60, timeout: 1 * 60 * 0, &block)
3
+ def lock(key, expires: 10.minutes, timeout: 1.hour, &block)
4
4
  Redis::Lock.new("tor:lock:#{key}", expiration: expires, timeout: timeout).lock { yield }
5
5
  end
6
6
 
@@ -1,4 +1,5 @@
1
1
  require 'pathname'
2
+ require 'rest_tor/lock'
2
3
  module Tor extend self
3
4
  extend Lock
4
5
  class Error < StandardError; end
@@ -1,3 +1,3 @@
1
1
  module Tor
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
 
12
12
  spec.summary = "Tor for ruby"
13
13
  spec.description = 'Tor for ruby'
14
- spec.homepage = 'https://github.com/plusor'
14
+ spec.homepage = 'https://github.com/plusor/rest-tor'
15
15
  spec.license = "MIT"
16
16
 
17
17
  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rest-tor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - plusor
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-12-16 00:00:00.000000000 Z
11
+ date: 2017-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -148,7 +148,7 @@ files:
148
148
  - lib/rest_tor/utils.rb
149
149
  - lib/rest_tor/version.rb
150
150
  - rest-tor.gemspec
151
- homepage: https://github.com/plusor
151
+ homepage: https://github.com/plusor/rest-tor
152
152
  licenses:
153
153
  - MIT
154
154
  metadata: