Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gemfile, Rakefile, gemspec, HISTORY.
- Loading branch information
1 parent
7ded968
commit dd6f0a7
Showing
5 changed files
with
89 additions
and
0 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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,4 @@ | |||
source 'http://rubygems.org' | |||
|
|||
# Specify your gem's dependencies in ..gemspec | |||
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,30 @@ | |||
PATH | |||
remote: . | |||
specs: | |||
cane (1.0.0) | |||
tailor | |||
|
|||
GEM | |||
remote: http://rubygems.org/ | |||
specs: | |||
diff-lcs (1.1.3) | |||
rake (0.9.2.2) | |||
rspec (2.7.0) | |||
rspec-core (~> 2.7.0) | |||
rspec-expectations (~> 2.7.0) | |||
rspec-mocks (~> 2.7.0) | |||
rspec-core (2.7.1) | |||
rspec-expectations (2.7.0) | |||
diff-lcs (~> 1.1.2) | |||
rspec-mocks (2.7.0) | |||
tailor (0.1.5) | |||
term-ansicolor (>= 1.0.5) | |||
term-ansicolor (1.0.7) | |||
|
|||
PLATFORMS | |||
ruby | |||
|
|||
DEPENDENCIES | |||
cane! | |||
rake | |||
rspec (~> 2.0) |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,3 @@ | |||
# Cane History | |||
|
|||
## Unreleased |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,20 @@ | |||
#!/usr/bin/env rake | |||
require "bundler/gem_tasks" | |||
|
|||
begin | |||
require 'rspec/core/rake_task' | |||
|
|||
RSpec::Core::RakeTask.new(:spec) | |||
|
|||
task :default => :spec | |||
rescue LoadError | |||
$stderr.puts "rspec not available, spec task not provided" | |||
end | |||
|
|||
desc "Run cane to check quality metrics" | |||
task :quality do | |||
puts `bin/cane` | |||
exit $?.exitstatus unless $?.exitstatus == 0 | |||
end | |||
|
|||
task :default => :quality |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,32 @@ | |||
# -*- encoding: utf-8 -*- | |||
require File.expand_path('../lib/cane/version', __FILE__) | |||
|
|||
Gem::Specification.new do |gem| | |||
gem.authors = ["Xavier Shay"] | |||
gem.email = ["xavier@squareup.com"] | |||
gem.description = | |||
%q{Fails your build if code quality thresholds are not met} | |||
gem.summary = %q{ | |||
Fails your build if code quality thresholds are not met. Provides | |||
complexity and style checkers built-in, and allows integration with with | |||
custom quality metrics. | |||
} | |||
gem.homepage = "http://github.com/square/cane" | |||
|
|||
gem.executables = [] | |||
gem.files = Dir.glob("{spec,lib}/**/*.rb") + %w( | |||
README.md | |||
HISTORY.md | |||
cane.gemspec | |||
) | |||
gem.test_files = Dir.glob("spec/**/*.rb") | |||
gem.name = "cane" | |||
gem.require_paths = ["lib"] | |||
gem.bindir = "bin" | |||
gem.executables << "cane" | |||
gem.version = Cane::VERSION | |||
gem.has_rdoc = false | |||
gem.add_dependency 'tailor' | |||
gem.add_development_dependency 'rspec', '~> 2.0' | |||
gem.add_development_dependency 'rake' | |||
end |