gds_zendesk 1.0.5 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/gds_zendesk/dummy_client.rb +2 -4
- data/lib/gds_zendesk/version.rb +1 -1
- data/spec/gds_zendesk/dummy_client_spec.rb +3 -3
- metadata +3 -4
- data/lib/gds_zendesk/field_mappings.rb +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1c8130f07461045438ebe50207b7747b8fc1e03
|
4
|
+
data.tar.gz: e06206310748b5a029e59917a7f5d8f709a8e143
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd4d4e8c8c4924025d55fd64c49267077bdc02d8faabed6d0f831254db9fac79521a9f583d73a00a3ff62d8f53266faef17089e30717bdda556af6185c1e160e
|
7
|
+
data.tar.gz: 417905fbc8d6fbd12bb2d40671398a128fbbf934abbefa3ab0340541caedae7387be1bcedf32309770a00349e55d3d55aca9de609b4147390b73cac821e1c6d3
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
require 'null_logger'
|
2
|
-
require 'gds_zendesk/field_mappings'
|
3
2
|
require 'zendesk_api/error'
|
4
3
|
|
5
4
|
module GDSZendesk
|
@@ -57,9 +56,8 @@ module GDSZendesk
|
|
57
56
|
false
|
58
57
|
end
|
59
58
|
|
60
|
-
def
|
61
|
-
@
|
62
|
-
@logger.info("Zendesk user created: #{new_user_attributes.inspect}")
|
59
|
+
def create_or_update_user(new_attributes)
|
60
|
+
@logger.info("Zendesk user created or updated: #{new_attributes.inspect}")
|
63
61
|
end
|
64
62
|
end
|
65
63
|
end
|
data/lib/gds_zendesk/version.rb
CHANGED
@@ -29,14 +29,14 @@ module GDSZendesk
|
|
29
29
|
end
|
30
30
|
|
31
31
|
context "when a user has been created" do
|
32
|
-
let(:
|
32
|
+
let(:options) { { email: "a@b.com" } }
|
33
33
|
|
34
34
|
it "should log the user details" do
|
35
35
|
logger = double("logger")
|
36
|
-
expect(logger).to receive(:info).with("Zendesk user created: #{
|
36
|
+
expect(logger).to receive(:info).with("Zendesk user created or updated: #{options.inspect}")
|
37
37
|
|
38
38
|
client = DummyClient.new(logger: logger)
|
39
|
-
client.users.
|
39
|
+
client.users.create_or_update_user(options)
|
40
40
|
end
|
41
41
|
end
|
42
42
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gds_zendesk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jake Benilov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: null_logger
|
@@ -114,7 +114,6 @@ files:
|
|
114
114
|
- lib/gds_zendesk.rb
|
115
115
|
- lib/gds_zendesk/client.rb
|
116
116
|
- lib/gds_zendesk/dummy_client.rb
|
117
|
-
- lib/gds_zendesk/field_mappings.rb
|
118
117
|
- lib/gds_zendesk/test_helpers.rb
|
119
118
|
- lib/gds_zendesk/users.rb
|
120
119
|
- lib/gds_zendesk/version.rb
|
@@ -142,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
142
141
|
version: '0'
|
143
142
|
requirements: []
|
144
143
|
rubyforge_project:
|
145
|
-
rubygems_version: 2.4.5
|
144
|
+
rubygems_version: 2.4.5.1
|
146
145
|
signing_key:
|
147
146
|
specification_version: 4
|
148
147
|
summary: Client and models for communicating with Zendesk
|