pipedrive_ruby 1.0.1.pre15 → 1.0.1.pre16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/EmailMessages.html +1 -1
- data/doc/EmailThreads.html +1 -1
- data/doc/Estages.html +1 -1
- data/doc/Files.html +1 -1
- data/doc/Filters.html +1 -1
- data/doc/GlobalMessages.html +1 -1
- data/doc/Goals.html +1 -1
- data/doc/NoteFields.html +1 -1
- data/doc/Notes.html +1 -1
- data/doc/OrganizationFields.html +1 -1
- data/doc/OrganizationRelationships.html +1 -1
- data/doc/PermissionSets.html +1 -1
- data/doc/PersonFields.html +1 -1
- data/doc/Persons.html +1 -1
- data/doc/PipedriveRuby/Activities.html +1 -1
- data/doc/PipedriveRuby/ActivityFields.html +1 -1
- data/doc/PipedriveRuby/ActivityTypes.html +1 -1
- data/doc/PipedriveRuby/Authorizations.html +1 -1
- data/doc/PipedriveRuby/Base.html +1 -1
- data/doc/PipedriveRuby/Currencies.html +1 -1
- data/doc/PipedriveRuby/DealFields.html +1 -1
- data/doc/PipedriveRuby/Deals.html +1 -1
- data/doc/PipedriveRuby/HttpFactory.html +236 -88
- data/doc/PipedriveRuby/Organizations.html +1 -1
- data/doc/PipedriveRuby/PipedriveClient.html +1 -1
- data/doc/PipedriveRuby/Products.html +5 -55
- data/doc/PipedriveRuby/PushNotifications.html +1 -1
- data/doc/PipedriveRuby/Recents.html +1 -1
- data/doc/PipedriveRuby/SearchResults.html +1 -1
- data/doc/PipedriveRuby/UserConnections.html +1 -1
- data/doc/PipedriveRuby/UserSettings.html +1 -1
- data/doc/PipedriveRuby.html +2 -2
- data/doc/Pipelines.html +1 -1
- data/doc/ProductFields.html +1 -1
- data/doc/Roles.html +1 -1
- data/doc/Users.html +1 -1
- data/doc/_index.html +1 -1
- data/doc/file.README.html +1 -1
- data/doc/index.html +1 -1
- data/doc/method_list.html +29 -13
- data/doc/top-level-namespace.html +1 -1
- data/lib/http_factory.rb +12 -8
- data/lib/pipedrive_ruby/version.rb +1 -1
- metadata +2 -2
@@ -140,28 +140,6 @@
|
|
140
140
|
|
141
141
|
|
142
142
|
|
143
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
144
|
-
|
145
|
-
</li>
|
146
|
-
|
147
|
-
|
148
|
-
<li class="public ">
|
149
|
-
<span class="summary_signature">
|
150
|
-
|
151
|
-
<a href="#delete_follower-instance_method" title="#delete_follower (instance method)">#<strong>delete_follower</strong> ⇒ Object </a>
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
</span>
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
143
|
<span class="summary_desc"><div class='inline'></div></span>
|
166
144
|
|
167
145
|
</li>
|
@@ -244,34 +222,6 @@
|
|
244
222
|
</td>
|
245
223
|
</tr>
|
246
224
|
</table>
|
247
|
-
</div>
|
248
|
-
|
249
|
-
<div class="method_details ">
|
250
|
-
<h3 class="signature " id="delete_follower-instance_method">
|
251
|
-
|
252
|
-
#<strong>delete_follower</strong> ⇒ <tt>Object</tt>
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
</h3><table class="source_code">
|
259
|
-
<tr>
|
260
|
-
<td>
|
261
|
-
<pre class="lines">
|
262
|
-
|
263
|
-
|
264
|
-
12
|
265
|
-
13</pre>
|
266
|
-
</td>
|
267
|
-
<td>
|
268
|
-
<pre class="code"><span class="info file"># File 'lib/resources/products.rb', line 12</span>
|
269
|
-
|
270
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_delete_follower'>delete_follower</span>
|
271
|
-
<span class='kw'>end</span></pre>
|
272
|
-
</td>
|
273
|
-
</tr>
|
274
|
-
</table>
|
275
225
|
</div>
|
276
226
|
|
277
227
|
<div class="method_details ">
|
@@ -289,12 +239,12 @@
|
|
289
239
|
<pre class="lines">
|
290
240
|
|
291
241
|
|
292
|
-
|
293
|
-
|
294
|
-
|
242
|
+
12
|
243
|
+
13
|
244
|
+
14</pre>
|
295
245
|
</td>
|
296
246
|
<td>
|
297
|
-
<pre class="code"><span class="info file"># File 'lib/resources/products.rb', line
|
247
|
+
<pre class="code"><span class="info file"># File 'lib/resources/products.rb', line 12</span>
|
298
248
|
|
299
249
|
<span class='kw'>def</span> <span class='id identifier rubyid_find_by_name'>find_by_name</span><span class='lparen'>(</span><span class='id identifier rubyid_term'>term</span><span class='rparen'>)</span>
|
300
250
|
<span class='id identifier rubyid_find_by'>find_by</span><span class='lparen'>(</span><span class='id identifier rubyid_term'>term</span><span class='rparen'>)</span>
|
@@ -309,7 +259,7 @@
|
|
309
259
|
</div>
|
310
260
|
|
311
261
|
<div id="footer">
|
312
|
-
Generated on
|
262
|
+
Generated on Sun Jul 24 17:35:18 2016 by
|
313
263
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
314
264
|
0.9.0 (ruby-2.2.5).
|
315
265
|
</div>
|
@@ -149,7 +149,7 @@
|
|
149
149
|
</div>
|
150
150
|
|
151
151
|
<div id="footer">
|
152
|
-
Generated on
|
152
|
+
Generated on Sun Jul 24 17:35:18 2016 by
|
153
153
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
154
154
|
0.9.0 (ruby-2.2.5).
|
155
155
|
</div>
|
@@ -149,7 +149,7 @@
|
|
149
149
|
</div>
|
150
150
|
|
151
151
|
<div id="footer">
|
152
|
-
Generated on
|
152
|
+
Generated on Sun Jul 24 17:35:18 2016 by
|
153
153
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
154
154
|
0.9.0 (ruby-2.2.5).
|
155
155
|
</div>
|
@@ -240,7 +240,7 @@ address, text, phone, date.</p>
|
|
240
240
|
</div>
|
241
241
|
|
242
242
|
<div id="footer">
|
243
|
-
Generated on
|
243
|
+
Generated on Sun Jul 24 17:35:18 2016 by
|
244
244
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
245
245
|
0.9.0 (ruby-2.2.5).
|
246
246
|
</div>
|
@@ -149,7 +149,7 @@
|
|
149
149
|
</div>
|
150
150
|
|
151
151
|
<div id="footer">
|
152
|
-
Generated on
|
152
|
+
Generated on Sun Jul 24 17:35:18 2016 by
|
153
153
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
154
154
|
0.9.0 (ruby-2.2.5).
|
155
155
|
</div>
|
@@ -149,7 +149,7 @@
|
|
149
149
|
</div>
|
150
150
|
|
151
151
|
<div id="footer">
|
152
|
-
Generated on
|
152
|
+
Generated on Sun Jul 24 17:35:18 2016 by
|
153
153
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
154
154
|
0.9.0 (ruby-2.2.5).
|
155
155
|
</div>
|
data/doc/PipedriveRuby.html
CHANGED
@@ -149,7 +149,7 @@ for detailed documentation of web hooks.</p>
|
|
149
149
|
|
150
150
|
</div>
|
151
151
|
</dt>
|
152
|
-
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>1.0.1.
|
152
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>1.0.1.pre15</span><span class='tstring_end'>"</span></span></pre></dd>
|
153
153
|
|
154
154
|
</dl>
|
155
155
|
|
@@ -164,7 +164,7 @@ for detailed documentation of web hooks.</p>
|
|
164
164
|
</div>
|
165
165
|
|
166
166
|
<div id="footer">
|
167
|
-
Generated on
|
167
|
+
Generated on Sun Jul 24 17:35:18 2016 by
|
168
168
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
169
169
|
0.9.0 (ruby-2.2.5).
|
170
170
|
</div>
|
data/doc/Pipelines.html
CHANGED
@@ -124,7 +124,7 @@
|
|
124
124
|
</div>
|
125
125
|
|
126
126
|
<div id="footer">
|
127
|
-
Generated on
|
127
|
+
Generated on Sun Jul 24 17:35:18 2016 by
|
128
128
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
129
129
|
0.9.0 (ruby-2.2.5).
|
130
130
|
</div>
|
data/doc/ProductFields.html
CHANGED
@@ -137,7 +137,7 @@ one Product and list its keys.</p>
|
|
137
137
|
</div>
|
138
138
|
|
139
139
|
<div id="footer">
|
140
|
-
Generated on
|
140
|
+
Generated on Sun Jul 24 17:35:18 2016 by
|
141
141
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
142
142
|
0.9.0 (ruby-2.2.5).
|
143
143
|
</div>
|
data/doc/Roles.html
CHANGED
@@ -124,7 +124,7 @@
|
|
124
124
|
</div>
|
125
125
|
|
126
126
|
<div id="footer">
|
127
|
-
Generated on
|
127
|
+
Generated on Sun Jul 24 17:35:18 2016 by
|
128
128
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
129
129
|
0.9.0 (ruby-2.2.5).
|
130
130
|
</div>
|
data/doc/Users.html
CHANGED
@@ -127,7 +127,7 @@ to multiple accounts. Users should not be confused with Persons.</p>
|
|
127
127
|
</div>
|
128
128
|
|
129
129
|
<div id="footer">
|
130
|
-
Generated on
|
130
|
+
Generated on Sun Jul 24 17:35:18 2016 by
|
131
131
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
132
132
|
0.9.0 (ruby-2.2.5).
|
133
133
|
</div>
|
data/doc/_index.html
CHANGED
@@ -415,7 +415,7 @@
|
|
415
415
|
</div>
|
416
416
|
|
417
417
|
<div id="footer">
|
418
|
-
Generated on
|
418
|
+
Generated on Sun Jul 24 17:35:18 2016 by
|
419
419
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
420
420
|
0.9.0 (ruby-2.2.5).
|
421
421
|
</div>
|
data/doc/file.README.html
CHANGED
@@ -150,7 +150,7 @@ href="http://opensource.org/licenses/MIT">MIT License</a>.</p>
|
|
150
150
|
</div></div>
|
151
151
|
|
152
152
|
<div id="footer">
|
153
|
-
Generated on
|
153
|
+
Generated on Sun Jul 24 17:35:18 2016 by
|
154
154
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
155
155
|
0.9.0 (ruby-2.2.5).
|
156
156
|
</div>
|
data/doc/index.html
CHANGED
@@ -150,7 +150,7 @@ href="http://opensource.org/licenses/MIT">MIT License</a>.</p>
|
|
150
150
|
</div></div>
|
151
151
|
|
152
152
|
<div id="footer">
|
153
|
-
Generated on
|
153
|
+
Generated on Sun Jul 24 17:35:18 2016 by
|
154
154
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
155
155
|
0.9.0 (ruby-2.2.5).
|
156
156
|
</div>
|
data/doc/method_list.html
CHANGED
@@ -78,16 +78,16 @@
|
|
78
78
|
|
79
79
|
<li class="odd ">
|
80
80
|
<div class="item">
|
81
|
-
<span class='object_link'><a href="PipedriveRuby/
|
82
|
-
<small>PipedriveRuby::
|
81
|
+
<span class='object_link'><a href="PipedriveRuby/Authorizations.html#all-instance_method" title="PipedriveRuby::Authorizations#all (method)">#all</a></span>
|
82
|
+
<small>PipedriveRuby::Authorizations</small>
|
83
83
|
</div>
|
84
84
|
</li>
|
85
85
|
|
86
86
|
|
87
87
|
<li class="even ">
|
88
88
|
<div class="item">
|
89
|
-
<span class='object_link'><a href="PipedriveRuby/
|
90
|
-
<small>PipedriveRuby::
|
89
|
+
<span class='object_link'><a href="PipedriveRuby/HttpFactory.html#all-instance_method" title="PipedriveRuby::HttpFactory#all (method)">#all</a></span>
|
90
|
+
<small>PipedriveRuby::HttpFactory</small>
|
91
91
|
</div>
|
92
92
|
</li>
|
93
93
|
|
@@ -150,13 +150,21 @@
|
|
150
150
|
|
151
151
|
<li class="even ">
|
152
152
|
<div class="item">
|
153
|
-
<span class='object_link'><a href="PipedriveRuby/HttpFactory.html#
|
153
|
+
<span class='object_link'><a href="PipedriveRuby/HttpFactory.html#custom_delete-instance_method" title="PipedriveRuby::HttpFactory#custom_delete (method)">#custom_delete</a></span>
|
154
154
|
<small>PipedriveRuby::HttpFactory</small>
|
155
155
|
</div>
|
156
156
|
</li>
|
157
157
|
|
158
158
|
|
159
159
|
<li class="odd ">
|
160
|
+
<div class="item">
|
161
|
+
<span class='object_link'><a href="PipedriveRuby/HttpFactory.html#custom_get-instance_method" title="PipedriveRuby::HttpFactory#custom_get (method)">#custom_get</a></span>
|
162
|
+
<small>PipedriveRuby::HttpFactory</small>
|
163
|
+
</div>
|
164
|
+
</li>
|
165
|
+
|
166
|
+
|
167
|
+
<li class="even ">
|
160
168
|
<div class="item">
|
161
169
|
<span class='object_link'><a href="PipedriveRuby/HttpFactory.html#custom_post-instance_method" title="PipedriveRuby::HttpFactory#custom_post (method)">#custom_post</a></span>
|
162
170
|
<small>PipedriveRuby::HttpFactory</small>
|
@@ -164,6 +172,14 @@
|
|
164
172
|
</li>
|
165
173
|
|
166
174
|
|
175
|
+
<li class="odd ">
|
176
|
+
<div class="item">
|
177
|
+
<span class='object_link'><a href="PipedriveRuby/HttpFactory.html#custom_put-instance_method" title="PipedriveRuby::HttpFactory#custom_put (method)">#custom_put</a></span>
|
178
|
+
<small>PipedriveRuby::HttpFactory</small>
|
179
|
+
</div>
|
180
|
+
</li>
|
181
|
+
|
182
|
+
|
167
183
|
<li class="even ">
|
168
184
|
<div class="item">
|
169
185
|
<span class='object_link'><a href="PipedriveRuby/Products.html#deals-instance_method" title="PipedriveRuby::Products#deals (method)">#deals</a></span>
|
@@ -182,16 +198,16 @@
|
|
182
198
|
|
183
199
|
<li class="even ">
|
184
200
|
<div class="item">
|
185
|
-
<span class='object_link'><a href="PipedriveRuby/
|
186
|
-
<small>PipedriveRuby::
|
201
|
+
<span class='object_link'><a href="PipedriveRuby/HttpFactory.html#delete_follower-instance_method" title="PipedriveRuby::HttpFactory#delete_follower (method)">#delete_follower</a></span>
|
202
|
+
<small>PipedriveRuby::HttpFactory</small>
|
187
203
|
</div>
|
188
204
|
</li>
|
189
205
|
|
190
206
|
|
191
207
|
<li class="odd ">
|
192
208
|
<div class="item">
|
193
|
-
<span class='object_link'><a href="PipedriveRuby/
|
194
|
-
<small>PipedriveRuby::
|
209
|
+
<span class='object_link'><a href="PipedriveRuby/Deals.html#delete_follower-instance_method" title="PipedriveRuby::Deals#delete_follower (method)">#delete_follower</a></span>
|
210
|
+
<small>PipedriveRuby::Deals</small>
|
195
211
|
</div>
|
196
212
|
</li>
|
197
213
|
|
@@ -294,16 +310,16 @@
|
|
294
310
|
|
295
311
|
<li class="even ">
|
296
312
|
<div class="item">
|
297
|
-
<span class='object_link'><a href="PipedriveRuby/
|
298
|
-
<small>PipedriveRuby::
|
313
|
+
<span class='object_link'><a href="PipedriveRuby/Base.html#initialize-instance_method" title="PipedriveRuby::Base#initialize (method)">#initialize</a></span>
|
314
|
+
<small>PipedriveRuby::Base</small>
|
299
315
|
</div>
|
300
316
|
</li>
|
301
317
|
|
302
318
|
|
303
319
|
<li class="odd ">
|
304
320
|
<div class="item">
|
305
|
-
<span class='object_link'><a href="PipedriveRuby/
|
306
|
-
<small>PipedriveRuby::
|
321
|
+
<span class='object_link'><a href="PipedriveRuby/HttpFactory.html#initialize-instance_method" title="PipedriveRuby::HttpFactory#initialize (method)">#initialize</a></span>
|
322
|
+
<small>PipedriveRuby::HttpFactory</small>
|
307
323
|
</div>
|
308
324
|
</li>
|
309
325
|
|
@@ -104,7 +104,7 @@
|
|
104
104
|
</div>
|
105
105
|
|
106
106
|
<div id="footer">
|
107
|
-
Generated on
|
107
|
+
Generated on Sun Jul 24 17:35:18 2016 by
|
108
108
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
109
109
|
0.9.0 (ruby-2.2.5).
|
110
110
|
</div>
|
data/lib/http_factory.rb
CHANGED
@@ -74,12 +74,13 @@ module PipedriveRuby
|
|
74
74
|
|
75
75
|
def merge(resource, merge_with_resource)
|
76
76
|
id = resource['id']
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
77
|
+
custom_post(:path => "#{id}/merge",
|
78
|
+
:params => default_param,
|
79
|
+
:json => {
|
80
|
+
:id => id,
|
81
|
+
:merge_with_id => merge_with_resource['id']
|
82
|
+
}
|
83
|
+
)
|
83
84
|
end
|
84
85
|
|
85
86
|
def permitted_users(resource)
|
@@ -132,10 +133,13 @@ module PipedriveRuby
|
|
132
133
|
end
|
133
134
|
|
134
135
|
def parse_response(response)
|
136
|
+
response_status = response.status.to_i
|
135
137
|
begin
|
136
|
-
response.parse
|
138
|
+
parsed = response.parse
|
139
|
+
parsed[:status_code] = response_status
|
140
|
+
OpenStruct.new(parsed)
|
137
141
|
rescue
|
138
|
-
OpenStruct.new(:status => false,:error_info => nil, :data => nil, :additional_data => nil)
|
142
|
+
OpenStruct.new(status_code: response_status ,:status => false,:error_info => nil, :data => nil, :additional_data => nil)
|
139
143
|
end
|
140
144
|
end
|
141
145
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pipedrive_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.1.
|
4
|
+
version: 1.0.1.pre16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felipe Borges Ferreira
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|