ultrahook 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,7 +14,7 @@ module UltraHook
14
14
  o.banner = "Usage: ultrahook [options] <subdomain> <destination>"
15
15
 
16
16
  o.on("-k", "--key <api key>", String, "API Key") do |key|
17
- @options["key"] =key
17
+ @options["key"] = key
18
18
  end
19
19
 
20
20
  o.on_tail("-h", "--help", "Display this help") do
@@ -51,12 +51,12 @@ module UltraHook
51
51
  exit
52
52
  end
53
53
 
54
- @options["host"] = ARGV[0].downcase
54
+ @options["host"] = args[0].downcase
55
55
  error "Subdomain can only contain alphanumeric characters and hyphen (-)" unless @options["host"] =~ /^[[:alnum:]\-]+$/
56
56
  error "Subdomain cannot start or end with hyphens" if @options["host"] =~ /^\-/ || @options["host"] =~ /\-$/
57
57
  error "Subdomain cannot contain consecutive hyphens" if @options["host"] =~ /\-\-/
58
58
 
59
- @options["destination"] = parse_destination(ARGV[1])
59
+ @options["destination"] = parse_destination(args[1])
60
60
 
61
61
  retrieve_config
62
62
  init_stream
@@ -1,3 +1,3 @@
1
1
  module UltraHook
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ultrahook
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-15 00:00:00.000000000 Z
12
+ date: 2013-07-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
@@ -62,7 +62,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
62
62
  version: '0'
63
63
  requirements: []
64
64
  rubyforge_project:
65
- rubygems_version: 1.8.23
65
+ rubygems_version: 1.8.25
66
66
  signing_key:
67
67
  specification_version: 3
68
68
  summary: A simple command line tool that enables you to receive webhooks while behind