Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Switched to manual gemspec.

  • Loading branch information...
commit 2417c9d3c18456ee9d705a161f6d438917d7e305 1 parent 7184dd0
@jnunemaker authored
View
5 HOW_TO_RELEASE
@@ -1,5 +0,0 @@
-* Change lib/happymapper/version to new version.
-* rake prepare
-* git commit version bump
-* git push for github
-* rake release for rubyforge
View
42 Manifest
@@ -1,42 +0,0 @@
-examples/amazon.rb
-examples/current_weather.rb
-examples/dashed_elements.rb
-examples/multi_street_address.rb
-examples/post.rb
-examples/twitter.rb
-happymapper.gemspec
-History
-HOW_TO_RELEASE
-lib/happymapper/attribute.rb
-lib/happymapper/element.rb
-lib/happymapper/item.rb
-lib/happymapper/version.rb
-lib/happymapper.rb
-License
-Manifest
-Rakefile
-README
-spec/fixtures/address.xml
-spec/fixtures/analytics.xml
-spec/fixtures/commit.xml
-spec/fixtures/current_weather.xml
-spec/fixtures/family_tree.xml
-spec/fixtures/multi_street_address.xml
-spec/fixtures/multiple_namespaces.xml
-spec/fixtures/nested_namespaces.xml
-spec/fixtures/pita.xml
-spec/fixtures/posts.xml
-spec/fixtures/product_default_namespace.xml
-spec/fixtures/product_no_namespace.xml
-spec/fixtures/product_single_namespace.xml
-spec/fixtures/radar.xml
-spec/fixtures/statuses.xml
-spec/happymapper_attribute_spec.rb
-spec/happymapper_element_spec.rb
-spec/happymapper_item_spec.rb
-spec/happymapper_spec.rb
-spec/spec.opts
-spec/spec_helper.rb
-TODO
-website/css/common.css
-website/index.html
View
0  README → README.rdoc
File renamed without changes
View
60 Rakefile
@@ -1,43 +1,47 @@
-ProjectName = 'happymapper'
-WebsitePath = "jnunemaker@rubyforge.org:/var/www/gforge-projects/#{ProjectName}"
-
require 'rubygems'
require 'rake'
-require 'echoe'
+require 'rake/rdoctask'
require 'spec/rake/spectask'
-require "lib/#{ProjectName}/version"
+require File.expand_path('../lib/happymapper/version', __FILE__)
+
+Spec::Rake::SpecTask.new do |t|
+ t.ruby_opts << '-rubygems'
+ t.verbose = true
+end
+task :default => :spec
+
+desc 'Builds the gem'
+task :build do
+ sh "gem build happymapper.gemspec"
+end
-Echoe.new(ProjectName, HappyMapper::Version) do |p|
- p.description = "object to xml mapping library"
- p.install_message = "May you have many happy mappings!"
- p.url = "http://#{ProjectName}.rubyforge.org"
- p.author = "John Nunemaker"
- p.email = "nunemaker@gmail.com"
- p.extra_deps = [['libxml-ruby', '= 1.1.3']]
- p.need_tar_gz = false
- p.docs_host = WebsitePath
+desc 'Builds and installs the gem'
+task :install => :build do
+ sh "gem install happymapper-#{HappyMapper::Version}"
+end
+
+desc 'Tags version, pushes to remote, and pushes gem'
+task :release => :build do
+ sh "git tag v#{HappyMapper::Version}"
+ sh "git push origin master"
+ sh "git push origin v#{HappyMapper::Version}"
+ sh "gem push bin-#{HappyMapper::Version}.gem"
end
desc 'Upload website files to rubyforge'
task :website do
- sh %{rsync -av website/ #{WebsitePath}}
+ sh %{rsync -av website/ jnunemaker@rubyforge.org:/var/www/gforge-projects/happymapper}
Rake::Task['website_docs'].invoke
end
task :website_docs do
- Rake::Task['redocs'].invoke
- sh %{rsync -av doc/ #{WebsitePath}/docs}
-end
-
-desc 'Preps the gem for a new release'
-task :prepare do
- %w[manifest build_gemspec].each do |task|
- Rake::Task[task].invoke
- end
+ Rake::Task['rerdoc'].invoke
+ sh %{rsync -av doc/ jnunemaker@rubyforge.org:/var/www/gforge-projects/happymapper/docs}
end
-Rake::Task[:default].prerequisites.clear
-task :default => :spec
-Spec::Rake::SpecTask.new do |t|
- t.spec_files = FileList["spec/**/*_spec.rb"]
+Rake::RDocTask.new do |r|
+ r.title = 'HappyMapper Docs'
+ r.main = 'README.rdoc'
+ r.rdoc_dir = 'doc'
+ r.rdoc_files.include("README.rdoc", "lib/**/*.rb")
end
View
0  TODO
No changes.
View
47 happymapper.gemspec
@@ -1,34 +1,19 @@
-# -*- encoding: utf-8 -*-
+# encoding: UTF-8
+require File.expand_path('../lib/happymapper/version', __FILE__)
Gem::Specification.new do |s|
- s.name = %q{happymapper}
- s.version = "0.3.0"
+ s.name = 'happymapper'
+ s.homepage = 'May you have many happy mappings!'
+ s.summary = 'object to xml mapping library'
+ s.homepage = 'http://happymapper.rubyforge.org'
+ s.rubyforge_project = 'happymapper'
+ s.require_path = 'lib'
+ s.authors = ['John Nunemaker']
+ s.email = ['nunemaker@gmail.com']
+ s.version = HappyMapper::Version
+ s.platform = Gem::Platform::RUBY
+ s.files = Dir.glob("{examples,lib,spec}/**/*") + %w[License Rakefile README.rdoc History]
- s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
- s.authors = ["John Nunemaker"]
- s.date = %q{2009-10-04}
- s.description = %q{object to xml mapping library}
- s.email = %q{nunemaker@gmail.com}
- s.extra_rdoc_files = ["lib/happymapper/attribute.rb", "lib/happymapper/element.rb", "lib/happymapper/item.rb", "lib/happymapper/version.rb", "lib/happymapper.rb", "README", "TODO"]
- s.files = ["examples/amazon.rb", "examples/current_weather.rb", "examples/dashed_elements.rb", "examples/multi_street_address.rb", "examples/post.rb", "examples/twitter.rb", "happymapper.gemspec", "History", "How", "to", "release", "lib/happymapper/attribute.rb", "lib/happymapper/element.rb", "lib/happymapper/item.rb", "lib/happymapper/version.rb", "lib/happymapper.rb", "License", "Manifest", "Rakefile", "README", "spec/fixtures/address.xml", "spec/fixtures/analytics.xml", "spec/fixtures/commit.xml", "spec/fixtures/current_weather.xml", "spec/fixtures/family_tree.xml", "spec/fixtures/multi_street_address.xml", "spec/fixtures/multiple_namespaces.xml", "spec/fixtures/nested_namespaces.xml", "spec/fixtures/pita.xml", "spec/fixtures/posts.xml", "spec/fixtures/product_default_namespace.xml", "spec/fixtures/product_no_namespace.xml", "spec/fixtures/product_single_namespace.xml", "spec/fixtures/radar.xml", "spec/fixtures/statuses.xml", "spec/happymapper_attribute_spec.rb", "spec/happymapper_element_spec.rb", "spec/happymapper_item_spec.rb", "spec/happymapper_spec.rb", "spec/spec.opts", "spec/spec_helper.rb", "TODO", "website/css/common.css", "website/index.html"]
- s.homepage = %q{http://happymapper.rubyforge.org}
- s.post_install_message = %q{May you have many happy mappings!}
- s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Happymapper", "--main", "README"]
- s.require_paths = ["lib"]
- s.rubyforge_project = %q{happymapper}
- s.rubygems_version = %q{1.3.5}
- s.summary = %q{object to xml mapping library}
-
- 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_runtime_dependency(%q<libxml-ruby>, ["= 1.1.3"])
- else
- s.add_dependency(%q<libxml-ruby>, ["= 1.1.3"])
- end
- else
- s.add_dependency(%q<libxml-ruby>, ["= 1.1.3"])
- end
-end
+ s.add_dependency 'libxml-ruby', '= 1.1.3'
+ s.add_development_dependency 'rspec', '~> 1.3.0'
+end
Please sign in to comment.
Something went wrong with that request. Please try again.