Browse files

added LICENSE, README, jeweler rake tasks

  • Loading branch information...
1 parent 22ae5cb commit 6959e64ef962d710a4c3e675013c904803636d9a @ricardochimal committed Feb 6, 2009
Showing with 92 additions and 1 deletion.
  1. +20 −0 LICENSE
  2. +23 −0 README.rdoc
  3. +45 −1 Rakefile
  4. +4 −0 VERSION.yml
View
20 LICENSE
@@ -0,0 +1,20 @@
+Copyright (c) 2008 Ricardo Chimal, Jr
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
23 README.rdoc
@@ -0,0 +1,23 @@
+= Taps -- simple database import/export app
+
+A simple database agnostic import/export app to transfer data to/from a remote database.
+
+== Usage: Server
+
+ $ taps server postgres://localdbuser:localdbpass@localhost/dbname user password
+
+== Usage: Client
+
+ $ taps receive postgres://dbuser:dbpassword@localhost/dbname http://user:password@example.com:5000
+
+== Meta
+
+Maintained by Ricardo Chimal, Jr. (ricardo at heroku dot com)
+
+Written by Ricardo Chimal, Jr. (ricardo at heroku dot com) and Adam Wiggins (adam at heroku dot com)
+
+Early research and inspiration by Blake Mizerany
+
+Released under the MIT License: http://www.opensource.org/licenses/mit-license.php
+
+http://github.com/ricardochimal/taps
View
46 Rakefile
@@ -1,6 +1,50 @@
+begin
+ require 'jeweler'
+ Jeweler::Tasks.new do |s|
+ s.name = "taps"
+ s.summary = %Q{simple database import/export app}
+ s.email = "ricardo@heroku.com"
+ s.homepage = "http://github.com/ricardochimal/taps"
+ s.description = "A simple database agnostic import/export app to transfer data to/from a remote database."
+ s.authors = ["Ricardo Chimal, Jr.", "Adam Wiggins"]
+
+ s.add_dependency 'sinatra', '~> 0.9.0'
+ s.add_dependency 'activerecord', '= 2.2.2'
+ s.add_dependency 'thor', '= 0.9.9'
+ s.add_dependency 'rest-client', '~> 0.9.0'
+ s.add_dependency 'sequel', '~> 2.10.0'
+
+ s.rubygems_version = '1.3.1'
+
+ s.executables = ['taps']
+ end
+rescue LoadError
+ puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
+end
+
+require 'rake/rdoctask'
+Rake::RDocTask.new do |rdoc|
+ rdoc.rdoc_dir = 'rdoc'
+ rdoc.title = 'taps'
+ rdoc.options << '--line-numbers' << '--inline-source'
+ rdoc.rdoc_files.include('README*')
+ rdoc.rdoc_files.include('lib/**/*.rb')
+end
+
+begin
+ require 'rcov/rcovtask'
+ Rcov::RcovTask.new do |t|
+ t.libs << 'spec'
+ t.test_files = FileList['spec/*_spec.rb']
+ t.verbose = true
+ end
+rescue LoadError
+ puts "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
+end
+
desc "Run all specs"
task :spec do
- system "bacon #{File.dirname(__FILE__)}/spec/*_spec.rb"
+ system "bacon #{File.dirname(__FILE__)}/spec/*_spec.rb"
end
task :default => :spec
View
4 VERSION.yml
@@ -0,0 +1,4 @@
+---
+:major: 0
+:minor: 2
+:patch: 0

0 comments on commit 6959e64

Please sign in to comment.