Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added Jeweler to workflow

  • Loading branch information...
commit 2a05f713e6c243ddbc29adc2fb8fa42fe4b61e74 1 parent 21d6ceb
@semmons99 semmons99 authored
View
5 .document
@@ -0,0 +1,5 @@
+README.rdoc
+lib/**/*.rb
+bin/*
+features/**/*.feature
+LICENSE
View
23 .gitignore
@@ -1,2 +1,21 @@
-*.gem
-doc
+## MAC OS
+.DS_Store
+
+## TEXTMATE
+*.tmproj
+tmtags
+
+## EMACS
+*~
+\#*
+.\#*
+
+## VIM
+*.swp
+
+## PROJECT::GENERAL
+coverage
+rdoc
+pkg
+
+## PROJECT::SPECIFIC
View
0  MIT-LICENSE → LICENSE
File renamed without changes
View
48 Rakefile
@@ -1,18 +1,42 @@
-desc "Build a gem"
-task :gem do
- sh "gem build money.gemspec"
-end
+require 'rubygems'
+require 'rake'
-task "Generate RDoc documentation"
-task :rdoc do
- sh "hanna README.rdoc lib -U"
+begin
+ require 'jeweler'
+ Jeweler::Tasks.new do |gem|
+ gem.name = "money"
+ gem.summary = "Money and currency exchange support library"
+ gem.description = "Money and currency exchange support library."
+ gem.email = "hongli@phusion.nl"
+ gem.homepage = "http://money.rubyforge.org/"
+ gem.authors = ["Tobias Luetke", "Hongli Lai", "Jeremy McNevin", "Shane Emmons"]
+ gem.rubyforge_project = "money"
+ gem.add_development_dependency "rspec", ">= 1.2.9"
+ gem.add_development_dependency "hanna", ">= 0.1.12"
+ end
+rescue LoadError
+ puts "Jeweler not available. Install it with: gem install jeweler"
end
-task :upload => :rdoc do
- sh "scp -r doc/* rubyforge.org:/var/www/gforge-projects/money/"
+require 'spec/rake/spectask'
+Spec::Rake::SpecTask.new(:spec) do |spec|
+ spec.libs << 'lib' << 'test'
+ spec.spec_files = FileList['test/**/*_spec.rb']
+ spec.spec_opts << '--format specdoc'
end
-desc "Run unit tests"
-task :test do
- ruby "-S spec -f s -c test/*_spec.rb"
+task :spec => :check_dependencies
+
+task :default => :spec
+
+require 'hanna/rdoctask'
+Rake::RDocTask.new do |rdoc|
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
+
+ rdoc.rdoc_dir = 'rdoc'
+ rdoc.main = 'README.rdoc'
+ rdoc.title = "money #{version}"
+ rdoc.rdoc_files.include('README.rdoc', 'LICENSE')
+ rdoc.rdoc_files.include('lib/**/*.rb')
+ rdoc.options << '-U'
end
View
1  VERSION
@@ -0,0 +1 @@
+2.1.5
View
77 money.gemspec
@@ -1,24 +1,65 @@
+# Generated by jeweler
+# DO NOT EDIT THIS FILE DIRECTLY
+# Instead, edit Jeweler::Tasks in rakefile, and run the gemspec command
+# -*- encoding: utf-8 -*-
+
Gem::Specification.new do |s|
- s.name = "money"
+ s.name = %q{money}
s.version = "2.1.5"
- s.summary = "Money and currency exchange support library"
- s.email = "hongli@phusion.nl"
- s.homepage = "http://money.rubyforge.org/"
- s.description = "Money and currency exchange support library."
- s.has_rdoc = true
- s.rubyforge_project = "money"
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Tobias Luetke", "Hongli Lai", "Jeremy McNevin", "Shane Emmons"]
-
+ s.date = %q{2010-02-05}
+ s.description = %q{Money and currency exchange support library.}
+ s.email = %q{hongli@phusion.nl}
+ s.extra_rdoc_files = [
+ "LICENSE",
+ "README.rdoc"
+ ]
s.files = [
- "README.rdoc", "MIT-LICENSE", "money.gemspec", "Rakefile",
- "lib/money.rb",
- "lib/money/core_extensions.rb",
- "lib/money/errors.rb",
- "lib/money/money.rb",
- "lib/money/defaults.rb",
- "lib/money/variable_exchange_bank.rb",
- "test/core_extensions_spec.rb",
- "test/exchange_bank_spec.rb",
- "test/money_spec.rb"
+ ".document",
+ ".gitignore",
+ "LICENSE",
+ "README.rdoc",
+ "Rakefile",
+ "VERSION",
+ "lib/money.rb",
+ "lib/money/core_extensions.rb",
+ "lib/money/defaults.rb",
+ "lib/money/errors.rb",
+ "lib/money/money.rb",
+ "lib/money/variable_exchange_bank.rb",
+ "money.gemspec",
+ "test/core_extensions_spec.rb",
+ "test/exchange_bank_spec.rb",
+ "test/money_spec.rb"
+ ]
+ s.homepage = %q{http://money.rubyforge.org/}
+ s.rdoc_options = ["--charset=UTF-8"]
+ s.require_paths = ["lib"]
+ s.rubyforge_project = %q{money}
+ s.rubygems_version = %q{1.3.5}
+ s.summary = %q{Money and currency exchange support library}
+ s.test_files = [
+ "test/core_extensions_spec.rb",
+ "test/exchange_bank_spec.rb",
+ "test/money_spec.rb"
]
+
+ if s.respond_to? :specification_version then
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
+ s.specification_version = 3
+
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
+ s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
+ s.add_development_dependency(%q<hanna>, [">= 0.1.12"])
+ else
+ s.add_dependency(%q<rspec>, [">= 1.2.9"])
+ s.add_dependency(%q<hanna>, [">= 0.1.12"])
+ end
+ else
+ s.add_dependency(%q<rspec>, [">= 1.2.9"])
+ s.add_dependency(%q<hanna>, [">= 0.1.12"])
+ end
end
+
Please sign in to comment.
Something went wrong with that request. Please try again.