couchpillow 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/lib/couchpillow/document.rb +6 -2
- data/lib/couchpillow/version.rb +1 -1
- data/test/test_document.rb +7 -0
- 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: 21f0b849af1755218e29ca407bff811b318741a2
|
4
|
+
data.tar.gz: 097bf457abfa7bb1b361f7350441be8e2cafe48b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1544ce8e28dcee47798cf60a5be7de8b36601d6d0318a3babd7ae692f84d9333d6996519ddd436c012a38ea176274064eb563935705c9b4a93cff8afe2d6304e
|
7
|
+
data.tar.gz: 5ed40eb94d090f10ffd4996b350c274eb2e02f1992aec5060fcd25b433c58c6209c74fc4cb7e4042832bd4380fd3bc95e137fa17fe0ba26ee55779cd9ffad718
|
data/.gitignore
CHANGED
data/lib/couchpillow/document.rb
CHANGED
data/lib/couchpillow/version.rb
CHANGED
data/test/test_document.rb
CHANGED
@@ -188,6 +188,13 @@ class TestDocument < Minitest::Test
|
|
188
188
|
d = Document.new({}, "1")
|
189
189
|
assert_equal "{\"_id\":\"1\",\"created_at\":\"#{mock_time.to_s}\",\"_type\":\"default\"}", d.to_json
|
190
190
|
end
|
191
|
+
|
192
|
+
|
193
|
+
def test_to_hash
|
194
|
+
mock_time
|
195
|
+
d = Document.new({}, "1")
|
196
|
+
assert_equal({ :_id => "1", :created_at => mock_time, :_type => "default" }, d.to_hash)
|
197
|
+
end
|
191
198
|
|
192
199
|
|
193
200
|
def test_brackets
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: couchpillow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Albert Tedja
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|