closeio 3.10.0 → 3.12.0

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
  SHA256:
3
- metadata.gz: 154eebf09542c643734c554a00d1a22ed6a7e1107e4e3442138bbff71275d91d
4
- data.tar.gz: c4022cf7b653a8e10f393401475b94d437c9c5372d1b80d9dc5db927bd61a493
3
+ metadata.gz: 3dc0f5af8a0e1ce1efca2051d7e6101f91074f97b0beddcb3a9077bbe32710c2
4
+ data.tar.gz: e63cd716c53b1b5d6dbaabca1882ec91237f5326e59c374fdde16dcdb34e33d4
5
5
  SHA512:
6
- metadata.gz: f747e970d9f053d9d8176e046149dba4a14d7d12202b2737d49e2db35fa0d9f59b891de0a8ec2c9c77248452189967ed3e72748e8221e51919821826a7e2e28d
7
- data.tar.gz: a3d94fedd082830d6d7c6b2fce52f533e26e1419c0ea212dd967dd7ebd05908d30ba9ab60e908d756363f05e1773ef54d256346d353781bbac1a64a41d64f7ad
6
+ metadata.gz: 730d7bd116ef750585f15c3fcce2b07f1b35abfdbd320afce33f4f3437c88bc0db5c50178a63681ec179543cf83c852b57f90376bb1d32c13f4e9e51b8ed389c
7
+ data.tar.gz: 2491dfe07d9d6a4dd9bfddc85b3414cbb3236697400eea3fecb43d71f452322f669552ecdf04d059cc13c4ae063893b49e1fd58e71c8ebe59936f081a0cb8c74
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- closeio (3.10.0)
4
+ closeio (3.12.0)
5
5
  faraday
6
6
  faraday_middleware
7
7
  json
@@ -39,7 +39,7 @@ GEM
39
39
  faraday_middleware (1.2.0)
40
40
  faraday (~> 1.0)
41
41
  hashdiff (0.3.6)
42
- json (2.6.2)
42
+ json (2.6.3)
43
43
  minitest (5.10.3)
44
44
  multipart-post (2.2.3)
45
45
  public_suffix (4.0.6)
@@ -10,6 +10,8 @@ module Closeio
10
10
  include Closeio::Client::Activity
11
11
  include Closeio::Client::BulkAction
12
12
  include Closeio::Client::Contact
13
+ include Closeio::Client::CustomActivity
14
+ include Closeio::Client::CustomActivityType
13
15
  include Closeio::Client::CustomField
14
16
  include Closeio::Client::EmailAccount
15
17
  include Closeio::Client::EmailTemplate
@@ -0,0 +1,31 @@
1
+ module Closeio
2
+ class Client
3
+ module CustomActivity
4
+ def list_custom_activities(options = {})
5
+ get(custom_activity_path, options)
6
+ end
7
+
8
+ def find_custom_activity(id)
9
+ get("#{custom_activity_path}#{id}/")
10
+ end
11
+
12
+ def create_custom_activity(options = {})
13
+ post(custom_activity_path, options)
14
+ end
15
+
16
+ def update_custom_activity(options = {})
17
+ put("#{custom_activity_path}#{id}/", options)
18
+ end
19
+
20
+ def delete_custom_activity(id)
21
+ delete("#{custom_activity_path}#{id}/")
22
+ end
23
+
24
+ private
25
+
26
+ def custom_activity_path
27
+ 'activity/custom/'
28
+ end
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,19 @@
1
+ module Closeio
2
+ class Client
3
+ module CustomActivityType
4
+ def list_custom_activity_types
5
+ get(custom_activity_type_path)
6
+ end
7
+
8
+ def find_custom_activity_type(id)
9
+ get("#{custom_activity_type_path}#{id}/")
10
+ end
11
+
12
+ private
13
+
14
+ def custom_activity_type_path
15
+ 'custom_activity/'
16
+ end
17
+ end
18
+ end
19
+ end
@@ -1,3 +1,3 @@
1
1
  module Closeio
2
- VERSION = '3.10.0'.freeze
2
+ VERSION = '3.12.0'.freeze
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.10.0
4
+ version: 3.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taylor Brooks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-18 00:00:00.000000000 Z
11
+ date: 2023-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -146,6 +146,8 @@ files:
146
146
  - lib/closeio/resources/activity.rb
147
147
  - lib/closeio/resources/bulk_action.rb
148
148
  - lib/closeio/resources/contact.rb
149
+ - lib/closeio/resources/custom_activity.rb
150
+ - lib/closeio/resources/custom_activity_type.rb
149
151
  - lib/closeio/resources/custom_field.rb
150
152
  - lib/closeio/resources/email_account.rb
151
153
  - lib/closeio/resources/email_template.rb