Skip to content

Commit

Permalink
Made into a gem
Browse files Browse the repository at this point in the history
  • Loading branch information
aiwilliams committed Dec 15, 2008
1 parent c906fba commit d213812
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 16 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -3,4 +3,5 @@ sqlite3.db
environments
vendor
tmp
.tm_last_run_ruby
.tm_last_run_ruby
pkg
6 changes: 6 additions & 0 deletions History.txt
@@ -0,0 +1,6 @@
=== 1.0.0 / 2008-12-15

* 1 major enhancement

* Birthday!

5 changes: 5 additions & 0 deletions Manifest.txt
@@ -0,0 +1,5 @@
History.txt
Manifest.txt
README.txt
Rakefile
lib/dataset.rb
File renamed without changes.
27 changes: 12 additions & 15 deletions Rakefile
@@ -1,23 +1,20 @@
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + '/vendor/plugins/rspec/lib'))
# -*- ruby -*-

require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
$:.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

desc "Generate rdoc"
Rake::RDocTask.new(:doc) do |r|
r.title = "Dataset"
r.main = "README"
r.options << "--line-numbers"
r.rdoc_files.include("README", "LICENSE", "lib/**/*.rb")
r.rdoc_dir = "doc"
end

task :default => :spec
1 change: 1 addition & 0 deletions lib/dataset.rb
@@ -1,3 +1,4 @@
require 'dataset/version'
require 'dataset/base'
require 'dataset/database/base'
require 'dataset/database/mysql'
Expand Down
9 changes: 9 additions & 0 deletions lib/dataset/version.rb
@@ -0,0 +1,9 @@
module Dataset
module VERSION #:nodoc:
MAJOR = 1
MINOR = 0
TINY = 0

STRING = [MAJOR, MINOR, TINY].join('.')
end
end

0 comments on commit d213812

Please sign in to comment.