Permalink
Browse files

converting to a gem

  • Loading branch information...
1 parent b8667bc commit e984a8521dc1a52a18f4099bf80e304f2cca9c92 @twoism twoism committed Dec 17, 2009
Showing with 77 additions and 2 deletions.
  1. +18 −2 Rakefile
  2. +1 −0 VERSION
  3. BIN pkg/versioned-0.1.0.gem
  4. +58 −0 versioned.gemspec
View
@@ -1,10 +1,26 @@
require 'rubygems'
require 'rake'
require 'rake/testtask'
-
+require 'rake/rdoctask'
+
+begin
+ require 'jeweler'
+ Jeweler::Tasks.new do |g|
+ g.name = 'versioned'
+ g.summary = %(Versioning for MongoMapper)
+ g.description = %(Versioning for MongoMapper)
+ g.email = 'signalstatic@gmail.com'
+ g.homepage = 'http://github.com/twoism/versioned'
+ g.authors = %w(twoism toastyapps)
+ end
+ Jeweler::GemcutterTasks.new
+rescue LoadError
+ puts 'Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com'
+end
+
Rake::TestTask.new do |t|
t.libs = %w(test)
t.pattern = 'test/**/*_test.rb'
end
-
+
task :default => :test
View
@@ -0,0 +1 @@
+0.1.0
Binary file not shown.
View
@@ -0,0 +1,58 @@
+# 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 = %q{versioned}
+ s.version = "0.1.0"
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.authors = ["twoism", "toastyapps"]
+ s.date = %q{2009-12-17}
+ s.description = %q{Versioning for MongoMapper}
+ s.email = %q{signalstatic@gmail.com}
+ s.extra_rdoc_files = [
+ "README.markdown"
+ ]
+ s.files = [
+ "README.markdown",
+ "Rakefile",
+ "lib/version.rb",
+ "lib/versioned.rb",
+ "test/between_test.rb",
+ "test/changes_test.rb",
+ "test/comparable_test.rb",
+ "test/creation_test.rb",
+ "test/latest_changes_test.rb",
+ "test/revert_test.rb",
+ "test/schema.rb",
+ "test/test_helper.rb"
+ ]
+ s.homepage = %q{http://github.com/twoism/versioned}
+ s.rdoc_options = ["--charset=UTF-8"]
+ s.require_paths = ["lib"]
+ s.rubygems_version = %q{1.3.5}
+ s.summary = %q{Versioning for MongoMapper}
+ s.test_files = [
+ "test/between_test.rb",
+ "test/changes_test.rb",
+ "test/comparable_test.rb",
+ "test/creation_test.rb",
+ "test/latest_changes_test.rb",
+ "test/revert_test.rb",
+ "test/schema.rb",
+ "test/test_helper.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
+ else
+ end
+ else
+ end
+end
+

0 comments on commit e984a85

Please sign in to comment.