Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Made into a gem

  • Loading branch information...
commit d213812b5a2637fcb51812bd2fcbefe17b196125 1 parent c906fba
@aiwilliams authored
View
3  .gitignore
@@ -3,4 +3,5 @@ sqlite3.db
environments
vendor
tmp
-.tm_last_run_ruby
+.tm_last_run_ruby
+pkg
View
6 History.txt
@@ -0,0 +1,6 @@
+=== 1.0.0 / 2008-12-15
+
+* 1 major enhancement
+
+ * Birthday!
+
View
5 Manifest.txt
@@ -0,0 +1,5 @@
+History.txt
+Manifest.txt
+README.txt
+Rakefile
+lib/dataset.rb
View
0  README → README.txt
File renamed without changes
View
27 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
View
1  lib/dataset.rb
@@ -1,3 +1,4 @@
+require 'dataset/version'
require 'dataset/base'
require 'dataset/database/base'
require 'dataset/database/mysql'
View
9 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
Please sign in to comment.
Something went wrong with that request. Please try again.