zendesk_api 0.3.10 → 0.3.11

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -7,7 +7,7 @@ GIT
7
7
  PATH
8
8
  remote: .
9
9
  specs:
10
- zendesk_api (0.3.10)
10
+ zendesk_api (0.3.11)
11
11
  faraday (>= 0.8.0)
12
12
  faraday_middleware (>= 0.8.7)
13
13
  hashie (>= 1.2)
@@ -96,6 +96,7 @@ module ZendeskAPI
96
96
 
97
97
  new(client, response.body[singular_resource_name]).tap do |resource|
98
98
  resource.set_includes(resource, includes, response.body)
99
+ resource.attributes.clear_changes
99
100
  end
100
101
  end
101
102
 
@@ -1,3 +1,3 @@
1
1
  module ZendeskAPI
2
- VERSION = "0.3.10"
2
+ VERSION = "0.3.11"
3
3
  end
@@ -25,6 +25,7 @@ describe ZendeskAPI::User, :delete_after do
25
25
 
26
26
  it "should include role" do
27
27
  if subject
28
+ subject.changes.key?(:role_id).should be_false
28
29
  subject.role.should_not be_nil
29
30
  subject.role.id.should be_nil
30
31
  subject.role.name.should == "admin"
@@ -42,6 +43,7 @@ describe ZendeskAPI::User, :delete_after do
42
43
 
43
44
  it "should include role" do
44
45
  if subject
46
+ subject.changes.key?(:role_id).should be_false
45
47
  subject.role.should_not be_nil
46
48
  subject.role.id.should be_nil
47
49
  subject.role.name.should == "agent"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zendesk_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.10
4
+ version: 0.3.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-05-29 00:00:00.000000000 Z
13
+ date: 2013-06-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bump