gotime-cassandra_object 4.9.2 → 4.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7073b42de70860d98b730e0bdc70bea709b52303
|
|
4
|
+
data.tar.gz: e074884e886d5564c546dc039b9582d0b8029514
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f3a6fc60a3b36f91ca85fcd053a8d6578421831b1ff1f184a504ce5fd9991434573acb2f66e0021699389e445fb06c543ba8a60d7cf734f5aefc337343c321bc
|
|
7
|
+
data.tar.gz: d7504256963ff601ade664dbd8fdf7da672adaef16d5017aeda6e917892f6eef7243f611c55a8aa7ae6812c754649596c1fb6189372bc604e65fe381eda06836
|
|
@@ -23,6 +23,11 @@ module CassandraObject
|
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
module ClassMethods
|
|
26
|
+
def inherited(child_class)
|
|
27
|
+
child_class.define_attribute_methods
|
|
28
|
+
super
|
|
29
|
+
end
|
|
30
|
+
|
|
26
31
|
def define_attribute_methods
|
|
27
32
|
return if attribute_methods_generated?
|
|
28
33
|
super(attribute_definitions.keys)
|
|
@@ -20,13 +20,6 @@ class CassandraObject::AttributeMethodsTest < CassandraObject::TestCase
|
|
|
20
20
|
assert_equal 'bar', issue[:description]
|
|
21
21
|
end
|
|
22
22
|
|
|
23
|
-
# test 'attribute_exists' do
|
|
24
|
-
# assert !Issue.new.attribute_exists?(:description)
|
|
25
|
-
# assert Issue.new(description: nil).attribute_exists?(:description)
|
|
26
|
-
# assert Issue.new(description: false).attribute_exists?(:description)
|
|
27
|
-
# assert Issue.new(description: 'hey').attribute_exists?(:description)
|
|
28
|
-
# end
|
|
29
|
-
|
|
30
23
|
test 'attributes setter' do
|
|
31
24
|
issue = Issue.new
|
|
32
25
|
|
|
@@ -36,4 +29,20 @@ class CassandraObject::AttributeMethodsTest < CassandraObject::TestCase
|
|
|
36
29
|
|
|
37
30
|
assert_equal 'foo', issue.description
|
|
38
31
|
end
|
|
32
|
+
|
|
33
|
+
# class ChildIssue < Issue
|
|
34
|
+
# end
|
|
35
|
+
|
|
36
|
+
test 'inheritence' do
|
|
37
|
+
issue = Issue.new(title: 'hey')
|
|
38
|
+
|
|
39
|
+
assert_equal 'hey lol', issue.title
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# test 'attribute_exists' do
|
|
43
|
+
# assert !Issue.new.attribute_exists?(:description)
|
|
44
|
+
# assert Issue.new(description: nil).attribute_exists?(:description)
|
|
45
|
+
# assert Issue.new(description: false).attribute_exists?(:description)
|
|
46
|
+
# assert Issue.new(description: 'hey').attribute_exists?(:description)
|
|
47
|
+
# end
|
|
39
48
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gotime-cassandra_object
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.
|
|
4
|
+
version: 4.10.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michael Koziarski
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-08-
|
|
12
|
+
date: 2013-08-26 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activemodel
|