questionable_surveys 0.2.3 → 0.3.0

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: 85e12ad1ec7d3f2142c2b8c8c9c2d8dc9629e80d
4
- data.tar.gz: 5b2d84d295a58932b5477c622f269fd28c7a7511
3
+ metadata.gz: 22e2e9563d461f0d7f37401203b47854a0976f24
4
+ data.tar.gz: 0e09a0ee86cbd71c2f3f66079beb64d8e92c1985
5
5
  SHA512:
6
- metadata.gz: d26baf12f9d0425c3186f3abe131338dcdf00110524e9edf97d61800445078fbd8102bd51412d6a52842c7fb92b28242c02ff8748e1b088078af7e95e1a1334b
7
- data.tar.gz: cca5d424b683124d612a3db8317ecad4e9ed87e99e71c9d645662cf25513fa37793bd1b5db6e1fe123e625cb48ceb605954b94ea15c353cd68c1a765dcea03ad
6
+ metadata.gz: ac39602fd303f6fc348ebae14d8dd83cd8d5c3887fe9fb629da609e9913b71f277f1856f8cf3254ced774480c52818dc7599b7c92f71af87b35d251f69f32e39
7
+ data.tar.gz: bcdbd1051f90f8828cb77a127a9fa678ffd490624bb829c7f35900a13621584f367a6e3f64dd0b0fe209e1df08afeafa7efc51bacf69cbf4f96b86b034994930
@@ -11,13 +11,17 @@ the questions and recording your users' answers.
11
11
 
12
12
  == Installation
13
13
 
14
- Add Questionable to your Gemfile:
14
+ For Rails 4:
15
15
 
16
- gem 'questionable_surveys'
16
+ gem 'questionable_surveys', '>= 0.3.0'
17
17
 
18
- or for the latest:
18
+ For Rails 3:
19
19
 
20
- gem 'questionable_surveys', :git => 'git://github.com/bespokepost/questionable.git'
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, :order => 'questionable_options.position ASC'
3
+ has_many :options, -> { order(:position) }
4
4
  has_many :assignments
5
- has_many :subjects, :through => :assignments
6
- has_many :answers, :through => :assignments
5
+ has_many :subjects, through: :assignments
6
+ has_many :answers, through: :assignments
7
7
 
8
8
  validates_presence_of :title
9
9
 
@@ -1,3 +1,3 @@
1
1
  module Questionable
2
- VERSION = "0.2.3"
2
+ VERSION = "0.3.0"
3
3
  end
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.2.3
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-07-01 00:00:00.000000000 Z
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: 3.2.11
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: 3.2.11
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.3
173
+ rubygems_version: 2.0.6
174
174
  signing_key:
175
175
  specification_version: 4
176
176
  summary: Rails engine that programatically generates surveys.