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: f6053a163eb9d9b0b312efb6af7b83a27eb8537b
4
- data.tar.gz: 5b4adb626a63f60f5528061f2cdf44afbfd194a4
3
+ metadata.gz: 6be44a566609f039efa07311cc7500bde87b4f57
4
+ data.tar.gz: 1db16debb15aff55240809e22967025dcb4d0e40
5
5
  SHA512:
6
- metadata.gz: d0dfc59fe30965ff22e78ab167df4ff4e46cd8b1f426db059f00f9e62254b4b29653e5c695568c9667cfe26d8ecb5d2ed459b553877346d76a2a7c356a0369da
7
- data.tar.gz: 1531ebb62bae46f104095deec4afb4a288a36fe0b806c9dba1631b4a37abcf2228adb246c0715c5e8250c90d53160514b28ee27031b0bfbf96c9a54caaa509b8
6
+ metadata.gz: 89d3f6d16b496a04f85561210fe40fb47e0300b31f0694a4bfeae461e80452a54bb83a27ab9963207259648becda9f361a9351ee5f8222778d0808959245ae23
7
+ data.tar.gz: cb1322b43bc6f585a755fd0df7b5c8455dd57f90de69c01778cf4b145430d3dee2e9aa266400c239e1602559267921b030873e4ab29c2461d91fbe662ae585bf
data/.travis.yml CHANGED
@@ -2,5 +2,6 @@ language: ruby
2
2
  rvm:
3
3
  - 2.1.1
4
4
  - 2.0.0
5
- - 1.9.3
6
- script: rspec spec
5
+ before_install: gem install activerecord
6
+ script:
7
+ - bundle exec rspec
@@ -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.11"
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
 
@@ -2,6 +2,6 @@ require "active_record"
2
2
 
3
3
  module ActiveRecordSurvey
4
4
  class NodeMapGroup < ActiveRecord::Base
5
- VERSION = "0.0.1"
5
+ VERSION = "0.0.2"
6
6
  end
7
7
  end
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.1
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-07 00:00:00.000000000 Z
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.11'
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.11'
82
+ version: '1.7'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rake
85
85
  requirement: !ruby/object:Gem::Requirement