amorail 0.3.5 → 0.3.6

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: 64a5f20666f547ec054a884b6a11907c10ba6d33
4
- data.tar.gz: e7e11f93b5408ffea0f80f15f4e70f4ac03c5ebd
3
+ metadata.gz: f27da7e06db5208d11aa72f7aeb45ca3cd2f76fb
4
+ data.tar.gz: 2c9dbb361d4a0120d8cc6c5a20fa725335a914ac
5
5
  SHA512:
6
- metadata.gz: e3f035e93ac4be0bb929e0ac7f0a0d0bf28bbf43df6d648720554daa5ebffa5a9b7aad22a2ab250629e67c699380743c96dcb207d5bc8300305bec64f8c82c80
7
- data.tar.gz: 1f2ece52b8c8755d38d9c05eb74cef43e515daac3cd7223c8fdeb6b9c6fe9f79962972057b7af07fb714f4e86a0f55478ee4e0ce30a48874cb72a2bb7e35a9d8
6
+ metadata.gz: efbf4431236ba510abad75638273ce0d554d671e30121b74111265ccbf6130228db17ba995f57b364af39cdaf6c7aa6aa84c9186258c82faa38ef2828daa738e
7
+ data.tar.gz: 2207defd4622199689da2ae48143d4b292e9ad0fcc829beb20d5216ba6f4a21cbc419e8a11d23e1b5782b8eef6643fcab02ff1d4003f1ba189a53b7d3eeeb14d
data/lib/amorail.rb CHANGED
@@ -35,6 +35,7 @@ module Amorail
35
35
  client = Client.new(client) unless client.is_a?(Client)
36
36
  ClientRegistry.client = client
37
37
  yield
38
+ ensure
38
39
  ClientRegistry.client = nil
39
40
  end
40
41
 
@@ -15,9 +15,9 @@ module Amorail
15
15
  @api_key = api_key
16
16
  @usermail = usermail
17
17
  @connect = Faraday.new(url: api_endpoint) do |faraday|
18
- faraday.adapter Faraday.default_adapter
19
18
  faraday.response :json, content_type: /\bjson$/
20
19
  faraday.use :instrumentation
20
+ faraday.adapter Faraday.default_adapter
21
21
  end
22
22
  end
23
23
 
@@ -1,4 +1,4 @@
1
1
  # Amorail version
2
2
  module Amorail
3
- VERSION = "0.3.5".freeze
3
+ VERSION = "0.3.6".freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amorail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - alekseenkoss
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-07-21 00:00:00.000000000 Z
12
+ date: 2017-07-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler