clouder 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -1
- data/lib/clouder.rb +1 -1
- data/lib/clouder/entity.rb +1 -1
- data/spec/entity_spec.rb +16 -0
- metadata +2 -2
data/History.txt
CHANGED
data/lib/clouder.rb
CHANGED
data/lib/clouder/entity.rb
CHANGED
data/spec/entity_spec.rb
CHANGED
@@ -138,6 +138,22 @@ describe "Entity" do
|
|
138
138
|
n.last_modified.should == last_modified
|
139
139
|
end
|
140
140
|
|
141
|
+
it "should let you retrieve saved objects by URI" do
|
142
|
+
n = Note.new
|
143
|
+
n.text = "My Note"
|
144
|
+
n.author = "John Doe"
|
145
|
+
n.save
|
146
|
+
|
147
|
+
id, etag, last_modified = n.id, n.etag, n.last_modified
|
148
|
+
|
149
|
+
n = Note.get Note.all.first
|
150
|
+
n.text.should == "My Note"
|
151
|
+
n.author.should == "John Doe"
|
152
|
+
n.id.should == id
|
153
|
+
n.etag.should == etag
|
154
|
+
n.last_modified.should == last_modified
|
155
|
+
end
|
156
|
+
|
141
157
|
it "should return nil when trying to retrieve a non-existing object" do
|
142
158
|
Note.get("abcdef").should == nil
|
143
159
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clouder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Demetrius Nunes
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-03-09 00:00:00 -03:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|