active_record_survey-node_map_group 0.0.1 → 0.0.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6be44a566609f039efa07311cc7500bde87b4f57
|
4
|
+
data.tar.gz: 1db16debb15aff55240809e22967025dcb4d0e40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89d3f6d16b496a04f85561210fe40fb47e0300b31f0694a4bfeae461e80452a54bb83a27ab9963207259648becda9f361a9351ee5f8222778d0808959245ae23
|
7
|
+
data.tar.gz: cb1322b43bc6f585a755fd0df7b5c8455dd57f90de69c01778cf4b145430d3dee2e9aa266400c239e1602559267921b030873e4ab29c2461d91fbe662ae585bf
|
data/.travis.yml
CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
|
|
29
29
|
|
30
30
|
spec.add_development_dependency "database_cleaner"
|
31
31
|
spec.add_development_dependency "factory_girl", "> 4.0"
|
32
|
-
spec.add_development_dependency "bundler", "~> 1.
|
32
|
+
spec.add_development_dependency "bundler", "~> 1.7"
|
33
33
|
spec.add_development_dependency "rake", "~> 10.0"
|
34
34
|
spec.add_development_dependency "rspec", "~> 3.0"
|
35
35
|
end
|
@@ -36,6 +36,9 @@ module ActiveRecordSurvey
|
|
36
36
|
|
37
37
|
# Whether this node map is valid
|
38
38
|
def node_map_valid?(potential_node_map)
|
39
|
+
# Must inherit from ActiveRecordSurvey::Node::Question
|
40
|
+
return false if !potential_node_map.node.class.ancestors.include?(::ActiveRecordSurvey::Node::Question)
|
41
|
+
|
39
42
|
# Nothing else added - so yep - valid!
|
40
43
|
return true if self.node_maps.length === 0
|
41
44
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_record_survey-node_map_group
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Butch Marshall
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active_record_survey
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '1.
|
75
|
+
version: '1.7'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '1.
|
82
|
+
version: '1.7'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rake
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|