Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix #58

  • Loading branch information...
commit 8349a96bc0a67ade98a6e73cfd5bb7ff1f4e4d7e 1 parent 1ceaac1
@stevegraham authored
Showing with 12 additions and 9 deletions.
  1. +1 −3 Gemfile.lock
  2. +10 −5 bin/slanger
  3. +1 −1  slanger.gemspec
View
4 Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
- slanger (0.2.3)
+ slanger (0.3.2)
activesupport (~> 3.1.0)
em-hiredis (~> 0.1.0)
em-http-request (~> 0.3.0)
@@ -34,14 +34,12 @@ GEM
eventmachine (>= 0.12.9)
escape_utils (0.2.4)
eventmachine (0.12.10)
- eventmachine (0.12.10-java)
glamazon (0.3.1)
activesupport (>= 3.1.0)
i18n (~> 0.6.0)
yajl-ruby (>= 0.7.7)
haml (3.1.5)
hiredis (0.4.5)
- hiredis (0.4.5-java)
i18n (0.6.0)
metaclass (0.0.1)
mocha (0.12.0)
View
15 bin/slanger
@@ -58,14 +58,19 @@ OptionParser.new do |opts|
opts.on "-v", "--[no-]verbose", "Run verbosely" do |v|
options[:debug] = v
end
-
+
+ opts.parse!
+
%w<app_key secret>.each do |parameter|
- puts "--#{parameter} STRING is a required argument. Use your Pusher #{parameter}.\n" unless options[parameter.to_sym]
- puts opts
- exit
+ unless options[parameter.to_sym]
+ puts options.inspect
+ puts "--#{parameter} STRING is a required argument. Use your Pusher #{parameter}.\n"
+ puts opts
+ exit
+ end
end
-end.parse!
+end
View
2  slanger.gemspec
@@ -1,7 +1,7 @@
Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
s.name = 'slanger'
- s.version = '0.3.1'
+ s.version = '0.3.2'
s.summary = 'A websocket service compatible with Pusher libraries'
s.description = 'A websocket service compatible with Pusher libraries'
Please sign in to comment.
Something went wrong with that request. Please try again.