log_parser_notifier 0.0.3 → 0.0.4

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: 632606795edfb92f76f27d595eef80c001dac96f
4
- data.tar.gz: ab0c2e797724b4d0a381a0535c00a71d661842d8
3
+ metadata.gz: 4d112acf3131f8094ba04a49438e9dbd1188c73a
4
+ data.tar.gz: 84ab43df9b16f7f602718590cc0da6ae36e1b8f1
5
5
  SHA512:
6
- metadata.gz: 56b56a62c2bea71934164b0dafacecbe3b0fd206552622b355c654647783b75a610d94c8d7d49f6c5ecc203287b8bdfbfeb408e4b61f89b102454424f88859b4
7
- data.tar.gz: 922aeedf4c043fdbb6ccc32144e542c4b9fd4ed78d2ed7ce64ce15337bb921030bd5753302596065c234b65a29e801e7bf9c9fd780f4fab39d4cafa91c6f2a42
6
+ metadata.gz: b00a39a8e183d0f237a7b4961efa7bff779ebbf190fd7bf765d4ab6023c6032bf7238546099682ccba443a71b5d32f36f560a56bb95e1bd072dd577afbb07207
7
+ data.tar.gz: a6f82e185207e73f18a1b28be740b2e76895a98829fdf57de56e33f728a605db38fe881bb56606c4cfc91d8119138357308a3f66f5d5567ae0a0bcc3696d60c8
@@ -8,8 +8,10 @@ end
8
8
 
9
9
  opts = Slop.parse do |o|
10
10
  o.banner = 'usage: lib_parser_notifier [options] file_name'
11
- o.integer '--check_interval', 'check interval (in minutes)', default: 5
12
- o.bool '-v', '--verbose', 'enable verbose mode'
11
+ o.on :c, :check_interval=, 'check interval (in minutes)', default: 5, as: Integer
12
+ o.on :verbose, 'enable verbose mode'
13
+ # o.integer '--check_interval', 'check interval (in minutes)', default: 5
14
+ # o.bool '-v', '--verbose', 'enable verbose mode'
13
15
  o.on '--version', 'print the version' do
14
16
  require File.join(File.dirname(__FILE__), '..', 'lib', 'log_parser_notifier')
15
17
  puts LogParserNotifier::VERSION
@@ -30,7 +32,7 @@ end
30
32
 
31
33
  require File.join(File.dirname(__FILE__), '..', 'lib', 'log_parser_notifier')
32
34
 
33
- request_notifier = LogParserNotifier::RailsRequestNotifier.new(opts.arguments.first)
35
+ request_notifier = LogParserNotifier::RailsRequestNotifier.new(ARGV.first)
34
36
 
35
37
  while true
36
38
  LogParserNotifier.logger.debug('waking up and checking log')
@@ -1,3 +1,3 @@
1
1
  module LogParserNotifier
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: log_parser_notifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Moore