weasel-the-memory-watcher 1.0.1 → 1.0.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/VERSION +1 -1
- data/bin/weasel +4 -4
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.2
|
data/bin/weasel
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
#!/bin/sh
|
2
|
-
#exec ruby -x "$0" "$@"
|
3
|
-
#!ruby -w
|
4
|
-
require 'weasel'
|
5
1
|
if __FILE__ == $0
|
6
2
|
require 'optparse'
|
7
3
|
options = {}
|
8
4
|
OptionParser.new do |opts|
|
9
5
|
opts.banner = "Usage: #{__FILE__} [options]"
|
6
|
+
opts.on( '-h', '--help', 'Display this screen' ) do
|
7
|
+
puts opts
|
8
|
+
exit
|
9
|
+
end
|
10
10
|
|
11
11
|
opts.on("--callback rubycode",String, "ruby code to exectute - has \#{pid} avalible") do |v|
|
12
12
|
options[:callback] = lambda {|pid| # may be evil
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: weasel-the-memory-watcher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 2
|
10
|
+
version: 1.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Curtis Schofield
|