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 +4 -4
- data/lib/userbin/request.rb +1 -1
- data/lib/userbin/utils.rb +0 -8
- data/lib/userbin/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10d7f98421bec1b40763ac52f2ec90bd8ae0d3fd
|
4
|
+
data.tar.gz: 79fa5c422ea21f1c1c07c02a32659a3c9891c538
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03db60d571995e9a8df74f4df924fc798a8d3d57934f0d3102a3ec0a18e5b4375d766308e420aa3d40c032fcc27b449052913947b6457569caed0084cdbe6837
|
7
|
+
data.tar.gz: 762d94bb011c286d4e502b57c1e544b5cdc9cbd7e4dc3836a351afe9910e7b0255d09f21796e46e821684c1edf2f302723d4df453ae448a0eecf61a6a8daa489
|
data/lib/userbin/request.rb
CHANGED
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
|
data/lib/userbin/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2014-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: her
|