jah 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. data/VERSION +1 -1
  2. data/jah.gemspec +2 -2
  3. data/lib/jah.rb +5 -11
  4. data/lib/jah/opt.rb +1 -1
  5. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.5
1
+ 0.0.6
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{jah}
8
- s.version = "0.0.5"
8
+ s.version = "0.0.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Marcos Piccinini"]
12
- s.date = %q{2009-11-26}
12
+ s.date = %q{2010-01-11}
13
13
  s.default_executable = %q{jah}
14
14
  s.description = %q{Talk to your machines. Like a God.}
15
15
  s.email = %q{x@nofxx.com}
data/lib/jah.rb CHANGED
@@ -3,7 +3,8 @@ require 'optparse'
3
3
  begin
4
4
  require 'i18n'
5
5
  rescue LoadError
6
- puts "Gem i18n not found. Try `gem install i18n`"
6
+ puts "Gem 'i18n' not found, try `gem install i18n`"
7
+ exit
7
8
  end
8
9
  #autoload :Drb, 'drb'
9
10
  require 'jah/opt'
@@ -14,16 +15,9 @@ require 'jah/history'
14
15
  autoload :God, 'god'
15
16
  autoload :Prayer, "jah/prayer"
16
17
  require 'jah/command'
17
- require "jah/commands/mem"
18
- require "jah/commands/cpu"
19
- require "jah/commands/who"
20
- require "jah/commands/disk"
21
- require "jah/commands/prok"
22
- require "jah/commands/netstat"
23
- require "jah/commands/admin"
24
- require "jah/commands/status"
25
- require "jah/commands/extra"
26
- require "jah/commands/packages"
18
+ %w{mem cpu who disk prok netstat admin status extra packages}.each do |inc|
19
+ require "jah/commands/#{inc}"
20
+ end
27
21
  require "jah/act_pkg"
28
22
  require "jah/act_pkg/base"
29
23
  require "jah/act_pkg/pkg"
@@ -76,7 +76,7 @@ module Jah
76
76
  elsif !(val = @hash[key]).nil?
77
77
  val
78
78
  else
79
- raise "No method #{ val} #{key}"
79
+ raise "No method #{val} #{key}"
80
80
  end
81
81
  end
82
82
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jah
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcos Piccinini
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-26 00:00:00 -02:00
12
+ date: 2010-01-11 00:00:00 -02:00
13
13
  default_executable: jah
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency