zendesk_api 0.4.0.rc3 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -7,7 +7,7 @@ GIT
7
7
  PATH
8
8
  remote: .
9
9
  specs:
10
- zendesk_api (0.4.0.rc3)
10
+ zendesk_api (1.0.0)
11
11
  faraday (>= 0.8.0)
12
12
  faraday_middleware (>= 0.8.7)
13
13
  hashie (>= 1.2)
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.4.0rc1 changes the way errors are handled. Please see the [wiki page](https://github.com/zendesk/zendesk_api_client_rb/wiki/Errors) for more info.
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
@@ -235,6 +235,7 @@ module ZendeskAPI
235
235
  @count = nil
236
236
  @next_page = nil
237
237
  @prev_page = nil
238
+ @query = nil
238
239
  end
239
240
 
240
241
  # @private
@@ -464,4 +464,6 @@ module ZendeskAPI
464
464
  "token"
465
465
  end
466
466
  end
467
+
468
+ class Target < Resource; end
467
469
  end
@@ -1,3 +1,3 @@
1
1
  module ZendeskAPI
2
- VERSION = "0.4.0.rc3"
2
+ VERSION = "1.0.0"
3
3
  end
@@ -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
@@ -27,6 +27,8 @@ describe ZendeskAPI::Ticket do
27
27
  client.connection.get("/tickets/1") do |req|
28
28
  req.headers[:Accept] = "*/*"
29
29
  end
30
+
31
+ sleep(5)
30
32
  end
31
33
  end
32
34
 
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.4.0.rc3
5
- prerelease: 6
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-07-08 00:00:00.000000000 Z
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