usefuldb 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,5 +1,10 @@
1
1
  usefuldb gem CHANGELOG
2
2
 
3
+ ## Version 0.0.9
4
+ - Added require statements for rubygems to ensure the system will work on ruby 1.8.7
5
+ - Slightly updated README, COPYING and gemspec content
6
+ - Executing the usefuldb script with no parameters now displays usage information.
7
+
3
8
  ## Version 0.0.8
4
9
  - Fixed issue introduced in 0.0.7 with deleting elements
5
10
  - Added logging to many parts of the UsefulDB system to aid debugging, and provide support for verbose mode
data/COPYING CHANGED
@@ -1,4 +1,4 @@
1
- usefuldb - simple commands and or urls database for storage of useful information.
1
+ usefuldb - simple database for storage of useful commands and or urls.
2
2
 
3
3
  usefuldb is released under the creative commons attribution-sharealike 3.0 unported (cc by-sa 3.0) licence.
4
4
  for more information see: http://creativecommons.org/licenses/by-sa/3.0/
@@ -1,4 +1,4 @@
1
- ## Readme - v0.0.8
1
+ ## Readme - v0.0.9
2
2
 
3
3
  ### Install
4
4
  To run the unit tests use the following rake target
@@ -9,3 +9,6 @@ If you cloned the repository, or downloaded this gem as an archive, you can inst
9
9
 
10
10
  This gem is also stored on rubygems.org and can be installed with the following command:
11
11
  gem install usefuldb
12
+
13
+ ### Usage
14
+ To run the system, simply call the _usefuldb_ script at the commandline for instructions
data/Rakefile CHANGED
@@ -1,3 +1,4 @@
1
+ require 'rubygems'
1
2
  require 'bundler'
2
3
  Bundler::GemHelper.install_tasks
3
4
 
data/bin/usefuldb CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  # Require statements
4
+ require 'rubygems'
4
5
  require 'usefuldb'
5
6
  require 'optparse'
6
7
  require 'logger'
@@ -27,6 +28,7 @@ log.level = Logger::WARN
27
28
 
28
29
  options = {}
29
30
  optparse = nil
31
+ welcome = nil
30
32
 
31
33
  # Setup the system for use
32
34
  UsefulDB.setup(log)
@@ -38,6 +40,9 @@ begin
38
40
  UsefulDB - a simple command and URL database (#{UsefulDB::Version})
39
41
 
40
42
  Useage: usefuldb <searchtag1> <searchtag2> .. <searchtagN>
43
+ usefuldb -a
44
+ usefuldb -d
45
+ usefuldb -l
41
46
 
42
47
  WELCOME
43
48
 
@@ -61,15 +66,18 @@ WELCOME
61
66
  options[:v] = arg
62
67
  end
63
68
 
69
+ welcome = opts
70
+
64
71
  opts.on('-h', '--help', "Print out this message") do |arg|
65
72
  log.debug "help parameter passed"
66
73
  puts opts
67
74
  exit
68
75
  end
69
-
76
+
70
77
  end.parse!
71
78
  rescue OptionParser::InvalidOption => e
72
- puts e.message + "\n\nUseage: usefuldb -h or --help for help using the system"
79
+ puts "[" + e.message + "} Please see the following for usage instructions: \n"
80
+ puts welcome
73
81
  log.fatal e.message
74
82
  exit()
75
83
  end
@@ -83,7 +91,7 @@ if options.empty?
83
91
  log.debug "Checking if ARGV is empty"
84
92
  if ARGV.empty?
85
93
  log.debug "No parameters of any kind were passed, exiting"
86
- puts "Useage: usefuldb -h or --help for help using the system"
94
+ puts welcome
87
95
  exit()
88
96
  else
89
97
  log.debug "At least one non flag parameter was passed, launching the search system"
@@ -1,3 +1,4 @@
1
+ require 'rubygems'
1
2
  require 'usefuldb'
2
3
 
3
4
  module UsefulDB
data/lib/usefuldb/gui.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require 'rubygems'
1
2
  require 'usefuldb/utilities'
2
3
 
3
4
  module UsefulDB
@@ -1,3 +1,4 @@
1
+ require 'rubygems'
1
2
  require 'yaml'
2
3
 
3
4
  module UsefulDB
@@ -1,3 +1,4 @@
1
+ require 'rubygems'
1
2
  require 'usefuldb/exceptions'
2
3
  require 'logger'
3
4
 
@@ -1,3 +1,4 @@
1
+ require 'rubygems'
1
2
  require 'usefuldb'
2
3
 
3
4
  module UsefulDB
@@ -7,7 +8,7 @@ module UsefulDB
7
8
 
8
9
  MAJOR = 0 unless defined? MAJOR
9
10
  MINOR = 0 unless defined? MINOR
10
- PATCH = 8 unless defined? PATCH
11
+ PATCH = 9 unless defined? PATCH
11
12
 
12
13
  def to_s
13
14
  [MAJOR, MINOR, PATCH].compact.join('.')
data/lib/usefuldb.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require 'rubygems'
1
2
  require 'usefuldb/settings'
2
3
  require 'usefuldb/utilities'
3
4
  require 'usefuldb/exceptions'
data/resources/db.yaml CHANGED
File without changes
data/test/main_test.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require 'rubygems'
1
2
  require 'test/unit'
2
3
  require 'rack/test'
3
4
  require 'fileutils'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: usefuldb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -59,8 +59,8 @@ dependencies:
59
59
  - - ! '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
- description: usefuldb is a simple database which is designed to store useful commands
63
- and URLs
62
+ description: Accessible through a commandline script, UsefulDB allows the user to
63
+ store information about a useful command or useful url
64
64
  email:
65
65
  - 00346128@mail.wit.ie
66
66
  executables:
@@ -75,17 +75,17 @@ files:
75
75
  - lib/usefuldb/exceptions.rb
76
76
  - lib/usefuldb/settings.rb
77
77
  - bin/usefuldb
78
+ - README.md
78
79
  - COPYING
79
80
  - CHANGELOG
80
81
  - Rakefile
81
- - README
82
82
  - resources/db.yaml
83
83
  - test/main_test.rb
84
84
  homepage: http://rubygems.org/gems/usefuldb
85
85
  licenses:
86
86
  - CC BY-SA 3.0
87
- post_install_message: ! " \nusefuldb - simple commands and or urls database for storage
88
- of useful information.\n\nusefuldb is released under the creative commons attribution-sharealike
87
+ post_install_message: ! " \nusefuldb - simple database for storage of useful commands
88
+ and or urls.\n\nusefuldb is released under the creative commons attribution-sharealike
89
89
  3.0 unported (cc by-sa 3.0) licence.\nfor more information see: http://creativecommons.org/licenses/by-sa/3.0/\n\n"
90
90
  rdoc_options: []
91
91
  require_paths:
@@ -107,5 +107,5 @@ rubyforge_project:
107
107
  rubygems_version: 1.8.23
108
108
  signing_key:
109
109
  specification_version: 3
110
- summary: A simple commands and URLs database for storage of useful information
110
+ summary: usefuldb - simple database for storage of useful commands and or urls.
111
111
  test_files: []