closeio 3.8.0 → 3.10.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: 0a20f7a0995248eb6cca108c486db611618eae19962fb6a39bc43e05a69f03d9
4
- data.tar.gz: cfd4c126bedd90546a011bb36f4485f56a3a69ec232331857c1e22003ca14f0e
3
+ metadata.gz: 154eebf09542c643734c554a00d1a22ed6a7e1107e4e3442138bbff71275d91d
4
+ data.tar.gz: c4022cf7b653a8e10f393401475b94d437c9c5372d1b80d9dc5db927bd61a493
5
5
  SHA512:
6
- metadata.gz: 7154ba639e379b9369d19040dd3a0ecc11e98f4ccccd720233cb7566a63ebbe42c764951489125d14bb155168e68ddfc1dde4ce7e3fe9a547c56a5a1a06186a4
7
- data.tar.gz: c0af28088ecc574dde03344d500ee51ca07cc5b151498952d78c05f6a1d9a5e5d4194e1d9dc55210c55725dd477825256b431df1d1e997095cce5da64fd2aee7
6
+ metadata.gz: f747e970d9f053d9d8176e046149dba4a14d7d12202b2737d49e2db35fa0d9f59b891de0a8ec2c9c77248452189967ed3e72748e8221e51919821826a7e2e28d
7
+ data.tar.gz: a3d94fedd082830d6d7c6b2fce52f533e26e1419c0ea212dd967dd7ebd05908d30ba9ab60e908d756363f05e1773ef54d256346d353781bbac1a64a41d64f7ad
data/.gitignore CHANGED
@@ -1,2 +1,3 @@
1
1
  closeio-*.gem
2
2
  .env
3
+ Gemfile.lock
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- closeio (3.8.0)
4
+ closeio (3.10.0)
5
5
  faraday
6
6
  faraday_middleware
7
7
  json
@@ -13,7 +13,7 @@ GEM
13
13
  public_suffix (>= 2.0.2, < 5.0)
14
14
  crack (0.4.3)
15
15
  safe_yaml (~> 1.0.0)
16
- faraday (1.10.0)
16
+ faraday (1.10.2)
17
17
  faraday-em_http (~> 1.0)
18
18
  faraday-em_synchrony (~> 1.0)
19
19
  faraday-excon (~> 1.1)
@@ -29,8 +29,8 @@ GEM
29
29
  faraday-em_synchrony (1.0.0)
30
30
  faraday-excon (1.1.0)
31
31
  faraday-httpclient (1.0.1)
32
- faraday-multipart (1.0.3)
33
- multipart-post (>= 1.2, < 3)
32
+ faraday-multipart (1.0.4)
33
+ multipart-post (~> 2)
34
34
  faraday-net_http (1.0.1)
35
35
  faraday-net_http_persistent (1.2.0)
36
36
  faraday-patron (1.0.0)
@@ -39,9 +39,9 @@ GEM
39
39
  faraday_middleware (1.2.0)
40
40
  faraday (~> 1.0)
41
41
  hashdiff (0.3.6)
42
- json (2.6.1)
42
+ json (2.6.2)
43
43
  minitest (5.10.3)
44
- multipart-post (2.1.1)
44
+ multipart-post (2.2.3)
45
45
  public_suffix (4.0.6)
46
46
  rake (12.0.0)
47
47
  ruby2_keywords (0.0.5)
data/README.md CHANGED
@@ -8,7 +8,7 @@ I :heart: Close, so if you have problems using the gem or would like to see supp
8
8
  Add this line to your application's Gemfile:
9
9
  ````ruby
10
10
  # in your Gemfile
11
- gem 'closeio', '~> 3.6'
11
+ gem 'closeio', '~> 3.9.0'
12
12
 
13
13
  # then...
14
14
  bundle install
data/bin/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "closeio"
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require "irb"
15
+ IRB.start(__FILE__)
@@ -28,6 +28,7 @@ module Closeio
28
28
  include Closeio::Client::Task
29
29
  include Closeio::Client::User
30
30
  include Closeio::Client::Webhook
31
+ include Closeio::Client::Filter
31
32
 
32
33
  attr_reader :api_key, :logger, :ca_file, :errors, :utc_offset
33
34
 
@@ -85,6 +85,10 @@ module Closeio
85
85
  post(call_path, options)
86
86
  end
87
87
 
88
+ def update_call(id, options = {})
89
+ put("#{call_path}#{id}/", options)
90
+ end
91
+
88
92
  def delete_call(id)
89
93
  delete("#{call_path}#{id}/")
90
94
  end
@@ -0,0 +1,16 @@
1
+ module Closeio
2
+ class Client
3
+ module Filter
4
+
5
+ def filter(body={})
6
+ post(advanced_filter_path, body)
7
+ end
8
+
9
+ private
10
+
11
+ def advanced_filter_path
12
+ 'data/search/'
13
+ end
14
+ end
15
+ end
16
+ end
@@ -1,3 +1,3 @@
1
1
  module Closeio
2
- VERSION = '3.8.0'.freeze
2
+ VERSION = '3.10.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.8.0
4
+ version: 3.10.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-03-29 00:00:00.000000000 Z
11
+ date: 2022-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -126,7 +126,8 @@ description: A Ruby wrapper for the CloseIO API -- a sales CRM built by salespeo
126
126
  for salespeople.
127
127
  email:
128
128
  - tbrooks@gmail.com
129
- executables: []
129
+ executables:
130
+ - console
130
131
  extensions: []
131
132
  extra_rdoc_files: []
132
133
  files:
@@ -137,6 +138,7 @@ files:
137
138
  - LICENSE
138
139
  - README.md
139
140
  - Rakefile
141
+ - bin/console
140
142
  - closeio.gemspec
141
143
  - lib/closeio.rb
142
144
  - lib/closeio/client.rb
@@ -148,6 +150,7 @@ files:
148
150
  - lib/closeio/resources/email_account.rb
149
151
  - lib/closeio/resources/email_template.rb
150
152
  - lib/closeio/resources/event.rb
153
+ - lib/closeio/resources/filter.rb
151
154
  - lib/closeio/resources/integration_link.rb
152
155
  - lib/closeio/resources/lead.rb
153
156
  - lib/closeio/resources/lead_status.rb