diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..6281f00 --- /dev/null +++ b/Gemfile @@ -0,0 +1,3 @@ +source "http://rubygems.org" +gemspec + diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..e097959 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,26 @@ +PATH + remote: . + specs: + awesome_print (1.0.0) + +GEM + remote: http://rubygems.org/ + specs: + diff-lcs (1.1.2) + fakefs (0.3.2) + rspec (2.6.0) + rspec-core (~> 2.6.0) + rspec-expectations (~> 2.6.0) + rspec-mocks (~> 2.6.0) + rspec-core (2.6.4) + rspec-expectations (2.6.0) + diff-lcs (~> 1.1.2) + rspec-mocks (2.6.0) + +PLATFORMS + ruby + +DEPENDENCIES + awesome_print! + fakefs (>= 0.2.1) + rspec (>= 2.6.0) diff --git a/Rakefile b/Rakefile index 30f15d0..14cfe0b 100644 --- a/Rakefile +++ b/Rakefile @@ -1,46 +1,2 @@ -require 'rubygems' -require 'rake' - -begin - require 'jeweler' - Jeweler::Tasks.new do |gem| - gem.name = "awesome_print" - gem.rubyforge_project = "awesome_print" - gem.summary = %Q{Pretty print Ruby objects with proper indentation and colors.} - gem.description = %Q{Great Ruby dubugging companion: pretty print Ruby objects to visualize their structure. Supports Rails ActiveRecord objects via included mixin.} - gem.email = "mike@dvorkin.net" - gem.homepage = "http://github.com/michaeldv/awesome_print" - gem.authors = ["Michael Dvorkin"] - gem.add_development_dependency "rspec", ">= 2.5.0" - gem.files = FileList["[A-Z]*", "lib/**/*.rb", "rails/*.rb", "spec/*", "init.rb"] - # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings - end - Jeweler::GemcutterTasks.new -rescue LoadError - puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler" -end - -require "rspec/core/rake_task" -RSpec::Core::RakeTask.new(:spec) do |spec| - spec.pattern = 'spec/**/*_spec.rb' - spec.rspec_opts = ['--color'] -end - -RSpec::Core::RakeTask.new(:rcov) do |spec| - spec.rcov = true - spec.rcov_opts = %q[--exclude "spec"] -end - -task :spec => :check_dependencies - -task :default => :spec - -require 'rake/rdoctask' -Rake::RDocTask.new do |rdoc| - version = File.exist?('VERSION') ? File.read('VERSION') : "" - - rdoc.rdoc_dir = 'rdoc' - rdoc.title = "ap #{version}" - rdoc.rdoc_files.include('README*') - rdoc.rdoc_files.include('lib/**/*.rb') -end +require 'bundler' +Bundler::GemHelper.install_tasks diff --git a/VERSION b/VERSION deleted file mode 100644 index 1d0ba9e..0000000 --- a/VERSION +++ /dev/null @@ -1 +0,0 @@ -0.4.0 diff --git a/awesome_print.gemspec b/awesome_print.gemspec index a0752f2..e2d2368 100644 --- a/awesome_print.gemspec +++ b/awesome_print.gemspec @@ -1,70 +1,36 @@ -# Generated by jeweler -# DO NOT EDIT THIS FILE DIRECTLY -# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec' -# -*- encoding: utf-8 -*- +# Copyright (c) 2010-2011 Michael Dvorkin +# +# Awesome Print is freely distributable under the terms of MIT license. +# See LICENSE file or http://www.opensource.org/licenses/mit-license.php +#------------------------------------------------------------------------------ +require "rake" -Gem::Specification.new do |s| - s.name = %q{awesome_print} - s.version = "0.4.0" +task :default => :spec - s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= - s.authors = ["Michael Dvorkin"] - s.date = %q{2011-05-13} - s.description = %q{Great Ruby dubugging companion: pretty print Ruby objects to visualize their structure. Supports Rails ActiveRecord objects via included mixin.} - s.email = %q{mike@dvorkin.net} - s.extra_rdoc_files = [ - "LICENSE", - "README.md" - ] - s.files = [ - "CHANGELOG", - "LICENSE", - "README.md", - "Rakefile", - "VERSION", - "init.rb", - "lib/ap.rb", - "lib/ap/awesome_print.rb", - "lib/ap/core_ext/array.rb", - "lib/ap/core_ext/class.rb", - "lib/ap/core_ext/kernel.rb", - "lib/ap/core_ext/logger.rb", - "lib/ap/core_ext/method.rb", - "lib/ap/core_ext/object.rb", - "lib/ap/core_ext/string.rb", - "lib/ap/mixin/action_view.rb", - "lib/ap/mixin/active_record.rb", - "lib/ap/mixin/active_support.rb", - "lib/ap/mixin/mongo_mapper.rb", - "lib/awesome_print.rb", - "rails/init.rb", - "spec/action_view_spec.rb", - "spec/active_record_spec.rb", - "spec/awesome_print_spec.rb", - "spec/colorization_spec.rb", - "spec/logger_spec.rb", - "spec/methods_spec.rb", - "spec/mongo_mapper_spec.rb", - "spec/spec_helper.rb", - "spec/string_spec.rb" - ] - s.homepage = %q{http://github.com/michaeldv/awesome_print} - s.require_paths = ["lib"] - s.rubyforge_project = %q{awesome_print} - s.rubygems_version = %q{1.3.7} - s.summary = %q{Pretty print Ruby objects with proper indentation and colors.} - - if s.respond_to? :specification_version then - current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION - s.specification_version = 3 - - if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then - s.add_development_dependency(%q, [">= 2.5.0"]) - else - s.add_dependency(%q, [">= 2.5.0"]) - end - else - s.add_dependency(%q, [">= 2.5.0"]) - end +desc "Run all awesome_print gem specs" +task :spec do + # Run plain rspec command without RSpec::Core::RakeTask overrides. + exec "rspec -c spec" end +Gem::Specification.new do |s| + s.name = "awesome_print" + s.version = "1.0.0" +# s.platform = Gem::Platform::RUBY + s.authors = "Michael Dvorkin" + s.date = "2011-11-08" + s.email = "mike@dvorkin.net" + s.homepage = "http://github.com/michaeldv/awesome_print" + s.summary = "Pretty print Ruby objects with proper indentation and colors" + s.description = "Great Ruby dubugging companion: pretty print Ruby objects to visualize their structure. Supports custom object formatting via plugins" + + s.rubyforge_project = "awesome_print" + + s.files = Rake::FileList["[A-Z]*", "lib/**/*.rb", "spec/*", ".gitignore"] + s.test_files = Rake::FileList["spec/*"] + s.executables = [] + s.require_paths = ["lib"] + + s.add_development_dependency "rspec", ">= 2.6.0" + s.add_development_dependency "fakefs", ">= 0.2.1" +end