surveyor 0.14.0 → 0.14.1

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.
data/README.md CHANGED
@@ -59,19 +59,19 @@ As a plugin:
59
59
 
60
60
  gem install haml
61
61
  gem install fastercsv
62
- script/plugin install git://github.com/breakpointer/surveyor.git -r 'tag v0.14.0'
62
+ script/plugin install git://github.com/breakpointer/surveyor.git
63
63
 
64
64
  Or as a gem:
65
65
 
66
66
  # in environment.rb
67
- config.gem "surveyor", :version => '~> 0.14.0', :source => 'http://gemcutter.org'
67
+ config.gem "surveyor", :source => 'http://gemcutter.org'
68
68
 
69
69
  rake gems:install
70
70
 
71
71
  Or as a gem (with bundler):
72
72
 
73
73
  # in environment.rb
74
- gem "surveyor", '~> 0.14.0'
74
+ gem "surveyor"
75
75
 
76
76
  bundle install
77
77
 
@@ -114,6 +114,10 @@ To work on the plugin code (for enhancements, and bug fixes, etc...) fork this g
114
114
 
115
115
  # Changes
116
116
 
117
+ 0.14.1
118
+
119
+ * typo in repeaters - use survey\_section\_id instead of section\_id
120
+
117
121
  0.14.0
118
122
 
119
123
  * view my survey specs fixed, fragment caching for surveyor#edit, localization. thanks bnadav
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.14.0
1
+ 0.14.1
@@ -87,14 +87,14 @@ class ResponseSet < ActiveRecord::Base
87
87
  if (answer_id = group_hash[:answer_id]) # if group_hash has an answer_id key we treat it differently
88
88
  if (!group_hash[:answer_id].empty?) # dropdowns return empty values in answer_ids if they are not selected
89
89
  #radio or dropdown - only one response
90
- responses.build({:question_id => question_id, :answer_id => answer_id, :response_group => response_group_number, :section_id => current_section_id}.merge(group_hash[answer_id] || {}))
90
+ responses.build({:question_id => question_id, :answer_id => answer_id, :response_group => response_group_number, :survey_section_id => current_section_id}.merge(group_hash[answer_id] || {}))
91
91
  end
92
92
  else
93
93
  #possibly multiples responses - unresponded radios end up here too
94
94
  # we use the variable question_id in the key, not the "question_id" in the response_hash... same with response_group key
95
95
  group_hash.delete_if{|k,v| (k == "question_id") or (k == "response_group")}.each do |answer_id, inner_hash|
96
96
  unless inner_hash.delete_if{|k,v| v.blank?}.empty?
97
- responses.build({:question_id => question_id, :answer_id => answer_id, :response_group => response_group_number, :section_id => current_section_id}.merge(inner_hash))
97
+ responses.build({:question_id => question_id, :answer_id => answer_id, :response_group => response_group_number, :survey_section_id => current_section_id}.merge(inner_hash))
98
98
  end
99
99
  end
100
100
  end
data/surveyor.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{surveyor}
8
- s.version = "0.14.0"
8
+ s.version = "0.14.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Brian Chamberlain", "Mark Yoon"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: surveyor
3
3
  version: !ruby/object:Gem::Version
4
- hash: 39
4
+ hash: 37
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 14
9
- - 0
10
- version: 0.14.0
9
+ - 1
10
+ version: 0.14.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Brian Chamberlain