tb_inquiries 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.markdown +76 -0
- data/Rakefile +28 -0
- data/app/assets/images/spud/admin/contacts_thumb.png +0 -0
- data/app/assets/javascripts/spud/admin/inquiries.js +8 -0
- data/app/assets/javascripts/spud/inquiries/sitemaps.js +2 -0
- data/app/assets/stylesheets/spud/admin/inquiries.css +4 -0
- data/app/assets/stylesheets/spud/inquiries/sitemaps.css +4 -0
- data/app/controllers/contacts_controller.rb +82 -0
- data/app/controllers/spud/admin/inquiries_controller.rb +38 -0
- data/app/controllers/spud/admin/inquiry_forms_controller.rb +58 -0
- data/app/controllers/spud/inquiries/sitemaps_controller.rb +7 -0
- data/app/helpers/contacts_helper.rb +3 -0
- data/app/mailers/spud/inquiry_mailer.rb +10 -0
- data/app/models/spud_inquiry.rb +46 -0
- data/app/models/spud_inquiry_field.rb +13 -0
- data/app/models/spud_inquiry_form.rb +27 -0
- data/app/models/spud_inquiry_form_field.rb +21 -0
- data/app/views/contacts/_show.html.erb +45 -0
- data/app/views/contacts/show.html.erb +4 -0
- data/app/views/contacts/show.js.erb +1 -0
- data/app/views/contacts/thankyou.html.erb +2 -0
- data/app/views/contacts/thankyou.js.erb +1 -0
- data/app/views/layouts/spud/inquiries/detail.html.erb +6 -0
- data/app/views/spud/admin/inquiries/index.html.erb +30 -0
- data/app/views/spud/admin/inquiries/show.html.erb +8 -0
- data/app/views/spud/admin/inquiry_forms/_form.html.erb +52 -0
- data/app/views/spud/admin/inquiry_forms/_spud_inquiry_form_field_fields.html.erb +56 -0
- data/app/views/spud/admin/inquiry_forms/edit.html.erb +6 -0
- data/app/views/spud/admin/inquiry_forms/index.html.erb +22 -0
- data/app/views/spud/admin/inquiry_forms/new.html.erb +9 -0
- data/app/views/spud/inquiries/sitemaps/show.xml.builder +16 -0
- data/app/views/spud/inquiry_mailer/inquiry_notification.html.erb +15 -0
- data/app/views/spud/inquiry_mailer/inquiry_notification.text.erb +7 -0
- data/config/routes.rb +16 -0
- data/db/migrate/20120117133405_create_spud_inquiries.rb +8 -0
- data/db/migrate/20120117133412_create_spud_inquiry_fields.rb +13 -0
- data/db/migrate/20120121194439_create_spud_inquiry_forms.rb +9 -0
- data/db/migrate/20120121194447_create_spud_inquiry_form_fields.rb +12 -0
- data/db/migrate/20120122173829_add_field_order_to_spud_inquiry_form_fields.rb +7 -0
- data/db/migrate/20120126132407_add_spud_inquiry_form_id_to_spud_inquiries.rb +11 -0
- data/db/migrate/20120126132522_add_recipients_to_spud_inquiry_forms.rb +6 -0
- data/db/migrate/20120127023335_add_url_name_to_spud_inquiry_forms.rb +6 -0
- data/db/migrate/20120413124900_change_inquiry_form_fields_column.rb +9 -0
- data/db/migrate/20121228145215_add_thank_you_content_to_spud_inquiry_form.rb +5 -0
- data/db/migrate/20130627121030_add_placeholder_to_spud_inquiry_form_fields.rb +5 -0
- data/db/migrate/20131111143656_add_submit_title_to_spud_inquiry_form.rb +5 -0
- data/db/migrate/20131111143945_add_field_name_to_spud_inquiry_form_fields.rb +5 -0
- data/db/migrate/20131111144731_add_class_name_to_spud_inquiry_form_fields.rb +5 -0
- data/db/migrate/20131204163221_add_field_name_to_spud_inquiry_fields.rb +5 -0
- data/lib/spud_inquiries/configuration.rb +16 -0
- data/lib/spud_inquiries/engine.rb +28 -0
- data/lib/spud_inquiries/liquid_form.rb +47 -0
- data/lib/spud_inquiries/version.rb +5 -0
- data/lib/tasks/spud_inquiries_tasks.rake +4 -0
- data/lib/tb_inquiries.rb +7 -0
- data/spec/controllers/contacts_controller_spec.rb +69 -0
- data/spec/controllers/spud/admin/inquiries_controller_spec.rb +55 -0
- data/spec/controllers/spud/admin/inquiry_forms_controller_spec.rb +98 -0
- data/spec/controllers/spud/inquiries/sitemaps_controller_spec.rb +24 -0
- data/spec/dummy/README.rdoc +261 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/assets/javascripts/application.js +15 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/config/application.rb +57 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/database.yml +9 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +37 -0
- data/spec/dummy/config/environments/production.rb +67 -0
- data/spec/dummy/config/environments/test.rb +44 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/inflections.rb +15 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +8 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/routes.rb +3 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/db/migrate/20120610131537_create_spud_admin_permissions.spud_core.rb +12 -0
- data/spec/dummy/db/migrate/20120610131538_create_spud_users.spud_core.rb +30 -0
- data/spec/dummy/db/migrate/20120610131539_add_time_zone_to_spud_user.spud_core.rb +7 -0
- data/spec/dummy/db/migrate/20120610131540_add_scope_to_spud_admin_permissions.spud_core.rb +7 -0
- data/spec/dummy/db/migrate/20120610131541_create_spud_user_settings.spud_core.rb +12 -0
- data/spec/dummy/db/migrate/20140109151036_create_spud_roles.tb_core.rb +11 -0
- data/spec/dummy/db/migrate/20140109151037_create_spud_permissions.tb_core.rb +11 -0
- data/spec/dummy/db/migrate/20140109151038_create_spud_role_permissions.tb_core.rb +12 -0
- data/spec/dummy/db/migrate/20140109151039_drop_spud_admin_permissions.tb_core.rb +16 -0
- data/spec/dummy/db/migrate/20140109151040_create_spud_inquiries.spud_inquiries.rb +9 -0
- data/spec/dummy/db/migrate/20140109151041_create_spud_inquiry_fields.spud_inquiries.rb +14 -0
- data/spec/dummy/db/migrate/20140109151042_create_spud_inquiry_forms.spud_inquiries.rb +10 -0
- data/spec/dummy/db/migrate/20140109151043_create_spud_inquiry_form_fields.spud_inquiries.rb +13 -0
- data/spec/dummy/db/migrate/20140109151044_add_field_order_to_spud_inquiry_form_fields.spud_inquiries.rb +8 -0
- data/spec/dummy/db/migrate/20140109151045_add_spud_inquiry_form_id_to_spud_inquiries.spud_inquiries.rb +12 -0
- data/spec/dummy/db/migrate/20140109151046_add_recipients_to_spud_inquiry_forms.spud_inquiries.rb +7 -0
- data/spec/dummy/db/migrate/20140109151047_add_url_name_to_spud_inquiry_forms.spud_inquiries.rb +7 -0
- data/spec/dummy/db/migrate/20140109151048_change_inquiry_form_fields_column.spud_inquiries.rb +10 -0
- data/spec/dummy/db/migrate/20140109151049_add_thank_you_content_to_spud_inquiry_form.spud_inquiries.rb +6 -0
- data/spec/dummy/db/migrate/20140109151050_add_placeholder_to_spud_inquiry_form_fields.spud_inquiries.rb +6 -0
- data/spec/dummy/db/migrate/20140109151051_add_submit_title_to_spud_inquiry_form.spud_inquiries.rb +6 -0
- data/spec/dummy/db/migrate/20140109151052_add_field_name_to_spud_inquiry_form_fields.spud_inquiries.rb +6 -0
- data/spec/dummy/db/migrate/20140109151053_add_class_name_to_spud_inquiry_form_fields.spud_inquiries.rb +6 -0
- data/spec/dummy/db/migrate/20140109151054_add_field_name_to_spud_inquiry_fields.spud_inquiries.rb +6 -0
- data/spec/dummy/db/migrate/20140110151647_create_tb_liquid_spud_liquid_tags.tb_liquid.rb +13 -0
- data/spec/dummy/db/schema.rb +143 -0
- data/spec/dummy/log/test.log +425 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +25 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/models/spud_inquiry_field_spec.rb +18 -0
- data/spec/models/spud_inquiry_form_field_spec.rb +36 -0
- data/spec/models/spud_inquiry_form_spec.rb +28 -0
- data/spec/models/spud_inquiry_spec.rb +22 -0
- data/spec/spec_helper.rb +49 -0
- data/spec/support/authlogic_helper.rb +2 -0
- metadata +384 -0
@@ -0,0 +1,36 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe SpudInquiryFormField do
|
4
|
+
|
5
|
+
it {should belong_to(:spud_inquiry_form)}
|
6
|
+
|
7
|
+
describe :validations do
|
8
|
+
it "should save if validations pass" do
|
9
|
+
p = FactoryGirl.build(:spud_inquiry_form_field)
|
10
|
+
p.should be_valid
|
11
|
+
end
|
12
|
+
|
13
|
+
it "should be invalid if name is blank" do
|
14
|
+
p = FactoryGirl.build(:spud_inquiry_form_field, :name => nil)
|
15
|
+
p.should_not be_valid
|
16
|
+
end
|
17
|
+
|
18
|
+
it "should be invalid if field_type is blank" do
|
19
|
+
p = FactoryGirl.build(:spud_inquiry_form_field, :field_type => nil)
|
20
|
+
p.should_not be_valid
|
21
|
+
end
|
22
|
+
|
23
|
+
# it "should not be valid if form is blank" do
|
24
|
+
# p = FactoryGirl.build(:spud_inquiry_form_field, :spud_inquiry_form => nil)
|
25
|
+
# p.should_not be_valid
|
26
|
+
# end
|
27
|
+
end
|
28
|
+
|
29
|
+
describe :accessors do
|
30
|
+
it "should fetch options list array" do
|
31
|
+
p = FactoryGirl.build(:spud_inquiry_form_field,:options => "Test,\"Quoted , Option\"")
|
32
|
+
p.options_list.should == ["Test","Quoted , Option"]
|
33
|
+
end
|
34
|
+
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe SpudInquiryForm do
|
4
|
+
|
5
|
+
it {should have_many(:spud_inquiries)}
|
6
|
+
it {should have_many(:spud_inquiry_form_fields)}
|
7
|
+
|
8
|
+
describe :validations do
|
9
|
+
it "should be invalid if name is blank" do
|
10
|
+
p = FactoryGirl.build(:spud_inquiry_form, :name => nil)
|
11
|
+
p.should_not be_valid
|
12
|
+
end
|
13
|
+
|
14
|
+
it "should require a unique name" do
|
15
|
+
p = FactoryGirl.create(:spud_inquiry_form, :name => "Test")
|
16
|
+
p2 = FactoryGirl.build(:spud_inquiry_form, :name => "Test")
|
17
|
+
p2.should_not be_valid
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
describe :hooks do
|
22
|
+
it "should generate a url_name before validating" do
|
23
|
+
p = FactoryGirl.build(:spud_inquiry_form, :name => "Contact Us")
|
24
|
+
p.should be_valid
|
25
|
+
p.url_name.should == p.name.gsub(/[^a-zA-Z0-9\ ]/," ").gsub(/\ \ +/," ").gsub(/\ /,"-").downcase
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe SpudInquiry do
|
4
|
+
|
5
|
+
it {should have_many(:spud_inquiry_fields)}
|
6
|
+
it {should belong_to(:spud_inquiry_form)}
|
7
|
+
|
8
|
+
|
9
|
+
describe :accessors do
|
10
|
+
it "should fetch email if field exists" do
|
11
|
+
email_address = 'test@spudcms.net'
|
12
|
+
inquiry = FactoryGirl.create(:spud_inquiry)
|
13
|
+
inquiry.spud_inquiry_fields.create(:name => 'email', :value => email_address)
|
14
|
+
inquiry.email.should == email_address
|
15
|
+
end
|
16
|
+
|
17
|
+
it "should return unknown sender if email non-existent" do
|
18
|
+
p = FactoryGirl.create(:spud_inquiry)
|
19
|
+
p.email.should == "Unknown Sender"
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# Track code coverage
|
2
|
+
require 'simplecov'
|
3
|
+
SimpleCov.start 'rails' do
|
4
|
+
# root "dummy/"
|
5
|
+
add_filter "/factories/"
|
6
|
+
end
|
7
|
+
|
8
|
+
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
9
|
+
ENV["RAILS_ENV"] = 'test'
|
10
|
+
require File.expand_path("../dummy/config/environment", __FILE__)
|
11
|
+
require 'rspec/rails'
|
12
|
+
require 'rspec/autorun'
|
13
|
+
require 'database_cleaner'
|
14
|
+
require 'shoulda'
|
15
|
+
require 'factory_girl'
|
16
|
+
require 'mocha'
|
17
|
+
|
18
|
+
# Requires supporting ruby files with custom matchers and macros, etc,
|
19
|
+
# in spec/support/ and its subdirectories.
|
20
|
+
ENGINE_RAILS_ROOT=File.join(File.dirname(__FILE__), '../')
|
21
|
+
Dir[File.join(ENGINE_RAILS_ROOT,"spec/support/**/*.rb"), File.join(ENGINE_RAILS_ROOT,"factories/*")].each {|f| require f}
|
22
|
+
|
23
|
+
RSpec.configure do |config|
|
24
|
+
config.mock_with :mocha
|
25
|
+
config.use_transactional_fixtures = true
|
26
|
+
config.infer_base_class_for_anonymous_controllers = false
|
27
|
+
|
28
|
+
config.before(:suite) do
|
29
|
+
DatabaseCleaner.strategy = :transaction
|
30
|
+
DatabaseCleaner.clean_with(:truncation)
|
31
|
+
end
|
32
|
+
|
33
|
+
config.before(:each) do
|
34
|
+
DatabaseCleaner.start
|
35
|
+
end
|
36
|
+
|
37
|
+
config.after(:each) do
|
38
|
+
DatabaseCleaner.clean
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
Spud::Core::Engine.routes.draw do
|
43
|
+
default_url_options :host => "test.host"
|
44
|
+
end
|
45
|
+
|
46
|
+
Spud::Inquiries::Engine.routes.draw do
|
47
|
+
default_url_options :host => "test.host"
|
48
|
+
end
|
49
|
+
|
metadata
ADDED
@@ -0,0 +1,384 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tb_inquiries
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Westlake Design
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-02-12 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '4.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '4.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: tb_core
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.2'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.2'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: tb_liquid
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: mysql2
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 2.8.0
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 2.8.0
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec-rails
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - '='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 2.8.1
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 2.8.1
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: shoulda
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 3.0.1
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 3.0.1
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: factory_girl
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - '='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 2.5.0
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - '='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 2.5.0
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: mocha
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - '='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 0.10.3
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - '='
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 0.10.3
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: database_cleaner
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - '='
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 1.0.0.RC1
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - '='
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 1.0.0.RC1
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: simplecov
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: 0.6.4
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: 0.6.4
|
167
|
+
description: This gem allows you to build forms for user submission and can send email
|
168
|
+
notifications when a form is filled out.
|
169
|
+
email:
|
170
|
+
- greg@westlakedesign.com
|
171
|
+
executables: []
|
172
|
+
extensions: []
|
173
|
+
extra_rdoc_files: []
|
174
|
+
files:
|
175
|
+
- MIT-LICENSE
|
176
|
+
- README.markdown
|
177
|
+
- Rakefile
|
178
|
+
- app/assets/images/spud/admin/contacts_thumb.png
|
179
|
+
- app/assets/javascripts/spud/admin/inquiries.js
|
180
|
+
- app/assets/javascripts/spud/inquiries/sitemaps.js
|
181
|
+
- app/assets/stylesheets/spud/admin/inquiries.css
|
182
|
+
- app/assets/stylesheets/spud/inquiries/sitemaps.css
|
183
|
+
- app/controllers/contacts_controller.rb
|
184
|
+
- app/controllers/spud/admin/inquiries_controller.rb
|
185
|
+
- app/controllers/spud/admin/inquiry_forms_controller.rb
|
186
|
+
- app/controllers/spud/inquiries/sitemaps_controller.rb
|
187
|
+
- app/helpers/contacts_helper.rb
|
188
|
+
- app/mailers/spud/inquiry_mailer.rb
|
189
|
+
- app/models/spud_inquiry.rb
|
190
|
+
- app/models/spud_inquiry_field.rb
|
191
|
+
- app/models/spud_inquiry_form.rb
|
192
|
+
- app/models/spud_inquiry_form_field.rb
|
193
|
+
- app/views/contacts/_show.html.erb
|
194
|
+
- app/views/contacts/show.html.erb
|
195
|
+
- app/views/contacts/show.js.erb
|
196
|
+
- app/views/contacts/thankyou.html.erb
|
197
|
+
- app/views/contacts/thankyou.js.erb
|
198
|
+
- app/views/layouts/spud/inquiries/detail.html.erb
|
199
|
+
- app/views/spud/admin/inquiries/index.html.erb
|
200
|
+
- app/views/spud/admin/inquiries/show.html.erb
|
201
|
+
- app/views/spud/admin/inquiry_forms/_form.html.erb
|
202
|
+
- app/views/spud/admin/inquiry_forms/_spud_inquiry_form_field_fields.html.erb
|
203
|
+
- app/views/spud/admin/inquiry_forms/edit.html.erb
|
204
|
+
- app/views/spud/admin/inquiry_forms/index.html.erb
|
205
|
+
- app/views/spud/admin/inquiry_forms/new.html.erb
|
206
|
+
- app/views/spud/inquiries/sitemaps/show.xml.builder
|
207
|
+
- app/views/spud/inquiry_mailer/inquiry_notification.html.erb
|
208
|
+
- app/views/spud/inquiry_mailer/inquiry_notification.text.erb
|
209
|
+
- config/routes.rb
|
210
|
+
- db/migrate/20120117133405_create_spud_inquiries.rb
|
211
|
+
- db/migrate/20120117133412_create_spud_inquiry_fields.rb
|
212
|
+
- db/migrate/20120121194439_create_spud_inquiry_forms.rb
|
213
|
+
- db/migrate/20120121194447_create_spud_inquiry_form_fields.rb
|
214
|
+
- db/migrate/20120122173829_add_field_order_to_spud_inquiry_form_fields.rb
|
215
|
+
- db/migrate/20120126132407_add_spud_inquiry_form_id_to_spud_inquiries.rb
|
216
|
+
- db/migrate/20120126132522_add_recipients_to_spud_inquiry_forms.rb
|
217
|
+
- db/migrate/20120127023335_add_url_name_to_spud_inquiry_forms.rb
|
218
|
+
- db/migrate/20120413124900_change_inquiry_form_fields_column.rb
|
219
|
+
- db/migrate/20121228145215_add_thank_you_content_to_spud_inquiry_form.rb
|
220
|
+
- db/migrate/20130627121030_add_placeholder_to_spud_inquiry_form_fields.rb
|
221
|
+
- db/migrate/20131111143656_add_submit_title_to_spud_inquiry_form.rb
|
222
|
+
- db/migrate/20131111143945_add_field_name_to_spud_inquiry_form_fields.rb
|
223
|
+
- db/migrate/20131111144731_add_class_name_to_spud_inquiry_form_fields.rb
|
224
|
+
- db/migrate/20131204163221_add_field_name_to_spud_inquiry_fields.rb
|
225
|
+
- lib/spud_inquiries/configuration.rb
|
226
|
+
- lib/spud_inquiries/engine.rb
|
227
|
+
- lib/spud_inquiries/liquid_form.rb
|
228
|
+
- lib/spud_inquiries/version.rb
|
229
|
+
- lib/tasks/spud_inquiries_tasks.rake
|
230
|
+
- lib/tb_inquiries.rb
|
231
|
+
- spec/controllers/contacts_controller_spec.rb
|
232
|
+
- spec/controllers/spud/admin/inquiries_controller_spec.rb
|
233
|
+
- spec/controllers/spud/admin/inquiry_forms_controller_spec.rb
|
234
|
+
- spec/controllers/spud/inquiries/sitemaps_controller_spec.rb
|
235
|
+
- spec/dummy/README.rdoc
|
236
|
+
- spec/dummy/Rakefile
|
237
|
+
- spec/dummy/app/assets/javascripts/application.js
|
238
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
239
|
+
- spec/dummy/app/controllers/application_controller.rb
|
240
|
+
- spec/dummy/app/helpers/application_helper.rb
|
241
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
242
|
+
- spec/dummy/config.ru
|
243
|
+
- spec/dummy/config/application.rb
|
244
|
+
- spec/dummy/config/boot.rb
|
245
|
+
- spec/dummy/config/database.yml
|
246
|
+
- spec/dummy/config/environment.rb
|
247
|
+
- spec/dummy/config/environments/development.rb
|
248
|
+
- spec/dummy/config/environments/production.rb
|
249
|
+
- spec/dummy/config/environments/test.rb
|
250
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
251
|
+
- spec/dummy/config/initializers/inflections.rb
|
252
|
+
- spec/dummy/config/initializers/mime_types.rb
|
253
|
+
- spec/dummy/config/initializers/secret_token.rb
|
254
|
+
- spec/dummy/config/initializers/session_store.rb
|
255
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
256
|
+
- spec/dummy/config/locales/en.yml
|
257
|
+
- spec/dummy/config/routes.rb
|
258
|
+
- spec/dummy/db/migrate/20120610131537_create_spud_admin_permissions.spud_core.rb
|
259
|
+
- spec/dummy/db/migrate/20120610131538_create_spud_users.spud_core.rb
|
260
|
+
- spec/dummy/db/migrate/20120610131539_add_time_zone_to_spud_user.spud_core.rb
|
261
|
+
- spec/dummy/db/migrate/20120610131540_add_scope_to_spud_admin_permissions.spud_core.rb
|
262
|
+
- spec/dummy/db/migrate/20120610131541_create_spud_user_settings.spud_core.rb
|
263
|
+
- spec/dummy/db/migrate/20140109151036_create_spud_roles.tb_core.rb
|
264
|
+
- spec/dummy/db/migrate/20140109151037_create_spud_permissions.tb_core.rb
|
265
|
+
- spec/dummy/db/migrate/20140109151038_create_spud_role_permissions.tb_core.rb
|
266
|
+
- spec/dummy/db/migrate/20140109151039_drop_spud_admin_permissions.tb_core.rb
|
267
|
+
- spec/dummy/db/migrate/20140109151040_create_spud_inquiries.spud_inquiries.rb
|
268
|
+
- spec/dummy/db/migrate/20140109151041_create_spud_inquiry_fields.spud_inquiries.rb
|
269
|
+
- spec/dummy/db/migrate/20140109151042_create_spud_inquiry_forms.spud_inquiries.rb
|
270
|
+
- spec/dummy/db/migrate/20140109151043_create_spud_inquiry_form_fields.spud_inquiries.rb
|
271
|
+
- spec/dummy/db/migrate/20140109151044_add_field_order_to_spud_inquiry_form_fields.spud_inquiries.rb
|
272
|
+
- spec/dummy/db/migrate/20140109151045_add_spud_inquiry_form_id_to_spud_inquiries.spud_inquiries.rb
|
273
|
+
- spec/dummy/db/migrate/20140109151046_add_recipients_to_spud_inquiry_forms.spud_inquiries.rb
|
274
|
+
- spec/dummy/db/migrate/20140109151047_add_url_name_to_spud_inquiry_forms.spud_inquiries.rb
|
275
|
+
- spec/dummy/db/migrate/20140109151048_change_inquiry_form_fields_column.spud_inquiries.rb
|
276
|
+
- spec/dummy/db/migrate/20140109151049_add_thank_you_content_to_spud_inquiry_form.spud_inquiries.rb
|
277
|
+
- spec/dummy/db/migrate/20140109151050_add_placeholder_to_spud_inquiry_form_fields.spud_inquiries.rb
|
278
|
+
- spec/dummy/db/migrate/20140109151051_add_submit_title_to_spud_inquiry_form.spud_inquiries.rb
|
279
|
+
- spec/dummy/db/migrate/20140109151052_add_field_name_to_spud_inquiry_form_fields.spud_inquiries.rb
|
280
|
+
- spec/dummy/db/migrate/20140109151053_add_class_name_to_spud_inquiry_form_fields.spud_inquiries.rb
|
281
|
+
- spec/dummy/db/migrate/20140109151054_add_field_name_to_spud_inquiry_fields.spud_inquiries.rb
|
282
|
+
- spec/dummy/db/migrate/20140110151647_create_tb_liquid_spud_liquid_tags.tb_liquid.rb
|
283
|
+
- spec/dummy/db/schema.rb
|
284
|
+
- spec/dummy/log/test.log
|
285
|
+
- spec/dummy/public/404.html
|
286
|
+
- spec/dummy/public/422.html
|
287
|
+
- spec/dummy/public/500.html
|
288
|
+
- spec/dummy/public/favicon.ico
|
289
|
+
- spec/dummy/script/rails
|
290
|
+
- spec/models/spud_inquiry_field_spec.rb
|
291
|
+
- spec/models/spud_inquiry_form_field_spec.rb
|
292
|
+
- spec/models/spud_inquiry_form_spec.rb
|
293
|
+
- spec/models/spud_inquiry_spec.rb
|
294
|
+
- spec/spec_helper.rb
|
295
|
+
- spec/support/authlogic_helper.rb
|
296
|
+
homepage: https://bitbucket.org/westlakedesign/tb_inquiries
|
297
|
+
licenses: []
|
298
|
+
metadata: {}
|
299
|
+
post_install_message:
|
300
|
+
rdoc_options: []
|
301
|
+
require_paths:
|
302
|
+
- lib
|
303
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
304
|
+
requirements:
|
305
|
+
- - ">="
|
306
|
+
- !ruby/object:Gem::Version
|
307
|
+
version: '0'
|
308
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
309
|
+
requirements:
|
310
|
+
- - ">="
|
311
|
+
- !ruby/object:Gem::Version
|
312
|
+
version: '0'
|
313
|
+
requirements: []
|
314
|
+
rubyforge_project:
|
315
|
+
rubygems_version: 2.2.1
|
316
|
+
signing_key:
|
317
|
+
specification_version: 4
|
318
|
+
summary: Inquiry form builder and mailer for spud (Useful for Contact Forms).
|
319
|
+
test_files:
|
320
|
+
- spec/controllers/contacts_controller_spec.rb
|
321
|
+
- spec/controllers/spud/admin/inquiries_controller_spec.rb
|
322
|
+
- spec/controllers/spud/admin/inquiry_forms_controller_spec.rb
|
323
|
+
- spec/controllers/spud/inquiries/sitemaps_controller_spec.rb
|
324
|
+
- spec/dummy/app/assets/javascripts/application.js
|
325
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
326
|
+
- spec/dummy/app/controllers/application_controller.rb
|
327
|
+
- spec/dummy/app/helpers/application_helper.rb
|
328
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
329
|
+
- spec/dummy/config/application.rb
|
330
|
+
- spec/dummy/config/boot.rb
|
331
|
+
- spec/dummy/config/database.yml
|
332
|
+
- spec/dummy/config/environment.rb
|
333
|
+
- spec/dummy/config/environments/development.rb
|
334
|
+
- spec/dummy/config/environments/production.rb
|
335
|
+
- spec/dummy/config/environments/test.rb
|
336
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
337
|
+
- spec/dummy/config/initializers/inflections.rb
|
338
|
+
- spec/dummy/config/initializers/mime_types.rb
|
339
|
+
- spec/dummy/config/initializers/secret_token.rb
|
340
|
+
- spec/dummy/config/initializers/session_store.rb
|
341
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
342
|
+
- spec/dummy/config/locales/en.yml
|
343
|
+
- spec/dummy/config/routes.rb
|
344
|
+
- spec/dummy/config.ru
|
345
|
+
- spec/dummy/db/migrate/20120610131537_create_spud_admin_permissions.spud_core.rb
|
346
|
+
- spec/dummy/db/migrate/20120610131538_create_spud_users.spud_core.rb
|
347
|
+
- spec/dummy/db/migrate/20120610131539_add_time_zone_to_spud_user.spud_core.rb
|
348
|
+
- spec/dummy/db/migrate/20120610131540_add_scope_to_spud_admin_permissions.spud_core.rb
|
349
|
+
- spec/dummy/db/migrate/20120610131541_create_spud_user_settings.spud_core.rb
|
350
|
+
- spec/dummy/db/migrate/20140109151036_create_spud_roles.tb_core.rb
|
351
|
+
- spec/dummy/db/migrate/20140109151037_create_spud_permissions.tb_core.rb
|
352
|
+
- spec/dummy/db/migrate/20140109151038_create_spud_role_permissions.tb_core.rb
|
353
|
+
- spec/dummy/db/migrate/20140109151039_drop_spud_admin_permissions.tb_core.rb
|
354
|
+
- spec/dummy/db/migrate/20140109151040_create_spud_inquiries.spud_inquiries.rb
|
355
|
+
- spec/dummy/db/migrate/20140109151041_create_spud_inquiry_fields.spud_inquiries.rb
|
356
|
+
- spec/dummy/db/migrate/20140109151042_create_spud_inquiry_forms.spud_inquiries.rb
|
357
|
+
- spec/dummy/db/migrate/20140109151043_create_spud_inquiry_form_fields.spud_inquiries.rb
|
358
|
+
- spec/dummy/db/migrate/20140109151044_add_field_order_to_spud_inquiry_form_fields.spud_inquiries.rb
|
359
|
+
- spec/dummy/db/migrate/20140109151045_add_spud_inquiry_form_id_to_spud_inquiries.spud_inquiries.rb
|
360
|
+
- spec/dummy/db/migrate/20140109151046_add_recipients_to_spud_inquiry_forms.spud_inquiries.rb
|
361
|
+
- spec/dummy/db/migrate/20140109151047_add_url_name_to_spud_inquiry_forms.spud_inquiries.rb
|
362
|
+
- spec/dummy/db/migrate/20140109151048_change_inquiry_form_fields_column.spud_inquiries.rb
|
363
|
+
- spec/dummy/db/migrate/20140109151049_add_thank_you_content_to_spud_inquiry_form.spud_inquiries.rb
|
364
|
+
- spec/dummy/db/migrate/20140109151050_add_placeholder_to_spud_inquiry_form_fields.spud_inquiries.rb
|
365
|
+
- spec/dummy/db/migrate/20140109151051_add_submit_title_to_spud_inquiry_form.spud_inquiries.rb
|
366
|
+
- spec/dummy/db/migrate/20140109151052_add_field_name_to_spud_inquiry_form_fields.spud_inquiries.rb
|
367
|
+
- spec/dummy/db/migrate/20140109151053_add_class_name_to_spud_inquiry_form_fields.spud_inquiries.rb
|
368
|
+
- spec/dummy/db/migrate/20140109151054_add_field_name_to_spud_inquiry_fields.spud_inquiries.rb
|
369
|
+
- spec/dummy/db/migrate/20140110151647_create_tb_liquid_spud_liquid_tags.tb_liquid.rb
|
370
|
+
- spec/dummy/db/schema.rb
|
371
|
+
- spec/dummy/log/test.log
|
372
|
+
- spec/dummy/public/404.html
|
373
|
+
- spec/dummy/public/422.html
|
374
|
+
- spec/dummy/public/500.html
|
375
|
+
- spec/dummy/public/favicon.ico
|
376
|
+
- spec/dummy/Rakefile
|
377
|
+
- spec/dummy/README.rdoc
|
378
|
+
- spec/dummy/script/rails
|
379
|
+
- spec/models/spud_inquiry_field_spec.rb
|
380
|
+
- spec/models/spud_inquiry_form_field_spec.rb
|
381
|
+
- spec/models/spud_inquiry_form_spec.rb
|
382
|
+
- spec/models/spud_inquiry_spec.rb
|
383
|
+
- spec/spec_helper.rb
|
384
|
+
- spec/support/authlogic_helper.rb
|