zendesk_api 1.2.2 → 1.2.3

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: 743106b04392eea7aed59f427f26450c2447ffac
4
- data.tar.gz: 7af519c56684d9baf154181262f859e0da41afcc
3
+ metadata.gz: 5d2d51cee7bc52d69cb3651b8d34be2f657fd0b0
4
+ data.tar.gz: 79d21d20ccc25babe632b13f92e88f63205e119a
5
5
  SHA512:
6
- metadata.gz: 309d20af8e77b1972c76e5b3187edcdd726638a49a5745f30c10f6784337a1e6fddd3f0da09d91335e2dda350f0e5bd80f173d61916880c3c19275f2f13f4c8f
7
- data.tar.gz: 5f010ab7a191352e51e9e4bccc505005c1abe50e5349c1f0f8465e72b9590303f7266b11f1f50318fad23a5df2fa23f649aa93c1407e081e5bc253d0bc488d23
6
+ metadata.gz: 1496843f0c0507408cbf14ccba8fd49b5122502d28bdbf16e40a6e61d02dcfca79eac6dcc8f623ee1bd52157e0588538aee416c53547ad4f45ab6314fe2e5fd8
7
+ data.tar.gz: 910905c0701802ad489d7101fbc8de61382b4f4ed3058f0915b148589d4a039e9a9dcd31f9b6b58cd16fd868c630f09b5b82d72fc458254df4314a044f4aecf8
data/Gemfile.lock CHANGED
@@ -7,7 +7,7 @@ GIT
7
7
  PATH
8
8
  remote: .
9
9
  specs:
10
- zendesk_api (1.2.2)
10
+ zendesk_api (1.2.3)
11
11
  faraday (>= 0.8.0)
12
12
  faraday_middleware (>= 0.8.7)
13
13
  hashie (>= 1.2)
@@ -502,6 +502,17 @@ module ZendeskAPI
502
502
  has_many :topic_votes, :class => Topic::TopicVote
503
503
 
504
504
  has_many Setting
505
+
506
+ def attributes_for_save
507
+ # Don't send role_id, it's necessary
508
+ # for side-loading, but causes problems on save
509
+ # see #initialize
510
+ attrs = attributes.changes.delete_if do |k, _|
511
+ k == "role_id"
512
+ end
513
+
514
+ { self.class.singular_resource_name => attrs }
515
+ end
505
516
  end
506
517
 
507
518
  class UserField < Resource; end
@@ -1,3 +1,3 @@
1
1
  module ZendeskAPI
2
- VERSION = "1.2.2"
2
+ VERSION = "1.2.3"
3
3
  end
metadata CHANGED
@@ -1,199 +1,200 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zendesk_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Davidovitz
8
8
  - Michael Grosser
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-01-03 00:00:00.000000000 Z
12
+ date: 2014-01-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bump
16
- version_requirements: !ruby/object:Gem::Requirement
17
- requirements:
18
- - - '>='
19
- - !ruby/object:Gem::Version
20
- version: '0'
21
16
  requirement: !ruby/object:Gem::Requirement
22
17
  requirements:
23
18
  - - '>='
24
19
  - !ruby/object:Gem::Version
25
20
  version: '0'
26
- prerelease: false
27
21
  type: :development
28
- - !ruby/object:Gem::Dependency
29
- name: rake
22
+ prerelease: false
30
23
  version_requirements: !ruby/object:Gem::Requirement
31
24
  requirements:
32
25
  - - '>='
33
26
  - !ruby/object:Gem::Version
34
27
  version: '0'
28
+ - !ruby/object:Gem::Dependency
29
+ name: rake
35
30
  requirement: !ruby/object:Gem::Requirement
36
31
  requirements:
37
32
  - - '>='
38
33
  - !ruby/object:Gem::Version
39
34
  version: '0'
40
- prerelease: false
41
35
  type: :development
42
- - !ruby/object:Gem::Dependency
43
- name: rspec
36
+ prerelease: false
44
37
  version_requirements: !ruby/object:Gem::Requirement
45
38
  requirements:
46
39
  - - '>='
47
40
  - !ruby/object:Gem::Version
48
41
  version: '0'
42
+ - !ruby/object:Gem::Dependency
43
+ name: rspec
49
44
  requirement: !ruby/object:Gem::Requirement
50
45
  requirements:
51
46
  - - '>='
52
47
  - !ruby/object:Gem::Version
53
48
  version: '0'
54
- prerelease: false
55
49
  type: :development
56
- - !ruby/object:Gem::Dependency
57
- name: vcr
50
+ prerelease: false
58
51
  version_requirements: !ruby/object:Gem::Requirement
59
52
  requirements:
60
53
  - - '>='
61
54
  - !ruby/object:Gem::Version
62
55
  version: '0'
56
+ - !ruby/object:Gem::Dependency
57
+ name: vcr
63
58
  requirement: !ruby/object:Gem::Requirement
64
59
  requirements:
65
60
  - - '>='
66
61
  - !ruby/object:Gem::Version
67
62
  version: '0'
68
- prerelease: false
69
63
  type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: webmock
72
- version_requirements: !ruby/object:Gem::Requirement
72
+ requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - ~>
75
75
  - !ruby/object:Gem::Version
76
76
  version: 1.9.0
77
- requirement: !ruby/object:Gem::Requirement
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
78
80
  requirements:
79
81
  - - ~>
80
82
  - !ruby/object:Gem::Version
81
83
  version: 1.9.0
82
- prerelease: false
83
- type: :development
84
84
  - !ruby/object:Gem::Dependency
85
85
  name: yard
86
- version_requirements: !ruby/object:Gem::Requirement
86
+ requirement: !ruby/object:Gem::Requirement
87
87
  requirements:
88
88
  - - '>='
89
89
  - !ruby/object:Gem::Version
90
90
  version: '0'
91
- requirement: !ruby/object:Gem::Requirement
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
92
94
  requirements:
93
95
  - - '>='
94
96
  - !ruby/object:Gem::Version
95
97
  version: '0'
96
- prerelease: false
97
- type: :development
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: faraday
100
- version_requirements: !ruby/object:Gem::Requirement
100
+ requirement: !ruby/object:Gem::Requirement
101
101
  requirements:
102
102
  - - '>='
103
103
  - !ruby/object:Gem::Version
104
104
  version: 0.8.0
105
- requirement: !ruby/object:Gem::Requirement
105
+ type: :runtime
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
106
108
  requirements:
107
109
  - - '>='
108
110
  - !ruby/object:Gem::Version
109
111
  version: 0.8.0
110
- prerelease: false
111
- type: :runtime
112
112
  - !ruby/object:Gem::Dependency
113
113
  name: faraday_middleware
114
- version_requirements: !ruby/object:Gem::Requirement
114
+ requirement: !ruby/object:Gem::Requirement
115
115
  requirements:
116
116
  - - '>='
117
117
  - !ruby/object:Gem::Version
118
118
  version: 0.8.7
119
- requirement: !ruby/object:Gem::Requirement
119
+ type: :runtime
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
120
122
  requirements:
121
123
  - - '>='
122
124
  - !ruby/object:Gem::Version
123
125
  version: 0.8.7
124
- prerelease: false
125
- type: :runtime
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: hashie
128
- version_requirements: !ruby/object:Gem::Requirement
128
+ requirement: !ruby/object:Gem::Requirement
129
129
  requirements:
130
130
  - - '>='
131
131
  - !ruby/object:Gem::Version
132
132
  version: '1.2'
133
- requirement: !ruby/object:Gem::Requirement
133
+ type: :runtime
134
+ prerelease: false
135
+ version_requirements: !ruby/object:Gem::Requirement
134
136
  requirements:
135
137
  - - '>='
136
138
  - !ruby/object:Gem::Version
137
139
  version: '1.2'
138
- prerelease: false
139
- type: :runtime
140
140
  - !ruby/object:Gem::Dependency
141
141
  name: inflection
142
- version_requirements: !ruby/object:Gem::Requirement
142
+ requirement: !ruby/object:Gem::Requirement
143
143
  requirements:
144
144
  - - '>='
145
145
  - !ruby/object:Gem::Version
146
146
  version: '0'
147
- requirement: !ruby/object:Gem::Requirement
147
+ type: :runtime
148
+ prerelease: false
149
+ version_requirements: !ruby/object:Gem::Requirement
148
150
  requirements:
149
151
  - - '>='
150
152
  - !ruby/object:Gem::Version
151
153
  version: '0'
152
- prerelease: false
153
- type: :runtime
154
154
  - !ruby/object:Gem::Dependency
155
155
  name: multi_json
156
- version_requirements: !ruby/object:Gem::Requirement
156
+ requirement: !ruby/object:Gem::Requirement
157
157
  requirements:
158
158
  - - '>='
159
159
  - !ruby/object:Gem::Version
160
160
  version: '0'
161
- requirement: !ruby/object:Gem::Requirement
161
+ type: :runtime
162
+ prerelease: false
163
+ version_requirements: !ruby/object:Gem::Requirement
162
164
  requirements:
163
165
  - - '>='
164
166
  - !ruby/object:Gem::Version
165
167
  version: '0'
166
- prerelease: false
167
- type: :runtime
168
168
  - !ruby/object:Gem::Dependency
169
169
  name: mime-types
170
- version_requirements: !ruby/object:Gem::Requirement
170
+ requirement: !ruby/object:Gem::Requirement
171
171
  requirements:
172
172
  - - ~>
173
173
  - !ruby/object:Gem::Version
174
174
  version: '1.0'
175
- requirement: !ruby/object:Gem::Requirement
175
+ type: :runtime
176
+ prerelease: false
177
+ version_requirements: !ruby/object:Gem::Requirement
176
178
  requirements:
177
179
  - - ~>
178
180
  - !ruby/object:Gem::Version
179
181
  version: '1.0'
180
- prerelease: false
181
- type: :runtime
182
182
  - !ruby/object:Gem::Dependency
183
183
  name: multipart-post
184
- version_requirements: !ruby/object:Gem::Requirement
184
+ requirement: !ruby/object:Gem::Requirement
185
185
  requirements:
186
186
  - - '>='
187
187
  - !ruby/object:Gem::Version
188
188
  version: '0'
189
- requirement: !ruby/object:Gem::Requirement
189
+ type: :runtime
190
+ prerelease: false
191
+ version_requirements: !ruby/object:Gem::Requirement
190
192
  requirements:
191
193
  - - '>='
192
194
  - !ruby/object:Gem::Version
193
195
  version: '0'
194
- prerelease: false
195
- type: :runtime
196
- description: Ruby wrapper for the REST API at http://www.zendesk.com. Documentation at http://developer.zendesk.com.
196
+ description: Ruby wrapper for the REST API at http://www.zendesk.com. Documentation
197
+ at http://developer.zendesk.com.
197
198
  email:
198
199
  - support@zendesk.com
199
200
  executables: []
@@ -504,7 +505,7 @@ homepage: http://developer.zendesk.com
504
505
  licenses:
505
506
  - Apache License Version 2.0
506
507
  metadata: {}
507
- post_install_message:
508
+ post_install_message:
508
509
  rdoc_options: []
509
510
  require_paths:
510
511
  - lib
@@ -519,9 +520,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
519
520
  - !ruby/object:Gem::Version
520
521
  version: 1.3.6
521
522
  requirements: []
522
- rubyforge_project:
523
- rubygems_version: 2.1.9
524
- signing_key:
523
+ rubyforge_project:
524
+ rubygems_version: 2.0.14
525
+ signing_key:
525
526
  specification_version: 4
526
527
  summary: Zendesk REST API Client
527
528
  test_files:
@@ -608,4 +609,4 @@ test_files:
608
609
  - spec/server/helper_spec.rb
609
610
  - spec/server/html_renderer_spec.rb
610
611
  - spec/server/spec_helper.rb
611
- has_rdoc:
612
+ has_rdoc: