forked from aiwilliams/dataset
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved to jeweler for gem management.
- Loading branch information
1 parent
b469289
commit d0b04ea
Showing
8 changed files
with
63 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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', '[email protected]') | ||
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 = '[email protected]' | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
:minor: 1 | ||
:patch: 0 | ||
:major: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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{[email protected]} | ||
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 |