diff --git a/CHANGELOG b/CHANGELOG new file mode 100644 index 0000000..b050d6a --- /dev/null +++ b/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] \ No newline at end of file diff --git a/History.txt b/History.txt deleted file mode 100644 index af8281a..0000000 --- a/History.txt +++ /dev/null @@ -1,9 +0,0 @@ -=== 1.0.0 / 2008-12-15 - -* 1 major enhancement - - * Birthday! - -=== - -* Sub-contexts get instance variables from ancestors \ No newline at end of file diff --git a/LICENSE b/LICENSE index f1c507f..79e1b46 100644 --- a/LICENSE +++ b/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 diff --git a/Manifest.txt b/Manifest.txt deleted file mode 100644 index fbee7c2..0000000 --- a/Manifest.txt +++ /dev/null @@ -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 diff --git a/README.txt b/README similarity index 100% rename from README.txt rename to README diff --git a/Rakefile b/Rakefile index 88d94d4..374b657 100644 --- a/Rakefile +++ b/Rakefile @@ -1,16 +1,8 @@ -# -*- 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" @@ -18,3 +10,18 @@ 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 \ No newline at end of file diff --git a/VERSION.yml b/VERSION.yml new file mode 100644 index 0000000..8af8eaa --- /dev/null +++ b/VERSION.yml @@ -0,0 +1,4 @@ +--- +:minor: 1 +:patch: 0 +:major: 1 diff --git a/dataset.gemspec b/dataset.gemspec new file mode 100644 index 0000000..13de8e8 --- /dev/null +++ b/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