refinerycms-inquiries 2.1.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -6
- data/Gemfile +14 -18
- data/Rakefile +0 -1
- data/app/assets/stylesheets/refinery/inquiries/inquiries.css.scss +3 -0
- data/app/controllers/refinery/inquiries/admin/inquiries_controller.rb +9 -3
- data/app/controllers/refinery/inquiries/admin/settings_controller.rb +34 -16
- data/app/controllers/refinery/inquiries/inquiries_controller.rb +29 -13
- data/app/mailers/refinery/inquiries/inquiry_mailer.rb +20 -10
- data/app/models/refinery/inquiries/inquiry.rb +13 -11
- data/app/models/refinery/inquiries/setting.rb +33 -31
- data/app/views/refinery/inquiries/admin/inquiries/_submenu.html.erb +7 -7
- data/app/views/refinery/inquiries/admin/settings/_confirmation_email_form.html.erb +2 -2
- data/app/views/refinery/inquiries/inquiries/_form.html.erb +35 -0
- data/app/views/refinery/inquiries/inquiries/new.html.erb +4 -38
- data/bin/rails +5 -0
- data/bin/rake +21 -0
- data/bin/rspec +22 -0
- data/bin/spring +18 -0
- data/config/locales/bg.yml +2 -2
- data/config/locales/cs.yml +2 -2
- data/config/locales/da.yml +2 -2
- data/config/locales/de.yml +2 -2
- data/config/locales/en-GB.yml +2 -2
- data/config/locales/en.yml +2 -2
- data/config/locales/es.yml +2 -2
- data/config/locales/fr.yml +2 -2
- data/config/locales/it.yml +1 -1
- data/config/locales/lt.yml +2 -2
- data/config/locales/lv.yml +2 -2
- data/config/locales/nb.yml +2 -2
- data/config/locales/nl.yml +2 -2
- data/config/locales/pl.yml +2 -2
- data/config/locales/pt-BR.yml +2 -2
- data/config/locales/ru.yml +2 -2
- data/config/locales/sk.yml +2 -2
- data/config/locales/sl.yml +2 -2
- data/config/locales/sv.yml +2 -2
- data/config/locales/zh-CN.yml +2 -2
- data/config/locales/zh-TW.yml +79 -0
- data/config/routes.rb +11 -7
- data/db/migrate/20101208082840_create_inquiries.rb +4 -3
- data/db/seeds.rb +9 -11
- data/lib/generators/refinery/inquiries/templates/config/initializers/refinery/inquiries.rb.erb +8 -0
- data/lib/refinery/inquiries/configuration.rb +6 -0
- data/lib/refinery/inquiries/engine.rb +3 -7
- data/readme.md +23 -10
- data/refinerycms-inquiries.gemspec +4 -3
- data/spec/factories/inquiry.rb +4 -2
- data/spec/features/refinery/inquiries/admin/inquiries_spec.rb +32 -43
- data/spec/features/refinery/inquiries/inquiries_spec.rb +37 -32
- data/spec/features/refinery/inquiries/mailer_spec.rb +15 -14
- data/spec/models/refinery/inquiries/inquiry_spec.rb +62 -20
- data/spec/models/refinery/inquiries/setting_spec.rb +19 -0
- data/spec/spec_helper.rb +3 -3
- metadata +39 -18
@@ -2,12 +2,17 @@ require "spec_helper"
|
|
2
2
|
|
3
3
|
module Refinery
|
4
4
|
module Inquiries
|
5
|
-
describe "inquiries" do
|
6
|
-
before
|
5
|
+
describe "inquiries", :type => :feature do
|
6
|
+
before do
|
7
7
|
# load in seeds we use in migration
|
8
8
|
Refinery::Inquiries::Engine.load_seed
|
9
9
|
end
|
10
10
|
|
11
|
+
it "posts to the correct URL" do
|
12
|
+
visit refinery.inquiries_new_inquiry_path
|
13
|
+
expect(page).to have_selector("form[action='#{refinery.inquiries_inquiries_path}']")
|
14
|
+
end
|
15
|
+
|
11
16
|
context "when valid data" do
|
12
17
|
it "is successful" do
|
13
18
|
visit refinery.inquiries_new_inquiry_path
|
@@ -17,16 +22,16 @@ module Refinery
|
|
17
22
|
fill_in "Message", :with => "Hey, I'm testing!"
|
18
23
|
click_button "Send message"
|
19
24
|
|
20
|
-
page.current_path.
|
21
|
-
page.
|
25
|
+
expect(page.current_path).to eq(refinery.thank_you_inquiries_inquiries_path)
|
26
|
+
expect(page).to have_content("Thank You")
|
22
27
|
|
23
28
|
within "#body_content" do
|
24
|
-
page.
|
25
|
-
page.
|
26
|
-
page.
|
29
|
+
expect(page).to have_content("We've received your inquiry and will get back to you with a response shortly.")
|
30
|
+
expect(page).to have_content("Return to the home page")
|
31
|
+
expect(page).to have_selector("a[href='/']")
|
27
32
|
end
|
28
33
|
|
29
|
-
Refinery::Inquiries::Inquiry.count.
|
34
|
+
expect(Refinery::Inquiries::Inquiry.count).to eq(1)
|
30
35
|
end
|
31
36
|
end
|
32
37
|
|
@@ -40,14 +45,14 @@ module Refinery
|
|
40
45
|
|
41
46
|
click_button "Send message"
|
42
47
|
|
43
|
-
page.current_path.
|
44
|
-
page.
|
45
|
-
page.
|
46
|
-
page.
|
47
|
-
page.
|
48
|
-
page.
|
48
|
+
expect(page.current_path).to eq(refinery.inquiries_inquiries_path)
|
49
|
+
expect(page).to have_content("There were problems with the following fields")
|
50
|
+
expect(page).to have_content(name_error_message)
|
51
|
+
expect(page).to have_content(email_error_message)
|
52
|
+
expect(page).to have_content(message_error_message)
|
53
|
+
expect(page).to have_no_content("Phone can't be blank")
|
49
54
|
|
50
|
-
Refinery::Inquiries::Inquiry.count.
|
55
|
+
expect(Refinery::Inquiries::Inquiry.count).to eq(0)
|
51
56
|
end
|
52
57
|
|
53
58
|
it "displays the error messages in the same order as the fields" do
|
@@ -55,34 +60,34 @@ module Refinery
|
|
55
60
|
|
56
61
|
click_button "Send message"
|
57
62
|
|
58
|
-
page.
|
63
|
+
expect(page).to have_content(/#{name_error_message}.+#{email_error_message}.+#{message_error_message}/m)
|
59
64
|
end
|
60
65
|
end
|
61
66
|
|
62
67
|
describe "privacy" do
|
63
68
|
context "when show contact privacy link setting set to false" do
|
64
69
|
before(:each) do
|
65
|
-
Refinery::Inquiries.config.
|
70
|
+
allow(Refinery::Inquiries.config).to receive(:show_contact_privacy_link).and_return(false)
|
66
71
|
end
|
67
72
|
|
68
73
|
it "won't show link" do
|
69
74
|
visit refinery.inquiries_new_inquiry_path
|
70
75
|
|
71
|
-
page.
|
72
|
-
page.
|
76
|
+
expect(page).to have_no_content("We value your privacy")
|
77
|
+
expect(page).to have_no_selector("a[href='/pages/privacy-policy']")
|
73
78
|
end
|
74
79
|
end
|
75
80
|
|
76
81
|
context "when show contact privacy link setting set to true" do
|
77
82
|
before(:each) do
|
78
|
-
Refinery::Inquiries.config.
|
83
|
+
allow(Refinery::Inquiries.config).to receive(:show_contact_privacy_link).and_return(true)
|
79
84
|
end
|
80
85
|
|
81
86
|
it "shows the link" do
|
82
87
|
visit refinery.inquiries_new_inquiry_path
|
83
88
|
|
84
|
-
page.
|
85
|
-
page.
|
89
|
+
expect(page).to have_content("We value your privacy")
|
90
|
+
expect(page).to have_selector("a[href='/pages/privacy-policy']")
|
86
91
|
end
|
87
92
|
end
|
88
93
|
end
|
@@ -90,25 +95,25 @@ module Refinery
|
|
90
95
|
describe "palceholders" do
|
91
96
|
context "when show placeholders setting set to false" do
|
92
97
|
before(:each) do
|
93
|
-
Refinery::Inquiries.config.
|
98
|
+
allow(Refinery::Inquiries.config).to receive(:show_placeholders).and_return(false)
|
94
99
|
end
|
95
100
|
|
96
101
|
it "won't show placeholders" do
|
97
102
|
visit refinery.inquiries_new_inquiry_path
|
98
103
|
|
99
|
-
page.
|
104
|
+
expect(page).to have_no_selector("input[placeholder]")
|
100
105
|
end
|
101
106
|
end
|
102
107
|
|
103
108
|
context "when show placeholders setting set to true" do
|
104
109
|
before(:each) do
|
105
|
-
Refinery::Inquiries.config.
|
110
|
+
allow(Refinery::Inquiries.config).to receive(:show_placeholders).and_return(true)
|
106
111
|
end
|
107
112
|
|
108
113
|
it "shows the placeholders" do
|
109
114
|
visit refinery.inquiries_new_inquiry_path
|
110
115
|
|
111
|
-
page.
|
116
|
+
expect(page).to have_selector("input[placeholder]")
|
112
117
|
end
|
113
118
|
end
|
114
119
|
end
|
@@ -116,27 +121,27 @@ module Refinery
|
|
116
121
|
describe "phone number" do
|
117
122
|
context "when show phone numbers setting set to false" do
|
118
123
|
before(:each) do
|
119
|
-
Refinery::Inquiries.config.
|
124
|
+
allow(Refinery::Inquiries.config).to receive(:show_phone_number_field).and_return(false)
|
120
125
|
end
|
121
126
|
|
122
127
|
it "won't show phone number" do
|
123
128
|
visit refinery.inquiries_new_inquiry_path
|
124
129
|
|
125
|
-
page.
|
126
|
-
page.
|
130
|
+
expect(page).to have_no_selector("label", :text => 'Phone')
|
131
|
+
expect(page).to have_no_selector("#inquiry_phone")
|
127
132
|
end
|
128
133
|
end
|
129
134
|
|
130
135
|
context "when show phone numbers setting set to true" do
|
131
136
|
before(:each) do
|
132
|
-
Refinery::Inquiries.config.
|
137
|
+
allow(Refinery::Inquiries.config).to receive(:show_phone_number_field).and_return(true)
|
133
138
|
end
|
134
139
|
|
135
140
|
it "shows the phone number" do
|
136
141
|
visit refinery.inquiries_new_inquiry_path
|
137
142
|
|
138
|
-
page.
|
139
|
-
page.
|
143
|
+
expect(page).to have_selector("label", :text => 'Phone')
|
144
|
+
expect(page).to have_selector("#inquiry_phone")
|
140
145
|
end
|
141
146
|
end
|
142
147
|
end
|
@@ -3,38 +3,39 @@ require "capybara/email/rspec"
|
|
3
3
|
|
4
4
|
module Refinery
|
5
5
|
module Inquiries
|
6
|
-
describe "mailer" do
|
6
|
+
describe "mailer", :type => :feature do
|
7
7
|
before do
|
8
|
-
FactoryGirl.create(:page, :link_url =>
|
8
|
+
FactoryGirl.create(:page, :link_url => Refinery::Inquiries.page_path_new)
|
9
9
|
|
10
|
-
Refinery::Inquiries::Setting.
|
10
|
+
allow(Refinery::Inquiries::Setting).to receive(:notification_recipients)
|
11
|
+
.and_return("rspec@refinerycms.com")
|
11
12
|
|
12
13
|
clear_emails
|
13
14
|
|
14
15
|
visit refinery.inquiries_new_inquiry_path
|
15
16
|
|
16
|
-
fill_in "Name", :
|
17
|
-
fill_in "Email", :
|
18
|
-
fill_in "Message", :
|
17
|
+
fill_in "Name", with: "Ugis Ozols"
|
18
|
+
fill_in "Email", with: "ugis.ozols@refinerycms.com"
|
19
|
+
fill_in "Message", with: "Hey, I'm testing!"
|
19
20
|
click_button "Send message"
|
20
21
|
end
|
21
22
|
|
22
23
|
it "sends confirmation email" do
|
23
24
|
open_email("ugis.ozols@refinerycms.com")
|
24
25
|
|
25
|
-
current_email.from.
|
26
|
-
current_email.to.
|
27
|
-
current_email.subject.
|
28
|
-
current_email.body.
|
26
|
+
expect(current_email.from).to eq(["#{Refinery::Inquiries.from_name}@example.com"])
|
27
|
+
expect(current_email.to).to eq(["ugis.ozols@refinerycms.com"])
|
28
|
+
expect(current_email.subject).to eq("Thank you for your inquiry")
|
29
|
+
expect(current_email.body).to eq("Thank you for your inquiry Ugis Ozols,\n\nThis email is a receipt to confirm we have received your inquiry and we'll be in touch shortly.\n\nThanks.")
|
29
30
|
end
|
30
31
|
|
31
32
|
it "sends notification email" do
|
32
33
|
open_email("rspec@refinerycms.com")
|
33
34
|
|
34
|
-
current_email.from.
|
35
|
-
current_email.to.
|
36
|
-
current_email.subject.
|
37
|
-
current_email.body.
|
35
|
+
expect(current_email.from).to eq(["#{Refinery::Inquiries.from_name}@example.com"])
|
36
|
+
expect(current_email.to).to eq(["rspec@refinerycms.com"])
|
37
|
+
expect(current_email.subject).to eq("New inquiry from your website")
|
38
|
+
expect(current_email.body).to eq("Hi there,\n\nYou just received a new inquiry on your website.\n\n--- inquiry starts ---\n\nFrom: Ugis Ozols\nEmail: ugis.ozols@refinerycms.com\nPhone: \nMessage:\nHey, I'm testing!\n\n--- inquiry ends ---\n\nKind Regards,\nCompany Name\n\nP.S. All your inquiries are stored in the \"Inquiries\" section of Refinery should you ever want to view it later there.")
|
38
39
|
end
|
39
40
|
end
|
40
41
|
end
|
@@ -2,48 +2,90 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
module Refinery
|
4
4
|
module Inquiries
|
5
|
-
describe Inquiry do
|
5
|
+
describe Inquiry, :type => :model do
|
6
6
|
describe "validations" do
|
7
7
|
subject do
|
8
|
-
FactoryGirl.build(:inquiry,
|
9
|
-
|
10
|
-
|
11
|
-
|
8
|
+
FactoryGirl.build(:inquiry, {
|
9
|
+
name: "Ugis Ozols",
|
10
|
+
email: "ugis.ozols@example.com",
|
11
|
+
message: "Hey, I'm testing!"
|
12
|
+
})
|
12
13
|
end
|
13
14
|
|
14
|
-
it {
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
15
|
+
it { is_expected.to be_valid }
|
16
|
+
|
17
|
+
describe '#errors' do
|
18
|
+
subject { super().errors }
|
19
|
+
it { is_expected.to be_empty }
|
20
|
+
end
|
21
|
+
|
22
|
+
describe '#name' do
|
23
|
+
subject { super().name }
|
24
|
+
it { is_expected.to eq("Ugis Ozols") }
|
25
|
+
end
|
26
|
+
|
27
|
+
describe '#email' do
|
28
|
+
subject { super().email }
|
29
|
+
it { is_expected.to eq("ugis.ozols@example.com") }
|
30
|
+
end
|
31
|
+
|
32
|
+
describe '#message' do
|
33
|
+
subject { super().message }
|
34
|
+
it { is_expected.to eq("Hey, I'm testing!") }
|
35
|
+
end
|
36
|
+
|
37
|
+
it "validates name length" do
|
38
|
+
expect(FactoryGirl.build(:inquiry, {
|
39
|
+
name: "a"*255,
|
40
|
+
email: "ugis.ozols@example.com",
|
41
|
+
message: "This Text Is OK"
|
42
|
+
})).to be_valid
|
43
|
+
expect(FactoryGirl.build(:inquiry, {
|
44
|
+
name: "a"*256,
|
45
|
+
email: "ugis.ozols@example.com",
|
46
|
+
message: "This Text Is OK"
|
47
|
+
})).not_to be_valid
|
48
|
+
end
|
49
|
+
it "validates email length" do
|
50
|
+
expect(FactoryGirl.build(:inquiry, {
|
51
|
+
name: "Ugis Ozols",
|
52
|
+
email: "a"*243 + "@example.com",
|
53
|
+
message: "This Text Is OK"
|
54
|
+
})).to be_valid
|
55
|
+
expect(FactoryGirl.build(:inquiry, {
|
56
|
+
name: "Ugis Ozols",
|
57
|
+
email: "a"*244 + "@example.com",
|
58
|
+
message: "This Text Is OK"
|
59
|
+
})).not_to be_valid
|
60
|
+
end
|
19
61
|
end
|
20
62
|
|
21
63
|
describe "default scope" do
|
22
64
|
it "orders by created_at in desc" do
|
23
|
-
inquiry1 = FactoryGirl.create(:inquiry, :
|
24
|
-
inquiry2 = FactoryGirl.create(:inquiry, :
|
25
|
-
inquiries =
|
26
|
-
inquiries.first.
|
27
|
-
inquiries.second.
|
65
|
+
inquiry1 = FactoryGirl.create(:inquiry, created_at: 1.hour.ago)
|
66
|
+
inquiry2 = FactoryGirl.create(:inquiry, created_at: 2.hours.ago)
|
67
|
+
inquiries = Inquiry.all
|
68
|
+
expect(inquiries.first).to eq(inquiry1)
|
69
|
+
expect(inquiries.second).to eq(inquiry2)
|
28
70
|
end
|
29
71
|
end
|
30
72
|
|
31
73
|
describe ".latest" do
|
32
74
|
it "returns latest 7 non-spam inquiries by default" do
|
33
75
|
8.times { FactoryGirl.create(:inquiry) }
|
34
|
-
|
35
|
-
|
76
|
+
Inquiry.last.toggle!(:spam)
|
77
|
+
expect(Inquiry.latest.length).to eq(7)
|
36
78
|
end
|
37
79
|
|
38
80
|
it "returns latest 7 inquiries including spam ones" do
|
39
81
|
7.times { FactoryGirl.create(:inquiry) }
|
40
|
-
|
41
|
-
|
82
|
+
Inquiry.all[0..2].each { |inquiry| inquiry.toggle!(:spam) }
|
83
|
+
expect(Inquiry.latest(7, true).length).to eq(7)
|
42
84
|
end
|
43
85
|
|
44
86
|
it "returns latest n inquiries" do
|
45
87
|
4.times { FactoryGirl.create(:inquiry) }
|
46
|
-
|
88
|
+
expect(Inquiry.latest(3).length).to eq(3)
|
47
89
|
end
|
48
90
|
end
|
49
91
|
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module Refinery
|
4
|
+
module Inquiries
|
5
|
+
describe Setting, :type => :model do
|
6
|
+
describe ".notification_recipients=" do
|
7
|
+
it "delegates to Refinery::Setting#set" do
|
8
|
+
expect(Refinery::Setting).to receive(:set).
|
9
|
+
with(:inquiry_notification_recipients, {
|
10
|
+
:value=>"some value",
|
11
|
+
:scoping=>"inquiries"
|
12
|
+
})
|
13
|
+
|
14
|
+
Refinery::Inquiries::Setting.notification_recipients = "some value"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -7,14 +7,14 @@ require File.expand_path("../dummy/config/environment", __FILE__)
|
|
7
7
|
|
8
8
|
require 'rspec/rails'
|
9
9
|
require 'capybara/rspec'
|
10
|
-
require '
|
10
|
+
require 'capybara/poltergeist'
|
11
|
+
Capybara.javascript_driver = :poltergeist
|
11
12
|
|
12
13
|
Rails.backtrace_cleaner.remove_silencers!
|
13
14
|
|
14
15
|
RSpec.configure do |config|
|
15
16
|
config.mock_with :rspec
|
16
|
-
config.
|
17
|
-
config.filter_run :focus => true
|
17
|
+
config.filter_run focus: true
|
18
18
|
config.run_all_when_everything_filtered = true
|
19
19
|
end
|
20
20
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: refinerycms-inquiries
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Uģis Ozols
|
@@ -10,50 +10,64 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2016-01-27 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: refinerycms-core
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- - ~>
|
19
|
+
- - "~>"
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
21
|
+
version: 3.0.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
|
-
- - ~>
|
26
|
+
- - "~>"
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version:
|
28
|
+
version: 3.0.0
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: refinerycms-settings
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
|
-
- - ~>
|
33
|
+
- - "~>"
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version:
|
35
|
+
version: 3.0.0
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
|
-
- - ~>
|
40
|
+
- - "~>"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version:
|
42
|
+
version: 3.0.0
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: filters_spam
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
|
-
- - ~>
|
47
|
+
- - "~>"
|
48
48
|
- !ruby/object:Gem::Version
|
49
49
|
version: '0.2'
|
50
50
|
type: :runtime
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
|
-
- - ~>
|
54
|
+
- - "~>"
|
55
55
|
- !ruby/object:Gem::Version
|
56
56
|
version: '0.2'
|
57
|
+
- !ruby/object:Gem::Dependency
|
58
|
+
name: actionmailer
|
59
|
+
requirement: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - "~>"
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: 4.2.4
|
64
|
+
type: :runtime
|
65
|
+
prerelease: false
|
66
|
+
version_requirements: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - "~>"
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: 4.2.4
|
57
71
|
description: Inquiry handling functionality extracted from Refinery CMS to allow you
|
58
72
|
to have a contact form and manage inquiries in the Refinery backend.
|
59
73
|
email: info@refinerycms.com
|
@@ -61,8 +75,8 @@ executables: []
|
|
61
75
|
extensions: []
|
62
76
|
extra_rdoc_files: []
|
63
77
|
files:
|
64
|
-
- .gitignore
|
65
|
-
- .travis.yml
|
78
|
+
- ".gitignore"
|
79
|
+
- ".travis.yml"
|
66
80
|
- Gemfile
|
67
81
|
- Rakefile
|
68
82
|
- app/assets/stylesheets/refinery/inquiries/inquiries.css.scss
|
@@ -80,10 +94,15 @@ files:
|
|
80
94
|
- app/views/refinery/inquiries/admin/settings/_confirmation_email_form.html.erb
|
81
95
|
- app/views/refinery/inquiries/admin/settings/_notification_recipients_form.html.erb
|
82
96
|
- app/views/refinery/inquiries/admin/settings/edit.html.erb
|
97
|
+
- app/views/refinery/inquiries/inquiries/_form.html.erb
|
83
98
|
- app/views/refinery/inquiries/inquiries/new.html.erb
|
84
99
|
- app/views/refinery/inquiries/inquiries/thank_you.html.erb
|
85
100
|
- app/views/refinery/inquiries/inquiry_mailer/confirmation.text.erb
|
86
101
|
- app/views/refinery/inquiries/inquiry_mailer/notification.text.erb
|
102
|
+
- bin/rails
|
103
|
+
- bin/rake
|
104
|
+
- bin/rspec
|
105
|
+
- bin/spring
|
87
106
|
- config/locales/bg.yml
|
88
107
|
- config/locales/cs.yml
|
89
108
|
- config/locales/da.yml
|
@@ -104,6 +123,7 @@ files:
|
|
104
123
|
- config/locales/sl.yml
|
105
124
|
- config/locales/sv.yml
|
106
125
|
- config/locales/zh-CN.yml
|
126
|
+
- config/locales/zh-TW.yml
|
107
127
|
- config/routes.rb
|
108
128
|
- db/migrate/20101208082840_create_inquiries.rb
|
109
129
|
- db/seeds.rb
|
@@ -121,6 +141,7 @@ files:
|
|
121
141
|
- spec/features/refinery/inquiries/inquiries_spec.rb
|
122
142
|
- spec/features/refinery/inquiries/mailer_spec.rb
|
123
143
|
- spec/models/refinery/inquiries/inquiry_spec.rb
|
144
|
+
- spec/models/refinery/inquiries/setting_spec.rb
|
124
145
|
- spec/spec_helper.rb
|
125
146
|
- tasks/rspec.rake
|
126
147
|
homepage: http://refinerycms.com
|
@@ -133,17 +154,17 @@ require_paths:
|
|
133
154
|
- lib
|
134
155
|
required_ruby_version: !ruby/object:Gem::Requirement
|
135
156
|
requirements:
|
136
|
-
- -
|
157
|
+
- - ">="
|
137
158
|
- !ruby/object:Gem::Version
|
138
159
|
version: '0'
|
139
160
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
140
161
|
requirements:
|
141
|
-
- -
|
162
|
+
- - ">="
|
142
163
|
- !ruby/object:Gem::Version
|
143
164
|
version: '0'
|
144
165
|
requirements: []
|
145
166
|
rubyforge_project:
|
146
|
-
rubygems_version: 2.1
|
167
|
+
rubygems_version: 2.5.1
|
147
168
|
signing_key:
|
148
169
|
specification_version: 4
|
149
170
|
summary: Inquiry handling functionality for the Refinery CMS project.
|
@@ -153,5 +174,5 @@ test_files:
|
|
153
174
|
- spec/features/refinery/inquiries/inquiries_spec.rb
|
154
175
|
- spec/features/refinery/inquiries/mailer_spec.rb
|
155
176
|
- spec/models/refinery/inquiries/inquiry_spec.rb
|
177
|
+
- spec/models/refinery/inquiries/setting_spec.rb
|
156
178
|
- spec/spec_helper.rb
|
157
|
-
has_rdoc:
|