Permalink
Browse files

update readme n script

  • Loading branch information...
1 parent 871d565 commit 1b9d110939b1f9199cc6bbaf7737e073b150d89a @geraldb geraldb committed Dec 2, 2012
Showing with 14 additions and 38 deletions.
  1. +4 −31 .gitignore
  2. +5 −3 README.md
  3. +5 −4 Rakefile
View
@@ -1,37 +1,10 @@
-*.gem
-*.rbc
-.bundle
-.config
-coverage
-InstalledFiles
-lib/bundler/man
-pkg
-rdoc
-spec/reports
-test/tmp
-test/version_tmp
-tmp
-
-# YARD artifacts
-.yardoc
-_yardoc
-doc/
-
+###################################
# ignore komodo project files
*.kpf
-########################
-# ignore ruby outputs in script folder
-
-script/pkg
-script/tmp
-
-#######################
-# ignore copied db files in script folder under data (do NOT checkin twice)
-#
-# NB: hoe tasks exclude data automatic from rdoc_extras (thus, lets use data NOT db)
-
-script/data
+#####
+# ignore build folder (copy to root for checkin)
+build/
View
@@ -1,7 +1,7 @@
Welcome to `world.db`
=====================
-A Free Open World Database & Schema
+A free open world database & schema for use in any language
## Usage
@@ -22,6 +22,8 @@ The `world.db` includes the following tables:
* countries
* regions
* cities
+* taggings
+* tags
[add schema pic here]
@@ -112,15 +114,15 @@ That's it.
The `worlddb` command line tool lets you import fixtures (countries, regions, cities)
in plain text. Example:
-[`america/countries.txt`](https://github.com/geraldb/world.db/blob/master/db/america/countries.txt):
+[`america/countries.txt`](https://github.com/geraldb/world.db/blob/master/america/countries.txt):
```
ca, Canada, CAN, 9984670, 34278406, north america|en|fr
mx, Mexico, MEX, 1972550, 112322757, north america|en
us, United States, USA, 9629091, 314167157, north america|es
```
-[`europe/at/cities.txt`](https://github.com/geraldb/world.db/blob/master/db/europe/at/cities.txt):
+[`europe/at/cities.txt`](https://github.com/geraldb/world.db/blob/master/europe/at/cities.txt):
```
wien, Wien|Vienna, region:wien, 1664146
View
@@ -5,8 +5,8 @@ require 'pp'
require 'worlddb'
-BUILD_DIR = "."
-DATA_DIR = "./db"
+BUILD_DIR = "./build"
+DATA_DIR = "."
WORLD_DB_PATH = "#{BUILD_DIR}/world.db"
@@ -17,13 +17,14 @@ DB_CONFIG = {
}
+task :default => 'release'
-task :default => 'release'
+directory BUILD_DIR # make sure it exists
desc "clean db build for release"
-task :release => [:clean,:create,:import] do
+task :release => [BUILD_DIR, :clean,:create,:import] do
puts "hello from world.db release build script"
end

0 comments on commit 1b9d110

Please sign in to comment.