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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 865d9d0b3ec2088369d9a3579679f411fbd08855
4
- data.tar.gz: 74f95b1fbf63be6266e4f19d6c1910de4f5bf5dd
3
+ metadata.gz: c0027cf2d769f0c575d42986f3a67a3f3f56d320
4
+ data.tar.gz: bb718e0126990442c571b02f2f463b1951ae0fd1
5
5
  SHA512:
6
- metadata.gz: dfdabedb19c2f1a6cc9fb068cb34f1e83f0bfad6ac444e068115ea5db9bc62bcc13f14c9beb13c55a3bcd12962b2ea56a007c96a04da415614c0b70effa25163
7
- data.tar.gz: 65c5aedcb3435419af5555e90ac8a84398ee6943a455b67033d8e40112d714ee255a14d7c6eaf4d80c3a86ba69bf217af0f4a1e51f9d7347cb39b676b98186bc
6
+ metadata.gz: bba4b5f247fd9f6fd2ebe5b9b727cd0fe12af55b844dfc312d426d3d3e303d93eb7091981ddb7e223261835df6ead584224ec0baeed7903ecbac2526e76b8470
7
+ data.tar.gz: 03e52d141bfc91b87d19056bd9a24f6048334eb6c380a8c4e39e3fe27faa5d34c2687d909923ef87ba4e45b10e6ca8cfe13d7ea1e41354ac7b42b3d661eb61a3
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Connectwise
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
@@ -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
- subject.company = company.save
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.8
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-10-29 00:00:00.000000000 Z
11
+ date: 2014-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler