closeio 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/closeio/client.rb +6 -6
- data/lib/closeio/resources/activity.rb +20 -0
- data/lib/closeio/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 098d82362f5688f53673a0636dd5c053a217a572
|
4
|
+
data.tar.gz: 73b8b1889be0177ebde71860a1b6b6321c56bda3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d491fa4e22d857400f677b06639d28da8b829fdb8f2c3aa9ef18c05422a8b242887fa6f5eb9a1d68988e73f61d5a508c7846e13f6b24cbbce220e9949811c3d
|
7
|
+
data.tar.gz: 4ba029c8b525fa356d4a643031d0a7db08baa574ac3aed10f12c2e7f71949275e111b2c40dc58ad84660b6d71a8bc0824083397db3c1573a8a932ada72fbff70
|
data/README.md
CHANGED
data/lib/closeio/client.rb
CHANGED
@@ -59,13 +59,13 @@ module Closeio
|
|
59
59
|
skip = 0
|
60
60
|
|
61
61
|
begin
|
62
|
-
res
|
63
|
-
unless res
|
64
|
-
results.push res
|
65
|
-
skip += res
|
62
|
+
res = get(path, options.merge!(_skip: skip))
|
63
|
+
unless res['data'].nil? || res['data'].empty?
|
64
|
+
results.push res['data']
|
65
|
+
skip += res['data'].count
|
66
66
|
end
|
67
|
-
end while res
|
68
|
-
{has_more: false, total_results: res
|
67
|
+
end while res['has_more']
|
68
|
+
{has_more: false, total_results: res['total_results'], data: results.flatten}
|
69
69
|
end
|
70
70
|
|
71
71
|
private
|
@@ -54,6 +54,22 @@ module Closeio
|
|
54
54
|
delete("#{email_path}#{id}/")
|
55
55
|
end
|
56
56
|
|
57
|
+
#
|
58
|
+
# EmailThread Activities
|
59
|
+
#
|
60
|
+
|
61
|
+
def list_emailthreads(options={})
|
62
|
+
get(emailthread_path, options)
|
63
|
+
end
|
64
|
+
|
65
|
+
def find_emailthread(id)
|
66
|
+
get("#{emailthread_path}#{id}/")
|
67
|
+
end
|
68
|
+
|
69
|
+
def delete_emailthread(id)
|
70
|
+
delete("#{emailthread_path}#{id}/")
|
71
|
+
end
|
72
|
+
|
57
73
|
#
|
58
74
|
# Call Activities
|
59
75
|
#
|
@@ -84,6 +100,10 @@ module Closeio
|
|
84
100
|
"activity/email/"
|
85
101
|
end
|
86
102
|
|
103
|
+
def emailthread_path
|
104
|
+
"activity/emailthread/"
|
105
|
+
end
|
106
|
+
|
87
107
|
def call_path
|
88
108
|
"activity/call/"
|
89
109
|
end
|
data/lib/closeio/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: closeio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Taylor Brooks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
180
180
|
version: '0'
|
181
181
|
requirements: []
|
182
182
|
rubyforge_project:
|
183
|
-
rubygems_version: 2.
|
183
|
+
rubygems_version: 2.4.8
|
184
184
|
signing_key:
|
185
185
|
specification_version: 4
|
186
186
|
summary: A Ruby wrapper for the CloseIO API
|