Permalink
Browse files

Gemfile, Rakefile, gemspec, HISTORY.

  • Loading branch information...
1 parent 7ded968 commit dd6f0a77de26b1de299cf673e39a59176f1e5d2e @xaviershay xaviershay committed Dec 24, 2011
Showing with 89 additions and 0 deletions.
  1. +4 −0 Gemfile
  2. +30 −0 Gemfile.lock
  3. +3 −0 HISTORY.md
  4. +20 −0 Rakefile
  5. +32 −0 cane.gemspec
View
4 Gemfile
@@ -0,0 +1,4 @@
+source 'http://rubygems.org'
+
+# Specify your gem's dependencies in ..gemspec
+gemspec
View
30 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)
View
3 HISTORY.md
@@ -0,0 +1,3 @@
+# Cane History
+
+## Unreleased
View
20 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
View
32 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.