connectwise_sdk 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/connectwise/ticket.rb +1 -1
- data/lib/connectwise/version.rb +1 -1
- data/spec/lib/connectwise/ticket_spec.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0027cf2d769f0c575d42986f3a67a3f3f56d320
|
4
|
+
data.tar.gz: bb718e0126990442c571b02f2f463b1951ae0fd1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bba4b5f247fd9f6fd2ebe5b9b727cd0fe12af55b844dfc312d426d3d3e303d93eb7091981ddb7e223261835df6ead584224ec0baeed7903ecbac2526e76b8470
|
7
|
+
data.tar.gz: 03e52d141bfc91b87d19056bd9a24f6048334eb6c380a8c4e39e3fe27faa5d34c2687d909923ef87ba4e45b10e6ca8cfe13d7ea1e41354ac7b42b3d661eb61a3
|
data/lib/connectwise/ticket.rb
CHANGED
@@ -2,7 +2,7 @@ module Connectwise
|
|
2
2
|
class Ticket
|
3
3
|
include Model
|
4
4
|
model_name 'service_ticket'
|
5
|
-
attr_accessor :id, :summary, :problem_description, :status_name, :board, :site_name, :status, :resolution, :remote_internal_company_name, :priority, :source, :severity, :impact, :company
|
5
|
+
attr_accessor :id, :summary, :problem_description, :status_name, :board, :site_name, :status, :resolution, :remote_internal_company_name, :priority, :source, :severity, :impact, :company, :company_id
|
6
6
|
|
7
7
|
#TODO - The use of SrServiceRecid and TicketNumber instead of id - may want to configure these
|
8
8
|
# but this is so inconsistent for tickets that it may not be worth it unless other calls do the same thing
|
data/lib/connectwise/version.rb
CHANGED
@@ -9,9 +9,11 @@ describe Connectwise::Ticket do
|
|
9
9
|
subject {Connectwise::Ticket.new(conn, ticket_attrs)}
|
10
10
|
|
11
11
|
it 'creates a ticket' do
|
12
|
-
|
12
|
+
orig_company = company.save
|
13
|
+
subject.company = orig_company
|
13
14
|
new_ticket = subject.save
|
14
15
|
expect(new_ticket.persisted?).to eq true
|
16
|
+
expect(new_ticket.company_id).to eq orig_company.company_id
|
15
17
|
end
|
16
18
|
|
17
19
|
it 'finds a service ticket' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: connectwise_sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Emery A. Miller
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|