rubyhook 0.1.1 → 0.2.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 993501a2b1c3d468492e238a23e2073a6a00024e
4
- data.tar.gz: bb8a560a9990f69756461b7600adfbbfabdc0f5b
3
+ metadata.gz: 276d5db8db9790d9ab736272105a333b131a52ec
4
+ data.tar.gz: 3e9de949e304e3da106b63b9bf59da6d2c14be0e
5
5
  SHA512:
6
- metadata.gz: 1bdd584ee7d9a99fe581393012e43fbc82428bf5ac13c45526464eeae0d5463cba24beef18d9a265a70d9f69690d7b0bbb6502627bf2802706c284c3c39fd359
7
- data.tar.gz: bdf9bb4981e87857ef95ca14cbc15327e5241545d889d6ef927d20930e4091defd76830d04329ab8c9b22e4d292092c1b5f42000f4ddbb608b97cbd359cdb491
6
+ metadata.gz: d9919429f8ee6dcc363085d7d26adb1aa63a3f09282e5e2fe7257d4b7a98b4621907ef2cdf76d592c91aa9e8b631433c01adfc15929d2f1539ccc7f466eea671
7
+ data.tar.gz: 59601b458f70a7641206906b55a018b2e17b358c759d2a3632ed035c20e8276f68205231df734860362476845281c2736ccd316ce0f69dc222806ab1309958b5
@@ -23,6 +23,10 @@ OptionParser.new do |opts|
23
23
  exit
24
24
  end
25
25
 
26
+ opts.on('--once COMMAND','run the command once at server startup.') do | command |
27
+ options[:once] = command
28
+ end
29
+
26
30
  opts.banner = "Usage: rh [options] command"
27
31
  end.parse!
28
32
 
@@ -34,6 +38,8 @@ configure do
34
38
  enable :run
35
39
  end
36
40
 
41
+ puts`#{options[:once]}` if options[:once]
42
+
37
43
  post options[:url] {`#{ARGV[0]}`}
38
44
 
39
45
  get '/*' do
@@ -1,4 +1,4 @@
1
1
  module Rubyhook
2
2
  # rubyhook version
3
- VERSION = "0.1.1"
3
+ VERSION = "0.2.1"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubyhook
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rene Richter