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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bbe857e236f12ca9b69831850bad6cd8d2c8d9fb
4
- data.tar.gz: ad8e0a72a2cff8060509dd2522d2f801e868d6af
3
+ metadata.gz: d1c8130f07461045438ebe50207b7747b8fc1e03
4
+ data.tar.gz: e06206310748b5a029e59917a7f5d8f709a8e143
5
5
  SHA512:
6
- metadata.gz: 2ba72316c88facfdc69004924be00b1c5085d5b6c9bda662394dd7acb5e0c32ad8ab5716d29ce75c180a0b39f153897133ab03fe10aef944d6e37d63586e8af9
7
- data.tar.gz: 6c8ac0ee3154d0d66b3e6ff46777651a42f8e25ebf96c7fce14eb8908dcbb9fc7e3f1f86ad61c5f84aa2e56ed3a0f67f354f3bcdf44f52471f2caa79c6436bb4
6
+ metadata.gz: bd4d4e8c8c4924025d55fd64c49267077bdc02d8faabed6d0f831254db9fac79521a9f583d73a00a3ff62d8f53266faef17089e30717bdda556af6185c1e160e
7
+ data.tar.gz: 417905fbc8d6fbd12bb2d40671398a128fbbf934abbefa3ab0340541caedae7387be1bcedf32309770a00349e55d3d55aca9de609b4147390b73cac821e1c6d3
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # 2.0.0
2
+
3
+ * Removed: GDSZendesk::FIELD_MAPPINGS.
4
+ * Fixed DummyUsers to behave like the real Users class.
5
+
1
6
  # 1.0.5
2
7
 
3
8
  * Update the `zendesk_api` library to v1.8.0 (this picks up a bugfix for
@@ -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 create!(new_user_attributes)
61
- @created_user_attributes = new_user_attributes
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
@@ -1,3 +1,3 @@
1
1
  module GDSZendesk
2
- VERSION = "1.0.5"
2
+ VERSION = "2.0.0"
3
3
  end
@@ -29,14 +29,14 @@ module GDSZendesk
29
29
  end
30
30
 
31
31
  context "when a user has been created" do
32
- let(:created_user_options) { { email: "a@b.com" } }
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: #{created_user_options.inspect}")
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.create!(created_user_options)
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: 1.0.5
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-06-09 00:00:00.000000000 Z
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
@@ -1,6 +0,0 @@
1
- module GDSZendesk
2
- FIELD_MAPPINGS = {
3
- needed_by_date: "21485833",
4
- not_before_date: "21502036"
5
- }
6
- end