questionable_surveys 0.2.3 → 0.3.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 +4 -4
- data/README.rdoc +8 -4
- data/app/models/questionable/question.rb +3 -3
- data/lib/questionable/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22e2e9563d461f0d7f37401203b47854a0976f24
|
4
|
+
data.tar.gz: 0e09a0ee86cbd71c2f3f66079beb64d8e92c1985
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac39602fd303f6fc348ebae14d8dd83cd8d5c3887fe9fb629da609e9913b71f277f1856f8cf3254ced774480c52818dc7599b7c92f71af87b35d251f69f32e39
|
7
|
+
data.tar.gz: bcdbd1051f90f8828cb77a127a9fa678ffd490624bb829c7f35900a13621584f367a6e3f64dd0b0fe209e1df08afeafa7efc51bacf69cbf4f96b86b034994930
|
data/README.rdoc
CHANGED
@@ -11,13 +11,17 @@ the questions and recording your users' answers.
|
|
11
11
|
|
12
12
|
== Installation
|
13
13
|
|
14
|
-
|
14
|
+
For Rails 4:
|
15
15
|
|
16
|
-
gem 'questionable_surveys'
|
16
|
+
gem 'questionable_surveys', '>= 0.3.0'
|
17
17
|
|
18
|
-
|
18
|
+
For Rails 3:
|
19
19
|
|
20
|
-
gem 'questionable_surveys',
|
20
|
+
gem 'questionable_surveys', '~> 0.2.3'
|
21
|
+
|
22
|
+
Or get the latest:
|
23
|
+
|
24
|
+
gem 'questionable_surveys', github: 'bespokepost/questionable'
|
21
25
|
|
22
26
|
Then run:
|
23
27
|
|
@@ -1,9 +1,9 @@
|
|
1
1
|
module Questionable
|
2
2
|
class Question < ActiveRecord::Base
|
3
|
-
has_many :options,
|
3
|
+
has_many :options, -> { order(:position) }
|
4
4
|
has_many :assignments
|
5
|
-
has_many :subjects, :
|
6
|
-
has_many :answers,
|
5
|
+
has_many :subjects, through: :assignments
|
6
|
+
has_many :answers, through: :assignments
|
7
7
|
|
8
8
|
validates_presence_of :title
|
9
9
|
|
data/lib/questionable/version.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: questionable_surveys
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Urban
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '4.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: '4.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: haml
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -170,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
170
170
|
version: '0'
|
171
171
|
requirements: []
|
172
172
|
rubyforge_project:
|
173
|
-
rubygems_version: 2.0.
|
173
|
+
rubygems_version: 2.0.6
|
174
174
|
signing_key:
|
175
175
|
specification_version: 4
|
176
176
|
summary: Rails engine that programatically generates surveys.
|