logstash-mixin-rabbitmq_connection 5.0.2-java → 5.1.0-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +12 -14
- data/CHANGELOG.md +3 -0
- data/ci/unit/Dockerfile +11 -0
- data/ci/unit/docker-compose.yml +17 -0
- data/ci/unit/docker-run.sh +5 -0
- data/ci/unit/docker-setup.sh +55 -0
- data/ci/unit/run.sh +7 -0
- data/logstash-mixin-rabbitmq_connection.gemspec +7 -2
- metadata +10 -7
- data/ci/build.sh +0 -21
- data/ci/setup.sh +0 -26
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 818efc953a67373bc805010913c45d885adf6ddc65f9e4488fe015593a776d13
|
4
|
+
data.tar.gz: 3ef95cd4c7adbecfda0c8082bf63d936b4b14c2bfd44d3669f69467fa215fd0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f6a6561d2a2e2ea97802f4473f2b7b77ae6ce71dbd23163d1ea1ede42dd7484ee78617594057163757aeea0846254b21dc377da0be2ea1677c119ba90c4c58f
|
7
|
+
data.tar.gz: 4f72684a92ce299c13b8d9f507bd8168190ffb334be3a2e0c4c58e574ab149d596345bd874c0fbd193b00941adff2481074f1ce32095c0847bc199db454f27ea
|
data/.travis.yml
CHANGED
@@ -1,18 +1,16 @@
|
|
1
1
|
---
|
2
|
-
sudo:
|
3
|
-
|
4
|
-
|
2
|
+
sudo: required
|
3
|
+
services: docker
|
4
|
+
addons:
|
5
|
+
apt:
|
6
|
+
packages:
|
7
|
+
- docker-ce
|
5
8
|
matrix:
|
6
9
|
include:
|
7
|
-
|
8
|
-
env:
|
9
|
-
|
10
|
-
env:
|
11
|
-
- rvm: jruby-9.1.13.0
|
12
|
-
env: LOGSTASH_BRANCH=6.0
|
13
|
-
- rvm: jruby-1.7.27
|
14
|
-
env: LOGSTASH_BRANCH=5.6
|
10
|
+
- env: ELASTIC_STACK_VERSION=8.x SNAPSHOT=true
|
11
|
+
- env: ELASTIC_STACK_VERSION=7.x SNAPSHOT=true
|
12
|
+
- env: ELASTIC_STACK_VERSION=7.x
|
13
|
+
- env: ELASTIC_STACK_VERSION=6.x
|
15
14
|
fast_finish: true
|
16
|
-
install:
|
17
|
-
script: ci/
|
18
|
-
jdk: oraclejdk8
|
15
|
+
install: ci/unit/docker-setup.sh
|
16
|
+
script: ci/unit/docker-run.sh
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
## 5.1.0
|
2
|
+
- Updated `march_hare` dependency to `4.x`, which enables consumers to reliably manage a connection blocked/unblocked state machine that survives connection recovery.
|
3
|
+
- Removed support for Logstash 5.x since `march_hare` >= 3.x is not compatible.
|
1
4
|
## 5.0.2
|
2
5
|
- Bug Fix: undefined method `value' for nil:NilClass with SSL enabled, but no certificates provided [#109](https://github.com/logstash-plugins/logstash-input-rabbitmq/issues/109)
|
3
6
|
## 5.0.1
|
data/ci/unit/Dockerfile
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
ARG ELASTIC_STACK_VERSION
|
2
|
+
FROM docker.elastic.co/logstash/logstash:$ELASTIC_STACK_VERSION
|
3
|
+
COPY --chown=logstash:logstash Gemfile /usr/share/plugins/plugin/Gemfile
|
4
|
+
COPY --chown=logstash:logstash *.gemspec /usr/share/plugins/plugin/
|
5
|
+
RUN cp /usr/share/logstash/logstash-core/versions-gem-copy.yml /usr/share/logstash/versions.yml
|
6
|
+
ENV PATH="${PATH}:/usr/share/logstash/vendor/jruby/bin"
|
7
|
+
ENV LOGSTASH_SOURCE="1"
|
8
|
+
RUN gem install bundler -v '< 2'
|
9
|
+
WORKDIR /usr/share/plugins/plugin
|
10
|
+
RUN bundle install
|
11
|
+
COPY --chown=logstash:logstash . /usr/share/plugins/plugin
|
@@ -0,0 +1,17 @@
|
|
1
|
+
version: '3'
|
2
|
+
|
3
|
+
# run tests: cd ci/unit; docker-compose up --build --force-recreate
|
4
|
+
# manual: cd ci/unit; docker-compose run logstash bash
|
5
|
+
services:
|
6
|
+
|
7
|
+
logstash:
|
8
|
+
build:
|
9
|
+
context: ../../
|
10
|
+
dockerfile: ci/unit/Dockerfile
|
11
|
+
args:
|
12
|
+
- ELASTIC_STACK_VERSION=$ELASTIC_STACK_VERSION
|
13
|
+
command: /usr/share/plugins/plugin/ci/unit/run.sh
|
14
|
+
environment:
|
15
|
+
LS_JAVA_OPTS: "-Xmx256m -Xms256m"
|
16
|
+
LOGSTASH_SOURCE: 1
|
17
|
+
tty: true
|
@@ -0,0 +1,55 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
|
3
|
+
# This is intended to be run the plugin's root directory. `ci/unit/docker-test.sh`
|
4
|
+
# Ensure you have Docker installed locally and set the ELASTIC_STACK_VERSION environment variable.
|
5
|
+
set -e
|
6
|
+
|
7
|
+
VERSION_URL="https://raw.githubusercontent.com/elastic/logstash/master/ci/logstash_releases.json"
|
8
|
+
|
9
|
+
if [ -z "${ELASTIC_STACK_VERSION}" ]; then
|
10
|
+
echo "Please set the ELASTIC_STACK_VERSION environment variable"
|
11
|
+
echo "For example: export ELASTIC_STACK_VERSION=6.2.4"
|
12
|
+
exit 1
|
13
|
+
fi
|
14
|
+
|
15
|
+
echo "Fetching versions from $VERSION_URL"
|
16
|
+
VERSIONS=$(curl $VERSION_URL)
|
17
|
+
|
18
|
+
if [[ "$SNAPSHOT" = "true" ]]; then
|
19
|
+
ELASTIC_STACK_RETRIEVED_VERSION=$(echo $VERSIONS | jq '.snapshots."'"$ELASTIC_STACK_VERSION"'"')
|
20
|
+
echo $ELASTIC_STACK_RETRIEVED_VERSION
|
21
|
+
else
|
22
|
+
ELASTIC_STACK_RETRIEVED_VERSION=$(echo $VERSIONS | jq '.releases."'"$ELASTIC_STACK_VERSION"'"')
|
23
|
+
fi
|
24
|
+
|
25
|
+
if [[ "$ELASTIC_STACK_RETRIEVED_VERSION" != "null" ]]; then
|
26
|
+
# remove starting and trailing double quotes
|
27
|
+
ELASTIC_STACK_RETRIEVED_VERSION="${ELASTIC_STACK_RETRIEVED_VERSION%\"}"
|
28
|
+
ELASTIC_STACK_RETRIEVED_VERSION="${ELASTIC_STACK_RETRIEVED_VERSION#\"}"
|
29
|
+
echo "Translated $ELASTIC_STACK_VERSION to ${ELASTIC_STACK_RETRIEVED_VERSION}"
|
30
|
+
export ELASTIC_STACK_VERSION=$ELASTIC_STACK_RETRIEVED_VERSION
|
31
|
+
fi
|
32
|
+
|
33
|
+
echo "Testing against version: $ELASTIC_STACK_VERSION"
|
34
|
+
|
35
|
+
if [[ "$ELASTIC_STACK_VERSION" = *"-SNAPSHOT" ]]; then
|
36
|
+
cd /tmp
|
37
|
+
|
38
|
+
jq=".build.projects.logstash.packages.\"logstash-$ELASTIC_STACK_VERSION-docker-image.tar.gz\".url"
|
39
|
+
result=$(curl --silent https://artifacts-api.elastic.co/v1/versions/$ELASTIC_STACK_VERSION/builds/latest | jq -r $jq)
|
40
|
+
echo $result
|
41
|
+
curl $result > logstash-docker-image.tar.gz
|
42
|
+
tar xfvz logstash-docker-image.tar.gz repositories
|
43
|
+
echo "Loading docker image: "
|
44
|
+
cat repositories
|
45
|
+
docker load < logstash-docker-image.tar.gz
|
46
|
+
rm logstash-docker-image.tar.gz
|
47
|
+
cd -
|
48
|
+
fi
|
49
|
+
|
50
|
+
if [ -f Gemfile.lock ]; then
|
51
|
+
rm Gemfile.lock
|
52
|
+
fi
|
53
|
+
|
54
|
+
docker-compose -f ci/unit/docker-compose.yml down
|
55
|
+
docker-compose -f ci/unit/docker-compose.yml build
|
data/ci/unit/run.sh
ADDED
@@ -1,7 +1,7 @@
|
|
1
1
|
|
2
2
|
Gem::Specification.new do |s|
|
3
3
|
s.name = 'logstash-mixin-rabbitmq_connection'
|
4
|
-
s.version = '5.0
|
4
|
+
s.version = '5.1.0'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "Common functionality for RabbitMQ plugins"
|
7
7
|
s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
|
@@ -17,7 +17,12 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
18
18
|
|
19
19
|
s.platform = RUBY_PLATFORM
|
20
|
-
|
20
|
+
|
21
|
+
# MarchHare 3.x+ includes ruby syntax from 2.x
|
22
|
+
# This effectively requires Logstash >= 6.x
|
23
|
+
s.required_ruby_version = '>= 2.0.0'
|
24
|
+
|
25
|
+
s.add_runtime_dependency 'march_hare', ['~> 4.0'] #(MIT license)
|
21
26
|
s.add_runtime_dependency 'stud', '~> 0.0.22'
|
22
27
|
|
23
28
|
s.add_development_dependency 'logstash-devutils'
|
metadata
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-mixin-rabbitmq_connection
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0
|
4
|
+
version: 5.1.0
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
15
15
|
requirements:
|
16
16
|
- - "~>"
|
17
17
|
- !ruby/object:Gem::Version
|
18
|
-
version: '
|
18
|
+
version: '4.0'
|
19
19
|
name: march_hare
|
20
20
|
prerelease: false
|
21
21
|
type: :runtime
|
@@ -23,7 +23,7 @@ dependencies:
|
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '4.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
29
29
|
requirements:
|
@@ -97,8 +97,11 @@ files:
|
|
97
97
|
- Gemfile
|
98
98
|
- README.md
|
99
99
|
- Rakefile
|
100
|
-
- ci/
|
101
|
-
- ci/
|
100
|
+
- ci/unit/Dockerfile
|
101
|
+
- ci/unit/docker-compose.yml
|
102
|
+
- ci/unit/docker-run.sh
|
103
|
+
- ci/unit/docker-setup.sh
|
104
|
+
- ci/unit/run.sh
|
102
105
|
- lib/logstash/plugin_mixins/rabbitmq_connection.rb
|
103
106
|
- logstash-mixin-rabbitmq_connection.gemspec
|
104
107
|
- spec/fixtures/README.md
|
@@ -142,7 +145,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
142
145
|
requirements:
|
143
146
|
- - ">="
|
144
147
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
148
|
+
version: 2.0.0
|
146
149
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
147
150
|
requirements:
|
148
151
|
- - ">="
|
data/ci/build.sh
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
# version: 1
|
3
|
-
########################################################
|
4
|
-
#
|
5
|
-
# AUTOMATICALLY GENERATED! DO NOT EDIT
|
6
|
-
#
|
7
|
-
########################################################
|
8
|
-
set -e
|
9
|
-
|
10
|
-
echo "Starting build process in: `pwd`"
|
11
|
-
source ./ci/setup.sh
|
12
|
-
|
13
|
-
if [[ -f "ci/run.sh" ]]; then
|
14
|
-
echo "Running custom build script in: `pwd`/ci/run.sh"
|
15
|
-
source ./ci/run.sh
|
16
|
-
else
|
17
|
-
echo "Running default build scripts in: `pwd`/ci/build.sh"
|
18
|
-
bundle install
|
19
|
-
bundle exec rake vendor
|
20
|
-
bundle exec rspec spec
|
21
|
-
fi
|
data/ci/setup.sh
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
# version: 1
|
3
|
-
########################################################
|
4
|
-
#
|
5
|
-
# AUTOMATICALLY GENERATED! DO NOT EDIT
|
6
|
-
#
|
7
|
-
########################################################
|
8
|
-
set -e
|
9
|
-
if [ "$LOGSTASH_BRANCH" ]; then
|
10
|
-
echo "Building plugin using Logstash source"
|
11
|
-
BASE_DIR=`pwd`
|
12
|
-
echo "Checking out branch: $LOGSTASH_BRANCH"
|
13
|
-
git clone -b $LOGSTASH_BRANCH https://github.com/elastic/logstash.git ../../logstash --depth 1
|
14
|
-
printf "Checked out Logstash revision: %s\n" "$(git -C ../../logstash rev-parse HEAD)"
|
15
|
-
cd ../../logstash
|
16
|
-
echo "Building plugins with Logstash version:"
|
17
|
-
cat versions.yml
|
18
|
-
echo "---"
|
19
|
-
# We need to build the jars for that specific version
|
20
|
-
echo "Running gradle assemble in: `pwd`"
|
21
|
-
./gradlew assemble
|
22
|
-
cd $BASE_DIR
|
23
|
-
export LOGSTASH_SOURCE=1
|
24
|
-
else
|
25
|
-
echo "Building plugin using released gems on rubygems"
|
26
|
-
fi
|