Skip to content

Commit

Permalink
Add devtools gem dependency
Browse files Browse the repository at this point in the history
* Update gem to work within devtools framework.
  • Loading branch information
dkubb committed Jan 18, 2013
1 parent 04023ab commit a543953
Show file tree
Hide file tree
Showing 19 changed files with 96 additions and 551 deletions.
4 changes: 4 additions & 0 deletions .rspec
@@ -0,0 +1,4 @@
--color
--format progress
--profile
--order random
2 changes: 1 addition & 1 deletion .travis.yml
@@ -1,7 +1,7 @@
language: ruby
before_install: gem install bundler
bundler_args: --without yard guard benchmarks
script: "bundle exec rake spec"
script: "bundle exec rake ci"
rvm:
- ree
- 1.8.7
Expand Down
55 changes: 2 additions & 53 deletions Gemfile
Expand Up @@ -4,56 +4,5 @@ source 'https://rubygems.org'

gemspec

group :yard do
gem 'yard', '~> 0.8.3'
gem 'redcarpet', '~> 2.2.2', :platforms => [ :mri, :rbx ]
end

group :guard do
gem 'guard', '~> 1.5.4'
gem 'guard-bundler', '~> 1.0.0'
gem 'guard-rspec', '~> 1.2.1'
end

group :benchmarks do
gem 'rbench', '~> 0.2.3'
end

platform :jruby do
group :jruby do
gem 'jruby-openssl', '~> 0.7.4'
end
end

group :metrics do
gem 'flay', '~> 1.4.3'
gem 'flog', '~> 2.5.3'
gem 'reek', '~> 1.2.8', :github => 'dkubb/reek'
gem 'roodi', '~> 2.1.0'
gem 'yardstick', '~> 0.8.0'

platforms :ruby_18, :ruby_19 do
# this indirectly depends on ffi which does not build on ruby-head
gem 'yard-spellcheck', '~> 0.1.5'
end

platforms :mri_18 do
gem 'arrayfields', '~> 4.7.4' # for metric_fu
gem 'fattr', '~> 2.2.0' # for metric_fu
gem 'heckle', '~> 1.4.3'
gem 'json', '~> 1.7.3' # for metric_fu rake task
gem 'map', '~> 6.2.0' # for metric_fu
gem 'metric_fu', '~> 2.1.1'
gem 'mspec', '~> 1.5.17'
gem 'rcov', '~> 1.0.0'
gem 'ruby2ruby', '= 1.2.2' # for heckle
end

platforms :ruby_19 do
gem 'simplecov', '~> 0.7.1'
end

platforms :rbx do
gem 'pelusa', '~> 0.2.1'
end
end
gem 'devtools', :git => 'https://github.com/datamapper/devtools.git'
eval File.read('Gemfile.devtools')
67 changes: 67 additions & 0 deletions Gemfile.devtools
@@ -0,0 +1,67 @@
# encoding: utf-8

group :development do
gem 'rake', '~> 10.0.3'
gem 'rspec', '~> 2.12.0'
gem 'yard', '~> 0.8.3'
end

group :yard do
gem 'redcarpet', '~> 2.2.2', :platforms => [ :mri, :rbx ]
end

group :guard do
gem 'guard', '~> 1.6.1'
gem 'guard-bundler', '~> 1.0.0'
gem 'guard-rspec', '~> 2.3.3'

# file system change event handling
gem 'rb-fchange', '~> 0.0.6', :require => false
gem 'rb-fsevent', '~> 0.9.3', :require => false
gem 'rb-inotify', '~> 0.9.0', :require => false

# Remove this one https://github.com/guard/listen/pull/78 is released
gem 'listen', '~> 0.7.2', :git => 'https://github.com/guard/listen'

# notification handling
gem 'libnotify', '~> 0.8.0', :require => false
gem 'rb-notifu', '~> 0.0.4', :require => false
gem 'terminal-notifier-guard', '~> 1.5.3', :require => false
end

group :metrics do
gem 'backports', '~> 2.6.5'
gem 'flay', '~> 1.4.3'
gem 'flog', '~> 2.5.3'
gem 'mutant', '~> 0.2.15'
gem 'reek', '~> 1.2.13', :git => 'https://github.com/troessner/reek.git'
gem 'roodi', '~> 2.1.0'
gem 'yardstick', '~> 0.8.0'

platforms :ruby_18, :ruby_19 do
# this indirectly depends on ffi which does not build on ruby-head
gem 'yard-spellcheck', '~> 0.1.5'
end

platforms :mri_18 do
gem 'rcov', '~> 1.0.0'
end

platforms :mri_19 do
gem 'simplecov', '~> 0.7.1'
end

platforms :rbx do
gem 'pelusa', '~> 0.2.2'
end
end

group :benchmarks do
gem 'rbench', '~> 0.2.3'
end

platform :jruby do
group :jruby do
gem 'jruby-openssl', '~> 0.8.2'
end
end
7 changes: 2 additions & 5 deletions Rakefile
@@ -1,9 +1,6 @@
# encoding: utf-8

require 'rake'
require 'devtools'

require File.expand_path('../lib/abstract_type/version', __FILE__)

FileList['tasks/**/*.rake'].each { |task| import task }

task :default => :spec
Devtools.init
3 changes: 3 additions & 0 deletions config/mutant.yml
@@ -0,0 +1,3 @@
---
name: abstract_type
namespace: AbstractType
7 changes: 0 additions & 7 deletions spec/rcov.opts

This file was deleted.

3 changes: 0 additions & 3 deletions spec/spec.opts

This file was deleted.

21 changes: 17 additions & 4 deletions spec/spec_helper.rb
@@ -1,11 +1,24 @@
# encoding: utf-8

if ENV['COVERAGE'] == 'true'
require 'simplecov'

SimpleCov.start do
command_name 'spec:unit'
add_filter 'config'
add_filter 'spec'
minimum_coverage 100
end
end

require 'abstract_type'
require 'spec'
require 'spec/autorun'
require 'rspec'
require 'rspec/autorun' if RUBY_VERSION < '1.9'

# require spec support files and shared behavior
Dir[File.expand_path('../{support,shared}/**/*.rb', __FILE__)].each { |f| require f }
Dir[File.expand_path('../{support,shared}/**/*.rb', __FILE__)].each do |file|
require file
end

Spec::Runner.configure do |config|
RSpec.configure do |config|
end
9 changes: 0 additions & 9 deletions tasks/metrics/ci.rake

This file was deleted.

45 changes: 0 additions & 45 deletions tasks/metrics/flay.rake

This file was deleted.

49 changes: 0 additions & 49 deletions tasks/metrics/flog.rake

This file was deleted.

0 comments on commit a543953

Please sign in to comment.