leadtune 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/leadtune/rest.rb +5 -2
- data/lib/leadtune/version.rb +1 -1
- metadata +14 -14
data/lib/leadtune/rest.rb
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
# Eric Wollesen (mailto:devs@leadtune.com)
|
5
5
|
# Copyright 2010 LeadTune LLC
|
6
6
|
|
7
|
+
require "curb"
|
7
8
|
require "json"
|
8
9
|
|
9
10
|
module Leadtune
|
@@ -89,13 +90,15 @@ module Leadtune
|
|
89
90
|
params.merge!(:prospect_ref => @post_data["prospect_ref"])
|
90
91
|
end
|
91
92
|
|
92
|
-
URI.join
|
93
|
+
# I would use URI.join, but there's a bug in its implementation in 1.8.6
|
94
|
+
build_put_url + "?" + Leadtune::Util.to_params(params)
|
93
95
|
end
|
94
96
|
|
95
97
|
def build_put_url #:nodoc:
|
96
98
|
path = "/prospects"
|
97
99
|
path += "/#{@post_data["prospect_id"]}" if @post_data["prospect_id"]
|
98
|
-
URI.join
|
100
|
+
# I would use URI.join, but there's a bug in its implementation in 1.8.6
|
101
|
+
@config.leadtune_host + path
|
99
102
|
end
|
100
103
|
|
101
104
|
def parse_response(body)
|
data/lib/leadtune/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: leadtune
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 6
|
10
|
+
version: 0.0.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Eric Wollesen
|
@@ -30,10 +30,10 @@ dependencies:
|
|
30
30
|
- 0
|
31
31
|
- 0
|
32
32
|
version: 1.0.0
|
33
|
+
prerelease: false
|
33
34
|
requirement: *id001
|
34
35
|
type: :development
|
35
36
|
name: bundler
|
36
|
-
prerelease: false
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
version_requirements: &id002 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
@@ -44,10 +44,10 @@ dependencies:
|
|
44
44
|
segments:
|
45
45
|
- 0
|
46
46
|
version: "0"
|
47
|
+
prerelease: false
|
47
48
|
requirement: *id002
|
48
49
|
type: :development
|
49
50
|
name: ruby-debug
|
50
|
-
prerelease: false
|
51
51
|
- !ruby/object:Gem::Dependency
|
52
52
|
version_requirements: &id003 !ruby/object:Gem::Requirement
|
53
53
|
none: false
|
@@ -62,10 +62,10 @@ dependencies:
|
|
62
62
|
- beta
|
63
63
|
- 19
|
64
64
|
version: 2.0.0.beta.19
|
65
|
+
prerelease: false
|
65
66
|
requirement: *id003
|
66
67
|
type: :development
|
67
68
|
name: rspec
|
68
|
-
prerelease: false
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
version_requirements: &id004 !ruby/object:Gem::Requirement
|
71
71
|
none: false
|
@@ -80,10 +80,10 @@ dependencies:
|
|
80
80
|
- beta
|
81
81
|
- 19
|
82
82
|
version: 2.0.0.beta.19
|
83
|
+
prerelease: false
|
83
84
|
requirement: *id004
|
84
85
|
type: :development
|
85
86
|
name: rspec-core
|
86
|
-
prerelease: false
|
87
87
|
- !ruby/object:Gem::Dependency
|
88
88
|
version_requirements: &id005 !ruby/object:Gem::Requirement
|
89
89
|
none: false
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
- beta
|
99
99
|
- 19
|
100
100
|
version: 2.0.0.beta.19
|
101
|
+
prerelease: false
|
101
102
|
requirement: *id005
|
102
103
|
type: :development
|
103
104
|
name: rspec-expectations
|
104
|
-
prerelease: false
|
105
105
|
- !ruby/object:Gem::Dependency
|
106
106
|
version_requirements: &id006 !ruby/object:Gem::Requirement
|
107
107
|
none: false
|
@@ -116,10 +116,10 @@ dependencies:
|
|
116
116
|
- beta
|
117
117
|
- 19
|
118
118
|
version: 2.0.0.beta.19
|
119
|
+
prerelease: false
|
119
120
|
requirement: *id006
|
120
121
|
type: :development
|
121
122
|
name: rspec-mocks
|
122
|
-
prerelease: false
|
123
123
|
- !ruby/object:Gem::Dependency
|
124
124
|
version_requirements: &id007 !ruby/object:Gem::Requirement
|
125
125
|
none: false
|
@@ -130,10 +130,10 @@ dependencies:
|
|
130
130
|
segments:
|
131
131
|
- 0
|
132
132
|
version: "0"
|
133
|
+
prerelease: false
|
133
134
|
requirement: *id007
|
134
135
|
type: :development
|
135
136
|
name: webmock
|
136
|
-
prerelease: false
|
137
137
|
- !ruby/object:Gem::Dependency
|
138
138
|
version_requirements: &id008 !ruby/object:Gem::Requirement
|
139
139
|
none: false
|
@@ -144,10 +144,10 @@ dependencies:
|
|
144
144
|
segments:
|
145
145
|
- 0
|
146
146
|
version: "0"
|
147
|
+
prerelease: false
|
147
148
|
requirement: *id008
|
148
149
|
type: :development
|
149
150
|
name: tcpsocket-wait
|
150
|
-
prerelease: false
|
151
151
|
- !ruby/object:Gem::Dependency
|
152
152
|
version_requirements: &id009 !ruby/object:Gem::Requirement
|
153
153
|
none: false
|
@@ -158,10 +158,10 @@ dependencies:
|
|
158
158
|
segments:
|
159
159
|
- 0
|
160
160
|
version: "0"
|
161
|
+
prerelease: false
|
161
162
|
requirement: *id009
|
162
163
|
type: :runtime
|
163
164
|
name: rake
|
164
|
-
prerelease: false
|
165
165
|
- !ruby/object:Gem::Dependency
|
166
166
|
version_requirements: &id010 !ruby/object:Gem::Requirement
|
167
167
|
none: false
|
@@ -172,10 +172,10 @@ dependencies:
|
|
172
172
|
segments:
|
173
173
|
- 0
|
174
174
|
version: "0"
|
175
|
+
prerelease: false
|
175
176
|
requirement: *id010
|
176
177
|
type: :runtime
|
177
178
|
name: curb
|
178
|
-
prerelease: false
|
179
179
|
- !ruby/object:Gem::Dependency
|
180
180
|
version_requirements: &id011 !ruby/object:Gem::Requirement
|
181
181
|
none: false
|
@@ -186,10 +186,10 @@ dependencies:
|
|
186
186
|
segments:
|
187
187
|
- 0
|
188
188
|
version: "0"
|
189
|
+
prerelease: false
|
189
190
|
requirement: *id011
|
190
191
|
type: :runtime
|
191
192
|
name: json
|
192
|
-
prerelease: false
|
193
193
|
description: LeadTune Ruby API Gem
|
194
194
|
email:
|
195
195
|
- devs@leadtune.com
|