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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c3cd34b55c4fc5c175628f5198184352c708c551
4
- data.tar.gz: bfd50eab239dd0a81313ae9c2831f4c6bc2cdaff
3
+ metadata.gz: b5b037f2cb4327fb6b9049529051d24e7c261c12
4
+ data.tar.gz: 9caaa7de355cf5bd693cddce3b6225774816ae58
5
5
  SHA512:
6
- metadata.gz: eee3dde5157af66a4bf3e319892700306c66e2200058a303e10cc2dde3775977c1cc5f99f939ccddd78f3178d23a9bbe92755573a2e977732d9fc314db04fcc5
7
- data.tar.gz: 9fdbeb73d2bcbf0477588b9ee3afe9739c27019239c8de7e02828fcac85219ad764c238e808a2d5d2989a2ac7d00c7ac0b85ff7fbe8243f4fc26344be52d9004
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
- params: { payload: request.as_json },
30
- headers: { Authorization: ActionController::HttpAuthentication::Token.encode_credentials(InformantRails::Config.api_token) }
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://api.informantapp.com/api/v1', InformantRails::Config.server_environment].join('/')
63
+ @api_url ||= ['http://localhost:3000.informantapp.com/api/v1', InformantRails::Config.server_environment].join('/')
61
64
  end
62
65
  end
63
66
  end
@@ -1,3 +1,3 @@
1
1
  module InformantRails
2
- VERSION = '0.1.0'
2
+ VERSION = '0.2.0'
3
3
  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.1.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-01 00:00:00.000000000 Z
12
+ date: 2014-05-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails