context_io 1.0 → 1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  Context.IO 2.0 API Ruby Library
2
2
  ========
3
- * <a href="http://context.io/docs/" target="_blank">API documentation</a>
3
+ * <a href="https://docs.context.io/" target="_blank">API documentation</a>
4
4
  * <a href="https://console.context.io/" target="_blank">API Explorer</a>
5
5
  * <a href="http://context.io" target="_blank">Sign Up</a>
6
6
 
@@ -129,9 +129,8 @@ module ContextIO
129
129
  klass: Webhook)
130
130
  end
131
131
 
132
- def post_webhook(callback_url:, failure_notif_url:, **kwargs)
133
- given_params = kwargs.merge(callback_url: callback_url,
134
- failure_notif_url: failure_notif_url)
132
+ def post_webhook(callback_url:, **kwargs)
133
+ given_params = kwargs.merge(callback_url: callback_url)
135
134
  token = call_api_return_new_object(klass: Webhook,
136
135
  url: "#{call_url}/webhooks",
137
136
  method: :post,
@@ -13,7 +13,7 @@ module ContextIO
13
13
  end
14
14
 
15
15
  def connect
16
- connection ||= Faraday::Connection.new(ROOT_URL) do |f|
16
+ @connection ||= Faraday::Connection.new(ROOT_URL) do |f|
17
17
  f.headers["User-Agent"] = USER_AGENT
18
18
  f.request :oauth, consumer_key: key, consumer_secret: secret
19
19
  f.request :url_encoded
@@ -1,7 +1,7 @@
1
1
  module ContextIO
2
2
  class Webhook
3
3
  include ContextIO::CallHelpers
4
- WEBHOOK_READERS = %I(callback_url failure_notif_url active webhook_id resource_url)
4
+ WEBHOOK_READERS = %I(callback_url active webhook_id resource_url)
5
5
 
6
6
  private
7
7
  attr_reader :parent
@@ -33,12 +33,12 @@ module ContextIO
33
33
  SOURCE_CONNECT_TOKEN = %I(callback_url)
34
34
 
35
35
  #Webhooks
36
- WEBHOOKS = %I(callback_url failure_notif_url filter_to filter_from filter_cc
36
+ WEBHOOKS = %I(callback_url filter_to filter_from filter_cc
37
37
  filter_subject filter_thread filter_file_name filter_folder_added
38
38
  filter_folder_removed filter_to_domain filter_from_domain
39
39
  include_body body_type include_header)
40
40
 
41
- WEBHOOK = %I(callback_url failure_notif_url filter_to filter_from filter_cc
41
+ WEBHOOK = %I(callback_url filter_to filter_from filter_cc
42
42
  filter_subject filter_thread filter_file_name filter_folder_added
43
43
  filter_folder_removed filter_to_domain filter_from_domain
44
44
  include_body body_type include_header active)
@@ -1,3 +1,3 @@
1
1
  module ContextIO
2
- VERSION = "1.0"
2
+ VERSION = "1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: context_io
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.0'
4
+ version: '1.1'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dane Carmichael
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-12 00:00:00.000000000 Z
11
+ date: 2017-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -144,8 +144,9 @@ extensions: []
144
144
  extra_rdoc_files: []
145
145
  files:
146
146
  - ".gitignore"
147
+ - ".hound.yml"
147
148
  - ".rspec"
148
- - ".travis.yml"
149
+ - ".rubocop.yml"
149
150
  - Gemfile
150
151
  - LICENSE.md
151
152
  - README.md
@@ -197,7 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
198
  version: '0'
198
199
  requirements: []
199
200
  rubyforge_project:
200
- rubygems_version: 2.5.1
201
+ rubygems_version: 2.6.13
201
202
  signing_key:
202
203
  specification_version: 4
203
204
  summary: Provides a Ruby interface to the Context.IO API
data/.travis.yml DELETED
@@ -1,5 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.3.1
5
- before_install: gem install bundler -v 1.13.6