Skip to content
Browse files

Moved to jeweler for gem management.

  • Loading branch information...
1 parent b469289 commit d0b04ea011db393eff1fdd1785efe5b3d4e42123 @aiwilliams aiwilliams committed Feb 14, 2009
Showing with 63 additions and 39 deletions.
  1. +16 −0 CHANGELOG
  2. +0 −9 History.txt
  3. +1 −1 LICENSE
  4. +0 −21 Manifest.txt
  5. 0 README.txt → README
  6. +15 −8 Rakefile
  7. +4 −0 VERSION.yml
  8. +27 −0 dataset.gemspec
View
16 CHANGELOG
@@ -0,0 +1,16 @@
+*1.1.0 [UPCOMING RELEASE] (???)
+
+* STI is better supported for inserting and finding records [aiwilliams]
+
+ class Place < ActiveRecord::Base; end
+ class State < Place; end
+
+ create_record(State, :state) # no need to define the 'type' column value
+ states(:state) == places(:state) # read with the table name or class name pluralized
+
+* Moved to jeweler for much cleaner, github embracing gem building [aiwilliams]
+
+
+*1.0.0 [Scenarios Replacement] (December 15, 2008)
+
+* Drop-in replacement for Scenarios plugin of old [aiwilliams]
View
9 History.txt
@@ -1,9 +0,0 @@
-=== 1.0.0 / 2008-12-15
-
-* 1 major enhancement
-
- * Birthday!
-
-===
-
-* Sub-contexts get instance variables from ancestors
View
2 LICENSE
@@ -1,4 +1,4 @@
-Copyright (c) 2008, Adam Williams
+Copyright (c) 2008-2009, Adam Williams
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
View
21 Manifest.txt
@@ -1,21 +0,0 @@
-History.txt
-Manifest.txt
-README.txt
-Rakefile
-lib/dataset.rb
-lib/dataset/base.rb
-lib/dataset/collection.rb
-lib/dataset/database/base.rb
-lib/dataset/database/mysql.rb
-lib/dataset/database/postgresql.rb
-lib/dataset/database/sqlite3.rb
-lib/dataset/extensions/rspec.rb
-lib/dataset/extensions/test_unit.rb
-lib/dataset/load.rb
-lib/dataset/record/fixture.rb
-lib/dataset/record/meta.rb
-lib/dataset/record/model.rb
-lib/dataset/resolver.rb
-lib/dataset/session.rb
-lib/dataset/session_binding.rb
-lib/dataset/version.rb
View
0 README.txt → README
File renamed without changes.
View
23 Rakefile
@@ -1,20 +1,27 @@
-# -*- ruby -*-
-
$:.unshift(File.join(File.dirname(__FILE__), 'lib'))
require 'rubygems'
-require 'hoe'
-require 'dataset/version'
require 'spec/rake/spectask'
-Hoe.new('dataset', Dataset::VERSION::STRING) do |p|
- p.developer('Adam Williams', 'adam@thewilliams.ws')
-end
-
task :default => :spec
desc "Run all specs"
Spec::Rake::SpecTask.new do |t|
t.spec_files = FileList['spec/**/*_spec.rb']
t.spec_opts = ['--options', 'spec/spec.opts']
end
+
+begin
+ require 'jeweler'
+ Jeweler::Tasks.new do |s|
+ s.name = 'dataset'
+ s.summary = 'A simple API for creating and finding sets of data in your database, built on ActiveRecord.'
+ s.email = 'adam@thewilliams.ws'
+ s.files = FileList["[A-Z]*", "{lib,tasks}/**/*", "plugit/descriptor.rb"].exclude("tmp")
+ s.homepage = "http://github.com/aiwilliams/dataset"
+ s.description = s.summary
+ s.authors = ['Adam Williams']
+ end
+rescue LoadError
+ puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
+end
View
4 VERSION.yml
@@ -0,0 +1,4 @@
+---
+:minor: 1
+:patch: 0
+:major: 1
View
27 dataset.gemspec
@@ -0,0 +1,27 @@
+# -*- encoding: utf-8 -*-
+
+Gem::Specification.new do |s|
+ s.name = %q{dataset}
+ s.version = "1.1.0"
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.authors = ["Adam Williams"]
+ s.date = %q{2009-02-14}
+ s.description = %q{A simple API for creating and finding sets of data in your database, built on ActiveRecord.}
+ s.email = %q{adam@thewilliams.ws}
+ s.files = ["CHANGELOG", "LICENSE", "Rakefile", "README", "TODO", "VERSION.yml", "lib/dataset", "lib/dataset/base.rb", "lib/dataset/collection.rb", "lib/dataset/database", "lib/dataset/database/base.rb", "lib/dataset/database/mysql.rb", "lib/dataset/database/postgresql.rb", "lib/dataset/database/sqlite3.rb", "lib/dataset/extensions", "lib/dataset/extensions/rspec.rb", "lib/dataset/extensions/test_unit.rb", "lib/dataset/instance_methods.rb", "lib/dataset/load.rb", "lib/dataset/record", "lib/dataset/record/fixture.rb", "lib/dataset/record/meta.rb", "lib/dataset/record/model.rb", "lib/dataset/resolver.rb", "lib/dataset/session.rb", "lib/dataset/session_binding.rb", "lib/dataset/version.rb", "lib/dataset.rb", "tasks/dataset.rake", "plugit/descriptor.rb"]
+ s.homepage = %q{http://github.com/aiwilliams/dataset}
+ s.require_paths = ["lib"]
+ s.rubygems_version = %q{1.3.1}
+ s.summary = %q{A simple API for creating and finding sets of data in your database, built on ActiveRecord.}
+
+ 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

0 comments on commit d0b04ea

Please sign in to comment.
Something went wrong with that request. Please try again.