instrumental_pubnub_example 0.0.1 → 0.0.2

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: ec2b173fb8e13dae02e158f14b75dbf50d3db55b
4
- data.tar.gz: 4317fe833f317e275497a2aa5dacb9e57d8e29f3
3
+ metadata.gz: 01b0c6637d12ea8a45b077f6aad80f52a5cb6240
4
+ data.tar.gz: 6b8f27a571caec2ef1b8e0910f4e19b910e13e3c
5
5
  SHA512:
6
- metadata.gz: 57fef30bdb80e4407d52d4eb1c5c9734b04ef2a78dd63089fa61a12a1c59a6554890c63d680debb004f4c90de271af216838754a2ae193fb8221f856bd15980c
7
- data.tar.gz: 2cb3f12086e19b7d54d5c7564910c07a60e89a9734abadd9fda841d68b529208c7ebdd7379b6732a7213688959530e59956a55434d440260f6bc5df414a61b78
6
+ metadata.gz: d2c5639110243c22b9777d929712e8e989de2bfa79adc6cc5d1b042ebf08709be8373de1eb339e3408578670cba43aac2e5ffdc88f7f87761631908a8cb1d01b
7
+ data.tar.gz: c45e3f7c2d31bc438b002ca3a330500cf38e81818f400941549b63e25ca40c5e0fac46ee420c3258b5c6f9c18d0ff52fd51a02b8855342ee4ef118422a855ee8
data/README.md CHANGED
@@ -27,6 +27,7 @@ Usage: instrumental_pubnub_relay [options]
27
27
  -c, --pubnub-channel CHANNEL Your PubNub channel
28
28
  -i API_KEY, Your Instrumental API key
29
29
  --instrumental-api-key
30
- -p, --key-prefix PREFIX String to prefix all received metrics with (default: my.machine)
30
+ -p, --key-prefix PREFIX String to prefix all received metrics with (default: my.hostname)
31
31
  -l, --log-level LEVEL Log level for output, valid values are: ["debug", "warn", "info", "fatal"]
32
+ -v, --version Print version and exit
32
33
  ```
@@ -28,6 +28,10 @@ OptionParser.new do |opts|
28
28
  opts.on("-l", "--log-level LEVEL", log_levels, "Log level for output, valid values are: #{log_levels.inspect}") do |l|
29
29
  log_level = l
30
30
  end
31
+ opts.on("-v", "--version", "Print version and exit") do
32
+ puts "Instrumental Pubnub Example: #{Instrumental::PubNub::VERSION}"
33
+ exit 0
34
+ end
31
35
  end.parse!
32
36
 
33
37
  if pubnub_subscribe.to_s.strip.empty?
@@ -1,5 +1,5 @@
1
1
  module Instrumental
2
2
  module PubNub
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: instrumental_pubnub_example
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Zelenak