pipejump 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +0 -10
- data/lib/pipejump/base/connection.rb +10 -2
- data/lib/pipejump/base/session.rb +1 -1
- data/lib/pipejump/version.rb +1 -1
- metadata +9 -4
data/README.rdoc
CHANGED
@@ -72,16 +72,6 @@ With Deals you get access to Notes, Reminders and Deal Contacts.
|
|
72
72
|
|
73
73
|
For more information, consult the wiki page at http://github.com/pipejump/pipejump/wiki/Deals
|
74
74
|
|
75
|
-
=== Clients
|
76
|
-
|
77
|
-
You can access your clients by calling
|
78
|
-
|
79
|
-
|
80
|
-
@session.clients
|
81
|
-
|
82
|
-
|
83
|
-
For more information, consult the wiki page at http://github.com/pipejump/pipejump/wiki/Clients
|
84
|
-
|
85
75
|
=== Contacts
|
86
76
|
|
87
77
|
You can access your contacts by calling
|
@@ -32,7 +32,15 @@ module Pipejump
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def headers
|
35
|
-
{
|
35
|
+
{ auth_header => session.token.to_s }
|
36
|
+
end
|
37
|
+
|
38
|
+
def auth_header
|
39
|
+
if endpoint =~ /leads.futuresimple.com/
|
40
|
+
'X-Futuresimple-Token'
|
41
|
+
else
|
42
|
+
'X-Pipejump-Auth'
|
43
|
+
end
|
36
44
|
end
|
37
45
|
|
38
46
|
def http
|
@@ -51,4 +59,4 @@ module Pipejump
|
|
51
59
|
|
52
60
|
end
|
53
61
|
|
54
|
-
end
|
62
|
+
end
|
@@ -118,7 +118,7 @@ module Pipejump
|
|
118
118
|
end
|
119
119
|
|
120
120
|
def authenticate(params) #:nodoc:
|
121
|
-
response = connection.post(version_prefix('/authentication.json'),
|
121
|
+
response = connection.post(version_prefix('/authentication.json'), URI.encode_www_form(params))
|
122
122
|
data = JSON.parse(response.body)
|
123
123
|
self.token = data['authentication']['token']
|
124
124
|
raise AuthenticationFailed if response.code == '401'
|
data/lib/pipejump/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pipejump
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2013-
|
14
|
+
date: 2013-07-09 00:00:00.000000000 Z
|
15
15
|
dependencies: []
|
16
16
|
description: Base API Ruby client
|
17
17
|
email: marcin@futuresimple.com
|
@@ -67,15 +67,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
67
67
|
- - ! '>='
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: '0'
|
70
|
+
segments:
|
71
|
+
- 0
|
72
|
+
hash: 214728475522169420
|
70
73
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
71
74
|
none: false
|
72
75
|
requirements:
|
73
76
|
- - ! '>='
|
74
77
|
- !ruby/object:Gem::Version
|
75
78
|
version: '0'
|
79
|
+
segments:
|
80
|
+
- 0
|
81
|
+
hash: 214728475522169420
|
76
82
|
requirements: []
|
77
83
|
rubyforge_project: pipejump
|
78
|
-
rubygems_version: 1.8.
|
84
|
+
rubygems_version: 1.8.25
|
79
85
|
signing_key:
|
80
86
|
specification_version: 3
|
81
87
|
summary: Base API Ruby client
|
@@ -92,4 +98,3 @@ test_files:
|
|
92
98
|
- spec/pipejump/session_spec.rb
|
93
99
|
- spec/pipejump/util_spec.rb
|
94
100
|
- spec/spec_helper.rb
|
95
|
-
has_rdoc:
|