traitify 1.8.1 → 1.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/traitify/request.rb +4 -10
- data/lib/traitify/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: 58c9b5d889ea03bdf0e6772d54ea60557a4683f5
|
4
|
+
data.tar.gz: 25820511725fc3dcf27e3118edbdc80003fcab57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9038ae9d321c42c792cec46bc35007c4af394700ffa67b8c815a9dce48199e64e8a0b9a3c94ffc539039f9eff96798cc790df8073238a6e54a6470ce1967994e
|
7
|
+
data.tar.gz: 18a402a17d30443eb74a0a05c58de3fc520bd7999cc6cac7244d2f34c90556d5a3ec0e68ae498e706b544bc557fdbabb1325b141bdb4d26c994d2965386a8bb1
|
data/CHANGELOG.md
CHANGED
data/lib/traitify/request.rb
CHANGED
@@ -9,16 +9,10 @@ module Traitify
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def request(method, path, options = {})
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
end.body
|
17
|
-
rescue => e
|
18
|
-
puts e.message
|
19
|
-
puts e.inspect
|
20
|
-
{ error: e.message }
|
21
|
-
end
|
12
|
+
conn(url: host).send(method) do |request|
|
13
|
+
request.url [version, path].join
|
14
|
+
request.body = options.to_json if options
|
15
|
+
end.body
|
22
16
|
end
|
23
17
|
end
|
24
18
|
end
|
data/lib/traitify/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: traitify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Prats
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-04-
|
12
|
+
date: 2015-04-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: hashie
|