waithook 0.3 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a16ae52a0e661142f71a645d2eacf259bab70230
4
- data.tar.gz: ff1efd58740c07f102bfc9f54957526c4c13f37c
3
+ metadata.gz: 98cda8a2a29ac5cdae5becc9bf532657a8ae85c8
4
+ data.tar.gz: 4173387775b4282150efa00ce621601753d85986
5
5
  SHA512:
6
- metadata.gz: 5f5b498540935c8e52788837cff9b5dbbceeec68bd9a6b6810522112344f0b36efefa067d4ec1ee7047bcd9b6b1332b4c2c78347ed8bbe2135ee041ba8ffc517
7
- data.tar.gz: 28446b7fefec07045ad9ce56b3326f599aa66fa59c470c35cc6b87b55ef7a9b9694564422ea4c407a7a62e995095fb7ce92a905efff412409c92fff6d44dc802
6
+ metadata.gz: 57f83c9be846d7e4f35bce1fa9fbe2987dde37ed96d49ee8ac714176f27ad864d59ca390c98e0609623f5de036a40e2c3791b0a9c1da4ff63708857a55cec475
7
+ data.tar.gz: 1affe0e3ac3ca667a6dea0dd945a4b346ba909b3c713b22b8e9260fc71f926a76bc7f3830b59eb928d6d063a72bc04bf5e9ddf7f701b857c2013aa6ee8af48e5
data/bin/waithook CHANGED
@@ -26,6 +26,11 @@ begin
26
26
  opts.on("-f URL", "--forward URL", "Forward to HTTP server") do |value|
27
27
  options[:forward] = value
28
28
  end
29
+ opts.on("--version") do |value|
30
+ require 'waithook/version'
31
+ puts Waithook::VERSION
32
+ exit
33
+ end
29
34
  end.parse!
30
35
  rescue OptionParser::InvalidOption => error
31
36
  require 'waithook'
data/lib/waithook/cli.rb CHANGED
@@ -44,7 +44,7 @@ class Waithook
44
44
  Thread.new do
45
45
  begin
46
46
  forward_url = if options[:forward].start_with?('http://', 'https://')
47
- forward_url
47
+ options[:forward]
48
48
  else
49
49
  "http://#{options[:forward]}"
50
50
  end
@@ -1,3 +1,3 @@
1
1
  class Waithook
2
- VERSION = "0.3"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: waithook
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.3'
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Evstigneev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-24 00:00:00.000000000 Z
11
+ date: 2017-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: websocket