jackhammer 0.1.0 → 0.1.1

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
  SHA256:
3
- metadata.gz: 208370cd05fdeaebee2a7c3415c2923d7991ee87e5e8b2b2eabd7f8e6d0ca361
4
- data.tar.gz: 23199d8489f34df2d5b8ea71c08f377bf65a00c3174a25b1911d052f247ac6cf
3
+ metadata.gz: 232498851115b9f31c67a674fd67bb003fed1913c217eb0b1bd8418ea04ff804
4
+ data.tar.gz: febc0c5efee22668cf8c747eda637c50f53d7b307ae58376fce753ad34981f04
5
5
  SHA512:
6
- metadata.gz: 821b70fe20af463bf905df1c91ac01efa89a68429c4d33521b7b449c2018c686087154f50b286ebc96eed95790b6e30b21f07f13f7d0f9dbbf7a56ba2beba570
7
- data.tar.gz: a8eadd59bd7d8fea7ba0449a44c8164d83433a415829fc517ac3c3bd007cc631b9a6d1a20a686781163f1b26d2bc078a0a48625e86a2dade8f541f353c06e28d
6
+ metadata.gz: 97135ef2215f4a5d9ae1a584287c01d1f3067f555a488ebc18d1692bcaa6fd8350ff4e0391bf9b10d7345f904364c071f8bc9669415f77263bd446bbb43e5be2
7
+ data.tar.gz: d21958748db93bd0dba6553374f58d7ced4ecec880f3203cec0385a4f0e4fd1d0555cdb8c02ee8cb4703f8aafe34402c0d3dfdddd9fd6067b8ebadc6848fab36
data/.gitignore CHANGED
@@ -10,3 +10,4 @@
10
10
  # rspec failure tracking
11
11
  .rspec_status
12
12
  .rubocop-http*
13
+ .byebug_history
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jackhammer (0.1.0)
4
+ jackhammer (0.1.1)
5
5
  bunny (~> 2.14)
6
6
 
7
7
  GEM
@@ -13,6 +13,7 @@ GEM
13
13
  amq-protocol (~> 2.3, >= 2.3.0)
14
14
  bunny-mock (1.7.0)
15
15
  bunny (>= 1.7)
16
+ byebug (11.0.1)
16
17
  diff-lcs (1.3)
17
18
  jaro_winkler (1.5.3)
18
19
  parallel (1.17.0)
@@ -51,6 +52,7 @@ PLATFORMS
51
52
  DEPENDENCIES
52
53
  bundler (~> 2.0)
53
54
  bunny-mock (~> 1.7)
55
+ byebug
54
56
  jackhammer!
55
57
  rake (~> 10.0)
56
58
  rspec (~> 3.0)
data/jackhammer.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  lib = File.expand_path('lib', __dir__)
4
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
- require 'jackhammer/version'
5
+ require 'jackhammer'
6
6
 
7
7
  Gem::Specification.new do |spec|
8
8
  spec.name = 'jackhammer'
@@ -35,4 +35,5 @@ Gem::Specification.new do |spec|
35
35
  spec.add_development_dependency 'rspec', '~> 3.0'
36
36
  spec.add_development_dependency 'rubocop', '~> 0.74'
37
37
  spec.add_development_dependency 'rubocop-performance', '~> 1.4.1'
38
+ spec.add_development_dependency 'byebug'
38
39
  end
@@ -4,9 +4,9 @@ module Jackhammer
4
4
  class CLI
5
5
  attr_reader :logger, :opts
6
6
 
7
- def initialize
7
+ def initialize(options = {})
8
8
  @logger = Logger.new STDERR
9
- @opts = { require: './config/application' }
9
+ @opts = { require: './config/application' }.merge(options)
10
10
  end
11
11
 
12
12
  def parse(argv = ARGV)
@@ -26,7 +26,11 @@ module Jackhammer
26
26
  def run
27
27
  require opts[:require]
28
28
  Log.info "Booting up Jackhammer v#{VERSION}"
29
- Jackhammer.configuration.server.start
29
+ server.start
30
+ end
31
+
32
+ def server
33
+ Jackhammer.configuration.server
30
34
  end
31
35
  end
32
36
  end
@@ -28,7 +28,7 @@ module Jackhammer
28
28
  end
29
29
 
30
30
  def yaml
31
- environment = Jackhammer.configuration.environment
31
+ environment = Jackhammer.configuration.environment.to_s
32
32
  YAML.load_file(Jackhammer.configuration.yaml_config)[environment]
33
33
  end
34
34
  end
@@ -3,9 +3,9 @@
3
3
  module Jackhammer
4
4
  class Server
5
5
  def self.configure
6
- Jackhammer.configure do |j|
7
- yield(j)
8
- j.server = self
6
+ Jackhammer.configure do |config|
7
+ yield config
8
+ config.server = self
9
9
  end
10
10
  end
11
11
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Jackhammer
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  end
data/lib/jackhammer.rb CHANGED
@@ -2,7 +2,9 @@
2
2
 
3
3
  require 'logger'
4
4
  require 'forwardable'
5
+ require 'yaml'
5
6
  require 'bunny'
7
+ require 'jackhammer/version'
6
8
  require 'jackhammer/log'
7
9
  require 'jackhammer/null_exception_adapter'
8
10
  require 'jackhammer/configuration'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jackhammer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Serok
@@ -108,6 +108,20 @@ dependencies:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: 1.4.1
111
+ - !ruby/object:Gem::Dependency
112
+ name: byebug
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
111
125
  description: Jackhammer is an opinionated facde over RabbitMQ Bunny
112
126
  email:
113
127
  - scott@renofi.com