zendesk_api 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +2 -2
- data/lib/zendesk_api/resources.rb +2 -0
- data/lib/zendesk_api/version.rb +1 -1
- data/spec/live/ticket_form_spec.rb +2 -2
- data/spec/live/ticket_spec.rb +1 -1
- metadata +2 -2
data/Gemfile.lock
CHANGED
@@ -7,7 +7,7 @@ GIT
|
|
7
7
|
PATH
|
8
8
|
remote: .
|
9
9
|
specs:
|
10
|
-
zendesk_api (1.0.
|
10
|
+
zendesk_api (1.0.5)
|
11
11
|
faraday (>= 0.8.0)
|
12
12
|
faraday_middleware (>= 0.8.7)
|
13
13
|
hashie (>= 1.2)
|
@@ -62,7 +62,7 @@ GEM
|
|
62
62
|
jruby-openssl (0.8.8)
|
63
63
|
bouncy-castle-java (>= 1.5.0147)
|
64
64
|
json (1.8.0)
|
65
|
-
mime-types (1.
|
65
|
+
mime-types (1.25)
|
66
66
|
mongoid (3.1.4)
|
67
67
|
activemodel (~> 3.2)
|
68
68
|
moped (~> 1.4)
|
@@ -291,6 +291,8 @@ module ZendeskAPI
|
|
291
291
|
|
292
292
|
has_many Tag, :extend => Tag::Update
|
293
293
|
|
294
|
+
has_many :incidents, :class => Ticket
|
295
|
+
|
294
296
|
# Gets a incremental export of tickets from the start_time until now.
|
295
297
|
# @param [Client] client The {Client} object to be used
|
296
298
|
# @param [Integer] start_time The start_time parameter
|
data/lib/zendesk_api/version.rb
CHANGED
@@ -2,12 +2,12 @@ require 'core/spec_helper'
|
|
2
2
|
|
3
3
|
describe ZendeskAPI::TicketForm, :delete_after do
|
4
4
|
def valid_attributes
|
5
|
-
{ :name => "Ticket Form-o", :position => 9999 }
|
5
|
+
{ :name => "Ticket Form-o", :position => 9999, :active => false }
|
6
6
|
end
|
7
7
|
|
8
8
|
it_should_be_creatable
|
9
9
|
it_should_be_updatable :name
|
10
|
-
it_should_be_deletable
|
10
|
+
it_should_be_deletable :find => false # Deleted ticket forms are still returned from the show action
|
11
11
|
it_should_be_readable :ticket_forms
|
12
12
|
|
13
13
|
# TODO: clone
|
data/spec/live/ticket_spec.rb
CHANGED
@@ -23,7 +23,7 @@ describe ZendeskAPI::Ticket do
|
|
23
23
|
it_should_be_readable organization, :tickets
|
24
24
|
|
25
25
|
context "recent tickets" do
|
26
|
-
before(:
|
26
|
+
before(:all) do
|
27
27
|
VCR.use_cassette("visit_recent_ticket") do
|
28
28
|
client.connection.get("/tickets/1") do |req|
|
29
29
|
req.headers[:Accept] = "*/*"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zendesk_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-09-
|
13
|
+
date: 2013-09-13 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bump
|