collector 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/collector/model.rb +2 -1
- data/lib/collector/version.rb +1 -1
- data/test/collector/model_spec.rb +6 -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: a6e634cfe44d090ae1ade6406c86595bcb09123b
|
4
|
+
data.tar.gz: 5ffa356d4b6b394c424c837338aa9cfec1fa0378
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de32f9ebf2e8d54ee2dcc225c4e5e46e82d021569ee6c5764e2885a4ac9d54b2bffc7afa225558efb3088059820b431a6d40b6e65ce92a2b19c00880e04e7273
|
7
|
+
data.tar.gz: 1120eb5efde0bdd1d8e9deda7a9ec5d1953821e227a8c1fe80680cbf52ff54522496b6e7322024c2cbadae01213f09d22005e6a6b0fc69f72a6d4a120bd3582e
|
data/lib/collector/model.rb
CHANGED
data/lib/collector/version.rb
CHANGED
@@ -26,6 +26,12 @@ describe Collector::Model do
|
|
26
26
|
test_model.id.must_equal "foobar"
|
27
27
|
end
|
28
28
|
|
29
|
+
it "can set an id" do
|
30
|
+
test_model = TestModel.new
|
31
|
+
test_model.id = "foobar"
|
32
|
+
test_model.instance_variable_get("@id").must_equal "foobar"
|
33
|
+
end
|
34
|
+
|
29
35
|
it "has a created_at and updated_at timestamp" do
|
30
36
|
now = Time.now
|
31
37
|
test_model = TestModel.new
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: collector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Weiss
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-07-
|
11
|
+
date: 2013-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|