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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f0e2305f78e30aad12ac87d56d1075e23199bfd8
4
- data.tar.gz: 0430c6cc468a88b44eba76bbaebbf29ecc923e01
3
+ metadata.gz: a6e634cfe44d090ae1ade6406c86595bcb09123b
4
+ data.tar.gz: 5ffa356d4b6b394c424c837338aa9cfec1fa0378
5
5
  SHA512:
6
- metadata.gz: 9ff9cc422f78d86c563372f889a9529e0567fd279f9762f0a65509ed70136b0abf701b8c4dc6964345eeab1f8b0b37d45927e92370472d5f2796dee1a6f6d20a
7
- data.tar.gz: bb556eb252ec48130752f07456c8e3549cf591511c34e4aac4e3aa1ea04c76affc420902b7ce46ba1178ae69023c37ee844bcb5ebd6aed904b9da66ec0af3a3b
6
+ metadata.gz: de32f9ebf2e8d54ee2dcc225c4e5e46e82d021569ee6c5764e2885a4ac9d54b2bffc7afa225558efb3088059820b431a6d40b6e65ce92a2b19c00880e04e7273
7
+ data.tar.gz: 1120eb5efde0bdd1d8e9deda7a9ec5d1953821e227a8c1fe80680cbf52ff54522496b6e7322024c2cbadae01213f09d22005e6a6b0fc69f72a6d4a120bd3582e
@@ -2,7 +2,8 @@ module Collector
2
2
  module Model
3
3
 
4
4
  def self.included(base)
5
- attr_reader :id, :created_at, :updated_at
5
+ attr_accessor :id
6
+ attr_reader :created_at, :updated_at
6
7
  end
7
8
 
8
9
  def initialize(attributes = {})
@@ -1,3 +1,3 @@
1
1
  module Collector
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
@@ -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
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-08 00:00:00.000000000 Z
11
+ date: 2013-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport