surveyor 0.6.7 → 0.6.8
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 +2 -2
- data/VERSION +1 -1
- data/app/views/partials/_answer.html.haml +5 -5
- data/app/views/partials/_question.html.haml +2 -2
- data/app/views/partials/_question_group.html.haml +7 -8
- data/features/step_definitions/surveyor_steps.rb +7 -0
- data/features/step_definitions/webrat_steps.rb +119 -0
- data/features/support/env.rb +24 -0
- data/features/support/paths.rb +27 -0
- data/features/surveyor.feature +11 -0
- data/generators/{surveyor → extend_surveyor}/extend_surveyor_generator.rb +0 -0
- data/generators/{surveyor → extend_surveyor}/templates/EXTENDING_SURVEYOR +0 -0
- data/generators/{surveyor → extend_surveyor}/templates/extensions/survey_extensions.rb +0 -0
- data/generators/{surveyor → extend_surveyor}/templates/extensions/surveyor_controller_extensions.rb +0 -0
- data/generators/{surveyor → extend_surveyor}/templates/extensions/surveyor_custom.html.erb +0 -0
- data/generators/{surveyor → extend_surveyor}/templates/extensions/surveyor_helper_extensions.rb +0 -0
- data/generators/surveyor/templates/assets/javascripts/surveyor.js +12 -0
- data/generators/surveyor/templates/assets/stylesheets/sass/surveyor.sass +3 -7
- data/generators/surveyor/templates/assets/stylesheets/surveyor.css +4 -8
- data/generators/surveyor/templates/migrate/create_question_groups.rb +2 -2
- data/generators/test_surveyor/templates/TESTING_SURVEYOR +0 -0
- data/generators/test_surveyor/templates/environments/cucumber.rb +21 -0
- data/generators/test_surveyor/test_surveyor_generator.rb +15 -0
- data/surveyor.gemspec +17 -9
- metadata +17 -9
data/README.md
CHANGED
@@ -7,12 +7,12 @@ Surveyor is a rails (gem) plugin, that brings surveys to your rails app. Before
|
|
7
7
|
As a plugin:
|
8
8
|
|
9
9
|
sudo gem install haml
|
10
|
-
script/plugin install git://github.com/breakpointer/surveyor.git -r 'tag v0.6.
|
10
|
+
script/plugin install git://github.com/breakpointer/surveyor.git -r 'tag v0.6.8'
|
11
11
|
|
12
12
|
Or as a gem plugin:
|
13
13
|
|
14
14
|
# in environment.rb
|
15
|
-
config.gem "surveyor", :version => '>=0.6.
|
15
|
+
config.gem "surveyor", :version => '>=0.6.8', :source => 'http://gemcutter.org'
|
16
16
|
|
17
17
|
sudo gem install gemcutter
|
18
18
|
gem tumble
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.8
|
@@ -5,21 +5,21 @@
|
|
5
5
|
- fields_for_response(response_obj, response_group) do |response_form|
|
6
6
|
- case renderer
|
7
7
|
- when :any_answer
|
8
|
-
= response_form.survey_check_box(:selected)
|
8
|
+
= response_form.survey_check_box(:selected, :class => (answer.is_exclusive? ? "exclusive" : ""))
|
9
9
|
= response_form.label("selected", answer.text) unless hide_label # This is a temp fix til I figure out why the id of the checkbox is all jacked up
|
10
10
|
- when :any_other_and_string
|
11
|
-
= response_form.survey_check_box(:selected)
|
11
|
+
= response_form.survey_check_box(:selected, :class => (answer.is_exclusive? ? "exclusive" : ""))
|
12
12
|
%label Other
|
13
13
|
= response_form.text_field(:other_value)
|
14
14
|
= response_form.text_field(:string_value)
|
15
15
|
- when :any_string
|
16
|
-
= response_form.survey_check_box(:selected)
|
16
|
+
= response_form.survey_check_box(:selected, :class => (answer.is_exclusive? ? "exclusive" : ""))
|
17
17
|
= response_form.label(:answer_id, answer.text)
|
18
18
|
= response_form.text_field(:string_value, :size => 25, :maxlength => 250)
|
19
19
|
- when :one_answer, :one_string
|
20
20
|
- fields_for_radio(response_obj) do |radio_form|
|
21
|
-
= radio_form.radio_button(:answer_id, answer.id, :checked => response_obj.selected
|
22
|
-
= radio_form.label("answer_#{answer.id}", answer.text
|
21
|
+
= radio_form.radio_button(:answer_id, answer.id, :checked => response_obj.selected?, :title => answer.text)
|
22
|
+
= radio_form.label("answer_#{answer.id}", answer.text, :class => (hide_label ? "hidden" : ""))
|
23
23
|
- if renderer == :one_string
|
24
24
|
= response_form.text_field(:string_value, :size => 25, :maxlength => 250, :autocomplete => "off")
|
25
25
|
- when :none_date
|
@@ -24,14 +24,14 @@
|
|
24
24
|
- when :grid_default
|
25
25
|
- reset_cycle("col")
|
26
26
|
- content_tag_for :tr, question, :class => dep_class do
|
27
|
-
%
|
27
|
+
%th.question_prefix
|
28
28
|
%span.text= split_text(question.text)[:prefix]
|
29
29
|
%span.help= question.help_text
|
30
30
|
= hidden_field_tag("responses[#{question.id}][question_id]", question.id)
|
31
31
|
- question.answers.each do |answer|
|
32
32
|
%td{:class => "#{cycle("column_highlight", "", :name => "col")}"}
|
33
33
|
.answer= render(:partial => "/partials/answer", :locals => {:answer => answer, :question => question, :response_obj => @response_set.response_for(question.id, answer.id), :hide_label => true})
|
34
|
-
%
|
34
|
+
%th.question_postfix
|
35
35
|
%span.text= split_text(question.text)[:postfix]
|
36
36
|
- when :repeater_default, :repeater_dropdown
|
37
37
|
- disabled ||= false
|
@@ -16,18 +16,17 @@
|
|
16
16
|
- reset_cycle("column_highlight")
|
17
17
|
- group_questions.first.answers.each do |answer|
|
18
18
|
%th{:class => "#{cycle("column_highlight", "", :name => "column_highlight")}"}= answer.text
|
19
|
-
%tfoot
|
20
|
-
%tr
|
21
|
-
%th= " "
|
22
|
-
- reset_cycle("column_highlight")
|
23
|
-
- group_questions.first.answers.each do |answer|
|
24
|
-
%th{:class => "#{cycle("column_highlight","", :name => "column_highlight")}"}= answer.text
|
25
19
|
%tbody
|
26
|
-
- group_questions.
|
20
|
+
- group_questions.each_with_index do |question, i|
|
27
21
|
= render(:partial => "/partials/question", :locals => locals.merge({:question => question}))
|
22
|
+
- if i%10 == 9
|
23
|
+
%th= " "
|
24
|
+
- reset_cycle("column_highlight")
|
25
|
+
- group_questions.first.answers.each do |answer|
|
26
|
+
%th{:class => "#{cycle("column_highlight", "", :name => "column_highlight")}"}= answer.text
|
28
27
|
- when :repeater
|
29
28
|
%ul.repeater
|
30
|
-
- (response_set.count_group_responses(group_questions) +
|
29
|
+
- (response_set.count_group_responses(group_questions) + 3).times do |group_number|
|
31
30
|
%li.repeater
|
32
31
|
- group_questions.each do |question|
|
33
32
|
= render(:partial => "/partials/question", :locals => locals.merge({:question => question, :response_group => group_number, :disabled => false}))
|
@@ -0,0 +1,119 @@
|
|
1
|
+
require File.expand_path(File.join(File.dirname(__FILE__), "..", "support", "paths"))
|
2
|
+
|
3
|
+
# Commonly used webrat steps
|
4
|
+
# http://github.com/brynary/webrat
|
5
|
+
|
6
|
+
Given /^I am on (.+)$/ do |page_name|
|
7
|
+
visit path_to(page_name)
|
8
|
+
end
|
9
|
+
|
10
|
+
When /^I go to (.+)$/ do |page_name|
|
11
|
+
visit path_to(page_name)
|
12
|
+
end
|
13
|
+
|
14
|
+
When /^I press "([^\"]*)"$/ do |button|
|
15
|
+
click_button(button)
|
16
|
+
end
|
17
|
+
|
18
|
+
When /^I follow "([^\"]*)"$/ do |link|
|
19
|
+
click_link(link)
|
20
|
+
end
|
21
|
+
|
22
|
+
When /^I fill in "([^\"]*)" with "([^\"]*)"$/ do |field, value|
|
23
|
+
fill_in(field, :with => value)
|
24
|
+
end
|
25
|
+
|
26
|
+
When /^I select "([^\"]*)" from "([^\"]*)"$/ do |value, field|
|
27
|
+
select(value, :from => field)
|
28
|
+
end
|
29
|
+
|
30
|
+
# Use this step in conjunction with Rail's datetime_select helper. For example:
|
31
|
+
# When I select "December 25, 2008 10:00" as the date and time
|
32
|
+
When /^I select "([^\"]*)" as the date and time$/ do |time|
|
33
|
+
select_datetime(time)
|
34
|
+
end
|
35
|
+
|
36
|
+
# Use this step when using multiple datetime_select helpers on a page or
|
37
|
+
# you want to specify which datetime to select. Given the following view:
|
38
|
+
# <%= f.label :preferred %><br />
|
39
|
+
# <%= f.datetime_select :preferred %>
|
40
|
+
# <%= f.label :alternative %><br />
|
41
|
+
# <%= f.datetime_select :alternative %>
|
42
|
+
# The following steps would fill out the form:
|
43
|
+
# When I select "November 23, 2004 11:20" as the "Preferred" date and time
|
44
|
+
# And I select "November 25, 2004 10:30" as the "Alternative" date and time
|
45
|
+
When /^I select "([^\"]*)" as the "([^\"]*)" date and time$/ do |datetime, datetime_label|
|
46
|
+
select_datetime(datetime, :from => datetime_label)
|
47
|
+
end
|
48
|
+
|
49
|
+
# Use this step in conjunction with Rail's time_select helper. For example:
|
50
|
+
# When I select "2:20PM" as the time
|
51
|
+
# Note: Rail's default time helper provides 24-hour time-- not 12 hour time. Webrat
|
52
|
+
# will convert the 2:20PM to 14:20 and then select it.
|
53
|
+
When /^I select "([^\"]*)" as the time$/ do |time|
|
54
|
+
select_time(time)
|
55
|
+
end
|
56
|
+
|
57
|
+
# Use this step when using multiple time_select helpers on a page or you want to
|
58
|
+
# specify the name of the time on the form. For example:
|
59
|
+
# When I select "7:30AM" as the "Gym" time
|
60
|
+
When /^I select "([^\"]*)" as the "([^\"]*)" time$/ do |time, time_label|
|
61
|
+
select_time(time, :from => time_label)
|
62
|
+
end
|
63
|
+
|
64
|
+
# Use this step in conjunction with Rail's date_select helper. For example:
|
65
|
+
# When I select "February 20, 1981" as the date
|
66
|
+
When /^I select "([^\"]*)" as the date$/ do |date|
|
67
|
+
select_date(date)
|
68
|
+
end
|
69
|
+
|
70
|
+
# Use this step when using multiple date_select helpers on one page or
|
71
|
+
# you want to specify the name of the date on the form. For example:
|
72
|
+
# When I select "April 26, 1982" as the "Date of Birth" date
|
73
|
+
When /^I select "([^\"]*)" as the "([^\"]*)" date$/ do |date, date_label|
|
74
|
+
select_date(date, :from => date_label)
|
75
|
+
end
|
76
|
+
|
77
|
+
When /^I check "([^\"]*)"$/ do |field|
|
78
|
+
check(field)
|
79
|
+
end
|
80
|
+
|
81
|
+
When /^I uncheck "([^\"]*)"$/ do |field|
|
82
|
+
uncheck(field)
|
83
|
+
end
|
84
|
+
|
85
|
+
When /^I choose "([^\"]*)"$/ do |field|
|
86
|
+
choose(field)
|
87
|
+
end
|
88
|
+
|
89
|
+
When /^I attach the file at "([^\"]*)" to "([^\"]*)"$/ do |path, field|
|
90
|
+
attach_file(field, path)
|
91
|
+
end
|
92
|
+
|
93
|
+
Then /^I should see "([^\"]*)"$/ do |text|
|
94
|
+
response.should contain(text)
|
95
|
+
end
|
96
|
+
|
97
|
+
Then /^I should not see "([^\"]*)"$/ do |text|
|
98
|
+
response.should_not contain(text)
|
99
|
+
end
|
100
|
+
|
101
|
+
Then /^the "([^\"]*)" field should contain "([^\"]*)"$/ do |field, value|
|
102
|
+
field_labeled(field).value.should =~ /#{value}/
|
103
|
+
end
|
104
|
+
|
105
|
+
Then /^the "([^\"]*)" field should not contain "([^\"]*)"$/ do |field, value|
|
106
|
+
field_labeled(field).value.should_not =~ /#{value}/
|
107
|
+
end
|
108
|
+
|
109
|
+
Then /^the "([^\"]*)" checkbox should be checked$/ do |label|
|
110
|
+
field_labeled(label).should be_checked
|
111
|
+
end
|
112
|
+
|
113
|
+
Then /^the "([^\"]*)" checkbox should not be checked$/ do |label|
|
114
|
+
field_labeled(label).should_not be_checked
|
115
|
+
end
|
116
|
+
|
117
|
+
Then /^I should be on (.+)$/ do |page_name|
|
118
|
+
URI.parse(current_url).path.should == path_to(page_name)
|
119
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# Sets up the Rails environment for Cucumber
|
2
|
+
ENV["RAILS_ENV"] ||= "cucumber"
|
3
|
+
require File.expand_path(File.dirname(__FILE__) + '/../../../../../config/environment')
|
4
|
+
require 'cucumber/rails/world'
|
5
|
+
|
6
|
+
# Comment out the next line if you don't want Cucumber Unicode support
|
7
|
+
require 'cucumber/formatter/unicode'
|
8
|
+
|
9
|
+
# Comment out the next line if you don't want transactions to
|
10
|
+
# open/roll back around each scenario
|
11
|
+
Cucumber::Rails.use_transactional_fixtures
|
12
|
+
|
13
|
+
# Comment out the next line if you want Rails' own error handling
|
14
|
+
# (e.g. rescue_action_in_public / rescue_responses / rescue_from)
|
15
|
+
Cucumber::Rails.bypass_rescue
|
16
|
+
|
17
|
+
require 'webrat'
|
18
|
+
|
19
|
+
Webrat.configure do |config|
|
20
|
+
config.mode = :rails
|
21
|
+
end
|
22
|
+
|
23
|
+
require 'cucumber/rails/rspec'
|
24
|
+
require 'webrat/core/matchers'
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module NavigationHelpers
|
2
|
+
# Maps a name to a path. Used by the
|
3
|
+
#
|
4
|
+
# When /^I go to (.+)$/ do |page_name|
|
5
|
+
#
|
6
|
+
# step definition in webrat_steps.rb
|
7
|
+
#
|
8
|
+
def path_to(page_name)
|
9
|
+
case page_name
|
10
|
+
|
11
|
+
when /the homepage/
|
12
|
+
'/'
|
13
|
+
|
14
|
+
# Add more mappings here.
|
15
|
+
# Here is a more fancy example:
|
16
|
+
#
|
17
|
+
# when /^(.*)'s profile page$/i
|
18
|
+
# user_profile_path(User.find_by_login($1))
|
19
|
+
|
20
|
+
else
|
21
|
+
raise "Can't find mapping from \"#{page_name}\" to a path.\n" +
|
22
|
+
"Now, go and add a mapping in #{__FILE__}"
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
World(NavigationHelpers)
|
File without changes
|
File without changes
|
File without changes
|
data/generators/{surveyor → extend_surveyor}/templates/extensions/surveyor_controller_extensions.rb
RENAMED
File without changes
|
File without changes
|
data/generators/{surveyor → extend_surveyor}/templates/extensions/surveyor_helper_extensions.rb
RENAMED
File without changes
|
@@ -24,5 +24,17 @@ jQuery(document).ready(function(){
|
|
24
24
|
jQuery.each(responseText.hide, function(){ jQuery('#' + this).hide("fast"); });
|
25
25
|
return false;
|
26
26
|
}
|
27
|
+
|
28
|
+
// is_exclusive checkboxes should disble sibling checkboxes
|
29
|
+
$('input.exclusive:checked').parents('.answer').siblings().find(':checkbox').attr('checked', false).attr('disabled', true);
|
30
|
+
$('input.exclusive:checkbox').click(function(){
|
31
|
+
var e = $(this);
|
32
|
+
var others = e.parents('.answer').siblings().find(':checkbox');
|
33
|
+
if(e.is(':checked')){
|
34
|
+
others.attr('checked', false).attr('disabled', true);
|
35
|
+
}else{
|
36
|
+
others.attr('disabled', false);
|
37
|
+
}
|
38
|
+
});
|
27
39
|
|
28
40
|
});
|
@@ -169,18 +169,14 @@ body
|
|
169
169
|
:background-color= !page_color - !subtle_shift
|
170
170
|
table.grid
|
171
171
|
:margin 0.5em 0.2em 0.5em 1em
|
172
|
-
th
|
172
|
+
th, td
|
173
173
|
:padding 0.2em 0.5em
|
174
174
|
:text-align center
|
175
175
|
td
|
176
|
-
:padding 0.2em 0.5em
|
177
176
|
:border-bottom 2px dotted #999
|
178
177
|
:border-color= !page_color - !emphasis_shift
|
179
|
-
|
180
|
-
|
181
|
-
:text-align left
|
182
|
-
:padding 0.2em
|
183
|
-
td.question_postfix
|
178
|
+
th.question_prefix, th.question_postfix
|
179
|
+
:padding 0.2em 0.5em
|
184
180
|
:text-align left
|
185
181
|
:padding 0.2em
|
186
182
|
.question_group
|
@@ -158,18 +158,14 @@ body {
|
|
158
158
|
background-color: #efefe4; }
|
159
159
|
#surveyor table.grid {
|
160
160
|
margin: 0.5em 0.2em 0.5em 1em; }
|
161
|
-
#surveyor table.grid th {
|
161
|
+
#surveyor table.grid th, #surveyor table.grid td {
|
162
162
|
padding: 0.2em 0.5em;
|
163
163
|
text-align: center; }
|
164
164
|
#surveyor table.grid td {
|
165
|
-
padding: 0.2em 0.5em;
|
166
165
|
border-bottom: 2px dotted #999;
|
167
|
-
border-color: #bfbfb4;
|
168
|
-
|
169
|
-
|
170
|
-
text-align: left;
|
171
|
-
padding: 0.2em; }
|
172
|
-
#surveyor table.grid td.question_postfix {
|
166
|
+
border-color: #bfbfb4; }
|
167
|
+
#surveyor table.grid th.question_prefix, #surveyor table.grid th.question_postfix {
|
168
|
+
padding: 0.2em 0.5em;
|
173
169
|
text-align: left;
|
174
170
|
padding: 0.2em; }
|
175
171
|
#surveyor .question_group {
|
File without changes
|
@@ -0,0 +1,21 @@
|
|
1
|
+
config.cache_classes = true # This must be true for Cucumber to operate correctly!
|
2
|
+
|
3
|
+
# Log error messages when you accidentally call methods on nil.
|
4
|
+
config.whiny_nils = true
|
5
|
+
|
6
|
+
# Show full error reports and disable caching
|
7
|
+
config.action_controller.consider_all_requests_local = true
|
8
|
+
config.action_controller.perform_caching = false
|
9
|
+
|
10
|
+
# Disable request forgery protection in test environment
|
11
|
+
config.action_controller.allow_forgery_protection = false
|
12
|
+
|
13
|
+
# Tell Action Mailer not to deliver emails to the real world.
|
14
|
+
# The :test delivery method accumulates sent emails in the
|
15
|
+
# ActionMailer::Base.deliveries array.
|
16
|
+
config.action_mailer.delivery_method = :test
|
17
|
+
|
18
|
+
config.gem "cucumber", :lib => false, :version => ">=0.3.11" unless File.directory?(File.join(Rails.root, 'vendor/plugins/cucumber'))
|
19
|
+
config.gem "webrat", :lib => false, :version => ">=0.4.4" unless File.directory?(File.join(Rails.root, 'vendor/plugins/webrat'))
|
20
|
+
config.gem "rspec", :lib => false, :version => ">=1.2.6" unless File.directory?(File.join(Rails.root, 'vendor/plugins/rspec'))
|
21
|
+
config.gem "rspec-rails", :lib => 'spec/rails', :version => ">=1.2.6" unless File.directory?(File.join(Rails.root, 'vendor/plugins/rspec-rails'))
|
@@ -0,0 +1,15 @@
|
|
1
|
+
class TestSurveyorGenerator < Rails::Generator::Base
|
2
|
+
def manifest
|
3
|
+
record do |m|
|
4
|
+
|
5
|
+
m.directory "surveys"
|
6
|
+
|
7
|
+
# Copy README to your app
|
8
|
+
m.file "TESTING_SURVEYOR", "surveys/TESTING_SURVEYOR"
|
9
|
+
|
10
|
+
m.file "environments/cucumber.rb", "config/environments/cucumber.rb"
|
11
|
+
m.readme "TESTING_SURVEYOR"
|
12
|
+
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/surveyor.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{surveyor}
|
8
|
-
s.version = "0.6.
|
8
|
+
s.version = "0.6.8"
|
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"]
|
12
|
-
s.date = %q{2009-10-
|
12
|
+
s.date = %q{2009-10-15}
|
13
13
|
s.email = %q{yoon@northwestern.edu}
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"README.md"
|
@@ -40,9 +40,18 @@ Gem::Specification.new do |s|
|
|
40
40
|
"app/views/surveyor/new.html.haml",
|
41
41
|
"app/views/surveyor/show.html.haml",
|
42
42
|
"config/routes.rb",
|
43
|
-
"
|
43
|
+
"features/step_definitions/surveyor_steps.rb",
|
44
|
+
"features/step_definitions/webrat_steps.rb",
|
45
|
+
"features/support/env.rb",
|
46
|
+
"features/support/paths.rb",
|
47
|
+
"features/surveyor.feature",
|
48
|
+
"generators/extend_surveyor/extend_surveyor_generator.rb",
|
49
|
+
"generators/extend_surveyor/templates/EXTENDING_SURVEYOR",
|
50
|
+
"generators/extend_surveyor/templates/extensions/survey_extensions.rb",
|
51
|
+
"generators/extend_surveyor/templates/extensions/surveyor_controller_extensions.rb",
|
52
|
+
"generators/extend_surveyor/templates/extensions/surveyor_custom.html.erb",
|
53
|
+
"generators/extend_surveyor/templates/extensions/surveyor_helper_extensions.rb",
|
44
54
|
"generators/surveyor/surveyor_generator.rb",
|
45
|
-
"generators/surveyor/templates/EXTENDING_SURVEYOR",
|
46
55
|
"generators/surveyor/templates/README",
|
47
56
|
"generators/surveyor/templates/assets/images/222222_11x11_icon_arrows_leftright.gif",
|
48
57
|
"generators/surveyor/templates/assets/images/222222_11x11_icon_arrows_updown.gif",
|
@@ -96,10 +105,6 @@ Gem::Specification.new do |s|
|
|
96
105
|
"generators/surveyor/templates/assets/stylesheets/sass/surveyor.sass",
|
97
106
|
"generators/surveyor/templates/assets/stylesheets/surveyor.css",
|
98
107
|
"generators/surveyor/templates/assets/stylesheets/ui.theme.css",
|
99
|
-
"generators/surveyor/templates/extensions/survey_extensions.rb",
|
100
|
-
"generators/surveyor/templates/extensions/surveyor_controller_extensions.rb",
|
101
|
-
"generators/surveyor/templates/extensions/surveyor_custom.html.erb",
|
102
|
-
"generators/surveyor/templates/extensions/surveyor_helper_extensions.rb",
|
103
108
|
"generators/surveyor/templates/initializers/haml.rb",
|
104
109
|
"generators/surveyor/templates/initializers/surveyor.rb",
|
105
110
|
"generators/surveyor/templates/migrate/create_answers.rb",
|
@@ -113,6 +118,9 @@ Gem::Specification.new do |s|
|
|
113
118
|
"generators/surveyor/templates/migrate/create_surveys.rb",
|
114
119
|
"generators/surveyor/templates/surveys/kitchen_sink_survey.rb",
|
115
120
|
"generators/surveyor/templates/tasks/surveyor.rb",
|
121
|
+
"generators/test_surveyor/templates/TESTING_SURVEYOR",
|
122
|
+
"generators/test_surveyor/templates/environments/cucumber.rb",
|
123
|
+
"generators/test_surveyor/test_surveyor_generator.rb",
|
116
124
|
"init.rb",
|
117
125
|
"install.rb",
|
118
126
|
"lib/surveyor.rb",
|
@@ -155,7 +163,7 @@ Gem::Specification.new do |s|
|
|
155
163
|
s.homepage = %q{http://github.com/breakpointer/surveyor}
|
156
164
|
s.rdoc_options = ["--charset=UTF-8"]
|
157
165
|
s.require_paths = ["lib"]
|
158
|
-
s.rubygems_version = %q{1.3.
|
166
|
+
s.rubygems_version = %q{1.3.5}
|
159
167
|
s.summary = %q{A rails (gem) plugin to enable surveys in your application}
|
160
168
|
s.test_files = [
|
161
169
|
"spec/controllers/surveyor_controller_spec.rb",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: surveyor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Chamberlain
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2009-10-
|
13
|
+
date: 2009-10-15 00:00:00 -05:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -57,9 +57,18 @@ files:
|
|
57
57
|
- app/views/surveyor/new.html.haml
|
58
58
|
- app/views/surveyor/show.html.haml
|
59
59
|
- config/routes.rb
|
60
|
-
-
|
60
|
+
- features/step_definitions/surveyor_steps.rb
|
61
|
+
- features/step_definitions/webrat_steps.rb
|
62
|
+
- features/support/env.rb
|
63
|
+
- features/support/paths.rb
|
64
|
+
- features/surveyor.feature
|
65
|
+
- generators/extend_surveyor/extend_surveyor_generator.rb
|
66
|
+
- generators/extend_surveyor/templates/EXTENDING_SURVEYOR
|
67
|
+
- generators/extend_surveyor/templates/extensions/survey_extensions.rb
|
68
|
+
- generators/extend_surveyor/templates/extensions/surveyor_controller_extensions.rb
|
69
|
+
- generators/extend_surveyor/templates/extensions/surveyor_custom.html.erb
|
70
|
+
- generators/extend_surveyor/templates/extensions/surveyor_helper_extensions.rb
|
61
71
|
- generators/surveyor/surveyor_generator.rb
|
62
|
-
- generators/surveyor/templates/EXTENDING_SURVEYOR
|
63
72
|
- generators/surveyor/templates/README
|
64
73
|
- generators/surveyor/templates/assets/images/222222_11x11_icon_arrows_leftright.gif
|
65
74
|
- generators/surveyor/templates/assets/images/222222_11x11_icon_arrows_updown.gif
|
@@ -113,10 +122,6 @@ files:
|
|
113
122
|
- generators/surveyor/templates/assets/stylesheets/sass/surveyor.sass
|
114
123
|
- generators/surveyor/templates/assets/stylesheets/surveyor.css
|
115
124
|
- generators/surveyor/templates/assets/stylesheets/ui.theme.css
|
116
|
-
- generators/surveyor/templates/extensions/survey_extensions.rb
|
117
|
-
- generators/surveyor/templates/extensions/surveyor_controller_extensions.rb
|
118
|
-
- generators/surveyor/templates/extensions/surveyor_custom.html.erb
|
119
|
-
- generators/surveyor/templates/extensions/surveyor_helper_extensions.rb
|
120
125
|
- generators/surveyor/templates/initializers/haml.rb
|
121
126
|
- generators/surveyor/templates/initializers/surveyor.rb
|
122
127
|
- generators/surveyor/templates/migrate/create_answers.rb
|
@@ -130,6 +135,9 @@ files:
|
|
130
135
|
- generators/surveyor/templates/migrate/create_surveys.rb
|
131
136
|
- generators/surveyor/templates/surveys/kitchen_sink_survey.rb
|
132
137
|
- generators/surveyor/templates/tasks/surveyor.rb
|
138
|
+
- generators/test_surveyor/templates/TESTING_SURVEYOR
|
139
|
+
- generators/test_surveyor/templates/environments/cucumber.rb
|
140
|
+
- generators/test_surveyor/test_surveyor_generator.rb
|
133
141
|
- init.rb
|
134
142
|
- install.rb
|
135
143
|
- lib/surveyor.rb
|
@@ -192,7 +200,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
192
200
|
requirements: []
|
193
201
|
|
194
202
|
rubyforge_project:
|
195
|
-
rubygems_version: 1.3.
|
203
|
+
rubygems_version: 1.3.5
|
196
204
|
signing_key:
|
197
205
|
specification_version: 3
|
198
206
|
summary: A rails (gem) plugin to enable surveys in your application
|