connectwise_sdk 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/connectwise/connection.rb +1 -1
- data/lib/connectwise/version.rb +1 -1
- data/spec/lib/connectwise/ticket_spec.rb +8 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 771b0b23319ad9e72ac583be0f12cc107b6d30ea
|
4
|
+
data.tar.gz: ec5e31eff69e846a9a9f389382f0ae2f9cff27e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86105e1e3b17492bc8a371386107df2087f284bfbb5514e558bf6e78007c2545d71244ce319a43d973426b8f598ed284a95531325beb70e50c438ed96765d91e
|
7
|
+
data.tar.gz: 456b644c4318453cb5ce7afc4e02bda379a28b84f9efe7b0e1ead8d9d3cfb7b0ce760830febc41f7705a309441e134aa7b33535a7cd4a5f3ab72b02eeac0c7b9
|
@@ -35,7 +35,7 @@ module Connectwise
|
|
35
35
|
|
36
36
|
private
|
37
37
|
def default_options
|
38
|
-
defaults = { convert_request_keys_to: :none, ssl_verify_mode: :none }
|
38
|
+
defaults = { convert_request_keys_to: :none, ssl_verify_mode: :none, follow_redirects: true }
|
39
39
|
defaults = defaults.merge({ log: true, pretty_print_xml: true }) if @log
|
40
40
|
defaults
|
41
41
|
end
|
data/lib/connectwise/version.rb
CHANGED
@@ -63,6 +63,14 @@ describe Connectwise::Ticket do
|
|
63
63
|
expect(ticket_note.external?).to eq true
|
64
64
|
end
|
65
65
|
|
66
|
+
it 'adds a note to the found ticket' do
|
67
|
+
subject.company = company.save
|
68
|
+
new_ticket = subject.save
|
69
|
+
found_ticket = Connectwise::Ticket.find(conn, new_ticket.id)
|
70
|
+
ticket_note = found_ticket.add_note('Message of some kind')
|
71
|
+
expect(ticket_note.persisted?).to eq true
|
72
|
+
end
|
73
|
+
|
66
74
|
it 'adds an internal note to the ticket' do
|
67
75
|
subject.company = company.save
|
68
76
|
new_ticket = subject.save
|
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.
|
4
|
+
version: 0.2.0
|
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:
|
11
|
+
date: 2017-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
123
|
version: '0'
|
124
124
|
requirements: []
|
125
125
|
rubyforge_project:
|
126
|
-
rubygems_version: 2.
|
126
|
+
rubygems_version: 2.5.1
|
127
127
|
signing_key:
|
128
128
|
specification_version: 4
|
129
129
|
summary: A Connectwise SDK for Ruby
|