context_io 1.0 → 1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.hound.yml +3 -0
- data/.rubocop.yml +1528 -0
- data/README.md +1 -1
- data/lib/context_io/account.rb +2 -3
- data/lib/context_io/connection.rb +1 -1
- data/lib/context_io/shared/webhook.rb +1 -1
- data/lib/context_io/utilities/valid_parameters/post_params.rb +2 -2
- data/lib/context_io/version.rb +1 -1
- metadata +5 -4
- data/.travis.yml +0 -5
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Context.IO 2.0 API Ruby Library
|
2
2
|
========
|
3
|
-
* <a href="
|
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
|
|
data/lib/context_io/account.rb
CHANGED
@@ -129,9 +129,8 @@ module ContextIO
|
|
129
129
|
klass: Webhook)
|
130
130
|
end
|
131
131
|
|
132
|
-
def post_webhook(callback_url:,
|
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
|
@@ -33,12 +33,12 @@ module ContextIO
|
|
33
33
|
SOURCE_CONNECT_TOKEN = %I(callback_url)
|
34
34
|
|
35
35
|
#Webhooks
|
36
|
-
WEBHOOKS = %I(callback_url
|
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
|
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)
|
data/lib/context_io/version.rb
CHANGED
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.
|
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-
|
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
|
-
- ".
|
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.
|
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
|