-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from careo/fix-polymorphic-rendering
Fix polymorphic rendering
- Loading branch information
Showing
23 changed files
with
425 additions
and
458 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
AllCops: | ||
TargetRubyVersion: 2.3 | ||
Style/Documentation: | ||
Enabled: false | ||
Metrics/MethodLength: | ||
Enabled: false | ||
Metrics/ClassLength: | ||
Enabled: false | ||
Metrics/LineLength: | ||
Max: 200 | ||
Style/RedundantSelf: | ||
Enabled: false | ||
Style/ClassAndModuleChildren: | ||
Enabled: false | ||
Lint/Debugger: | ||
Enabled: false | ||
Metrics/AbcSize: | ||
Enabled: false | ||
Style/CaseEquality: | ||
Enabled: false | ||
Lint/UnusedMethodArgument: | ||
AllowUnusedKeywordArguments: true | ||
Style/FileName: | ||
Exclude: | ||
- 'lib/praxis-blueprints.rb' | ||
Style/ClassVars: | ||
Exclude: | ||
- 'lib/praxis-blueprints/blueprint.rb' | ||
|
||
# Offense count: 5 | ||
Metrics/CyclomaticComplexity: | ||
Max: 8 | ||
# Offense count: 5 | ||
Metrics/PerceivedComplexity: | ||
Max: 12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# frozen_string_literal: true | ||
source 'https://rubygems.org' | ||
gemspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
# frozen_string_literal: true | ||
# Config file for Guard | ||
# More info at https://github.com/guard/guard#readme | ||
group :red_green_refactor, halt_on_fail: true do | ||
guard :rspec, cmd: 'bundle exec rspec' do | ||
watch(%r{^spec/.+_spec\.rb$}) | ||
watch(%r{^lib/praxis-blueprints/(.+)\.rb$}) { |m| "spec/praxis-blueprints/#{m[1]}_spec.rb" } | ||
watch('spec/*.rb') { 'spec' } | ||
watch('lib/praxis-blueprints.rb') { 'spec' } | ||
watch(%r{^spec/support/(.+)\.rb$}) { 'spec' } | ||
end | ||
|
||
guard :rspec, cmd: 'bundle exec rspec' do | ||
watch(%r{^spec/.+_spec\.rb$}) | ||
watch(%r{^lib/praxis-blueprints/(.+)\.rb$}) { |m| "spec/praxis-blueprints/#{m[1]}_spec.rb" } | ||
watch('spec/*.rb') { 'spec' } | ||
watch('lib/praxis-blueprints.rb') { 'spec' } | ||
watch(%r{^spec/support/(.+)\.rb$}) { 'spec' } | ||
guard :rubocop, cli: '--auto-correct --display-cop-names' do | ||
watch(/.+\.rb$/) | ||
watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) } | ||
end | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
# frozen_string_literal: true | ||
require 'bundler/setup' | ||
|
||
require "bundler/gem_tasks" | ||
require 'bundler/gem_tasks' | ||
|
||
require 'rspec/core' | ||
require 'rspec/core/rake_task' | ||
require 'bundler/gem_tasks' | ||
|
||
desc "Run RSpec code examples with simplecov" | ||
desc 'Run RSpec code examples with simplecov' | ||
RSpec::Core::RakeTask.new do |spec| | ||
spec.pattern = FileList['spec/**/*_spec.rb'] | ||
end | ||
|
||
task :default => :spec | ||
task default: :spec | ||
|
||
require 'yard' | ||
YARD::Rake::YardocTask.new |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.