Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

move db build script to sport.db.build

  • Loading branch information...
commit c3d7db472abce32f036bca9951b817fc6b30a002 1 parent 9626777
@geraldb geraldb authored
Showing with 22 additions and 71 deletions.
  1. +22 −3 README.md
  2. +0 −68 Rakefile
View
25 README.md
@@ -1,6 +1,9 @@
# sportdb - sport.db Command Line Tool in Ruby
+
+<!--
[![Build Status](https://secure.travis-ci.org/geraldb/sport.db.ruby.png?branch=master)](http://travis-ci.org/geraldb/sport.db.ruby)
+-->
* home :: [github.com/geraldb/sport.db.ruby](https://github.com/geraldb/sport.db.ruby)
* bugs :: [github.com/geraldb/sport.db.ruby/issues](https://github.com/geraldb/sport.db.ruby/issues)
@@ -18,7 +21,7 @@ SYNOPSIS
sportdb [global options] command [command options] [arguments...]
VERSION
- 1.6
+ 1.8
GLOBAL OPTIONS
-d, --dbpath=PATH - Database path (default: .)
@@ -95,6 +98,21 @@ EXAMPLES
~~~
+### `pull` Command
+
+~~~
+NAME
+ pull - Pull - Auto-update event fixtures from upstream online sources
+
+SYNOPSIS
+ sportdb [global options] pull
+
+EXAMPLES
+ sportdb pull
+~~~
+
+
+
## Install
Just install the gem:
@@ -106,8 +124,8 @@ Just install the gem:
- [`football.db`](https://github.com/openfootball) - free open public domain football (soccer) data for use in any (programming) language
- [`formula1.db`](https://github.com/geraldb/formula1.db) - free open public domain Formula 1/Formula One data for use in any (programming) language
-- [`sport.db`](https://github.com/geraldb/sport.db) - free open public domain sports data for use in any (programming) language
- [`ski.db`](https://github.com/geraldb/ski.db) - free open public domain Ski Alpin/Alpine Ski data for use in any (programming) language
+- [`sport.db`](https://github.com/geraldb/sport.db) - free open public domain sports data for use in any (programming) language
## Questions? Comments?
@@ -116,7 +134,8 @@ Send them along to the
[Open Sports & Friends Forum/Mailing List](http://groups.google.com/group/opensport).
Thanks!
+
## License
The `sportdb` scripts are dedicated to the public domain.
-Use it as you please with no restrictions whatsoever.
+Use it as you please with no restrictions whatsoever.
View
68 Rakefile
@@ -24,7 +24,6 @@ Hoe.spec 'sportdb' do
self.extra_deps = [
['worlddb', '>= 1.7'], # NB: worlddb already includes
- # - commander
# - logutils
# - textutils
['fetcher', '>= 0.3'],
@@ -53,70 +52,3 @@ EOS
end
-
-##############################
-## for testing
-##
-## NB: use rake -I ../world.db.ruby/lib -I ./lib sportdb:build
-
-namespace :sportdb do
-
- BUILD_DIR = "./build"
-
- SPORT_DB_PATH = "#{BUILD_DIR}/sport.db"
-
- DB_CONFIG = {
- :adapter => 'sqlite3',
- :database => SPORT_DB_PATH
- }
-
- directory BUILD_DIR
-
- task :clean do
- rm SPORT_DB_PATH if File.exists?( SPORT_DB_PATH )
- end
-
- task :env => BUILD_DIR do
- require 'worlddb' ### NB: for local testing use rake -I ./lib dev:test e.g. do NOT forget to add -I ./lib
- require 'sportdb'
- require 'logutils/db'
-
- LogUtils::Logger.root.level = :info
-
- pp DB_CONFIG
- ActiveRecord::Base.establish_connection( DB_CONFIG )
- end
-
- task :create => :env do
- LogDb.create
- WorldDb.create
- SportDb.create
- end
-
- task :importworld => :env do
- WorldDb.read_setup( 'setups/sport.db.admin', '../world.db', skip_tags: true ) # populate world tables
- # WorldDb.stats
- end
-
- task :importsport => :env do
- SportDb.read_setup( 'setups/all', '../football.db' )
- # SportDb.stats
- end
-
- task :deletesport => :env do
- SportDb.delete!
- end
-
-
-
- desc 'sportdb - build from scratch'
- task :build => [:clean, :create, :importworld, :importsport] do
- puts 'Done.'
- end
-
- desc 'sportdb - update'
- task :update => [:deletesport, :importsport] do
- puts 'Done.'
- end
-
-end # namespace :sportdb
Please sign in to comment.
Something went wrong with that request. Please try again.