informant-rails 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/informant-rails/client.rb +6 -3
- data/lib/informant-rails/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: b5b037f2cb4327fb6b9049529051d24e7c261c12
|
4
|
+
data.tar.gz: 9caaa7de355cf5bd693cddce3b6225774816ae58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39c1b4ed82a2543fb64ff077f79458a351d2d94f6422a9a853ad6c79025a9939bb22b01e1c2cf338dbcd6b980b93a30080ba8e25e320faede5d785b2fa50fd7f
|
7
|
+
data.tar.gz: 32e3bd65593db38c2c43e935c2992ed94d3413b8ad1025b20cb6eda9cb88021369990d3f19e8d059610f3e3329efcf8ed0e3a82dd508b364baa2cf84a586cf4f
|
@@ -26,8 +26,11 @@ module InformantRails
|
|
26
26
|
Typhoeus::Request.new(
|
27
27
|
api_url,
|
28
28
|
method: :post,
|
29
|
-
|
30
|
-
headers: {
|
29
|
+
body: { payload: request.as_json },
|
30
|
+
headers: {
|
31
|
+
"Authorization" => ActionController::HttpAuthentication::Token.encode_credentials(InformantRails::Config.api_token),
|
32
|
+
"Content-Type" => "application/json"
|
33
|
+
}
|
31
34
|
).run
|
32
35
|
end
|
33
36
|
ensure
|
@@ -57,7 +60,7 @@ module InformantRails
|
|
57
60
|
end
|
58
61
|
|
59
62
|
def self.api_url
|
60
|
-
@api_url ||= ['http://
|
63
|
+
@api_url ||= ['http://localhost:3000.informantapp.com/api/v1', InformantRails::Config.server_environment].join('/')
|
61
64
|
end
|
62
65
|
end
|
63
66
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: informant-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Elliott
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-05-
|
12
|
+
date: 2014-05-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|