rabbitmq_client 0.0.0.pre
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.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.overcommit.yml +33 -0
- data/.rspec +3 -0
- data/.rubocop.yml +12 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/.travis.yml +22 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +156 -0
- data/LICENSE.txt +21 -0
- data/README.md +48 -0
- data/Rakefile +24 -0
- data/bin/console +15 -0
- data/lib/rabbitmq_client.rb +8 -0
- data/lib/rabbitmq_client/version.rb +5 -0
- data/rabbitmq_client.gemspec +42 -0
- data/script/travis.sh +18 -0
- data/spec/rabbitmq_client_spec.rb +7 -0
- data/spec/spec_helper.rb +38 -0
- metadata +264 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 919915c1cb4d6658ccdea2d77ebde498edb6f2bdb4888be57263a895a8e1951a
|
|
4
|
+
data.tar.gz: c3f2fb6e0b6afa7f8a818de32db7bdb014c604901cf749327f4630b066b11ee7
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 8ceb8db083e03339f8603dcadb54ca4a13025dbf6e40f98cf743067a883fdef3132a07ab9bd8b63f6bde93a61991161042b08fb0df6b91b985ab2c489d7f145b
|
|
7
|
+
data.tar.gz: 201de069eaf129c7054ba2370fd9c9053c454f3f043296d25dc4201a0d9f9ae4f71ee7bd9494b3813ecd9a54b135a66d838d4c1ec861ea513a7d3f32d6e8dd88
|
data/.gitignore
ADDED
data/.overcommit.yml
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Use this file to configure the Overcommit hooks you wish to use. This will
|
|
2
|
+
# extend the default configuration defined in:
|
|
3
|
+
# https://github.com/sds/overcommit/blob/master/config/default.yml
|
|
4
|
+
#
|
|
5
|
+
# At the topmost level of this YAML file is a key representing type of hook
|
|
6
|
+
# being run (e.g. pre-commit, commit-msg, etc.). Within each type you can
|
|
7
|
+
# customize each hook, such as whether to only run it on certain files (via
|
|
8
|
+
# `include`), whether to only display output if it fails (via `quiet`), etc.
|
|
9
|
+
#
|
|
10
|
+
# For a complete list of hooks, see:
|
|
11
|
+
# https://github.com/sds/overcommit/tree/master/lib/overcommit/hook
|
|
12
|
+
#
|
|
13
|
+
# For a complete list of options that you can use to customize hooks, see:
|
|
14
|
+
# https://github.com/sds/overcommit#configuration
|
|
15
|
+
#
|
|
16
|
+
# Uncomment the following lines to make the configuration take effect.
|
|
17
|
+
|
|
18
|
+
#PreCommit:
|
|
19
|
+
# RuboCop:
|
|
20
|
+
# enabled: true
|
|
21
|
+
# on_warn: fail # Treat all warnings as failures
|
|
22
|
+
#
|
|
23
|
+
# TrailingWhitespace:
|
|
24
|
+
# enabled: true
|
|
25
|
+
# exclude:
|
|
26
|
+
# - '**/db/structure.sql' # Ignore trailing whitespace in generated files
|
|
27
|
+
#
|
|
28
|
+
#PostCheckout:
|
|
29
|
+
# ALL: # Special hook name that customizes all hooks of this type
|
|
30
|
+
# quiet: true # Change all post-checkout hooks to only display output on failure
|
|
31
|
+
#
|
|
32
|
+
# IndexTags:
|
|
33
|
+
# enabled: true # Generate a tags file with `ctags` each time HEAD changes
|
data/.rspec
ADDED
data/.rubocop.yml
ADDED
data/.ruby-gemset
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
rabbitmq_client
|
data/.ruby-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.6.4
|
data/.travis.yml
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
language: ruby
|
|
2
|
+
|
|
3
|
+
branches:
|
|
4
|
+
only:
|
|
5
|
+
- master
|
|
6
|
+
|
|
7
|
+
rvm:
|
|
8
|
+
- 2.6.4
|
|
9
|
+
cache: bundler
|
|
10
|
+
bundler_args: "--jobs=3 --retry=3 --without production"
|
|
11
|
+
matrix:
|
|
12
|
+
fast_finish: true
|
|
13
|
+
script:
|
|
14
|
+
- sh script/travis.sh
|
|
15
|
+
deploy:
|
|
16
|
+
provider: pages
|
|
17
|
+
skip-cleanup: true
|
|
18
|
+
github-token: $GITHUB_TOKEN
|
|
19
|
+
keep-history: true
|
|
20
|
+
verbose: true
|
|
21
|
+
on:
|
|
22
|
+
branch: master
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
rabbitmq_client (0.0.0.pre)
|
|
5
|
+
activesupport (~> 6.0.0)
|
|
6
|
+
bunny (~> 2.14.3)
|
|
7
|
+
connection_pool (~> 2.2.2)
|
|
8
|
+
|
|
9
|
+
GEM
|
|
10
|
+
remote: https://rubygems.org/
|
|
11
|
+
specs:
|
|
12
|
+
activesupport (6.0.0)
|
|
13
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
14
|
+
i18n (>= 0.7, < 2)
|
|
15
|
+
minitest (~> 5.1)
|
|
16
|
+
tzinfo (~> 1.1)
|
|
17
|
+
zeitwerk (~> 2.1, >= 2.1.8)
|
|
18
|
+
addressable (2.7.0)
|
|
19
|
+
public_suffix (>= 2.0.2, < 5.0)
|
|
20
|
+
amq-protocol (2.3.0)
|
|
21
|
+
ast (2.4.0)
|
|
22
|
+
axiom-types (0.1.1)
|
|
23
|
+
descendants_tracker (~> 0.0.4)
|
|
24
|
+
ice_nine (~> 0.11.0)
|
|
25
|
+
thread_safe (~> 0.3, >= 0.3.1)
|
|
26
|
+
bunny (2.14.3)
|
|
27
|
+
amq-protocol (~> 2.3, >= 2.3.0)
|
|
28
|
+
byebug (11.0.1)
|
|
29
|
+
childprocess (3.0.0)
|
|
30
|
+
codeclimate-engine-rb (0.4.1)
|
|
31
|
+
virtus (~> 1.0)
|
|
32
|
+
coercible (1.0.0)
|
|
33
|
+
descendants_tracker (~> 0.0.1)
|
|
34
|
+
concurrent-ruby (1.1.5)
|
|
35
|
+
connection_pool (2.2.2)
|
|
36
|
+
descendants_tracker (0.0.4)
|
|
37
|
+
thread_safe (~> 0.3, >= 0.3.1)
|
|
38
|
+
diff-lcs (1.3)
|
|
39
|
+
docile (1.3.2)
|
|
40
|
+
equalizer (0.0.11)
|
|
41
|
+
erubis (2.7.0)
|
|
42
|
+
flay (2.12.1)
|
|
43
|
+
erubis (~> 2.7.0)
|
|
44
|
+
path_expander (~> 1.0)
|
|
45
|
+
ruby_parser (~> 3.0)
|
|
46
|
+
sexp_processor (~> 4.0)
|
|
47
|
+
flog (4.6.3)
|
|
48
|
+
path_expander (~> 1.0)
|
|
49
|
+
ruby_parser (~> 3.1, > 3.1.0)
|
|
50
|
+
sexp_processor (~> 4.8)
|
|
51
|
+
i18n (1.7.0)
|
|
52
|
+
concurrent-ruby (~> 1.0)
|
|
53
|
+
ice_nine (0.11.2)
|
|
54
|
+
iniparse (1.4.4)
|
|
55
|
+
jaro_winkler (1.5.3)
|
|
56
|
+
json (2.2.0)
|
|
57
|
+
kwalify (0.7.2)
|
|
58
|
+
launchy (2.4.3)
|
|
59
|
+
addressable (~> 2.3)
|
|
60
|
+
minitest (5.12.2)
|
|
61
|
+
overcommit (0.51.0)
|
|
62
|
+
childprocess (>= 0.6.3, < 4)
|
|
63
|
+
iniparse (~> 1.4)
|
|
64
|
+
parallel (1.18.0)
|
|
65
|
+
parser (2.6.5.0)
|
|
66
|
+
ast (~> 2.4.0)
|
|
67
|
+
path_expander (1.1.0)
|
|
68
|
+
psych (3.1.0)
|
|
69
|
+
public_suffix (4.0.1)
|
|
70
|
+
rainbow (3.0.0)
|
|
71
|
+
rake (13.0.0)
|
|
72
|
+
reek (5.4.0)
|
|
73
|
+
codeclimate-engine-rb (~> 0.4.0)
|
|
74
|
+
kwalify (~> 0.7.0)
|
|
75
|
+
parser (>= 2.5.0.0, < 2.7, != 2.5.1.1)
|
|
76
|
+
psych (~> 3.1.0)
|
|
77
|
+
rainbow (>= 2.0, < 4.0)
|
|
78
|
+
repo-small-badge (0.2.7)
|
|
79
|
+
victor (~> 0.2.8)
|
|
80
|
+
rspec (3.9.0)
|
|
81
|
+
rspec-core (~> 3.9.0)
|
|
82
|
+
rspec-expectations (~> 3.9.0)
|
|
83
|
+
rspec-mocks (~> 3.9.0)
|
|
84
|
+
rspec-core (3.9.0)
|
|
85
|
+
rspec-support (~> 3.9.0)
|
|
86
|
+
rspec-expectations (3.9.0)
|
|
87
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
88
|
+
rspec-support (~> 3.9.0)
|
|
89
|
+
rspec-mocks (3.9.0)
|
|
90
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
91
|
+
rspec-support (~> 3.9.0)
|
|
92
|
+
rspec-support (3.9.0)
|
|
93
|
+
rubocop (0.75.1)
|
|
94
|
+
jaro_winkler (~> 1.5.1)
|
|
95
|
+
parallel (~> 1.10)
|
|
96
|
+
parser (>= 2.6)
|
|
97
|
+
rainbow (>= 2.2.2, < 4.0)
|
|
98
|
+
ruby-progressbar (~> 1.7)
|
|
99
|
+
unicode-display_width (>= 1.4.0, < 1.7)
|
|
100
|
+
ruby-progressbar (1.10.1)
|
|
101
|
+
ruby_parser (3.14.0)
|
|
102
|
+
sexp_processor (~> 4.9)
|
|
103
|
+
rubycritic (4.1.0)
|
|
104
|
+
flay (~> 2.8)
|
|
105
|
+
flog (~> 4.4)
|
|
106
|
+
launchy (= 2.4.3)
|
|
107
|
+
parser (~> 2.6.0)
|
|
108
|
+
rainbow (~> 3.0)
|
|
109
|
+
reek (~> 5.0, < 6.0)
|
|
110
|
+
ruby_parser (~> 3.8)
|
|
111
|
+
tty-which (~> 0.4.0)
|
|
112
|
+
virtus (~> 1.0)
|
|
113
|
+
rubycritic-small-badge (0.2.1)
|
|
114
|
+
repo-small-badge (~> 0.2.7)
|
|
115
|
+
sexp_processor (4.13.0)
|
|
116
|
+
simplecov (0.17.1)
|
|
117
|
+
docile (~> 1.1)
|
|
118
|
+
json (>= 1.8, < 3)
|
|
119
|
+
simplecov-html (~> 0.10.0)
|
|
120
|
+
simplecov-html (0.10.2)
|
|
121
|
+
simplecov-small-badge (0.2.4)
|
|
122
|
+
repo-small-badge (~> 0.2.7)
|
|
123
|
+
simplecov (~> 0.17)
|
|
124
|
+
thread_safe (0.3.6)
|
|
125
|
+
timecop (0.9.1)
|
|
126
|
+
tty-which (0.4.1)
|
|
127
|
+
tzinfo (1.2.5)
|
|
128
|
+
thread_safe (~> 0.1)
|
|
129
|
+
unicode-display_width (1.6.0)
|
|
130
|
+
victor (0.2.8)
|
|
131
|
+
virtus (1.0.5)
|
|
132
|
+
axiom-types (~> 0.1)
|
|
133
|
+
coercible (~> 1.0)
|
|
134
|
+
descendants_tracker (~> 0.0, >= 0.0.3)
|
|
135
|
+
equalizer (~> 0.0, >= 0.0.9)
|
|
136
|
+
zeitwerk (2.2.0)
|
|
137
|
+
|
|
138
|
+
PLATFORMS
|
|
139
|
+
ruby
|
|
140
|
+
|
|
141
|
+
DEPENDENCIES
|
|
142
|
+
bundler (~> 1.17.2)
|
|
143
|
+
byebug (~> 11.0.1)
|
|
144
|
+
overcommit (~> 0.51.0)
|
|
145
|
+
rabbitmq_client!
|
|
146
|
+
rake (~> 13.0.0)
|
|
147
|
+
rspec (~> 3.9.0)
|
|
148
|
+
rubocop (~> 0.75.1)
|
|
149
|
+
rubycritic (~> 4.1.0)
|
|
150
|
+
rubycritic-small-badge (~> 0.2.1)
|
|
151
|
+
simplecov (~> 0.17.1)
|
|
152
|
+
simplecov-small-badge (~> 0.2.4)
|
|
153
|
+
timecop (~> 0.9.1)
|
|
154
|
+
|
|
155
|
+
BUNDLED WITH
|
|
156
|
+
1.17.2
|
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019 Al-waleed shihadeh
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# RabbitmqClient
|
|
2
|
+
[](https://travis-ci.com/wshihadeh/rabbitmq_client)
|
|
3
|
+
[](https://depfu.com/github/wshihadeh/rabbitmq_client?project_id=9862)
|
|
4
|
+
[](https://wshihadeh.github.io/rabbitmq_client/coverage/index.html)
|
|
5
|
+
[](https://wshihadeh.github.io/rabbitmq_client/tmp/rubycritic/overview.html)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/rabbitmq_client`. To experiment with that code, run `bin/console` for an interactive prompt.
|
|
9
|
+
|
|
10
|
+
TODO: Delete this and the text above, and describe your gem
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
Add this line to your application's Gemfile:
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
gem 'rabbitmq_client'
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
And then execute:
|
|
21
|
+
|
|
22
|
+
$ bundle
|
|
23
|
+
|
|
24
|
+
Or install it yourself as:
|
|
25
|
+
|
|
26
|
+
$ gem install rabbitmq_client
|
|
27
|
+
|
|
28
|
+
## Usage
|
|
29
|
+
|
|
30
|
+
TODO: Write usage instructions here
|
|
31
|
+
|
|
32
|
+
## Development
|
|
33
|
+
|
|
34
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
|
35
|
+
|
|
36
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
|
37
|
+
|
|
38
|
+
## Contributing
|
|
39
|
+
|
|
40
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/rabbitmq_client. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
|
41
|
+
|
|
42
|
+
## License
|
|
43
|
+
|
|
44
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
|
45
|
+
|
|
46
|
+
## Code of Conduct
|
|
47
|
+
|
|
48
|
+
Everyone interacting in the RabbitmqClient project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/rabbitmq_client/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'bundler'
|
|
4
|
+
Bundler::GemHelper.install_tasks
|
|
5
|
+
|
|
6
|
+
require 'rspec/core/rake_task'
|
|
7
|
+
RSpec::Core::RakeTask.new('spec')
|
|
8
|
+
|
|
9
|
+
require 'rubycritic_small_badge'
|
|
10
|
+
require 'rubycritic/rake_task'
|
|
11
|
+
|
|
12
|
+
RubyCriticSmallBadge.configure do |config|
|
|
13
|
+
config.minimum_score = ENV.fetch('RUBYCRITICLIMIT', 90.0)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
RubyCritic::RakeTask.new do |task|
|
|
17
|
+
task.options = %(--custom-format RubyCriticSmallBadge::Report
|
|
18
|
+
--minimum-score #{RubyCriticSmallBadge.config.minimum_score}
|
|
19
|
+
--format html --format console)
|
|
20
|
+
task.paths = FileList['lib/**/*.rb']
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# If you want to make this the default task
|
|
24
|
+
task default: :spec
|
data/bin/console
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
require 'bundler/setup'
|
|
5
|
+
require 'rabbitmq_client'
|
|
6
|
+
|
|
7
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
|
8
|
+
# with your gem easier. You can also use a different console, if you like.
|
|
9
|
+
|
|
10
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
|
11
|
+
# require 'pry'
|
|
12
|
+
# Pry.start
|
|
13
|
+
|
|
14
|
+
require 'irb'
|
|
15
|
+
IRB.start(__FILE__)
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
lib = File.expand_path('lib', __dir__)
|
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
5
|
+
require 'rabbitmq_client/version'
|
|
6
|
+
|
|
7
|
+
Gem::Specification.new do |spec|
|
|
8
|
+
spec.name = 'rabbitmq_client'
|
|
9
|
+
spec.version = RabbitmqClient::VERSION
|
|
10
|
+
spec.authors = ['Al-waleed shihadeh']
|
|
11
|
+
spec.email = ['wshihadeh dot dev at gmail dot com ']
|
|
12
|
+
spec.summary = %(RabbitMq client library)
|
|
13
|
+
spec.description = %(RabbitMq client library support both publish and\b
|
|
14
|
+
subscribe use cases.)
|
|
15
|
+
spec.homepage = 'https://github.com/wshihadeh/rabbitmq_client'
|
|
16
|
+
spec.license = 'MIT'
|
|
17
|
+
|
|
18
|
+
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
|
19
|
+
spec.metadata['homepage_uri'] = spec.homepage
|
|
20
|
+
|
|
21
|
+
spec.add_runtime_dependency 'activesupport', '~> 6.0.0'
|
|
22
|
+
spec.add_runtime_dependency 'bunny', '~> 2.14.3'
|
|
23
|
+
spec.add_runtime_dependency 'connection_pool', '~> 2.2.2'
|
|
24
|
+
|
|
25
|
+
spec.add_development_dependency 'bundler', '~> 1.17.2'
|
|
26
|
+
spec.add_development_dependency 'byebug', '~> 11.0.1'
|
|
27
|
+
spec.add_development_dependency 'overcommit', '~> 0.51.0'
|
|
28
|
+
spec.add_development_dependency 'rake', '~> 13.0.0'
|
|
29
|
+
spec.add_development_dependency 'rspec', '~> 3.9.0'
|
|
30
|
+
spec.add_development_dependency 'rubocop', '~> 0.75.1'
|
|
31
|
+
spec.add_development_dependency 'rubycritic', '~> 4.1.0'
|
|
32
|
+
spec.add_development_dependency 'rubycritic-small-badge', '~> 0.2.1'
|
|
33
|
+
spec.add_development_dependency 'simplecov', '~> 0.17.1'
|
|
34
|
+
spec.add_development_dependency 'simplecov-small-badge', '~> 0.2.4'
|
|
35
|
+
spec.add_development_dependency 'timecop', '~> 0.9.1'
|
|
36
|
+
|
|
37
|
+
spec.files = `git ls-files`.split("\n")
|
|
38
|
+
spec.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
|
39
|
+
spec.executables = `git ls-files -- bin/*`
|
|
40
|
+
.split("\n").map { |f| File.basename(f) }
|
|
41
|
+
spec.require_paths = ['lib']
|
|
42
|
+
end
|
data/script/travis.sh
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
set -e
|
|
3
|
+
RUBYCRITICLIMIT=${RUBYCRITICLIMIT:-"90.0"}
|
|
4
|
+
QUICK=${QUICK:-}
|
|
5
|
+
|
|
6
|
+
bundle exec rspec
|
|
7
|
+
bundle exec rubocop
|
|
8
|
+
if [ -z "$QUICK" ]; then
|
|
9
|
+
gem install bundler-audit && bundle-audit update && bundle-audit check
|
|
10
|
+
bundle exec rake rubycritic lib ${RUBYCRITICPARAMS}
|
|
11
|
+
|
|
12
|
+
if [ "$TRAVIS_PULL_REQUEST" = "false" ] || [ "$TRAVIS_BRANCH" = "master" ]; then
|
|
13
|
+
echo "Pushing badges upstream"
|
|
14
|
+
[ -d badges ] || mkdir badges
|
|
15
|
+
cp coverage/coverage_badge* badges/ 2>/dev/null || true
|
|
16
|
+
fi
|
|
17
|
+
|
|
18
|
+
fi
|
data/spec/spec_helper.rb
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'simplecov'
|
|
4
|
+
require 'simplecov_small_badge'
|
|
5
|
+
require 'byebug'
|
|
6
|
+
require 'timecop'
|
|
7
|
+
|
|
8
|
+
SimpleCov.start do
|
|
9
|
+
add_filter '/spec/'
|
|
10
|
+
|
|
11
|
+
module SimpleCovSmallBadge
|
|
12
|
+
class Formatter
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
SimpleCov.formatters = SimpleCov::Formatter::MultiFormatter.new(
|
|
17
|
+
[
|
|
18
|
+
SimpleCov::Formatter::HTMLFormatter,
|
|
19
|
+
SimpleCovSmallBadge::Formatter
|
|
20
|
+
]
|
|
21
|
+
)
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
SimpleCov.minimum_coverage 100
|
|
25
|
+
|
|
26
|
+
require 'rubygems'
|
|
27
|
+
require 'bundler/setup'
|
|
28
|
+
|
|
29
|
+
require 'rabbitmq_client'
|
|
30
|
+
|
|
31
|
+
Dir[File.join('./spec/support/*.rb')].each { |f| require f }
|
|
32
|
+
|
|
33
|
+
SimpleCovSmallBadge.configure do |config|
|
|
34
|
+
config.rounded_border = true
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
RSpec.configure do |config|
|
|
38
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: rabbitmq_client
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.0.pre
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Al-waleed shihadeh
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2019-10-22 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: activesupport
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - "~>"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: 6.0.0
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: 6.0.0
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: bunny
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - "~>"
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: 2.14.3
|
|
34
|
+
type: :runtime
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - "~>"
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: 2.14.3
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: connection_pool
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - "~>"
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: 2.2.2
|
|
48
|
+
type: :runtime
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - "~>"
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: 2.2.2
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: bundler
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - "~>"
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: 1.17.2
|
|
62
|
+
type: :development
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - "~>"
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: 1.17.2
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: byebug
|
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
|
72
|
+
requirements:
|
|
73
|
+
- - "~>"
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: 11.0.1
|
|
76
|
+
type: :development
|
|
77
|
+
prerelease: false
|
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
- - "~>"
|
|
81
|
+
- !ruby/object:Gem::Version
|
|
82
|
+
version: 11.0.1
|
|
83
|
+
- !ruby/object:Gem::Dependency
|
|
84
|
+
name: overcommit
|
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
|
86
|
+
requirements:
|
|
87
|
+
- - "~>"
|
|
88
|
+
- !ruby/object:Gem::Version
|
|
89
|
+
version: 0.51.0
|
|
90
|
+
type: :development
|
|
91
|
+
prerelease: false
|
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
+
requirements:
|
|
94
|
+
- - "~>"
|
|
95
|
+
- !ruby/object:Gem::Version
|
|
96
|
+
version: 0.51.0
|
|
97
|
+
- !ruby/object:Gem::Dependency
|
|
98
|
+
name: rake
|
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
|
100
|
+
requirements:
|
|
101
|
+
- - "~>"
|
|
102
|
+
- !ruby/object:Gem::Version
|
|
103
|
+
version: 13.0.0
|
|
104
|
+
type: :development
|
|
105
|
+
prerelease: false
|
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
+
requirements:
|
|
108
|
+
- - "~>"
|
|
109
|
+
- !ruby/object:Gem::Version
|
|
110
|
+
version: 13.0.0
|
|
111
|
+
- !ruby/object:Gem::Dependency
|
|
112
|
+
name: rspec
|
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
|
114
|
+
requirements:
|
|
115
|
+
- - "~>"
|
|
116
|
+
- !ruby/object:Gem::Version
|
|
117
|
+
version: 3.9.0
|
|
118
|
+
type: :development
|
|
119
|
+
prerelease: false
|
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
121
|
+
requirements:
|
|
122
|
+
- - "~>"
|
|
123
|
+
- !ruby/object:Gem::Version
|
|
124
|
+
version: 3.9.0
|
|
125
|
+
- !ruby/object:Gem::Dependency
|
|
126
|
+
name: rubocop
|
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
|
128
|
+
requirements:
|
|
129
|
+
- - "~>"
|
|
130
|
+
- !ruby/object:Gem::Version
|
|
131
|
+
version: 0.75.1
|
|
132
|
+
type: :development
|
|
133
|
+
prerelease: false
|
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
135
|
+
requirements:
|
|
136
|
+
- - "~>"
|
|
137
|
+
- !ruby/object:Gem::Version
|
|
138
|
+
version: 0.75.1
|
|
139
|
+
- !ruby/object:Gem::Dependency
|
|
140
|
+
name: rubycritic
|
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
|
142
|
+
requirements:
|
|
143
|
+
- - "~>"
|
|
144
|
+
- !ruby/object:Gem::Version
|
|
145
|
+
version: 4.1.0
|
|
146
|
+
type: :development
|
|
147
|
+
prerelease: false
|
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
149
|
+
requirements:
|
|
150
|
+
- - "~>"
|
|
151
|
+
- !ruby/object:Gem::Version
|
|
152
|
+
version: 4.1.0
|
|
153
|
+
- !ruby/object:Gem::Dependency
|
|
154
|
+
name: rubycritic-small-badge
|
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
|
156
|
+
requirements:
|
|
157
|
+
- - "~>"
|
|
158
|
+
- !ruby/object:Gem::Version
|
|
159
|
+
version: 0.2.1
|
|
160
|
+
type: :development
|
|
161
|
+
prerelease: false
|
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
163
|
+
requirements:
|
|
164
|
+
- - "~>"
|
|
165
|
+
- !ruby/object:Gem::Version
|
|
166
|
+
version: 0.2.1
|
|
167
|
+
- !ruby/object:Gem::Dependency
|
|
168
|
+
name: simplecov
|
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
|
170
|
+
requirements:
|
|
171
|
+
- - "~>"
|
|
172
|
+
- !ruby/object:Gem::Version
|
|
173
|
+
version: 0.17.1
|
|
174
|
+
type: :development
|
|
175
|
+
prerelease: false
|
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
177
|
+
requirements:
|
|
178
|
+
- - "~>"
|
|
179
|
+
- !ruby/object:Gem::Version
|
|
180
|
+
version: 0.17.1
|
|
181
|
+
- !ruby/object:Gem::Dependency
|
|
182
|
+
name: simplecov-small-badge
|
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
|
184
|
+
requirements:
|
|
185
|
+
- - "~>"
|
|
186
|
+
- !ruby/object:Gem::Version
|
|
187
|
+
version: 0.2.4
|
|
188
|
+
type: :development
|
|
189
|
+
prerelease: false
|
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
191
|
+
requirements:
|
|
192
|
+
- - "~>"
|
|
193
|
+
- !ruby/object:Gem::Version
|
|
194
|
+
version: 0.2.4
|
|
195
|
+
- !ruby/object:Gem::Dependency
|
|
196
|
+
name: timecop
|
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
|
198
|
+
requirements:
|
|
199
|
+
- - "~>"
|
|
200
|
+
- !ruby/object:Gem::Version
|
|
201
|
+
version: 0.9.1
|
|
202
|
+
type: :development
|
|
203
|
+
prerelease: false
|
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
205
|
+
requirements:
|
|
206
|
+
- - "~>"
|
|
207
|
+
- !ruby/object:Gem::Version
|
|
208
|
+
version: 0.9.1
|
|
209
|
+
description: "RabbitMq client library support both publish and\b\n subscribe
|
|
210
|
+
use cases."
|
|
211
|
+
email:
|
|
212
|
+
- 'wshihadeh dot dev at gmail dot com '
|
|
213
|
+
executables:
|
|
214
|
+
- console
|
|
215
|
+
extensions: []
|
|
216
|
+
extra_rdoc_files: []
|
|
217
|
+
files:
|
|
218
|
+
- ".gitignore"
|
|
219
|
+
- ".overcommit.yml"
|
|
220
|
+
- ".rspec"
|
|
221
|
+
- ".rubocop.yml"
|
|
222
|
+
- ".ruby-gemset"
|
|
223
|
+
- ".ruby-version"
|
|
224
|
+
- ".travis.yml"
|
|
225
|
+
- Gemfile
|
|
226
|
+
- Gemfile.lock
|
|
227
|
+
- LICENSE.txt
|
|
228
|
+
- README.md
|
|
229
|
+
- Rakefile
|
|
230
|
+
- bin/console
|
|
231
|
+
- lib/rabbitmq_client.rb
|
|
232
|
+
- lib/rabbitmq_client/version.rb
|
|
233
|
+
- rabbitmq_client.gemspec
|
|
234
|
+
- script/travis.sh
|
|
235
|
+
- spec/rabbitmq_client_spec.rb
|
|
236
|
+
- spec/spec_helper.rb
|
|
237
|
+
homepage: https://github.com/wshihadeh/rabbitmq_client
|
|
238
|
+
licenses:
|
|
239
|
+
- MIT
|
|
240
|
+
metadata:
|
|
241
|
+
allowed_push_host: https://rubygems.org
|
|
242
|
+
homepage_uri: https://github.com/wshihadeh/rabbitmq_client
|
|
243
|
+
post_install_message:
|
|
244
|
+
rdoc_options: []
|
|
245
|
+
require_paths:
|
|
246
|
+
- lib
|
|
247
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
248
|
+
requirements:
|
|
249
|
+
- - ">="
|
|
250
|
+
- !ruby/object:Gem::Version
|
|
251
|
+
version: '0'
|
|
252
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
253
|
+
requirements:
|
|
254
|
+
- - ">"
|
|
255
|
+
- !ruby/object:Gem::Version
|
|
256
|
+
version: 1.3.1
|
|
257
|
+
requirements: []
|
|
258
|
+
rubygems_version: 3.0.3
|
|
259
|
+
signing_key:
|
|
260
|
+
specification_version: 4
|
|
261
|
+
summary: RabbitMq client library
|
|
262
|
+
test_files:
|
|
263
|
+
- spec/rabbitmq_client_spec.rb
|
|
264
|
+
- spec/spec_helper.rb
|