lusnoc 1.0.0.44554 → 1.0.0.70325

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/lusnoc/session.rb +1 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 90445dafb1e54e6853fa95ce716a864d07807123f098f4672a529aeea213ca94
4
- data.tar.gz: 98ffc60ae582648aa55f505e720e065099de188f84936f9628f8df15726a976a
3
+ metadata.gz: bb34cf9c0298c287853840b632bba99c26366c00d22c6707edff4c100c79b6ea
4
+ data.tar.gz: ff3cf1b6d5db904261f0e6ecceb3393ba9e5ea14b408bf8150a816fd2ac6ee55
5
5
  SHA512:
6
- metadata.gz: b3845f4ae750adba61aa04bb1a5a87dcfef791d82cd01363b45a0a89bc60db6da5621ebf3cca6ae9461eac2555dc5a80f01ba1a8263a774b04312f10b7b1ddca
7
- data.tar.gz: 147f9fda2cadfa4f20d25bc039549e7bb1b0eb8f5300c80b24d29145a3e7d078f1791391fde519f471f4135b8b6cd7734bd318d0b84a64c7015a2c10d3ee8846
6
+ metadata.gz: 2fe4689e9edf5be69f6d0c881c2ac3ad40248e649164347c4bcba6134530d38bbe4aa90fe187ffba4f7452f85a9f8c9e766194f69b32c0586ab00392c9b3b65f
7
+ data.tar.gz: 7cde1cc5d3617a4de67958528b07cf2ab7a81faa04653174df8c654375c3c090b4de483a3fd024620e8bdbaf28320b79070260ce0d5a75e00b59619d0e5ba542
@@ -63,7 +63,7 @@ module Lusnoc
63
63
  def create_session(name, ttl)
64
64
  resp = Lusnoc.http_put(build_url('/v1/session/create'),
65
65
  { Name: name, TTL: "#{ttl}s", LockDelay: '5s' },
66
- { timeout: 1 })
66
+ **{ timeout: 1 })
67
67
  session_id = JSON.parse(resp.body)['ID']
68
68
  @expired_at = Time.now + ttl
69
69
  logger.info "Session[#{name}:#{session_id}] created. TTL:#{ttl}s. Next expiration: #{@expired_at}"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lusnoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.44554
4
+ version: 1.0.0.70325
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samoilenko Yuri
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-13 00:00:00.000000000 Z
11
+ date: 2021-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler