-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Basic setup for testing and quality assurance
- Loading branch information
Showing
6 changed files
with
55 additions
and
11 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,3 @@ | ||
--format Fuubar | ||
--order rand | ||
--color |
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,13 @@ | ||
AllCops: | ||
Exclude: | ||
- 'tmp/**/*' | ||
|
||
# Configuration parameters: MaxSlashes. | ||
Style/RegexpLiteral: | ||
MaxSlashes: 0 | ||
|
||
Metrics/AbcSize: | ||
Enabled: false | ||
|
||
Lint/Debugger: | ||
Enabled: false |
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 +1,4 @@ | ||
require "bundler/gem_tasks" | ||
require 'bundler/gem_tasks' | ||
require 'rubocop/rake_task' | ||
|
||
RuboCop::RakeTask.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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,22 +4,20 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | |
require 'geo_pattern/version' | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = "geo_pattern" | ||
spec.name = 'geo_pattern' | ||
spec.version = GeoPattern::VERSION | ||
spec.authors = ["Jason Long"] | ||
spec.email = ["[email protected]"] | ||
spec.authors = ['Jason Long'] | ||
spec.email = ['[email protected]'] | ||
spec.summary = %q{Generate SVG beautiful patterns} | ||
spec.description = %q{Generate SVG beautiful patterns} | ||
spec.homepage = "https://github.com/jasonlong/geo_pattern" | ||
spec.license = "MIT" | ||
spec.homepage = 'https://github.com/jasonlong/geo_pattern' | ||
spec.license = 'MIT' | ||
|
||
spec.files = `git ls-files -z`.split("\x0") | ||
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } | ||
spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) | ||
spec.require_paths = ["lib"] | ||
spec.require_paths = ['lib'] | ||
|
||
spec.add_dependency "color", "~> 1.5" | ||
|
||
spec.add_development_dependency "bundler", "~> 1.5" | ||
spec.add_development_dependency "rake" | ||
spec.add_dependency 'color', '~> 1.5' | ||
spec.add_development_dependency 'bundler', '~> 1.5' | ||
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# encoding: utf-8 | ||
$LOAD_PATH << File.expand_path('../../lib', __FILE__) | ||
|
||
require 'simplecov' | ||
SimpleCov.command_name 'rspec' | ||
SimpleCov.start | ||
|
||
# Pull in all of the gems including those in the `test` group | ||
require 'bundler' | ||
Bundler.require :default, :test, :development | ||
|
||
require 'geo_pattern' | ||
|
||
# Loading support files | ||
Dir.glob(::File.expand_path('../support/*.rb', __FILE__)).each { |f| require_relative f } | ||
Dir.glob(::File.expand_path('../shared_examples/*.rb', __FILE__)).each { |f| require_relative f } | ||
|
||
# Avoid writing "describe MyModule::MyClass do [..]" but "describe MyClass do [..]" | ||
include GeoPattern |