closeio 3.12.0 → 3.16.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: 3dc0f5af8a0e1ce1efca2051d7e6101f91074f97b0beddcb3a9077bbe32710c2
4
- data.tar.gz: e63cd716c53b1b5d6dbaabca1882ec91237f5326e59c374fdde16dcdb34e33d4
3
+ metadata.gz: 1e141e1c39366dca72b41f4e1fabfdd7b1ed67f885d7f7746eec49400e2441cf
4
+ data.tar.gz: da998c32755a0c25fbcae4ae69f5b6be70df60efda722fbf363f8459df086383
5
5
  SHA512:
6
- metadata.gz: 730d7bd116ef750585f15c3fcce2b07f1b35abfdbd320afce33f4f3437c88bc0db5c50178a63681ec179543cf83c852b57f90376bb1d32c13f4e9e51b8ed389c
7
- data.tar.gz: 2491dfe07d9d6a4dd9bfddc85b3414cbb3236697400eea3fecb43d71f452322f669552ecdf04d059cc13c4ae063893b49e1fd58e71c8ebe59936f081a0cb8c74
6
+ metadata.gz: 55a8986d462629b132f1505e22266c214431f766bfc47ddd156859fb2cfeac7d186836cc4e0a08f0a6a99e9b2712fadb542e96dcba14351a2efd20e3b4444dda
7
+ data.tar.gz: 85b11ce32ae4a42da60761292f41a23e4881200ad1ec8c12675b43033b4f028b47482fe3b3fd86d224158bc8137d0c638cf9791a24e8ed75f7f57a6f46027188
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 3.13.0
2
+
3
+ - Upgrade to Faraday 2.x
4
+ - Remove faraday_middleware gem
5
+
1
6
  ## 3.6.1
2
7
 
3
8
  - Add support for SMS activities
data/closeio.gemspec CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |s|
8
8
  s.authors = ['Taylor Brooks']
9
9
  s.email = ['dGJyb29rc0BnbWFpbC5jb20='].map { |e| Base64.decode64(e) }
10
10
  s.homepage = 'https://github.com/taylorbrooks/closeio'
11
- s.summary = 'A Ruby wrapper for the CloseIO API'
12
- s.description = 'A Ruby wrapper for the CloseIO API -- a sales CRM built by salespeople, for salespeople.'
11
+ s.summary = 'A Ruby wrapper for the Close API'
12
+ s.description = 'A Ruby wrapper for the Close API -- a sales CRM built by salespeople, for salespeople.'
13
13
  s.license = 'MIT'
14
14
 
15
15
  s.files = `git ls-files`.split($/)
@@ -18,8 +18,7 @@ Gem::Specification.new do |s|
18
18
 
19
19
  s.require_paths = ['lib']
20
20
 
21
- s.add_runtime_dependency 'faraday'
22
- s.add_runtime_dependency 'faraday_middleware'
21
+ s.add_runtime_dependency 'faraday', '> 2.0'
23
22
  s.add_runtime_dependency 'json'
24
23
 
25
24
  s.add_development_dependency 'bundler'
@@ -1,5 +1,4 @@
1
1
  require 'faraday'
2
- require 'faraday_middleware'
3
2
  require_relative 'error'
4
3
  require_relative 'version'
5
4
 
@@ -97,12 +96,12 @@ module Closeio
97
96
  },
98
97
  ssl: { ca_file: ca_file }
99
98
  ) do |conn|
100
- conn.request :basic_auth, api_key, ''
101
- conn.request :json
102
- conn.response :logger if logger
103
- conn.response :json
104
- conn.use FaradayMiddleware::CloseioErrorHandler if errors
105
- conn.adapter Faraday.default_adapter
99
+ conn.request :authorization, :basic, api_key, ''
100
+ conn.request :json
101
+ conn.response :logger if logger
102
+ conn.response :json
103
+ conn.use FaradayMiddleware::CloseioErrorHandler if errors
104
+ conn.adapter Faraday.default_adapter
106
105
  end
107
106
  end
108
107
  end
data/lib/closeio/error.rb CHANGED
@@ -8,7 +8,7 @@ end
8
8
 
9
9
  require 'faraday'
10
10
  module FaradayMiddleware
11
- class CloseioErrorHandler < Faraday::Response::Middleware
11
+ class CloseioErrorHandler < Faraday::Middleware
12
12
  ERROR_STATUSES = 400..600
13
13
  def on_complete(env)
14
14
  case env[:status]
@@ -117,6 +117,14 @@ module Closeio
117
117
  delete("#{sms_path}#{id}/")
118
118
  end
119
119
 
120
+ #
121
+ # Meeting Activities
122
+ #
123
+
124
+ def list_meetings(options = {})
125
+ get(meeting_path, options)
126
+ end
127
+
120
128
  private
121
129
 
122
130
  def activity_path
@@ -142,6 +150,10 @@ module Closeio
142
150
  def sms_path
143
151
  "#{activity_path}sms/"
144
152
  end
153
+
154
+ def meeting_path
155
+ "#{activity_path}meeting/"
156
+ end
145
157
  end
146
158
  end
147
159
  end
@@ -13,7 +13,7 @@ module Closeio
13
13
  post(custom_activity_path, options)
14
14
  end
15
15
 
16
- def update_custom_activity(options = {})
16
+ def update_custom_activity(id, options = {})
17
17
  put("#{custom_activity_path}#{id}/", options)
18
18
  end
19
19
 
@@ -1,3 +1,3 @@
1
1
  module Closeio
2
- VERSION = '3.12.0'.freeze
2
+ VERSION = '3.16.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,43 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: closeio
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.12.0
4
+ version: 3.16.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: 2023-01-16 00:00:00.000000000 Z
11
+ date: 2023-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - ">"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '2.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: faraday_middleware
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
24
+ - - ">"
32
25
  - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
26
+ version: '2.0'
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: json
43
29
  requirement: !ruby/object:Gem::Requirement
@@ -122,7 +108,7 @@ dependencies:
122
108
  - - ">="
123
109
  - !ruby/object:Gem::Version
124
110
  version: '0'
125
- description: A Ruby wrapper for the CloseIO API -- a sales CRM built by salespeople,
111
+ description: A Ruby wrapper for the Close API -- a sales CRM built by salespeople,
126
112
  for salespeople.
127
113
  email:
128
114
  - tbrooks@gmail.com
@@ -134,7 +120,6 @@ files:
134
120
  - ".gitignore"
135
121
  - CHANGELOG.md
136
122
  - Gemfile
137
- - Gemfile.lock
138
123
  - LICENSE
139
124
  - README.md
140
125
  - Rakefile
@@ -191,5 +176,5 @@ requirements: []
191
176
  rubygems_version: 3.1.6
192
177
  signing_key:
193
178
  specification_version: 4
194
- summary: A Ruby wrapper for the CloseIO API
179
+ summary: A Ruby wrapper for the Close API
195
180
  test_files: []
data/Gemfile.lock DELETED
@@ -1,67 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- closeio (3.12.0)
5
- faraday
6
- faraday_middleware
7
- json
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- addressable (2.8.0)
13
- public_suffix (>= 2.0.2, < 5.0)
14
- crack (0.4.3)
15
- safe_yaml (~> 1.0.0)
16
- faraday (1.10.2)
17
- faraday-em_http (~> 1.0)
18
- faraday-em_synchrony (~> 1.0)
19
- faraday-excon (~> 1.1)
20
- faraday-httpclient (~> 1.0)
21
- faraday-multipart (~> 1.0)
22
- faraday-net_http (~> 1.0)
23
- faraday-net_http_persistent (~> 1.0)
24
- faraday-patron (~> 1.0)
25
- faraday-rack (~> 1.0)
26
- faraday-retry (~> 1.0)
27
- ruby2_keywords (>= 0.0.4)
28
- faraday-em_http (1.0.0)
29
- faraday-em_synchrony (1.0.0)
30
- faraday-excon (1.1.0)
31
- faraday-httpclient (1.0.1)
32
- faraday-multipart (1.0.4)
33
- multipart-post (~> 2)
34
- faraday-net_http (1.0.1)
35
- faraday-net_http_persistent (1.2.0)
36
- faraday-patron (1.0.0)
37
- faraday-rack (1.0.0)
38
- faraday-retry (1.0.3)
39
- faraday_middleware (1.2.0)
40
- faraday (~> 1.0)
41
- hashdiff (0.3.6)
42
- json (2.6.3)
43
- minitest (5.10.3)
44
- multipart-post (2.2.3)
45
- public_suffix (4.0.6)
46
- rake (12.0.0)
47
- ruby2_keywords (0.0.5)
48
- safe_yaml (1.0.4)
49
- vcr (3.0.3)
50
- webmock (3.0.1)
51
- addressable (>= 2.3.6)
52
- crack (>= 0.3.2)
53
- hashdiff
54
-
55
- PLATFORMS
56
- ruby
57
-
58
- DEPENDENCIES
59
- bundler
60
- closeio!
61
- minitest
62
- rake
63
- vcr
64
- webmock
65
-
66
- BUNDLED WITH
67
- 1.17.2