desk 1.0.6 → 1.0.7

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: a12603006263553d7f8588414116063cea22ce52
4
- data.tar.gz: 9385b31a4521c2b8d9ef5672b4f97e1dc5c366ae
3
+ metadata.gz: 4f2df94009980b5fd0bd066e0e3c40a6b9b69f85
4
+ data.tar.gz: 8950846b275c3695dc2d3e621a94f94f5bfeb9d5
5
5
  SHA512:
6
- metadata.gz: 28a190b1faebb506991d5f8533798f0c399d3d9cbeb5f73decae8d8219199369a5ec9eaac1eea255d1b035fe79a88881986b1abb679bfc269c42d30b2772958e
7
- data.tar.gz: 26e9aedbc5817836b16da822cabcc89d9453bbf308b1a77c6347fd1998c469cbfead93404afd0586e318effffd449ff06e6fb09c565ac4a8f8d93186b29db7d7
6
+ metadata.gz: 5dc8d6505dbc24a2417d93592ae2503fad74d936fff7801ef6359d7be304f657beb968ab4d41d9ccb5e80554f20f80ee41c7a7944d91e9162eb3d3029d69e753
7
+ data.tar.gz: bac5d38723b50e0a2ec667149f430eee02b286285afd6979a9b4784c15f001de72c37fbfe5a8e921d8dec5b883c971dab0fbb9658bec7f3f6b0a991ecb9430b9
@@ -7,12 +7,12 @@ Gem::Specification.new do |s|
7
7
  s.add_development_dependency('maruku', '~> 0.6')
8
8
  s.add_development_dependency('rake', '~> 0.8')
9
9
  s.add_development_dependency('rspec', '~> 2.5')
10
- s.add_development_dependency('email_spec', '~> 1.1.1')
10
+ s.add_development_dependency 'email_spec', '~> 1.1', '>= 1.1.1'
11
11
  s.add_development_dependency('simplecov', '~> 0.4')
12
12
  s.add_development_dependency('webmock', '~> 1.6')
13
13
  s.add_development_dependency('yard', '~> 0.6')
14
14
  s.add_runtime_dependency('json', '~> 1.7') if RUBY_VERSION < '1.9'
15
- s.add_runtime_dependency('hashie', '~> 3.3.2')
15
+ s.add_runtime_dependency 'hashie', '~> 3.3', '>= 3.3.2'
16
16
  s.add_runtime_dependency('faraday', '~> 0.9.0')
17
17
  s.add_runtime_dependency('faraday_middleware', '~> 0.9.0')
18
18
  s.add_runtime_dependency('jruby-openssl', '~> 0.7.2') if RUBY_PLATFORM == 'java'
@@ -4,7 +4,7 @@ module Desk
4
4
  module Case
5
5
 
6
6
  def case_endpoints
7
- [ :list, :search, :create, :update,
7
+ [ :list, :search, :create, :update, :delete,
8
8
  :list_replies, :show_reply, :create_reply, :update_reply,
9
9
  :list_notes, :show_note, :create_note,
10
10
  :list_attachments, :show_attachment, :create_attachment, :delete_attachment,
@@ -34,7 +34,7 @@ module Desk
34
34
  end
35
35
  builder.use Faraday::Response::RaiseHttp5xx
36
36
  builder.adapter(adapter)
37
- builder.response :logger, logger unless logger.nil?
37
+ builder.response :logger, logger, :bodies => true unless logger.nil?
38
38
  end
39
39
  end
40
40
  end
@@ -93,7 +93,7 @@ module Hashie
93
93
  end
94
94
 
95
95
  def results
96
- self._embedded['entries'] if key?('_embedded') && self._embedded.key?('entries')
96
+ self._embedded['entries'] if self.raw.key?('_embedded') && self._embedded.key?('entries')
97
97
  end
98
98
 
99
99
  end
@@ -1,4 +1,4 @@
1
1
  module Desk
2
2
  # The version of the gem
3
- VERSION = '1.0.6'.freeze unless defined?(::Desk::VERSION)
3
+ VERSION = '1.0.7'.freeze unless defined?(::Desk::VERSION)
4
4
  end
@@ -75,6 +75,8 @@ describe Desk::Client do
75
75
  let(:check_value) { "Updated" }
76
76
  end
77
77
 
78
+ it_behaves_like "a delete endpoint"
79
+
78
80
  context "Message" do
79
81
 
80
82
  let(:sub_endpoint) { "message" }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: desk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Warren
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-16 00:00:00.000000000 Z
11
+ date: 2015-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -71,6 +71,9 @@ dependencies:
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.1'
76
+ - - ">="
74
77
  - !ruby/object:Gem::Version
75
78
  version: 1.1.1
76
79
  type: :development
@@ -78,6 +81,9 @@ dependencies:
78
81
  version_requirements: !ruby/object:Gem::Requirement
79
82
  requirements:
80
83
  - - "~>"
84
+ - !ruby/object:Gem::Version
85
+ version: '1.1'
86
+ - - ">="
81
87
  - !ruby/object:Gem::Version
82
88
  version: 1.1.1
83
89
  - !ruby/object:Gem::Dependency
@@ -127,6 +133,9 @@ dependencies:
127
133
  requirement: !ruby/object:Gem::Requirement
128
134
  requirements:
129
135
  - - "~>"
136
+ - !ruby/object:Gem::Version
137
+ version: '3.3'
138
+ - - ">="
130
139
  - !ruby/object:Gem::Version
131
140
  version: 3.3.2
132
141
  type: :runtime
@@ -134,6 +143,9 @@ dependencies:
134
143
  version_requirements: !ruby/object:Gem::Requirement
135
144
  requirements:
136
145
  - - "~>"
146
+ - !ruby/object:Gem::Version
147
+ version: '3.3'
148
+ - - ">="
137
149
  - !ruby/object:Gem::Version
138
150
  version: 3.3.2
139
151
  - !ruby/object:Gem::Dependency