userbin 1.1.2 → 1.1.3

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: ab7291f4f8641ca0a1ffe0903fbfd4e2bebd1b74
4
- data.tar.gz: 94d2c2426c1dfa619ff5048faccfaa93973c7eab
3
+ metadata.gz: 10d7f98421bec1b40763ac52f2ec90bd8ae0d3fd
4
+ data.tar.gz: 79fa5c422ea21f1c1c07c02a32659a3c9891c538
5
5
  SHA512:
6
- metadata.gz: 88361cdd9d7a90a2134ff627561ae0c9e6d406d6bcca9df45894c64c27652eef7512721b52efff61fc03835a4b9fb5543469f8c79c31da2504e7593654254089
7
- data.tar.gz: ba1e0c782a62b622b0d7db7ebbedb6b90e296a34b9aa083378796bfd2571d1b7e7bb9a9da551c6d30e91faeefaf4cdbf003269b166395829dcaf958f548345d8
6
+ metadata.gz: 03db60d571995e9a8df74f4df924fc798a8d3d57934f0d3102a3ec0a18e5b4375d766308e420aa3d40c032fcc27b449052913947b6457569caed0084cdbe6837
7
+ data.tar.gz: 762d94bb011c286d4e502b57c1e544b5cdc9cbd7e4dc3836a351afe9910e7b0255d09f21796e46e821684c1edf2f302723d4df453ae448a0eecf61a6a8daa489
@@ -127,7 +127,7 @@ module Userbin
127
127
  end
128
128
 
129
129
  case env[:status]
130
- when 201..299
130
+ when 200..299
131
131
  # OK
132
132
  when 400
133
133
  raise Userbin::BadRequestError, response[:message]
data/lib/userbin/utils.rb CHANGED
@@ -18,13 +18,5 @@ module Userbin
18
18
  c.use Faraday::Adapter::NetHttp
19
19
  end
20
20
  end
21
-
22
- def with_context(opts, &block)
23
- return block.call unless opts
24
- RequestStore.store[:userbin_headers] = {}
25
- RequestStore.store[:userbin_headers][:ip] = opts[:ip] if opts[:ip]
26
- RequestStore.store[:userbin_headers][:user_agent] = opts[:user_agent] if opts[:user_agent]
27
- block.call
28
- end
29
21
  end
30
22
  end
@@ -1,3 +1,3 @@
1
1
  module Userbin
2
- VERSION = "1.1.2"
2
+ VERSION = "1.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: userbin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-13 00:00:00.000000000 Z
11
+ date: 2014-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: her