zendesk_api 1.2.1 → 1.2.2

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: 1a1a622425d0f711b974ea60999f4beb2a4da61f
4
- data.tar.gz: a669017a02d5a001a05793688e3f56c41c50f375
3
+ metadata.gz: 743106b04392eea7aed59f427f26450c2447ffac
4
+ data.tar.gz: 7af519c56684d9baf154181262f859e0da41afcc
5
5
  SHA512:
6
- metadata.gz: 78a9c681771ab74a25bbaca94f35e5c8ba527398845f145d09c072bbd1d598cb0cd71c0e1714973d1a9e460bba7534a1e6232436838f88febdad2d3aeddda5ca
7
- data.tar.gz: 4e1d57b1489b997f61dd5d932552e1e4f8e82703e155d0f9012defe79cc0b3348733220f4a48a6405d9b207413894276c723a0b906ecf1251c66c59279b181af
6
+ metadata.gz: 309d20af8e77b1972c76e5b3187edcdd726638a49a5745f30c10f6784337a1e6fddd3f0da09d91335e2dda350f0e5bd80f173d61916880c3c19275f2f13f4c8f
7
+ data.tar.gz: 5f010ab7a191352e51e9e4bccc505005c1abe50e5349c1f0f8465e72b9590303f7266b11f1f50318fad23a5df2fa23f649aa93c1407e081e5bc253d0bc488d23
data/Gemfile.lock CHANGED
@@ -7,7 +7,7 @@ GIT
7
7
  PATH
8
8
  remote: .
9
9
  specs:
10
- zendesk_api (1.2.1)
10
+ zendesk_api (1.2.2)
11
11
  faraday (>= 0.8.0)
12
12
  faraday_middleware (>= 0.8.7)
13
13
  hashie (>= 1.2)
@@ -62,7 +62,7 @@ GEM
62
62
  jruby-openssl (0.8.8)
63
63
  bouncy-castle-java (>= 1.5.0147)
64
64
  json (1.8.0)
65
- mime-types (1.25)
65
+ mime-types (1.25.1)
66
66
  mongoid (3.1.4)
67
67
  activemodel (~> 3.2)
68
68
  moped (~> 1.4)
@@ -195,8 +195,8 @@ module ZendeskAPI
195
195
  def define_has_many_setter(association)
196
196
  define_method "#{association[:name]}=" do |resources|
197
197
  if resources.is_a?(Array)
198
- resources.map! { |attr| wrap_resource(attr, association) }
199
- send(association[:name]).replace(resources)
198
+ wrapped = resources.map { |attr| wrap_resource(attr, association) }
199
+ send(association[:name]).replace(wrapped)
200
200
  else
201
201
  resources.association = Association.new(association.merge(:parent => self))
202
202
  instance_variable_set("@#{association[:name]}", resources)
@@ -1,3 +1,3 @@
1
1
  module ZendeskAPI
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.2"
3
3
  end
@@ -101,6 +101,13 @@ describe ZendeskAPI::Association do
101
101
  instance.children.should be_instance_of(ZendeskAPI::Collection)
102
102
  end
103
103
 
104
+ it "should not change objects" do
105
+ child = 'foo'
106
+ children = [child]
107
+ instance.children = children
108
+ children[0].should == 'foo'
109
+ end
110
+
104
111
  it "is not used when not used" do
105
112
  instance.children_used?.should == false
106
113
  end
metadata CHANGED
@@ -1,200 +1,199 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zendesk_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
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: 2013-11-25 00:00:00.000000000 Z
12
+ date: 2014-01-03 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'
16
21
  requirement: !ruby/object:Gem::Requirement
17
22
  requirements:
18
23
  - - '>='
19
24
  - !ruby/object:Gem::Version
20
25
  version: '0'
21
- type: :development
22
26
  prerelease: false
27
+ type: :development
28
+ - !ruby/object:Gem::Dependency
29
+ name: rake
23
30
  version_requirements: !ruby/object:Gem::Requirement
24
31
  requirements:
25
32
  - - '>='
26
33
  - !ruby/object:Gem::Version
27
34
  version: '0'
28
- - !ruby/object:Gem::Dependency
29
- name: rake
30
35
  requirement: !ruby/object:Gem::Requirement
31
36
  requirements:
32
37
  - - '>='
33
38
  - !ruby/object:Gem::Version
34
39
  version: '0'
35
- type: :development
36
40
  prerelease: false
41
+ type: :development
42
+ - !ruby/object:Gem::Dependency
43
+ name: rspec
37
44
  version_requirements: !ruby/object:Gem::Requirement
38
45
  requirements:
39
46
  - - '>='
40
47
  - !ruby/object:Gem::Version
41
48
  version: '0'
42
- - !ruby/object:Gem::Dependency
43
- name: rspec
44
49
  requirement: !ruby/object:Gem::Requirement
45
50
  requirements:
46
51
  - - '>='
47
52
  - !ruby/object:Gem::Version
48
53
  version: '0'
49
- type: :development
50
54
  prerelease: false
55
+ type: :development
56
+ - !ruby/object:Gem::Dependency
57
+ name: vcr
51
58
  version_requirements: !ruby/object:Gem::Requirement
52
59
  requirements:
53
60
  - - '>='
54
61
  - !ruby/object:Gem::Version
55
62
  version: '0'
56
- - !ruby/object:Gem::Dependency
57
- name: vcr
58
63
  requirement: !ruby/object:Gem::Requirement
59
64
  requirements:
60
65
  - - '>='
61
66
  - !ruby/object:Gem::Version
62
67
  version: '0'
63
- type: :development
64
68
  prerelease: false
65
- version_requirements: !ruby/object:Gem::Requirement
66
- requirements:
67
- - - '>='
68
- - !ruby/object:Gem::Version
69
- version: '0'
69
+ type: :development
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: webmock
72
- requirement: !ruby/object:Gem::Requirement
72
+ version_requirements: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - ~>
75
75
  - !ruby/object:Gem::Version
76
76
  version: 1.9.0
77
- type: :development
78
- prerelease: false
79
- version_requirements: !ruby/object:Gem::Requirement
77
+ requirement: !ruby/object:Gem::Requirement
80
78
  requirements:
81
79
  - - ~>
82
80
  - !ruby/object:Gem::Version
83
81
  version: 1.9.0
82
+ prerelease: false
83
+ type: :development
84
84
  - !ruby/object:Gem::Dependency
85
85
  name: yard
86
- requirement: !ruby/object:Gem::Requirement
86
+ version_requirements: !ruby/object:Gem::Requirement
87
87
  requirements:
88
88
  - - '>='
89
89
  - !ruby/object:Gem::Version
90
90
  version: '0'
91
- type: :development
92
- prerelease: false
93
- version_requirements: !ruby/object:Gem::Requirement
91
+ requirement: !ruby/object:Gem::Requirement
94
92
  requirements:
95
93
  - - '>='
96
94
  - !ruby/object:Gem::Version
97
95
  version: '0'
96
+ prerelease: false
97
+ type: :development
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: faraday
100
- requirement: !ruby/object:Gem::Requirement
100
+ version_requirements: !ruby/object:Gem::Requirement
101
101
  requirements:
102
102
  - - '>='
103
103
  - !ruby/object:Gem::Version
104
104
  version: 0.8.0
105
- type: :runtime
106
- prerelease: false
107
- version_requirements: !ruby/object:Gem::Requirement
105
+ requirement: !ruby/object:Gem::Requirement
108
106
  requirements:
109
107
  - - '>='
110
108
  - !ruby/object:Gem::Version
111
109
  version: 0.8.0
110
+ prerelease: false
111
+ type: :runtime
112
112
  - !ruby/object:Gem::Dependency
113
113
  name: faraday_middleware
114
- requirement: !ruby/object:Gem::Requirement
114
+ version_requirements: !ruby/object:Gem::Requirement
115
115
  requirements:
116
116
  - - '>='
117
117
  - !ruby/object:Gem::Version
118
118
  version: 0.8.7
119
- type: :runtime
120
- prerelease: false
121
- version_requirements: !ruby/object:Gem::Requirement
119
+ requirement: !ruby/object:Gem::Requirement
122
120
  requirements:
123
121
  - - '>='
124
122
  - !ruby/object:Gem::Version
125
123
  version: 0.8.7
124
+ prerelease: false
125
+ type: :runtime
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: hashie
128
- requirement: !ruby/object:Gem::Requirement
128
+ version_requirements: !ruby/object:Gem::Requirement
129
129
  requirements:
130
130
  - - '>='
131
131
  - !ruby/object:Gem::Version
132
132
  version: '1.2'
133
- type: :runtime
134
- prerelease: false
135
- version_requirements: !ruby/object:Gem::Requirement
133
+ requirement: !ruby/object:Gem::Requirement
136
134
  requirements:
137
135
  - - '>='
138
136
  - !ruby/object:Gem::Version
139
137
  version: '1.2'
138
+ prerelease: false
139
+ type: :runtime
140
140
  - !ruby/object:Gem::Dependency
141
141
  name: inflection
142
- requirement: !ruby/object:Gem::Requirement
142
+ version_requirements: !ruby/object:Gem::Requirement
143
143
  requirements:
144
144
  - - '>='
145
145
  - !ruby/object:Gem::Version
146
146
  version: '0'
147
- type: :runtime
148
- prerelease: false
149
- version_requirements: !ruby/object:Gem::Requirement
147
+ requirement: !ruby/object:Gem::Requirement
150
148
  requirements:
151
149
  - - '>='
152
150
  - !ruby/object:Gem::Version
153
151
  version: '0'
152
+ prerelease: false
153
+ type: :runtime
154
154
  - !ruby/object:Gem::Dependency
155
155
  name: multi_json
156
- requirement: !ruby/object:Gem::Requirement
156
+ version_requirements: !ruby/object:Gem::Requirement
157
157
  requirements:
158
158
  - - '>='
159
159
  - !ruby/object:Gem::Version
160
160
  version: '0'
161
- type: :runtime
162
- prerelease: false
163
- version_requirements: !ruby/object:Gem::Requirement
161
+ requirement: !ruby/object:Gem::Requirement
164
162
  requirements:
165
163
  - - '>='
166
164
  - !ruby/object:Gem::Version
167
165
  version: '0'
166
+ prerelease: false
167
+ type: :runtime
168
168
  - !ruby/object:Gem::Dependency
169
169
  name: mime-types
170
- requirement: !ruby/object:Gem::Requirement
170
+ version_requirements: !ruby/object:Gem::Requirement
171
171
  requirements:
172
172
  - - ~>
173
173
  - !ruby/object:Gem::Version
174
174
  version: '1.0'
175
- type: :runtime
176
- prerelease: false
177
- version_requirements: !ruby/object:Gem::Requirement
175
+ requirement: !ruby/object:Gem::Requirement
178
176
  requirements:
179
177
  - - ~>
180
178
  - !ruby/object:Gem::Version
181
179
  version: '1.0'
180
+ prerelease: false
181
+ type: :runtime
182
182
  - !ruby/object:Gem::Dependency
183
183
  name: multipart-post
184
- requirement: !ruby/object:Gem::Requirement
184
+ version_requirements: !ruby/object:Gem::Requirement
185
185
  requirements:
186
186
  - - '>='
187
187
  - !ruby/object:Gem::Version
188
188
  version: '0'
189
- type: :runtime
190
- prerelease: false
191
- version_requirements: !ruby/object:Gem::Requirement
189
+ requirement: !ruby/object:Gem::Requirement
192
190
  requirements:
193
191
  - - '>='
194
192
  - !ruby/object:Gem::Version
195
193
  version: '0'
196
- description: Ruby wrapper for the REST API at http://www.zendesk.com. Documentation
197
- at http://developer.zendesk.com.
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.
198
197
  email:
199
198
  - support@zendesk.com
200
199
  executables: []
@@ -505,7 +504,7 @@ homepage: http://developer.zendesk.com
505
504
  licenses:
506
505
  - Apache License Version 2.0
507
506
  metadata: {}
508
- post_install_message:
507
+ post_install_message:
509
508
  rdoc_options: []
510
509
  require_paths:
511
510
  - lib
@@ -520,9 +519,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
520
519
  - !ruby/object:Gem::Version
521
520
  version: 1.3.6
522
521
  requirements: []
523
- rubyforge_project:
524
- rubygems_version: 2.0.3
525
- signing_key:
522
+ rubyforge_project:
523
+ rubygems_version: 2.1.9
524
+ signing_key:
526
525
  specification_version: 4
527
526
  summary: Zendesk REST API Client
528
527
  test_files:
@@ -609,4 +608,4 @@ test_files:
609
608
  - spec/server/helper_spec.rb
610
609
  - spec/server/html_renderer_spec.rb
611
610
  - spec/server/spec_helper.rb
612
- has_rdoc:
611
+ has_rdoc: