Skip to content

Commit

Permalink
Gemfile, Rakefile, gemspec, HISTORY.
Browse files Browse the repository at this point in the history
  • Loading branch information
xaviershay committed Dec 24, 2011
1 parent 7ded968 commit dd6f0a7
Show file tree
Hide file tree
Showing 5 changed files with 89 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Gemfile
@@ -0,0 +1,4 @@
source 'http://rubygems.org'

# Specify your gem's dependencies in ..gemspec
gemspec
30 changes: 30 additions & 0 deletions Gemfile.lock
@@ -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)
3 changes: 3 additions & 0 deletions HISTORY.md
@@ -0,0 +1,3 @@
# Cane History

## Unreleased
20 changes: 20 additions & 0 deletions Rakefile
@@ -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
32 changes: 32 additions & 0 deletions cane.gemspec
@@ -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

0 comments on commit dd6f0a7

Please sign in to comment.