Permalink
Browse files

Modernised hoe config. Added plugin to generate gemspec.

  • Loading branch information...
duncan-bayne
duncan-bayne committed Oct 13, 2011
1 parent 2875f4c commit f508ef3a13c47cde7e9f90e4ac647ff623691755
Showing with 45 additions and 4 deletions.
  1. +1 −0 Gemfile
  2. +3 −0 Gemfile.lock
  3. +5 −4 Rakefile
  4. +36 −0 roodi.gemspec
View
@@ -2,6 +2,7 @@ source "http://rubygems.org/"
gem 'rake'
gem 'hoe'
+gem 'hoe-gemspec'
gem 'rspec'
gem 'ruby_parser'
gem 'rdoc'
View
@@ -3,6 +3,8 @@ GEM
specs:
hoe (2.12.3)
rake (~> 0.8)
+ hoe-gemspec (1.0.0)
+ hoe (>= 2.2.0)
rake (0.9.2)
rdoc (3.9.3)
rspec (1.3.2)
@@ -15,6 +17,7 @@ PLATFORMS
DEPENDENCIES
hoe
+ hoe-gemspec
rake
rdoc
rspec
View
@@ -6,10 +6,11 @@ require 'rake'
require 'spec/rake/spectask'
require 'roodi'
-Hoe.new('roodi', Roodi::VERSION) do |p|
- p.developer('Marty Andrews', 'marty@cogentconsulting.com.au')
- p.extra_deps = ['ruby_parser']
- p.remote_rdoc_dir = ''
+Hoe.plugin :gemspec
+Hoe.spec 'roodi' do
+ developer('Marty Andrews', 'marty@cogentconsulting.com.au')
+ extra_deps << 'ruby_parse'
+ remote_rdoc_dir = ''
end
def roodi(ruby_files)
View
@@ -0,0 +1,36 @@
+# -*- encoding: utf-8 -*-
+
+Gem::Specification.new do |s|
+ s.name = "roodi"
+ s.version = "2.0.1.20111013115829"
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.authors = ["Marty Andrews"]
+ s.date = "2011-10-13"
+ s.description = "Roodi stands for Ruby Object Oriented Design Inferometer. It parses your Ruby code and warns you about design issues you have based on the checks that is has configured."
+ s.email = ["marty@cogentconsulting.com.au"]
+ s.executables = ["roodi", "roodi-describe"]
+ s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.txt"]
+ s.files = ["History.txt", "Manifest.txt", "README.txt", "Rakefile", "bin/roodi", "bin/roodi-describe", "lib/roodi.rb", "lib/roodi/checks.rb", "lib/roodi/checks/abc_metric_method_check.rb", "lib/roodi/checks/assignment_in_conditional_check.rb", "lib/roodi/checks/case_missing_else_check.rb", "lib/roodi/checks/check.rb", "lib/roodi/checks/class_line_count_check.rb", "lib/roodi/checks/class_name_check.rb", "lib/roodi/checks/class_variable_check.rb", "lib/roodi/checks/control_coupling_check.rb", "lib/roodi/checks/cyclomatic_complexity_block_check.rb", "lib/roodi/checks/cyclomatic_complexity_check.rb", "lib/roodi/checks/cyclomatic_complexity_method_check.rb", "lib/roodi/checks/empty_rescue_body_check.rb", "lib/roodi/checks/for_loop_check.rb", "lib/roodi/checks/line_count_check.rb", "lib/roodi/checks/method_line_count_check.rb", "lib/roodi/checks/method_name_check.rb", "lib/roodi/checks/module_line_count_check.rb", "lib/roodi/checks/module_name_check.rb", "lib/roodi/checks/name_check.rb", "lib/roodi/checks/npath_complexity_check.rb", "lib/roodi/checks/npath_complexity_method_check.rb", "lib/roodi/checks/parameter_number_check.rb", "lib/roodi/core.rb", "lib/roodi/core/checking_visitor.rb", "lib/roodi/core/error.rb", "lib/roodi/core/parser.rb", "lib/roodi/core/runner.rb", "lib/roodi/core/visitable_sexp.rb", "lib/roodi_task.rb", "roodi.yml", "spec/roodi/checks/abc_metric_method_check_spec.rb", "spec/roodi/checks/assignment_in_conditional_check_spec.rb", "spec/roodi/checks/case_missing_else_check_spec.rb", "spec/roodi/checks/class_line_count_check_spec.rb", "spec/roodi/checks/class_name_check_spec.rb", "spec/roodi/checks/class_variable_check_spec.rb", "spec/roodi/checks/control_coupling_check_spec.rb", "spec/roodi/checks/cyclomatic_complexity_block_check_spec.rb", "spec/roodi/checks/cyclomatic_complexity_method_check_spec.rb", "spec/roodi/checks/empty_rescue_body_check_spec.rb", "spec/roodi/checks/for_loop_check_spec.rb", "spec/roodi/checks/method_line_count_check_spec.rb", "spec/roodi/checks/method_name_check_spec.rb", "spec/roodi/checks/module_line_count_check_spec.rb", "spec/roodi/checks/module_name_check_spec.rb", "spec/roodi/checks/npath_complexity_method_check_spec.rb", "spec/roodi/checks/parameter_number_check_spec.rb", "spec/spec_helper.rb", ".gemtest"]
+ s.homepage = "http://roodi.rubyforge.org"
+ s.rdoc_options = ["--main", "README.txt"]
+ s.require_paths = ["lib"]
+ s.rubyforge_project = "roodi"
+ s.rubygems_version = "1.8.10"
+ s.summary = "Roodi stands for Ruby Object Oriented Design Inferometer"
+
+ if s.respond_to? :specification_version then
+ s.specification_version = 3
+
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
+ s.add_runtime_dependency(%q<ruby_parse>, [">= 0"])
+ s.add_development_dependency(%q<hoe>, ["~> 2.12"])
+ else
+ s.add_dependency(%q<ruby_parse>, [">= 0"])
+ s.add_dependency(%q<hoe>, ["~> 2.12"])
+ end
+ else
+ s.add_dependency(%q<ruby_parse>, [">= 0"])
+ s.add_dependency(%q<hoe>, ["~> 2.12"])
+ end
+end

0 comments on commit f508ef3

Please sign in to comment.