Skip to content

Commit

Permalink
Initial conversation to devtools
Browse files Browse the repository at this point in the history
  • Loading branch information
mbj committed May 21, 2013
1 parent 7b0a30d commit 067480d
Show file tree
Hide file tree
Showing 22 changed files with 75 additions and 600 deletions.
5 changes: 5 additions & 0 deletions .rspec
@@ -0,0 +1,5 @@
--color
--format progress
--profile
--order random
--fail-fast
58 changes: 2 additions & 56 deletions Gemfile
Expand Up @@ -6,59 +6,5 @@ gemspec

gem 'adamantium', '~> 0.0.8', :git => 'https://github.com/dkubb/adamantium.git'

group :yard do
gem 'kramdown', '~> 1.0.1'
end

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

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

# 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 'flay', '~> 1.4.3'
gem 'flog', '~> 2.5.3'
gem 'roodi', '~> 2.2.0'
gem 'simplecov', '~> 0.7.1'
gem 'yard-spellcheck', '~> 0.1.5'
gem 'yardstick', '~> 0.9.5'

platforms :mri_18 do
gem 'arrayfields', '~> 4.9.0' # for metric_fu
gem 'fattr', '~> 2.2.0' # for metric_fu
gem 'heckle', '~> 1.4.3'
gem 'json', '~> 1.7.7' # for metric_fu rake task
gem 'map', '~> 6.3.0' # for metric_fu
gem 'metric_fu', '~> 2.1.1'
gem 'mspec', '~> 1.5.17'
gem 'rails_best_practices', '= 1.13.3' # for metric_fu
gem 'rcov', '~> 1.0.0'
gem 'ruby2ruby', '= 1.2.2' # for heckle
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.5'
end
end
gem 'devtools', :git => 'https://github.com/datamapper/devtools.git'
eval File.read('Gemfile.devtools')
60 changes: 60 additions & 0 deletions Gemfile.devtools
@@ -0,0 +1,60 @@
# encoding: utf-8

group :development do
gem 'rake', '~> 10.0.4'
gem 'rspec', '~> 2.13.0'
gem 'yard', '~> 0.8.6.1'
end

group :yard do
gem 'kramdown', '~> 1.0.1'
end

group :guard do
gem 'guard', '~> 1.8.0'
gem 'guard-bundler', '~> 1.0.0'
gem 'guard-rspec', '~> 2.5.4'

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

# 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', '~> 3.3', '>= 3.3.0'
gem 'coveralls', '~> 0.6.6'
gem 'flay', '~> 2.2.0'
gem 'flog', '~> 4.0.0'
gem 'reek', '~> 1.3.1', :git => 'https://github.com/troessner/reek.git'
gem 'simplecov', '~> 0.7.1'
gem 'yardstick', '~> 0.9.6'

platforms :ruby_19 do
gem 'yard-spellcheck', '~> 0.1.5'
end

platforms :mri_19, :rbx do
gem 'mutant', '~> 0.2.20'
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.5'
end
end
11 changes: 2 additions & 9 deletions Rakefile
@@ -1,9 +1,2 @@
# encoding: utf-8

require 'rake'

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

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

task :default => :spec
require 'devtools'
Devtools.init_rake_tasks
10 changes: 5 additions & 5 deletions config/site.reek → config/reek.yml
Expand Up @@ -7,7 +7,7 @@ UncommunicativeParameterName:
- !ruby/regexp /^.$/
- !ruby/regexp /[0-9]$/
- !ruby/regexp /[A-Z]/
LargeClass:
TooManyMethods:
max_methods: 10
exclude: []
enabled: true
Expand Down Expand Up @@ -49,11 +49,11 @@ NestedIterators:
exclude: []
enabled: true
max_allowed_nesting: 2
LongMethod:
TooManyStatements:
max_statements: 7 # TODO: decrease max_statements to 5 or less
exclude: []
enabled: true
Duplication:
DuplicateMethodCall:
allow_calls: []
exclude: []
enabled: true
Expand All @@ -73,7 +73,7 @@ UncommunicativeVariableName:
- !ruby/regexp /^.$/
- !ruby/regexp /[0-9]$/
- !ruby/regexp /[A-Z]/
SimulatedPolymorphism:
RepeatedConditional:
exclude: []
enabled: true
max_ifs: 1
Expand All @@ -82,7 +82,7 @@ DataClump:
enabled: true
max_copies: 1
min_clump_size: 3
ControlCouple:
ControlParameter:
exclude: []
enabled: true
LongYieldList:
Expand Down
7 changes: 0 additions & 7 deletions spec/rcov.opts

This file was deleted.

7 changes: 0 additions & 7 deletions spec/shared/command_method_behavior.rb

This file was deleted.

15 changes: 0 additions & 15 deletions spec/shared/each_method_behaviour.rb

This file was deleted.

17 changes: 0 additions & 17 deletions spec/shared/hash_method_behavior.rb

This file was deleted.

7 changes: 0 additions & 7 deletions spec/shared/idempotent_method_behavior.rb

This file was deleted.

9 changes: 0 additions & 9 deletions spec/shared/invertible_method_behaviour.rb

This file was deleted.

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

This file was deleted.

9 changes: 1 addition & 8 deletions spec/spec_helper.rb
@@ -1,11 +1,4 @@
# encoding: utf-8

require 'equalizer'
require 'spec'
require 'spec/autorun'

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

Spec::Runner.configure do |config|
end
require 'devtools/spec_helper'
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 067480d

Please sign in to comment.