help_scout 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bec266119ae742cb4e172ba3b9ccff44aab916f7
4
- data.tar.gz: c490d9de2f85e1f64a4cc2917b817738ed11d902
3
+ metadata.gz: fb7ba581aa0fce9aca9b69f34bd45d003a832095
4
+ data.tar.gz: 16e098e8579676e7b127b21e1f0bf38740b02ed6
5
5
  SHA512:
6
- metadata.gz: 1a9626cef734ba39cb52af2bdf3bb167d05474ae88c8aac4bd8d613a87666d3d89106dad3b3e30fb21b596c66ae5f2a248849c7dc8c605b8425cacf11b3e57be
7
- data.tar.gz: 781f7347931da64f8a725b94b41db87e8c2d3208938137ca6a356b779611dd4c86b7cca46afa0d49d9390ed25d51c7a204882166a85757c3c11c5b5c4df65122
6
+ metadata.gz: d47b06f95c503e9537b8578d9774d3d9e05489605ed31cf609730a6febe9c4557a1ebc328cc92c189e45da5d50baacae168481873c8cd8a698a2a2d42cb2475e
7
+ data.tar.gz: 0a43fa20e176e2e3323c596d3caf1f9f501deaeafd944f2cc6ad3e80eca300c79ac91d4c80f8613e39d67ea75ee7c73d2de475728066a805f7b4cce4ab7a1069
@@ -1,3 +1,3 @@
1
1
  class HelpScout
2
- VERSION = "0.4.0"
2
+ VERSION = "0.5.0"
3
3
  end
data/lib/help_scout.rb CHANGED
@@ -115,7 +115,6 @@ class HelpScout
115
115
  get("reports/user/ratings", options)
116
116
  end
117
117
 
118
-
119
118
  # Public: Creates conversation thread
120
119
  #
121
120
  # conversion_id - conversation id
@@ -138,6 +137,16 @@ class HelpScout
138
137
  last_response.code == HTTP_CREATED
139
138
  end
140
139
 
140
+ # Public: Update Customer
141
+ #
142
+ # id - customer id
143
+ # data - hash with data
144
+ #
145
+ # More info: http://developer.helpscout.net/help-desk-api/customers/update/
146
+ def update_customer(id, data)
147
+ put("customers/#{id}", { body: data })
148
+ end
149
+
141
150
  protected
142
151
 
143
152
  def post(path, options = {})
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: help_scout
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dennis Paagman
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2017-03-22 00:00:00.000000000 Z
13
+ date: 2017-08-25 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: httparty
@@ -137,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
137
  version: '0'
138
138
  requirements: []
139
139
  rubyforge_project:
140
- rubygems_version: 2.6.8
140
+ rubygems_version: 2.6.11
141
141
  signing_key:
142
142
  specification_version: 4
143
143
  summary: HelpScout is an API client for Help Scout