spree-faq 2.2.0 → 2.2.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.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/.hound.yml +22 -0
- data/.reek +19 -0
- data/.rspec +3 -1
- data/.rubocop.yml +7 -0
- data/CONTRIBUTING.md +1 -1
- data/README.md +7 -1
- data/app/controllers/spree/admin/question_categories_controller.rb +10 -2
- data/app/models/spree/question.rb +6 -4
- data/app/models/spree/question_category.rb +8 -6
- data/app/overrides/add_faq_admin_tab.rb +4 -4
- data/db/migrate/20140331032743_rename_questions_to_spree_questions.rb +1 -1
- data/db/migrate/20140331032751_rename_question_categories_to_spree_question_categories.rb +1 -1
- data/lib/spree_faq.rb +1 -0
- data/lib/spree_faq/engine.rb +8 -9
- data/lib/spree_faq/version.rb +2 -2
- data/spec/controllers/admin/question_categories_controller_spec.rb +12 -10
- data/spec/controllers/faqs_controller_spec.rb +3 -5
- data/spec/features/admin/faq_spec.rb +5 -5
- data/spec/features/faq_spec.rb +5 -5
- data/spec/models/question_category_spec.rb +7 -11
- data/spec/models/question_spec.rb +18 -19
- data/spec/spec_helper.rb +6 -2
- data/spec/support/capybara.rb +1 -5
- data/spec/support/database_cleaner.rb +2 -2
- data/spec/support/factory_girl.rb +1 -1
- data/spec/support/i18n.rb +4 -4
- data/spec/support/spree.rb +1 -1
- data/spec/translations/locale_spec.rb +8 -10
- data/spree_faq.gemspec +11 -11
- metadata +28 -26
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6a3952d6df0493a2bd31ba10aaf51651078d7d0
|
4
|
+
data.tar.gz: 48807dcc796f672eef3f0f62190cc5462b4744b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5993dcea6a2c25c2a9b9889c145598e831c10023ebe6c5fe33db4b75e54ea8da076c7661a811c291c8504784f6502050c4785189107c9f0e8d75f0a0f302d64
|
7
|
+
data.tar.gz: 5a3c2266e2638b88c115d7520ce58bc5a93a59219125756cfcaab19425cea2cbc2c25965eb8e72c12665f394e53b48dac1f39fe751bf7d53cc7351cd8b1cbd9e
|
data/.gitignore
CHANGED
data/.hound.yml
CHANGED
@@ -1,3 +1,25 @@
|
|
1
1
|
---
|
2
|
+
# Too picky.
|
2
3
|
LineLength:
|
3
4
|
Enabled: false
|
5
|
+
|
6
|
+
# This should truly be on for well documented gems.
|
7
|
+
Documentation:
|
8
|
+
Enabled: false
|
9
|
+
|
10
|
+
# Neatly aligned code is to swell.
|
11
|
+
SingleSpaceBeforeFirstArg:
|
12
|
+
Enabled: false
|
13
|
+
|
14
|
+
# Rubocop default is leading but hound-ci use trailing.
|
15
|
+
DotPosition:
|
16
|
+
EnforcedStyle: leading
|
17
|
+
|
18
|
+
# Don't mess with RSpec DSL.
|
19
|
+
Blocks:
|
20
|
+
Exclude:
|
21
|
+
- 'spec/**/*'
|
22
|
+
|
23
|
+
# We really like the readability with newline in beginning of classes.
|
24
|
+
EmptyLinesAroundBody:
|
25
|
+
Enabled: false
|
data/.reek
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
---
|
2
|
+
UncommunicativeVariableName:
|
3
|
+
accept:
|
4
|
+
- t
|
5
|
+
- c
|
6
|
+
NestedIterators:
|
7
|
+
max_allowed_nesting: 2
|
8
|
+
DuplicateMethodCall:
|
9
|
+
enabled: false
|
10
|
+
IrresponsibleModule:
|
11
|
+
enabled: false
|
12
|
+
FeatureEnvy:
|
13
|
+
enabled: false
|
14
|
+
TooManyMethods:
|
15
|
+
enabled: false
|
16
|
+
TooManyStatements:
|
17
|
+
enabled: false
|
18
|
+
UtilityFunction:
|
19
|
+
enabled: false
|
data/.rspec
CHANGED
data/.rubocop.yml
ADDED
data/CONTRIBUTING.md
CHANGED
data/README.md
CHANGED
@@ -12,7 +12,13 @@ An Spree Commerce extension for managing FAQs.
|
|
12
12
|
Add to your `Gemfile`:
|
13
13
|
|
14
14
|
```ruby
|
15
|
-
gem '
|
15
|
+
gem 'spree-faq', '~> 2.2.0', require: 'spree_faq'
|
16
|
+
```
|
17
|
+
|
18
|
+
or:
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
gem 'spree-faq', github: 'futhr/spree-faq', require: 'spree_faq', branch: '2-2-stable'
|
16
22
|
```
|
17
23
|
|
18
24
|
Then run from the command line:
|
@@ -9,9 +9,17 @@ module Spree
|
|
9
9
|
@question_category ||= @object
|
10
10
|
end
|
11
11
|
|
12
|
+
def safe_params
|
13
|
+
[
|
14
|
+
:questions_attributes,
|
15
|
+
:question,
|
16
|
+
:answer,
|
17
|
+
question: [:question_category_id, :question, :answer]
|
18
|
+
]
|
19
|
+
end
|
20
|
+
|
12
21
|
def question_category_params
|
13
|
-
params.require(:question_category).permit(
|
14
|
-
question: [:question_category_id, :question, :answer])
|
22
|
+
params.require(:question_category).permit(*safe_params)
|
15
23
|
end
|
16
24
|
end
|
17
25
|
end
|
@@ -1,6 +1,8 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
module Spree
|
2
|
+
class Question < ActiveRecord::Base
|
3
|
+
acts_as_list
|
3
4
|
|
4
|
-
|
5
|
-
|
5
|
+
belongs_to :question_category, class_name: 'Spree::QuestionCategory'
|
6
|
+
validates :question_category_id, :question, :answer, presence: true
|
7
|
+
end
|
6
8
|
end
|
@@ -1,8 +1,10 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
module Spree
|
2
|
+
class QuestionCategory < ActiveRecord::Base
|
3
|
+
acts_as_list
|
3
4
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
5
|
+
has_many :questions, class_name: 'Spree::Question'
|
6
|
+
validates :name, presence: true
|
7
|
+
validates :name, uniqueness: { case_sensitive: false }
|
8
|
+
accepts_nested_attributes_for :questions, allow_destroy: true
|
9
|
+
end
|
8
10
|
end
|
@@ -1,5 +1,5 @@
|
|
1
|
-
Deface::Override.new(virtual_path:
|
2
|
-
name:
|
3
|
-
insert_bottom:
|
4
|
-
text:
|
1
|
+
Deface::Override.new(virtual_path: 'spree/admin/shared/_configuration_menu',
|
2
|
+
name: 'add_faq_configuration_line',
|
3
|
+
insert_bottom: '[data-hook="admin_configurations_sidebar_menu"]',
|
4
|
+
text: '<%= configurations_sidebar_menu_item Spree.t(:question_categories_admin, scope: :spree_faq), admin_question_categories_url %>',
|
5
5
|
disabled: false)
|
data/lib/spree_faq.rb
CHANGED
data/lib/spree_faq/engine.rb
CHANGED
@@ -6,16 +6,15 @@ module SpreeFaq
|
|
6
6
|
|
7
7
|
config.autoload_paths += %W(#{config.root}/lib)
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
Rails.configuration.cache_classes ? require(c) : load(c)
|
9
|
+
class << self
|
10
|
+
def activate
|
11
|
+
cache_klasses = %W(#{config.root}/app/**/*_decorator*.rb #{config.root}/app/overrides/*.rb)
|
12
|
+
Dir.glob(cache_klasses) do |klass|
|
13
|
+
Rails.configuration.cache_classes ? require(klass) : load(klass)
|
14
|
+
end
|
16
15
|
end
|
17
16
|
end
|
18
17
|
|
19
|
-
config.to_prepare
|
18
|
+
config.to_prepare(&method(:activate).to_proc)
|
20
19
|
end
|
21
|
-
end
|
20
|
+
end
|
data/lib/spree_faq/version.rb
CHANGED
@@ -1,18 +1,16 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
describe Spree::Admin::QuestionCategoriesController do
|
1
|
+
RSpec.describe Spree::Admin::QuestionCategoriesController, type: :controller do
|
4
2
|
stub_authorization!
|
5
3
|
|
6
4
|
let!(:user) { create(:user) }
|
7
5
|
let!(:question_category) { create(:question_category) }
|
8
6
|
let!(:question) { create(:question, question_category: question_category) }
|
9
|
-
let
|
7
|
+
let(:attributes) { attributes_for(:question_category) }
|
10
8
|
|
11
|
-
before { controller.
|
9
|
+
before { allow(controller).to receive(:try_spree_current_user) }
|
12
10
|
|
13
11
|
context 'controller instance' do
|
14
|
-
it '
|
15
|
-
expect(controller).to
|
12
|
+
it 'uses Admin::QuestionCategoriesController' do
|
13
|
+
expect(controller).to be_a Spree::Admin::QuestionCategoriesController
|
16
14
|
end
|
17
15
|
end
|
18
16
|
|
@@ -67,13 +65,17 @@ describe Spree::Admin::QuestionCategoriesController do
|
|
67
65
|
|
68
66
|
context 'permitted attributes' do
|
69
67
|
let(:permitted_attributes) do
|
70
|
-
[
|
71
|
-
|
68
|
+
[
|
69
|
+
:questions_attributes,
|
70
|
+
:question,
|
71
|
+
:answer,
|
72
|
+
question: [:question_category_id, :question, :answer]
|
73
|
+
]
|
72
74
|
end
|
73
75
|
|
74
76
|
specify do
|
75
77
|
controller.params = { question_category: attributes }
|
76
|
-
controller.params.require(:question_category).
|
78
|
+
allow(controller.params.require(:question_category)).to receive(:permit).with(*permitted_attributes)
|
77
79
|
controller.send :question_category_params
|
78
80
|
end
|
79
81
|
end
|
@@ -1,11 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
describe Spree::FaqsController do
|
1
|
+
RSpec.describe Spree::FaqsController, type: :controller do
|
4
2
|
|
5
3
|
let!(:question_category) { create(:question_category) }
|
6
4
|
let!(:question) { create(:question, question_category: question_category) }
|
7
5
|
|
8
|
-
before { controller.
|
6
|
+
before { allow(controller).to receive(:try_spree_current_user) }
|
9
7
|
|
10
8
|
context '#index' do
|
11
9
|
specify do
|
@@ -22,7 +20,7 @@ describe Spree::FaqsController do
|
|
22
20
|
end
|
23
21
|
|
24
22
|
context '#default_title' do
|
25
|
-
it '
|
23
|
+
it 'returns default title' do
|
26
24
|
expect(subject.default_title).to eq Spree.t(:frequently_asked_questions, scope: :spree_faq)
|
27
25
|
end
|
28
26
|
end
|
@@ -1,6 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
feature 'Admin FAQ', :js do
|
1
|
+
RSpec.feature 'Admin FAQ', :js do
|
4
2
|
stub_authorization!
|
5
3
|
|
6
4
|
given!(:admin_user) { create(:admin_user) }
|
@@ -39,10 +37,12 @@ feature 'Admin FAQ', :js do
|
|
39
37
|
|
40
38
|
given!(:question_category) { create(:question_category, name: 'Shopping') }
|
41
39
|
given!(:question) do
|
42
|
-
create(
|
40
|
+
create(
|
41
|
+
:question,
|
43
42
|
question_category: question_category,
|
44
43
|
question: 'Do you sell stuff?',
|
45
|
-
answer: 'Think so..'
|
44
|
+
answer: 'Think so..'
|
45
|
+
)
|
46
46
|
end
|
47
47
|
|
48
48
|
background do
|
data/spec/features/faq_spec.rb
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
feature 'FAQ', :js do
|
1
|
+
RSpec.feature 'FAQ', :js do
|
4
2
|
|
5
3
|
given!(:user) { create(:user) }
|
6
4
|
given!(:question_category) { create(:question_category, name: 'Shopping') }
|
7
5
|
given!(:question) do
|
8
|
-
create(
|
6
|
+
create(
|
7
|
+
:question,
|
9
8
|
question_category: question_category,
|
10
9
|
question: 'Do you sell stuff?',
|
11
|
-
answer: 'Think so..'
|
10
|
+
answer: 'Think so..'
|
11
|
+
)
|
12
12
|
end
|
13
13
|
|
14
14
|
background do
|
@@ -1,6 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
describe Spree::QuestionCategory do
|
1
|
+
RSpec.describe Spree::QuestionCategory, type: :model do
|
4
2
|
|
5
3
|
context 'instance attributes' do
|
6
4
|
it 'create a new instance given valid attributes' do
|
@@ -8,14 +6,12 @@ describe Spree::QuestionCategory do
|
|
8
6
|
end
|
9
7
|
end
|
10
8
|
|
11
|
-
|
12
|
-
|
13
|
-
expect(build(:question_category)).to be_valid
|
14
|
-
end
|
9
|
+
it 'factory is valid' do
|
10
|
+
expect(build(:question_category)).to be_valid
|
15
11
|
end
|
16
12
|
|
17
13
|
context 'relation' do
|
18
|
-
it {
|
14
|
+
it { is_expected.to have_many(:questions) }
|
19
15
|
|
20
16
|
it 'have questions' do
|
21
17
|
expect(subject.questions).not_to be_nil
|
@@ -23,9 +19,9 @@ describe Spree::QuestionCategory do
|
|
23
19
|
end
|
24
20
|
|
25
21
|
context 'validation' do
|
26
|
-
it {
|
27
|
-
it {
|
28
|
-
it {
|
22
|
+
it { is_expected.to validate_presence_of(:name) }
|
23
|
+
it { is_expected.to validate_uniqueness_of(:name) }
|
24
|
+
it { is_expected.to accept_nested_attributes_for(:questions) }
|
29
25
|
end
|
30
26
|
|
31
27
|
context 'acts as list' do
|
@@ -1,20 +1,16 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
describe Spree::Question do
|
1
|
+
RSpec.describe Spree::Question, type: :model do
|
4
2
|
|
5
3
|
let!(:question_category) { create(:question_category) }
|
6
4
|
let(:question) { create(:question, question_category_id: question_category.id) }
|
7
5
|
|
8
6
|
subject { question }
|
9
7
|
|
10
|
-
|
11
|
-
|
12
|
-
expect(build(:question)).to be_valid
|
13
|
-
end
|
8
|
+
it 'factory is valid' do
|
9
|
+
expect(build(:question)).to be_valid
|
14
10
|
end
|
15
11
|
|
16
12
|
context 'instance attributes' do
|
17
|
-
it '
|
13
|
+
it 'creates a new instance given valid attributes' do
|
18
14
|
described_class.create!(question: 'Question 1',
|
19
15
|
answer: 'Answer 1',
|
20
16
|
question_category: create(:question_category))
|
@@ -22,31 +18,34 @@ describe Spree::Question do
|
|
22
18
|
end
|
23
19
|
|
24
20
|
context 'relation' do
|
25
|
-
it {
|
21
|
+
it { is_expected.to belong_to(:question_category) }
|
26
22
|
|
27
|
-
it '
|
23
|
+
it 'belongs to a category' do
|
28
24
|
expect(subject.question_category).not_to be_nil
|
29
25
|
end
|
30
26
|
end
|
31
27
|
|
32
28
|
context 'validation' do
|
33
|
-
it {
|
34
|
-
it {
|
35
|
-
it {
|
29
|
+
it { is_expected.to validate_presence_of(:question_category_id) }
|
30
|
+
it { is_expected.to validate_presence_of(:question) }
|
31
|
+
it { is_expected.to validate_presence_of(:answer) }
|
36
32
|
|
37
|
-
it '
|
33
|
+
it 'requires a category' do
|
38
34
|
invalid_question = build(:question, question_category: nil)
|
39
|
-
expect(invalid_question).to
|
35
|
+
expect(invalid_question.valid?).to be_falsey
|
36
|
+
expect(invalid_question.errors[:question_category_id].size).to be(1)
|
40
37
|
end
|
41
38
|
|
42
|
-
it '
|
39
|
+
it 'requires a question' do
|
43
40
|
invalid_question = build(:question, question: nil)
|
44
|
-
expect(invalid_question).to
|
41
|
+
expect(invalid_question.valid?).to be_falsey
|
42
|
+
expect(invalid_question.errors[:question].size).to be(1)
|
45
43
|
end
|
46
44
|
|
47
|
-
it '
|
45
|
+
it 'requires a answer' do
|
48
46
|
invalid_question = build(:question, answer: nil)
|
49
|
-
expect(invalid_question).to
|
47
|
+
expect(invalid_question.valid?).to be_falsey
|
48
|
+
expect(invalid_question.errors[:answer].size).to be(1)
|
50
49
|
end
|
51
50
|
end
|
52
51
|
|
data/spec/spec_helper.rb
CHANGED
@@ -22,9 +22,13 @@ require 'shoulda-matchers'
|
|
22
22
|
require 'ffaker'
|
23
23
|
|
24
24
|
RSpec.configure do |config|
|
25
|
-
config.mock_with :rspec
|
25
|
+
config.mock_with :rspec do |mock|
|
26
|
+
mock.syntax = [:should, :expect]
|
27
|
+
end
|
28
|
+
|
26
29
|
config.use_transactional_fixtures = false
|
27
|
-
config.
|
30
|
+
config.infer_spec_type_from_file_location!
|
31
|
+
config.raise_errors_for_deprecations!
|
28
32
|
end
|
29
33
|
|
30
34
|
Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].each { |f| require f }
|
data/spec/support/capybara.rb
CHANGED
@@ -2,11 +2,7 @@ require 'capybara/rspec'
|
|
2
2
|
require 'capybara/rails'
|
3
3
|
require 'capybara/poltergeist'
|
4
4
|
|
5
|
-
module CapybaraHelpers; end
|
6
|
-
|
7
5
|
RSpec.configure do |config|
|
8
|
-
config.include CapybaraHelpers, type: :feature
|
9
|
-
|
10
6
|
Capybara.javascript_driver = :poltergeist
|
11
7
|
|
12
8
|
config.before(:each, :js) do
|
@@ -14,4 +10,4 @@ RSpec.configure do |config|
|
|
14
10
|
page.driver.browser.manage.window.maximize
|
15
11
|
end
|
16
12
|
end
|
17
|
-
end
|
13
|
+
end
|
@@ -8,11 +8,11 @@ RSpec.configure do |config|
|
|
8
8
|
end
|
9
9
|
|
10
10
|
config.before do
|
11
|
-
DatabaseCleaner.strategy =
|
11
|
+
DatabaseCleaner.strategy = RSpec.current_example.metadata[:js] ? :truncation : :transaction
|
12
12
|
DatabaseCleaner.start
|
13
13
|
end
|
14
14
|
|
15
15
|
config.after do
|
16
16
|
DatabaseCleaner.clean
|
17
17
|
end
|
18
|
-
end
|
18
|
+
end
|
data/spec/support/i18n.rb
CHANGED
@@ -4,10 +4,10 @@ require 'i18n-spec'
|
|
4
4
|
RSpec.configure do |config|
|
5
5
|
|
6
6
|
config.after(type: :feature) do
|
7
|
-
|
8
|
-
if
|
9
|
-
puts "\e[1m\e[35mFound missing translations: #{
|
7
|
+
missing = page.body.scan(/translation missing: #{I18n.locale}\.(.*?)[\s<\"&]/)
|
8
|
+
if missing.any?
|
9
|
+
puts "\e[1m\e[35mFound missing translations: #{missing.inspect}\e[0m"
|
10
10
|
puts "\e[1m\e[35mIn spec: #{example.location}\e[0m"
|
11
11
|
end
|
12
12
|
end
|
13
|
-
end
|
13
|
+
end
|
data/spec/support/spree.rb
CHANGED
@@ -1,15 +1,13 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
describe 'locale' do
|
1
|
+
RSpec.describe 'locale' do
|
4
2
|
Dir.glob('config/locales/*.yml') do |locale_file|
|
5
3
|
context locale_file do
|
6
|
-
it {
|
7
|
-
it {
|
8
|
-
it {
|
9
|
-
it {
|
10
|
-
it {
|
11
|
-
it {
|
12
|
-
it {
|
4
|
+
it { is_expected.to be_parseable }
|
5
|
+
it { is_expected.to have_valid_pluralization_keys }
|
6
|
+
it { is_expected.not_to have_missing_pluralization_keys }
|
7
|
+
it { is_expected.to have_one_top_level_namespace }
|
8
|
+
it { is_expected.not_to have_legacy_interpolations }
|
9
|
+
it { is_expected.to have_a_valid_locale }
|
10
|
+
it { is_expected.to be_a_complete_translation_of 'config/locales/en.yml' }
|
13
11
|
end
|
14
12
|
end
|
15
13
|
end
|
data/spree_faq.gemspec
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
lib = File.expand_path('../lib/', __FILE__)
|
2
|
-
|
2
|
+
$LOAD_PATH.unshift lib unless $LOAD_PATH.include?(lib)
|
3
3
|
|
4
4
|
require 'spree_faq/version'
|
5
5
|
|
@@ -7,14 +7,14 @@ Gem::Specification.new do |s|
|
|
7
7
|
s.platform = Gem::Platform::RUBY
|
8
8
|
s.name = 'spree-faq'
|
9
9
|
s.version = SpreeFaq.version
|
10
|
-
s.summary =
|
11
|
-
s.description =
|
10
|
+
s.summary = 'Adds an easy FAQ page for Spree Commerce'
|
11
|
+
s.description = 'With this gem you get an faq page and the management tools to make it very easy to update your faq and reduce the demand on your sites customer service'
|
12
12
|
s.required_ruby_version = '>= 1.9.3'
|
13
13
|
|
14
14
|
s.authors = ['Josh Nussbaum', 'Tobias Bohwalli']
|
15
15
|
s.email = 'hi@futhr.io'
|
16
16
|
s.homepage = 'https://github.com/futhr/spree-faq'
|
17
|
-
s.license =
|
17
|
+
s.license = 'BSD-3'
|
18
18
|
|
19
19
|
s.files = `git ls-files`.split("\n")
|
20
20
|
s.test_files = `git ls-files -- spec/*`.split("\n")
|
@@ -25,16 +25,17 @@ Gem::Specification.new do |s|
|
|
25
25
|
|
26
26
|
s.add_runtime_dependency 'spree_core', '~> 2.2.0'
|
27
27
|
|
28
|
-
s.add_development_dependency 'rspec
|
29
|
-
s.add_development_dependency '
|
28
|
+
s.add_development_dependency 'rspec', '~> 3.0.0'
|
29
|
+
s.add_development_dependency 'rspec-rails', '~> 3.0.0'
|
30
|
+
s.add_development_dependency 'capybara', '~> 2.4.1'
|
30
31
|
s.add_development_dependency 'selenium-webdriver', '>= 2.40.0'
|
31
32
|
s.add_development_dependency 'poltergeist', '~> 1.5.0'
|
32
33
|
s.add_development_dependency 'factory_girl', '~> 4.4'
|
33
|
-
s.add_development_dependency 'shoulda-matchers', '~> 2.
|
34
|
+
s.add_development_dependency 'shoulda-matchers', '~> 2.6.2'
|
34
35
|
s.add_development_dependency 'sqlite3', '~> 1.3.8'
|
35
|
-
s.add_development_dependency 'simplecov', '~> 0.
|
36
|
+
s.add_development_dependency 'simplecov', '~> 0.9.0'
|
36
37
|
s.add_development_dependency 'database_cleaner', '~> 1.2.0'
|
37
|
-
s.add_development_dependency 'i18n-spec', '~> 0.
|
38
|
+
s.add_development_dependency 'i18n-spec', '~> 0.5.2'
|
38
39
|
s.add_development_dependency 'coffee-rails', '~> 4.0.0'
|
39
40
|
s.add_development_dependency 'sass-rails', '~> 4.0.0'
|
40
41
|
s.add_development_dependency 'ffaker', '>= 1.24.0'
|
@@ -42,5 +43,4 @@ Gem::Specification.new do |s|
|
|
42
43
|
s.add_development_dependency 'launchy', '>= 2.4.0'
|
43
44
|
s.add_development_dependency 'pry-rails', '>= 0.3.0'
|
44
45
|
s.add_development_dependency 'coveralls', '>= 0.7.0'
|
45
|
-
|
46
|
-
end
|
46
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree-faq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Nussbaum
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2015-02-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: spree_core
|
@@ -25,34 +25,48 @@ dependencies:
|
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: 2.2.0
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: rspec
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - "~>"
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: 3.0.0
|
35
|
+
type: :development
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - "~>"
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: 3.0.0
|
28
42
|
- !ruby/object:Gem::Dependency
|
29
43
|
name: rspec-rails
|
30
44
|
requirement: !ruby/object:Gem::Requirement
|
31
45
|
requirements:
|
32
46
|
- - "~>"
|
33
47
|
- !ruby/object:Gem::Version
|
34
|
-
version:
|
48
|
+
version: 3.0.0
|
35
49
|
type: :development
|
36
50
|
prerelease: false
|
37
51
|
version_requirements: !ruby/object:Gem::Requirement
|
38
52
|
requirements:
|
39
53
|
- - "~>"
|
40
54
|
- !ruby/object:Gem::Version
|
41
|
-
version:
|
55
|
+
version: 3.0.0
|
42
56
|
- !ruby/object:Gem::Dependency
|
43
57
|
name: capybara
|
44
58
|
requirement: !ruby/object:Gem::Requirement
|
45
59
|
requirements:
|
46
60
|
- - "~>"
|
47
61
|
- !ruby/object:Gem::Version
|
48
|
-
version: 2.
|
62
|
+
version: 2.4.1
|
49
63
|
type: :development
|
50
64
|
prerelease: false
|
51
65
|
version_requirements: !ruby/object:Gem::Requirement
|
52
66
|
requirements:
|
53
67
|
- - "~>"
|
54
68
|
- !ruby/object:Gem::Version
|
55
|
-
version: 2.
|
69
|
+
version: 2.4.1
|
56
70
|
- !ruby/object:Gem::Dependency
|
57
71
|
name: selenium-webdriver
|
58
72
|
requirement: !ruby/object:Gem::Requirement
|
@@ -101,14 +115,14 @@ dependencies:
|
|
101
115
|
requirements:
|
102
116
|
- - "~>"
|
103
117
|
- !ruby/object:Gem::Version
|
104
|
-
version:
|
118
|
+
version: 2.6.2
|
105
119
|
type: :development
|
106
120
|
prerelease: false
|
107
121
|
version_requirements: !ruby/object:Gem::Requirement
|
108
122
|
requirements:
|
109
123
|
- - "~>"
|
110
124
|
- !ruby/object:Gem::Version
|
111
|
-
version:
|
125
|
+
version: 2.6.2
|
112
126
|
- !ruby/object:Gem::Dependency
|
113
127
|
name: sqlite3
|
114
128
|
requirement: !ruby/object:Gem::Requirement
|
@@ -129,14 +143,14 @@ dependencies:
|
|
129
143
|
requirements:
|
130
144
|
- - "~>"
|
131
145
|
- !ruby/object:Gem::Version
|
132
|
-
version: 0.
|
146
|
+
version: 0.9.0
|
133
147
|
type: :development
|
134
148
|
prerelease: false
|
135
149
|
version_requirements: !ruby/object:Gem::Requirement
|
136
150
|
requirements:
|
137
151
|
- - "~>"
|
138
152
|
- !ruby/object:Gem::Version
|
139
|
-
version: 0.
|
153
|
+
version: 0.9.0
|
140
154
|
- !ruby/object:Gem::Dependency
|
141
155
|
name: database_cleaner
|
142
156
|
requirement: !ruby/object:Gem::Requirement
|
@@ -157,14 +171,14 @@ dependencies:
|
|
157
171
|
requirements:
|
158
172
|
- - "~>"
|
159
173
|
- !ruby/object:Gem::Version
|
160
|
-
version: 0.
|
174
|
+
version: 0.5.2
|
161
175
|
type: :development
|
162
176
|
prerelease: false
|
163
177
|
version_requirements: !ruby/object:Gem::Requirement
|
164
178
|
requirements:
|
165
179
|
- - "~>"
|
166
180
|
- !ruby/object:Gem::Version
|
167
|
-
version: 0.
|
181
|
+
version: 0.5.2
|
168
182
|
- !ruby/object:Gem::Dependency
|
169
183
|
name: coffee-rails
|
170
184
|
requirement: !ruby/object:Gem::Requirement
|
@@ -263,20 +277,6 @@ dependencies:
|
|
263
277
|
- - ">="
|
264
278
|
- !ruby/object:Gem::Version
|
265
279
|
version: 0.7.0
|
266
|
-
- !ruby/object:Gem::Dependency
|
267
|
-
name: localeapp
|
268
|
-
requirement: !ruby/object:Gem::Requirement
|
269
|
-
requirements:
|
270
|
-
- - ">="
|
271
|
-
- !ruby/object:Gem::Version
|
272
|
-
version: 0.7.2
|
273
|
-
type: :development
|
274
|
-
prerelease: false
|
275
|
-
version_requirements: !ruby/object:Gem::Requirement
|
276
|
-
requirements:
|
277
|
-
- - ">="
|
278
|
-
- !ruby/object:Gem::Version
|
279
|
-
version: 0.7.2
|
280
280
|
description: With this gem you get an faq page and the management tools to make it
|
281
281
|
very easy to update your faq and reduce the demand on your sites customer service
|
282
282
|
email: hi@futhr.io
|
@@ -286,7 +286,9 @@ extra_rdoc_files: []
|
|
286
286
|
files:
|
287
287
|
- ".gitignore"
|
288
288
|
- ".hound.yml"
|
289
|
+
- ".reek"
|
289
290
|
- ".rspec"
|
291
|
+
- ".rubocop.yml"
|
290
292
|
- ".travis.yml"
|
291
293
|
- CONTRIBUTING.md
|
292
294
|
- Gemfile
|