Skip to content

Commit

Permalink
Moved to jeweler for gem management.
Browse files Browse the repository at this point in the history
  • Loading branch information
aiwilliams committed Feb 14, 2009
1 parent b469289 commit d0b04ea
Show file tree
Hide file tree
Showing 8 changed files with 63 additions and 39 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG
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]
9 changes: 0 additions & 9 deletions History.txt

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -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
Expand Down
21 changes: 0 additions & 21 deletions Manifest.txt

This file was deleted.

File renamed without changes.
23 changes: 15 additions & 8 deletions Rakefile
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
4 changes: 4 additions & 0 deletions VERSION.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
:minor: 1
:patch: 0
:major: 1
27 changes: 27 additions & 0 deletions dataset.gemspec
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

0 comments on commit d0b04ea

Please sign in to comment.