smsinabox 0.2.1 → 0.2.2

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.
data/bin/sms-credit CHANGED
@@ -31,8 +31,8 @@ BANNER
31
31
  opts.on("-c", "--config=path/to/config", String,
32
32
  "Path to alternate config file (defaults to ~/.smsinabox)") { |m| OPTIONS[:config] = m }
33
33
  opts.on("--nagios", "Enable nagios mode") { OPTIONS[:nagios] = true }
34
- opts.on("--warn=N", "Number of credit for warning, default 100 (nagios-mode only)") { |w| OPTIONS[:warn] = w }
35
- opts.on("--critical=N", "Number of credit for critical, default 50 (nagios-mode only)") { |c| OPTIONS[:crit] = c }
34
+ opts.on("--warn=N", Integer, "Number of credit for warning, default 100 (nagios-mode only)") { |w| OPTIONS[:warn] = w }
35
+ opts.on("--critical=N", Integer, "Number of credit for critical, default 50 (nagios-mode only)") { |c| OPTIONS[:crit] = c }
36
36
  opts.on("-h", "--help",
37
37
  "Show this help message.") { puts opts; exit }
38
38
  opts.parse!(ARGV)
data/lib/smsinabox.rb CHANGED
@@ -12,7 +12,7 @@ end
12
12
 
13
13
  module Smsinabox
14
14
 
15
- VERSION = '0.2.1'
15
+ VERSION = '0.2.2'
16
16
 
17
17
  autoload :Exceptions, 'smsinabox/exceptions'
18
18
  autoload :Message, 'smsinabox/message'
data/smsinabox.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{smsinabox}
8
- s.version = "0.2.1"
8
+ s.version = "0.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["kenneth.kalmer@gmail.com"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smsinabox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - kenneth.kalmer@gmail.com