promiscuous 0.18.0 → 0.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/bin/promiscuous CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'promiscuous/cli'
4
3
  begin
4
+ require 'promiscuous'
5
5
  Promiscuous::CLI.new.run
6
6
  rescue => e
7
7
  $stderr.puts e.backtrace.join("\n")
@@ -72,6 +72,7 @@ class Promiscuous::CLI
72
72
  def parse_args(args)
73
73
  options = {}
74
74
 
75
+ require 'optparse'
75
76
  parser = OptionParser.new do |opts|
76
77
  opts.banner = "Usage: promiscuous [options] action"
77
78
 
@@ -1,3 +1,3 @@
1
1
  module Promiscuous
2
- VERSION = '0.18.0'
2
+ VERSION = '0.18.1'
3
3
  end
data/lib/promiscuous.rb CHANGED
@@ -11,6 +11,7 @@ module Promiscuous
11
11
  autoload :Observer, 'promiscuous/observer'
12
12
  autoload :Worker, 'promiscuous/worker'
13
13
  autoload :Ephemeral, 'promiscuous/ephemeral'
14
+ autoload :CLI, 'promiscuous/cli'
14
15
 
15
16
  class << self
16
17
  def configure(&block)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: promiscuous
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.0
4
+ version: 0.18.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -178,9 +178,9 @@ files:
178
178
  - lib/promiscuous/ephemeral.rb
179
179
  - lib/promiscuous/subscriber.rb
180
180
  - lib/promiscuous/publisher.rb
181
- - lib/promiscuous/cli.rb
182
181
  - lib/promiscuous/railtie.rb
183
182
  - lib/promiscuous/worker.rb
183
+ - lib/promiscuous/cli.rb
184
184
  - lib/promiscuous/version.rb
185
185
  - lib/promiscuous.rb
186
186
  - bin/promiscuous