active_record_survey 0.1.14 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/lib/active_record_survey/instance_node.rb +3 -0
- data/lib/active_record_survey/version.rb +1 -1
- 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: b3a9dde97731e519a1757890a3fa2b8e9303321f
|
4
|
+
data.tar.gz: 8b4b028274ac9119f30f7bad4d2a33c104931756
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3037fd5b559bc6aed2690fd0ee211f72c1b5e8a2d1fd607146905408af0dbfc9b748aea1f32b879ca25602bc8c184452bccb6255f446e24d0b9f5b43092c326
|
7
|
+
data.tar.gz: efbb671a1431bb39af514019dbac3450cd19285f0139105b7a7770eea8069853bb1ad12489e2a143e975ec84fc7a78b1cafb92906f424e3bb813bcca781cab59
|
data/README.md
CHANGED
@@ -12,9 +12,13 @@ The goal is to give a simple interface for creating surveys and validating the a
|
|
12
12
|
Release Notes
|
13
13
|
============
|
14
14
|
|
15
|
+
**0.1.15*
|
16
|
+
- Don't consider instance_nodes marked for destruction when validating
|
17
|
+
|
15
18
|
**0.1.14**
|
16
19
|
- build_question now only accepts a question
|
17
20
|
- Exceptions added
|
21
|
+
|
18
22
|
**0.1.13**
|
19
23
|
- Added Question#build_answer and Answer#build_link to make survey creation possible without dealing with internal nodes
|
20
24
|
|
@@ -16,6 +16,9 @@ module ActiveRecordSurvey
|
|
16
16
|
|
17
17
|
# Two instance_nodes on the same node for this instance
|
18
18
|
if self.instance.instance_nodes.select { |i|
|
19
|
+
# We don't care about paths that are going to be deleted
|
20
|
+
!i.marked_for_destruction?
|
21
|
+
}.select { |i|
|
19
22
|
# And the two arrays
|
20
23
|
# Two votes share a parent (this means a question has two answers for this instance)
|
21
24
|
(i.node.node_maps.collect { |j| j.parent } & parent_nodes).length > 0
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_record_survey
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Butch Marshall
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|