active_record_survey 0.1.14 → 0.1.15

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: c61a24fbd16d0add2429b4bbe70a02c19aec13f2
4
- data.tar.gz: ba2f206b945844811bb7393dfe573ee5bb023a55
3
+ metadata.gz: b3a9dde97731e519a1757890a3fa2b8e9303321f
4
+ data.tar.gz: 8b4b028274ac9119f30f7bad4d2a33c104931756
5
5
  SHA512:
6
- metadata.gz: b7b6d0b8319ddbb329358af965a05ba740af3d19ab5ec18af17743537c114243b82a1e957588b55851978b6c334bba0d33613e0b10e4ed538799ee5d9ecff150
7
- data.tar.gz: 40c2e2f618498d56dbb81fd019154d8949f1e416cbc872ffc0117831bbf18bea35787266efc05a28e7db0b81e9d63fdab3814d70e1c358c1bd24c709b97f8d63
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
@@ -1,3 +1,3 @@
1
1
  module ActiveRecordSurvey
2
- VERSION = "0.1.14"
2
+ VERSION = "0.1.15"
3
3
  end
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.14
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-15 00:00:00.000000000 Z
11
+ date: 2015-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord