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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4a7c98b38cc232db1bf8f8b87992ed31b24c9e6e
4
- data.tar.gz: 325e35237c6fd1e98ebd86dcaab25e6193da777c
3
+ metadata.gz: 098d82362f5688f53673a0636dd5c053a217a572
4
+ data.tar.gz: 73b8b1889be0177ebde71860a1b6b6321c56bda3
5
5
  SHA512:
6
- metadata.gz: 6b0680c94431d2da399c95acf3234fb4adcc3b04614facf76a018c7b1c83952eb7b93bcbfaa2314312c1eea548220eb606638cba0d2c965f1ef74260f1a4a873
7
- data.tar.gz: c8fcc407631a3d9241df8bc0d2df6a32332d5ad60ecd9679e8404beb52c68ad7c7631d515325c226747bb8469d2df53c522107ebd4772c56f31846c34392f2f0
6
+ metadata.gz: 0d491fa4e22d857400f677b06639d28da8b829fdb8f2c3aa9ef18c05422a8b242887fa6f5eb9a1d68988e73f61d5a508c7846e13f6b24cbbce220e9949811c3d
7
+ data.tar.gz: 4ba029c8b525fa356d4a643031d0a7db08baa574ac3aed10f12c2e7f71949275e111b2c40dc58ad84660b6d71a8bc0824083397db3c1573a8a932ada72fbff70
data/README.md CHANGED
@@ -10,7 +10,7 @@ Fwiw, I also run [DripEmails.com](https://www.DripEmails.com) -- a service for b
10
10
  Add this line to your application's Gemfile:
11
11
  ````ruby
12
12
  # in your Gemfile
13
- gem 'closeio', '~> 2.4'
13
+ gem 'closeio', '~> 3.0'
14
14
 
15
15
  # then...
16
16
  bundle install
@@ -59,13 +59,13 @@ module Closeio
59
59
  skip = 0
60
60
 
61
61
  begin
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
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.has_more
68
- {has_more: false, total_results: res.total_results, data: results.flatten}
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
@@ -1,3 +1,3 @@
1
1
  module Closeio
2
- VERSION = '3.0.0'
2
+ VERSION = '3.0.1'
3
3
  end
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.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: 2017-12-22 00:00:00.000000000 Z
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.6.13
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