reach5 0.1.0 → 0.1.1

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: 8d219d584e8557fb2b2969e16da8c8b6001387c2
4
- data.tar.gz: e1050873cd63c0f42f414cc2687b71e04d7b71ab
3
+ metadata.gz: 10e729327827200d703cdcc75ed670ce74dd0dd8
4
+ data.tar.gz: 3d09f6c6b0c64484af7a533aa1aebb23abf7d3de
5
5
  SHA512:
6
- metadata.gz: a41bf94fa99820912a93d7a3a67ebee423666230a519f5abf429522eb2e35d005c711482ccb2f777531dfb90b614a03f3cd6b0921af3b5d231e6a71307f86ed0
7
- data.tar.gz: eaf632dc98b20e78a4e44222ba18a8a001f9ed54565cc69eea9b3811c814d767222835b961f1d6730c9c92f5106cc5c0f194603b11ff80d40b3d6e690e54d4eb
6
+ metadata.gz: a7cf873d23ecb6af1ec7d173bbcc199fad1864c638191e63a71a47fd94e24c241785fefafb09cc3bd448791effd9e86c3c21182cd25add4c4a74eb25f8364d90
7
+ data.tar.gz: bba8da874f6091e32e3051d94d4cfa0b9d34c0c53d23f54531d6f1655c6d01de0018d60cd06ff849a7398a74c08260006da9329f387b40f3135c60d68bce939d
@@ -1,4 +1,15 @@
1
+ Changelog
2
+ =========
3
+
4
+ This project follows semantic versionning.
5
+
6
+ v0.1.1 - 2017-01-31
7
+ -------------------
8
+
9
+ Fixes:
10
+ - User-agent is given through headers instead of params
11
+
1
12
  v0.1.0 - 2017-01-30
2
- ===================
13
+ -------------------
3
14
 
4
15
  First release.
data/README.md CHANGED
@@ -19,7 +19,7 @@ Add these lines to your application's Gemfile:
19
19
 
20
20
  ```rb
21
21
  # Reach5 Customer Identity Management Platform API
22
- gem "reach5", git: "https://github.com/sunny/reach5"
22
+ gem "reach5"
23
23
  ```
24
24
 
25
25
  And then execute:
@@ -36,13 +36,17 @@ module Reach5
36
36
  provider_token:,
37
37
  provider_secret: nil,
38
38
  user_agent: nil)
39
+
39
40
  params = {
40
41
  provider: provider,
41
42
  provider_token: provider_token,
42
43
  provider_secret: provider_secret,
43
- user_agent: user_agent,
44
44
  }
45
- HTTP.post("#{host}/api/v1/login", params: params).parse
45
+
46
+ request = HTTP
47
+ request = request.headers("User-Agent": user_agent) if user_agent
48
+ request = request.post("#{host}/api/v1/login", params: params)
49
+ request.parse
46
50
  end
47
51
 
48
52
  # List profiles
@@ -1,3 +1,3 @@
1
1
  module Reach5
2
- VERSION = "0.1.0".freeze
2
+ VERSION = "0.1.1".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reach5
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sunny Ripert
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-30 00:00:00.000000000 Z
11
+ date: 2017-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http