Permalink
Browse files

change: properly use jeweler for gem handling

  • Loading branch information...
1 parent 0bc4411 commit 6d0921766e33320d244e7c4f33942e6a4794b015 @peterhoeg peterhoeg committed May 15, 2009
View
@@ -1,4 +1,5 @@
README.rdoc
+ChangeLog.rdoc
lib/**/*.rb
bin/*
features/**/*.feature
@@ -1,16 +1,18 @@
-Version 0.5.3 (may 15 2009)
+= Changes
+
+== Version 0.5.3 (may 15 2009)
- Fixed broken gemspec
-Version 0.5.2 (may 15 2009)
+== Version 0.5.2 (may 15 2009)
- Added ChangeLog entries
- Added AUTHORS entry
- Updated railroad version entry
-Version 0.5.1 (may 15 2009)
+== Version 0.5.1 (may 15 2009)
- Support rails v2.3
- Support namespaced models/controllers
-Version 0.5.0 (may 10 2008)
+== Version 0.5.0 (may 10 2008)
- Changed model relationships representation (feature request #10898)
- Added support for plugins models (-p) (feature request #12742 by
Chris Richards). Thanks to Elliot Smith.
@@ -23,12 +25,10 @@ Version 0.5.0 (may 10 2008)
- Added support for state machine diagram ("acts as state machine" plugin).
Thanks to Ana Nelson (she did all the work!).
-
-Version 0.4.1 (may 9 2008)
+== Version 0.4.1 (may 9 2008)
- Fix bug #17852 (class name treated as String).
-
-Version 0.4.0 (apr 25 2007)
+== Version 0.4.0 (apr 25 2007)
- Draw inheritance edges in reverse way
(from superclass to subclass, with an arrow in the tail)
This improves how 'dot' renders the graph
@@ -37,8 +37,7 @@ Version 0.4.0 (apr 25 2007)
- Added --exclude flag for ommiting classes (this may help to produce
diagrams for applications with broken classes)
-
-Version 0.3.4 (apr 12 2007)
+== Version 0.3.4 (apr 12 2007)
- Add support for model abstract classes.
(don't try to get content columns, bug #10033)
- Add verbose mode
@@ -47,22 +46,18 @@ Version 0.3.4 (apr 12 2007)
generating the DOT output. This will allow to
add more output formats in the future.
-
-Version 0.3.3 (apr 10 2007)
+== Version 0.3.3 (apr 10 2007)
- Code cleanup
-
-Version 0.3.2 (apr 9 2007)
+== Version 0.3.2 (apr 9 2007)
- Disable STDOUT when loading applications classes, avoiding
messing up the DOT output.
(Thanks to Sebastien Auvray, http://tnlessone.wordpress.com/)
-
-Version 0.3.1 (apr 9 2007)
+== Version 0.3.1 (apr 9 2007)
- Release again for fix an error in .gem file
-
-Version 0.3.0 (apr 9 2007)
+== Version 0.3.0 (apr 9 2007)
- Major code rewrite
(More OO style)
- Using Ruby's optparse to parse commandline options
@@ -71,27 +66,23 @@ Version 0.3.0 (apr 9 2007)
- Added -o flag for file output.
- Minor cosmetic changes.
-
-Version 0.2.0 (apr 8 2007)
+== Version 0.2.0 (apr 8 2007)
- Differentiate classes from modules
- Added "-m" flag for considering modules
- Draw double-headed arrows for habtm and has_many, :through associations
- Fix inheritance support for non ActiveRecord::Base classes on model
diagrams
-
-Version 0.1.2 (apr 7 2007)
+== Version 0.1.2 (apr 7 2007)
- Documentation moved from script header to README
-
-Version 0.1.1 (apr 5 2007)
+== Version 0.1.1 (apr 5 2007)
- Changed default graph label fontsize to 14.
- Better error handling.
- Minor cosmetic changes.
- New way to load classes, supporting subdirectories traversal.
(Inspired in RAV, http://rav.rubyforge.org/)
- RailRoad version included in diagrams' label.
-
-Version 0.1.0 (apr 2 2007)
+== Version 0.1.0 (apr 2 2007)
- Initial release.
View
@@ -128,11 +128,11 @@ Then, 'rake doc:diagrams' produces 'doc/models.svg' and 'doc/controllers.svg'.
RailRoad has been tested with the following Ruby and Rails versions
-Ruby
+== Ruby
* 1.8.5
* 1.8.7
-Rails
+== Rails
* 1.1.6 to 1.2.3
* 2.3.2
@@ -161,7 +161,6 @@ Copyright (c) 2009 Peter Hoeg
See LICENSE for details.
-
== Authors
See AUTHORS for details.
View
@@ -0,0 +1,49 @@
+require 'rubygems'
+require 'rake'
+
+begin
+ require 'jeweler'
+ Jeweler::Tasks.new do |gem|
+ gem.name = "railroad"
+ gem.summary = %Q{TODO}
+ gem.email = "peter@hoeg.com"
+ gem.homepage = "http://github.com/peterhoeg/RailRoad"
+ gem.authors = ["Peter Hoeg", "Javier Smaldone"]
+ gem.summary = "A DOT diagram generator for Ruby on Rail applications"
+ # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
+ end
+
+rescue LoadError
+ puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
+end
+
+require 'spec/rake/spectask'
+Spec::Rake::SpecTask.new(:spec) do |spec|
+ spec.libs << 'lib' << 'spec'
+ spec.spec_files = FileList['spec/**/*_spec.rb']
+end
+
+Spec::Rake::SpecTask.new(:rcov) do |spec|
+ spec.libs << 'lib' << 'spec'
+ spec.pattern = 'spec/**/*_spec.rb'
+ spec.rcov = true
+end
+
+
+task :default => :spec
+
+require 'rake/rdoctask'
+Rake::RDocTask.new do |rdoc|
+ if File.exist?('VERSION.yml')
+ config = YAML.load(File.read('VERSION.yml'))
+ version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
+ else
+ version = ""
+ end
+
+ rdoc.rdoc_dir = 'rdoc'
+ rdoc.title = "railroad #{version}"
+ rdoc.rdoc_files.include('README*')
+ rdoc.rdoc_files.include('lib/**/*.rb')
+end
+
File renamed without changes.
View
@@ -0,0 +1,58 @@
+# -*- encoding: utf-8 -*-
+
+Gem::Specification.new do |s|
+ s.name = %q{railroad}
+ s.version = "0.5.4"
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.authors = ["Peter Hoeg", "Javier Smaldone"]
+ s.date = %q{2009-05-15}
+ s.email = %q{peter@hoeg.com}
+ s.extra_rdoc_files = [
+ "ChangeLog.rdoc",
+ "LICENSE",
+ "README.rdoc"
+ ]
+ s.files = [
+ ".document",
+ ".gitignore",
+ "AUTHORS",
+ "ChangeLog.rdoc",
+ "LICENSE",
+ "README.rdoc",
+ "Rakefile",
+ "VERSION",
+ "lib/railroad.rb",
+ "lib/railroad/aasm_diagram.rb",
+ "lib/railroad/app_diagram.rb",
+ "lib/railroad/controllers_diagram.rb",
+ "lib/railroad/diagram_graph.rb",
+ "lib/railroad/models_diagram.rb",
+ "lib/railroad/options_struct.rb",
+ "railroad.gemspec",
+ "spec/lib/railroad/app_diagram_spec.rb",
+ "spec/railroad_spec.rb",
+ "spec/spec_helper.rb"
+ ]
+ s.has_rdoc = true
+ s.homepage = %q{http://github.com/peterhoeg/RailRoad}
+ s.rdoc_options = ["--charset=UTF-8"]
+ s.require_paths = ["lib"]
+ s.rubygems_version = %q{1.3.1}
+ s.summary = %q{A DOT diagram generator for Ruby on Rail applications}
+ s.test_files = [
+ "spec/spec_helper.rb",
+ "spec/railroad_spec.rb",
+ "spec/lib/railroad/app_diagram_spec.rb"
+ ]
+
+ if s.respond_to? :specification_version then
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
+ s.specification_version = 2
+
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
+ else
+ end
+ else
+ end
+end
View
@@ -1,18 +0,0 @@
-require 'rubygems'
-SPEC = Gem::Specification.new do |s|
- s.name = "railroad"
- s.version = "0.5.3"
- s.author = "Peter Hoeg"
- s.email = "peter@hoeg.com"
- s.homepage = "http://wiki.github.com/peterhoeg/RailRoad"
- s.rubyforge_project = "railroad"
- s.platform = Gem::Platform::RUBY
- s.summary = "A DOT diagram generator for Ruby on Rail applications"
- s.files = Dir.glob("lib/railroad/*.rb") +
- ["ChangeLog", "COPYING", "rake.gemspec"]
- s.bindir = "bin"
- s.executables = ["railroad"]
- s.default_executable = "railroad"
- s.has_rdoc = true
- s.extra_rdoc_files = ["README", "COPYING"]
-end
No changes.
@@ -0,0 +1,7 @@
+require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
+
+describe "Railroad" do
+ it "fails" do
+ fail "hey buddy, you should probably rename this file and start specing for real"
+ end
+end
View
@@ -0,0 +1,9 @@
+require 'spec'
+
+$LOAD_PATH.unshift(File.dirname(__FILE__))
+$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
+require 'railroad'
+
+Spec::Runner.configure do |config|
+
+end

0 comments on commit 6d09217

Please sign in to comment.