Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
source :rubygems
source 'https://rubygems.org'

gem 'activeresource', '~> 3.0'
gem 'activesupport', '~> 3.0'
gem 'hashie', "~> 1.2"

group :test, :development do
gem 'rspec', '~> 2.0'
gem 'devtools', :git => 'https://github.com/datamapper/devtools.git'
gem 'jeweler', "~> 1.8"
gem "simplecov", "~> 0.5", :platform => :ruby_19
gem "rcov", "~> 1.0", :platform => :ruby_18
eval File.read('Gemfile.devtools')
end
64 changes: 64 additions & 0 deletions Gemfile.devtools
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# encoding: utf-8

group :development do
gem 'rake', '~> 10.0.3'
gem 'rspec', '~> 2.13.0'
gem 'yard', '~> 0.8.5'
end

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

group :guard do
gem 'guard', '~> 1.6.2'
gem 'guard-bundler', '~> 1.0.0'
gem 'guard-rspec', '~> 2.4.1'

# 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

gem 'listen', '~> 0.7.3'

# 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', '~> 2.1.0'
gem 'flog', '~> 3.2.2'
gem 'reek', '~> 1.3.1', :git => 'https://github.com/troessner/reek.git'
gem 'metric_fu-roodi', '~> 2.2.1'
gem 'yardstick', '~> 0.9.4'

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_19, :rbx do
gem 'mutant', '~> 0.2.20'
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
183 changes: 155 additions & 28 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,52 +1,179 @@
GIT
remote: https://github.com/datamapper/devtools.git
revision: f0395974dd2ba0552310921ddff83a1adb164e3d
specs:
devtools (0.0.1)

GIT
remote: https://github.com/troessner/reek.git
revision: 271f468d18c5dafc45d1ce7ed8554a39e20bc5af
specs:
reek (1.3.1)
ruby2ruby (~> 2.0.2)
ruby_parser (~> 3.1.1)
sexp_processor

GEM
remote: http://rubygems.org/
remote: https://rubygems.org/
specs:
activemodel (3.2.2)
activesupport (= 3.2.2)
abstract_type (0.0.5)
backports (~> 3.0, >= 3.0.3)
activemodel (3.2.12)
activesupport (= 3.2.12)
builder (~> 3.0.0)
activeresource (3.2.2)
activemodel (= 3.2.2)
activesupport (= 3.2.2)
activesupport (3.2.2)
activeresource (3.2.12)
activemodel (= 3.2.12)
activesupport (= 3.2.12)
activesupport (3.2.12)
i18n (~> 0.6)
multi_json (~> 1.0)
builder (3.0.0)
diff-lcs (1.1.3)
adamantium (0.0.7)
backports (~> 3.0, >= 3.0.3)
ice_nine (~> 0.7.0)
backports (3.0.3)
builder (3.0.4)
coderay (1.0.9)
descendants_tracker (0.0.1)
diff-lcs (1.2.1)
equalizer (0.0.5)
adamantium (~> 0.0.6)
backports (~> 3.0, >= 3.0.3)
ffi (1.4.0)
ffi-hunspell (0.2.6)
ffi (~> 1.0)
flay (2.1.0)
ruby_parser (~> 3.0)
sexp_processor (~> 4.0)
flog (3.2.2)
ruby_parser (~> 3.1, > 3.1.0)
sexp_processor (~> 4.0)
git (1.2.5)
guard (1.6.2)
listen (>= 0.6.0)
lumberjack (>= 1.0.2)
pry (>= 0.9.10)
terminal-table (>= 1.4.3)
thor (>= 0.14.6)
guard-bundler (1.0.0)
bundler (~> 1.0)
guard (~> 1.1)
guard-rspec (2.4.1)
guard (>= 1.1)
rspec (~> 2.11)
hashie (1.2.0)
i18n (0.6.0)
jeweler (1.8.3)
i18n (0.6.4)
ice_nine (0.7.0)
inflecto (0.0.2)
jeweler (1.8.4)
bundler (~> 1.0)
git (>= 1.2.5)
rake
rdoc
json (1.6.5)
multi_json (1.1.0)
rake (0.9.2.2)
json (1.7.7)
kramdown (0.14.2)
libnotify (0.8.0)
ffi (>= 1.0.11)
listen (0.7.3)
lumberjack (1.0.2)
method_source (0.8.1)
metric_fu-roodi (2.2.1)
ruby_parser
multi_json (1.6.1)
mutant (0.2.20)
abstract_type (~> 0.0.3)
adamantium (~> 0.0.7)
backports (~> 3.0, >= 3.0.3)
descendants_tracker (~> 0.0.1)
diff-lcs (~> 1.2.1)
equalizer (~> 0.0.5)
ice_nine (~> 0.7.0)
inflecto (~> 0.0.2)
rspec (~> 2.13.0)
to_source (~> 0.2.19)
mutant-melbourne (2.0.3)
pelusa (0.2.2)
pry (0.9.12)
coderay (~> 1.0.5)
method_source (~> 0.8)
slop (~> 3.4)
rake (10.0.3)
rb-fchange (0.0.6)
ffi
rb-fsevent (0.9.3)
rb-inotify (0.9.0)
ffi (>= 0.5.0)
rb-notifu (0.0.4)
rbench (0.2.3)
rcov (1.0.0)
rdoc (3.12)
rdoc (4.0.0)
json (~> 1.4)
rspec (2.9.0)
rspec-core (~> 2.9.0)
rspec-expectations (~> 2.9.0)
rspec-mocks (~> 2.9.0)
rspec-core (2.9.0)
rspec-expectations (2.9.1)
diff-lcs (~> 1.1.3)
rspec-mocks (2.9.0)
simplecov (0.6.1)
rspec (2.13.0)
rspec-core (~> 2.13.0)
rspec-expectations (~> 2.13.0)
rspec-mocks (~> 2.13.0)
rspec-core (2.13.0)
rspec-expectations (2.13.0)
diff-lcs (>= 1.1.3, < 2.0)
rspec-mocks (2.13.0)
ruby2ruby (2.0.3)
ruby_parser (~> 3.1)
sexp_processor (~> 4.0)
ruby_parser (3.1.1)
sexp_processor (~> 4.1)
sexp_processor (4.1.5)
simplecov (0.7.1)
multi_json (~> 1.0)
simplecov-html (~> 0.5.3)
simplecov-html (0.5.3)
simplecov-html (~> 0.7.1)
simplecov-html (0.7.1)
slop (3.4.3)
terminal-notifier-guard (1.5.3)
terminal-table (1.4.5)
thor (0.17.0)
to_source (0.2.20)
abstract_type (~> 0.0.5)
adamantium (~> 0.0.7)
equalizer (~> 0.0.5)
mutant-melbourne (~> 2.0.3)
yard (0.8.5.2)
yard-spellcheck (0.1.5)
ffi-hunspell (~> 0.2)
yard (~> 0.6)
yardstick (0.9.4)
backports (~> 3.0, >= 3.0.3)
yard (~> 0.8.5)

PLATFORMS
ruby

DEPENDENCIES
activeresource (~> 3.0)
activesupport (~> 3.0)
devtools!
flay (~> 2.1.0)
flog (~> 3.2.2)
guard (~> 1.6.2)
guard-bundler (~> 1.0.0)
guard-rspec (~> 2.4.1)
hashie (~> 1.2)
jeweler (~> 1.8)
jruby-openssl (~> 0.8.2)
kramdown (~> 0.14.2)
libnotify (~> 0.8.0)
listen (~> 0.7.3)
metric_fu-roodi (~> 2.2.1)
mutant (~> 0.2.20)
pelusa (~> 0.2.2)
rake (~> 10.0.3)
rb-fchange (~> 0.0.6)
rb-fsevent (~> 0.9.3)
rb-inotify (~> 0.9.0)
rb-notifu (~> 0.0.4)
rbench (~> 0.2.3)
rcov (~> 1.0)
rspec (~> 2.0)
simplecov (~> 0.5)
reek (~> 1.3.1)!
rspec (~> 2.13.0)
simplecov (~> 0.7.1)
terminal-notifier-guard (~> 1.5.3)
yard (~> 0.8.5)
yard-spellcheck (~> 0.1.5)
yardstick (~> 0.9.4)
7 changes: 5 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require 'rubygems'
require 'devtools'
require 'rake'

begin
Expand All @@ -9,7 +10,7 @@ begin
gem.description = %Q{TaskMapper provides a universal API to ticket tracking and project management systems.}
gem.email = "info@hybridgroup.com"
gem.homepage = "http://ticketrb.com"
gem.authors = ["kiafaldorius", "Sirupsen", "deadprogrammer"]
gem.authors = ["kiafaldorius", "Sirupsen", "deadprogrammer", "cored"]
end
Jeweler::GemcutterTasks.new
rescue LoadError
Expand All @@ -29,7 +30,7 @@ end

task :default => :spec

require 'rake/rdoctask'
require 'rdoc/task'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""

Expand All @@ -38,3 +39,5 @@ Rake::RDocTask.new do |rdoc|
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end

Devtools.init_rake_tasks
3 changes: 3 additions & 0 deletions config/flay.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
threshold: 11
total_score: 103
2 changes: 2 additions & 0 deletions config/flog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
threshold: 9.8
3 changes: 3 additions & 0 deletions config/mutant.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
name: taskmapper
namespace: TaskMapper
18 changes: 18 additions & 0 deletions config/roodi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
AbcMetricMethodCheck: { score: 11.0 }
AssignmentInConditionalCheck: { }
CaseMissingElseCheck: { }
ClassLineCountCheck: { line_count: 293 }
ClassNameCheck: { pattern: !ruby/regexp '/\A(?:[A-Z]+|Or|In|[A-Z][a-z](?:[A-Z]?[a-z])+)\z/' }
ClassVariableCheck: { }
CyclomaticComplexityBlockCheck: { complexity: 2 }
CyclomaticComplexityMethodCheck: { complexity: 4 }
EmptyRescueBodyCheck: { }
ForLoopCheck: { }
# TODO: decrease line_count to 5 to 10
MethodLineCountCheck: { line_count: 14 }
MethodNameCheck: { pattern: !ruby/regexp '/\A(?:[a-z\d](?:_?[a-z\d])+[?!=]?|\[\]=?|==|<=>|[+*&|-])\z/' }
ModuleLineCountCheck: { line_count: 295 }
ModuleNameCheck: { pattern: !ruby/regexp '/\A(?:[A-Z]+|[A-Z][a-z](?:[A-Z]?[a-z])+)\z/' }
# TODO: decrease parameter_count to 2 or less
ParameterNumberCheck: { parameter_count: 3 }
Loading