active_remote 1.5.6 → 1.5.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_remote/search.rb +3 -1
- data/lib/active_remote/version.rb +1 -1
- data/spec/lib/active_remote/search_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc68466da59e6a382402baff2a19f03cd2db4c2b
|
4
|
+
data.tar.gz: f0964eebcca0b98d70d26c81b5cad9f782d6f1fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8a23f3c600658c81f94fef43217fa9369b574a0b42a166e410c92d83425dceab6c7cbe93ed9592be7cffd73c1e720fb416aa5e75caef09958b0a76f11713f4b
|
7
|
+
data.tar.gz: 7065b8f5b80f9d74d3cd6a9bc3158f18a00f3115133bfe6a326fde502982cb93e55f331d10a7ce6fb37abdfb66a56657c061ecd3867027bdce9b578f40edc29f
|
data/lib/active_remote/search.rb
CHANGED
@@ -125,7 +125,9 @@ module ActiveRemote
|
|
125
125
|
#
|
126
126
|
def reload
|
127
127
|
_active_remote_search(:guid => self.guid)
|
128
|
-
|
128
|
+
|
129
|
+
fresh_object = self.class.new(last_response.to_hash)
|
130
|
+
@attributes.update(fresh_object.instance_variable_get('@attributes'))
|
129
131
|
end
|
130
132
|
end
|
131
133
|
end
|
@@ -76,7 +76,7 @@ describe ActiveRemote::Search do
|
|
76
76
|
|
77
77
|
describe "#reload" do
|
78
78
|
let(:args) { { :guid => 'foo' } }
|
79
|
-
let(:attributes) { HashWithIndifferentAccess.new }
|
79
|
+
let(:attributes) { HashWithIndifferentAccess.new(:guid => 'foo', :name => 'bar') }
|
80
80
|
|
81
81
|
subject { Tag.new(args) }
|
82
82
|
|
@@ -91,8 +91,8 @@ describe ActiveRemote::Search do
|
|
91
91
|
end
|
92
92
|
|
93
93
|
it "assigns new attributes" do
|
94
|
-
subject.should_receive(:assign_attributes).with(attributes)
|
95
94
|
subject.reload
|
95
|
+
subject.attributes.should eq attributes
|
96
96
|
end
|
97
97
|
end
|
98
98
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_remote
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Hutchison
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-03-
|
11
|
+
date: 2013-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active_attr
|