jackhammer 0.2.3 → 1.0.0

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: 91579ca5a88dbc8764db586cb2d68eb8bbf80ee7978be163207f2c89262e9483
4
- data.tar.gz: 0bce10514904cbbaf973be002f9459b875294dc09c10d31945eb55d1b4b6267c
3
+ metadata.gz: '08c618f20b6e1a25d4c3a59b538380661827835d550f304ad738fcf08daf1e56'
4
+ data.tar.gz: 79d419987a0107556d2b4885a8f3d44eb764bfe91ee60885f91d065f8d37b905
5
5
  SHA512:
6
- metadata.gz: 13b25122a6a66ab39c97dda9d71d90259ac57164ba9ea85231de7634663e8c5323cd7478a29bd965897bc015e8a109856c2c97ea762c4eeee0a877e354cba692
7
- data.tar.gz: 31ddd4e068fff723c83c18052ec86d6fa9b2268073d7675ced0fd850fa3e25fc1c3040e9cf3f0df68ccedf4b488f46a9d92b81bfb471936c44e1f3f46ca5e805
6
+ metadata.gz: 56c4397e288dfce56f7e623d6357a71b2f3e62851083f4568ef69aacbd06851b65be4bbbf028419ffa5fcd8d014bcb9d92a6a0fe48408b84984853ada3495556
7
+ data.tar.gz: ad5af5f7edc879588f0ff2398218fb4f5fc4fa881efd672324aad96bc377d1d2e82f089522a19901ddbec762f820c1d27f3af3f16fd0f0536e6e53c20bb0692c
data/.travis.yml CHANGED
@@ -5,5 +5,6 @@ cache: bundler
5
5
  rvm:
6
6
  - 2.5
7
7
  - 2.6
8
- - ruby-head
9
- before_install: gem install bundler -v 2.0.2
8
+ before_install: gem install bundler
9
+ script:
10
+ - bundle exec rake
data/Gemfile CHANGED
@@ -1,6 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  source 'https://rubygems.org'
4
2
 
5
- # Specify your gem's dependencies in jackhammer.gemspec
6
3
  gemspec
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jackhammer (0.2.3)
4
+ jackhammer (1.0.0)
5
5
  bunny (~> 2.14)
6
6
 
7
7
  GEM
data/Rakefile CHANGED
@@ -1,8 +1,8 @@
1
- # frozen_string_literal: true
2
-
3
1
  require 'bundler/gem_tasks'
4
2
  require 'rspec/core/rake_task'
3
+ require 'rubocop/rake_task'
5
4
 
6
5
  RSpec::Core::RakeTask.new(:spec)
6
+ RuboCop::RakeTask.new
7
7
 
8
- task default: :spec
8
+ task default: %i[rubocop spec]
data/exe/jackhammer CHANGED
@@ -1,6 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
2
  require 'jackhammer'
5
3
  require 'jackhammer/cli'
6
4
 
data/jackhammer.gemspec CHANGED
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  lib = File.expand_path('lib', __dir__)
4
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
3
  require 'jackhammer/version'
@@ -28,9 +26,9 @@ Gem::Specification.new do |spec|
28
26
 
29
27
  spec.add_development_dependency 'bundler'
30
28
  spec.add_development_dependency 'bunny-mock'
29
+ spec.add_development_dependency 'byebug'
31
30
  spec.add_development_dependency 'rake'
32
31
  spec.add_development_dependency 'rspec'
33
32
  spec.add_development_dependency 'rubocop'
34
33
  spec.add_development_dependency 'rubocop-performance'
35
- spec.add_development_dependency 'byebug'
36
34
  end
data/lib/jackhammer.rb CHANGED
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  require 'logger'
4
2
  require 'forwardable'
5
3
  require 'yaml'
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  module Jackhammer
4
2
  class Configuration
5
3
  attr_accessor(
@@ -17,7 +15,7 @@ module Jackhammer
17
15
  @connection_options = {}
18
16
  @connection_url = ENV['RABBITMQ_URL']
19
17
  @environment = ENV['RACK_ENV'] || :development
20
- @exception_adapter = proc { |e| raise e }
18
+ @exception_adapter = proc { |e| fail e }
21
19
  @logger = Logger.new IO::NULL
22
20
  @publish_options = { mandatory: true, persistent: true }
23
21
  @yaml_config = './config/jackhammer.yml'
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  module Jackhammer
4
2
  class Log
5
3
  class << self
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  module Jackhammer
4
2
  # An object meant to be instantiated once but used on each payload received
5
3
  # via the #call method
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  module Jackhammer
4
2
  class Server
5
3
  def self.configure
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  module Jackhammer
4
2
  class Topic
5
3
  def initialize(name:, options:, queue_config:)
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  module Jackhammer
4
2
  class TopicManager
5
3
  class << self
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  module Jackhammer
4
- VERSION = '0.2.3'
2
+ VERSION = '1.0.0'.freeze
5
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jackhammer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Serok
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-12-19 00:00:00.000000000 Z
11
+ date: 2019-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bunny
@@ -53,7 +53,7 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: rake
56
+ name: byebug
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
@@ -67,7 +67,7 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: rspec
70
+ name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
@@ -81,7 +81,7 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: rubocop
84
+ name: rspec
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="
@@ -95,7 +95,7 @@ dependencies:
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: rubocop-performance
98
+ name: rubocop
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - ">="
@@ -109,7 +109,7 @@ dependencies:
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
- name: byebug
112
+ name: rubocop-performance
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - ">="