zendesk_api 0.4.0.rc3 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile.lock +1 -1
- data/Readme.md +5 -1
- data/lib/zendesk_api/collection.rb +1 -0
- data/lib/zendesk_api/resources.rb +2 -0
- data/lib/zendesk_api/version.rb +1 -1
- data/spec/live/target_spec.rb +17 -0
- data/spec/live/ticket_spec.rb +2 -0
- metadata +5 -3
data/Gemfile.lock
CHANGED
data/Readme.md
CHANGED
@@ -13,7 +13,7 @@ Please check out the [wiki](https://github.com/zendesk/zendesk_api_client_rb/wik
|
|
13
13
|
* Version 0.0.5 brings with it a change to the top-level namespace. All references to Zendesk should now use ZendeskAPI.
|
14
14
|
* Version 0.3.0 changed the license from MIT to Apache Version 2.
|
15
15
|
* Version 0.3.2 introduced a regression when side-loading roles on users. This was fixed in 0.3.4.
|
16
|
-
* Version 0.
|
16
|
+
* Version 1.0.0 changes the way errors are handled. Please see the [wiki page](https://github.com/zendesk/zendesk_api_client_rb/wiki/Errors) for more info.
|
17
17
|
|
18
18
|
## Installation
|
19
19
|
|
@@ -46,12 +46,16 @@ client = ZendeskAPI::Client.new do |config|
|
|
46
46
|
|
47
47
|
config.url = "<- your-zendesk-url ->" # e.g. https://mydesk.zendesk.com/api/v2
|
48
48
|
|
49
|
+
# Basic / Token Authentication
|
49
50
|
config.username = "login.email@zendesk.com"
|
50
51
|
|
51
52
|
# Choose one of the following depending on your authentication choice
|
52
53
|
config.token = "your zendesk token"
|
53
54
|
config.password = "your zendesk password"
|
54
55
|
|
56
|
+
# OAuth Authentication
|
57
|
+
config.access_token = "your OAuth access token"
|
58
|
+
|
55
59
|
# Optional:
|
56
60
|
|
57
61
|
# Retry uses middleware to notify the user
|
data/lib/zendesk_api/version.rb
CHANGED
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'core/spec_helper'
|
2
|
+
|
3
|
+
describe ZendeskAPI::Target, :delete_after do
|
4
|
+
def valid_attributes
|
5
|
+
{
|
6
|
+
:type => "email_target",
|
7
|
+
:title => "Test Email Target",
|
8
|
+
:email => "hello@example.com",
|
9
|
+
:subject => "Test Target"
|
10
|
+
}
|
11
|
+
end
|
12
|
+
|
13
|
+
it_should_be_readable :targets, :create => :true
|
14
|
+
it_should_be_creatable
|
15
|
+
it_should_be_updatable :email, "bye@example.com"
|
16
|
+
it_should_be_deletable
|
17
|
+
end
|
data/spec/live/ticket_spec.rb
CHANGED
metadata
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zendesk_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.0
|
5
|
+
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Steven Davidovitz
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-
|
13
|
+
date: 2013-08-06 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bump
|
@@ -491,6 +491,7 @@ files:
|
|
491
491
|
- spec/live/setting_spec.rb
|
492
492
|
- spec/live/suspended_ticket_spec.rb
|
493
493
|
- spec/live/tag_spec.rb
|
494
|
+
- spec/live/target_spec.rb
|
494
495
|
- spec/live/ticket_field_spec.rb
|
495
496
|
- spec/live/ticket_metrics_spec.rb
|
496
497
|
- spec/live/ticket_spec.rb
|
@@ -587,6 +588,7 @@ test_files:
|
|
587
588
|
- spec/live/setting_spec.rb
|
588
589
|
- spec/live/suspended_ticket_spec.rb
|
589
590
|
- spec/live/tag_spec.rb
|
591
|
+
- spec/live/target_spec.rb
|
590
592
|
- spec/live/ticket_field_spec.rb
|
591
593
|
- spec/live/ticket_metrics_spec.rb
|
592
594
|
- spec/live/ticket_spec.rb
|