Skip to content

Commit

Permalink
Released v0.0.9
Browse files Browse the repository at this point in the history
- Added require statements for rubygems to ensure the system will work on ruby 1.8.7
- Slightly updated README, COPYING and gemspec content
- Executing the usefuldb script with no parameters now displays usage information.
  • Loading branch information
David Kirwan committed Oct 10, 2012
1 parent edd0b0f commit f3e34e4
Show file tree
Hide file tree
Showing 13 changed files with 36 additions and 11 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG
@@ -1,5 +1,10 @@
usefuldb gem CHANGELOG

## Version 0.0.9
- Added require statements for rubygems to ensure the system will work on ruby 1.8.7
- Slightly updated README, COPYING and gemspec content
- Executing the usefuldb script with no parameters now displays usage information.

## Version 0.0.8
- Fixed issue introduced in 0.0.7 with deleting elements
- Added logging to many parts of the UsefulDB system to aid debugging, and provide support for verbose mode
Expand Down
2 changes: 1 addition & 1 deletion COPYING
@@ -1,4 +1,4 @@
usefuldb - simple commands and or urls database for storage of useful information.
usefuldb - simple database for storage of useful commands and or urls.

usefuldb is released under the creative commons attribution-sharealike 3.0 unported (cc by-sa 3.0) licence.
for more information see: http://creativecommons.org/licenses/by-sa/3.0/
5 changes: 4 additions & 1 deletion README → README.md
@@ -1,4 +1,4 @@
## Readme - v0.0.8
## Readme - v0.0.9

### Install
To run the unit tests use the following rake target
Expand All @@ -9,3 +9,6 @@ If you cloned the repository, or downloaded this gem as an archive, you can inst

This gem is also stored on rubygems.org and can be installed with the following command:
gem install usefuldb

### Usage
To run the system, simply call the _usefuldb_ script at the commandline for instructions
1 change: 1 addition & 0 deletions Rakefile
@@ -1,3 +1,4 @@
require 'rubygems'
require 'bundler'
Bundler::GemHelper.install_tasks

Expand Down
14 changes: 11 additions & 3 deletions bin/usefuldb
@@ -1,6 +1,7 @@
#!/usr/bin/env ruby

# Require statements
require 'rubygems'
require 'usefuldb'
require 'optparse'
require 'logger'
Expand All @@ -27,6 +28,7 @@ log.level = Logger::WARN

options = {}
optparse = nil
welcome = nil

# Setup the system for use
UsefulDB.setup(log)
Expand All @@ -38,6 +40,9 @@ begin
UsefulDB - a simple command and URL database (#{UsefulDB::Version})
Useage: usefuldb <searchtag1> <searchtag2> .. <searchtagN>
usefuldb -a
usefuldb -d
usefuldb -l
WELCOME

Expand All @@ -61,15 +66,18 @@ WELCOME
options[:v] = arg
end

welcome = opts

opts.on('-h', '--help', "Print out this message") do |arg|
log.debug "help parameter passed"
puts opts
exit
end

end.parse!
rescue OptionParser::InvalidOption => e
puts e.message + "\n\nUseage: usefuldb -h or --help for help using the system"
puts "[" + e.message + "} Please see the following for usage instructions: \n"
puts welcome
log.fatal e.message
exit()
end
Expand All @@ -83,7 +91,7 @@ if options.empty?
log.debug "Checking if ARGV is empty"
if ARGV.empty?
log.debug "No parameters of any kind were passed, exiting"
puts "Useage: usefuldb -h or --help for help using the system"
puts welcome
exit()
else
log.debug "At least one non flag parameter was passed, launching the search system"
Expand Down
1 change: 1 addition & 0 deletions lib/usefuldb.rb
@@ -1,3 +1,4 @@
require 'rubygems'
require 'usefuldb/settings'
require 'usefuldb/utilities'
require 'usefuldb/exceptions'
Expand Down
1 change: 1 addition & 0 deletions lib/usefuldb/exceptions.rb
@@ -1,3 +1,4 @@
require 'rubygems'
require 'usefuldb'

module UsefulDB
Expand Down
1 change: 1 addition & 0 deletions lib/usefuldb/gui.rb
@@ -1,3 +1,4 @@
require 'rubygems'
require 'usefuldb/utilities'

module UsefulDB
Expand Down
1 change: 1 addition & 0 deletions lib/usefuldb/settings.rb
@@ -1,3 +1,4 @@
require 'rubygems'
require 'yaml'

module UsefulDB
Expand Down
1 change: 1 addition & 0 deletions lib/usefuldb/utilities.rb
@@ -1,3 +1,4 @@
require 'rubygems'
require 'usefuldb/exceptions'
require 'logger'

Expand Down
3 changes: 2 additions & 1 deletion lib/usefuldb/version.rb
@@ -1,3 +1,4 @@
require 'rubygems'
require 'usefuldb'

module UsefulDB
Expand All @@ -7,7 +8,7 @@ class << self

MAJOR = 0 unless defined? MAJOR
MINOR = 0 unless defined? MINOR
PATCH = 8 unless defined? PATCH
PATCH = 9 unless defined? PATCH

def to_s
[MAJOR, MINOR, PATCH].compact.join('.')
Expand Down
1 change: 1 addition & 0 deletions test/main_test.rb
@@ -1,3 +1,4 @@
require 'rubygems'
require 'test/unit'
require 'rack/test'
require 'fileutils'
Expand Down
11 changes: 6 additions & 5 deletions usefuldb.gemspec
@@ -1,15 +1,16 @@
# -*- encoding: utf-8 -*-
#$:.push File.expand_path("../lib", __FILE__)
require File.expand_path('../lib/usefuldb/version', __FILE__)
require 'rubygems'
require 'rake'



Gem::Specification.new do |s|
s.name = 'usefuldb'
s.version = UsefulDB::Version
s.version = '0.0.9'
s.date = '2012-08-01'
s.summary = "A simple commands and URLs database for storage of useful information"
s.description = "usefuldb is a simple database which is designed to store useful commands and URLs"
s.summary = "usefuldb - simple database for storage of useful commands and or urls."
s.description = "Accessible through a commandline script, UsefulDB allows the user to store information about a useful command or useful url"
s.authors = ["David Kirwan"]
s.email = ['00346128@mail.wit.ie']
s.require_paths = ["lib"]
Expand All @@ -23,7 +24,7 @@ Gem::Specification.new do |s|
s.executables << 'usefuldb'
s.post_install_message = <<-INSTALL
usefuldb - simple commands and or urls database for storage of useful information.
usefuldb - simple database for storage of useful commands and or urls.
usefuldb is released under the creative commons attribution-sharealike 3.0 unported (cc by-sa 3.0) licence.
for more information see: http://creativecommons.org/licenses/by-sa/3.0/
Expand Down

0 comments on commit f3e34e4

Please sign in to comment.