aggkit 0.4.4.9175 → 0.4.4.9269
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 +4 -4
- data/.gitlab-ci.yml +40 -0
- data/.pronto.yml +8 -0
- data/.rspec +2 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +11 -1
- data/README.md +3 -1
- data/bin/aggmerge +1 -1
- data/bin/aggstart +1 -1
- data/docker/run_tests.sh +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d76188c57b22e43746746cf2951cbbb032a85ff7
|
4
|
+
data.tar.gz: c2eae741b4bbae79e47176bd7ed9e4487fdbcace
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2b32a2be893c42ffc3624cbe474384adf6a171c3f461745f8208089d8bc37d1e72c860835aefcb9d67b8b03106d830b49683f60d6b9fd6c0826c88557b56250
|
7
|
+
data.tar.gz: 399b46ce2649b2a74393058e4d790a0d90405ef840baa333b4219cc0bc5756ce6d69074853e88bf9484657baa5de50870787077eb792a011a6186fef64503ff3
|
data/.gitlab-ci.yml
CHANGED
@@ -46,6 +46,11 @@ test-2.1:
|
|
46
46
|
RUBY_VERSION: '2.1'
|
47
47
|
script:
|
48
48
|
- docker/run_tests.sh
|
49
|
+
- cp docker/rspec* .
|
50
|
+
artifacts:
|
51
|
+
reports:
|
52
|
+
junit: rspec*.xml
|
53
|
+
|
49
54
|
|
50
55
|
test-2.5:
|
51
56
|
image: rnds/ruby:2.3.0-test
|
@@ -54,6 +59,39 @@ test-2.5:
|
|
54
59
|
RUBY_VERSION: '2.5'
|
55
60
|
script:
|
56
61
|
- docker/run_tests.sh
|
62
|
+
- cp docker/rspec* .
|
63
|
+
artifacts:
|
64
|
+
reports:
|
65
|
+
junit: rspec*.xml
|
66
|
+
|
67
|
+
|
68
|
+
pronto:
|
69
|
+
image: rnds/ruby:2.3.0-test
|
70
|
+
stage: tests
|
71
|
+
script:
|
72
|
+
- gem install pronto pronto-rubocop pronto-flay
|
73
|
+
- PRONTO_GITLAB_SLUG=${CI_PROJECT_ID} PRONTO_GITLAB_API_PRIVATE_TOKEN=${BOT_TOKEN} pronto run -f gitlab -c origin/master
|
74
|
+
|
75
|
+
code_quality:
|
76
|
+
stage: tests
|
77
|
+
image: docker:stable
|
78
|
+
variables:
|
79
|
+
DOCKER_DRIVER: overlay2
|
80
|
+
allow_failure: true
|
81
|
+
services:
|
82
|
+
- docker:stable-dind
|
83
|
+
before_script:
|
84
|
+
- echo ok
|
85
|
+
script:
|
86
|
+
- export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
|
87
|
+
- docker run
|
88
|
+
--env SOURCE_CODE="$PWD"
|
89
|
+
--volume "$PWD":/code
|
90
|
+
--volume /var/run/docker.sock:/var/run/docker.sock
|
91
|
+
"registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
|
92
|
+
artifacts:
|
93
|
+
reports:
|
94
|
+
codequality: gl-code-quality-report.json
|
57
95
|
|
58
96
|
pushgem:
|
59
97
|
image: rnds/ruby:2.3.0-test
|
@@ -64,4 +102,6 @@ pushgem:
|
|
64
102
|
- chmod 600 ~/.gem/credentials
|
65
103
|
- export GEMFILE=`ls *.gem | tail -n 1`
|
66
104
|
- gem push $GEMFILE
|
105
|
+
only:
|
106
|
+
- master
|
67
107
|
|
data/.pronto.yml
ADDED
data/.rspec
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
aggkit (0.4.4
|
4
|
+
aggkit (0.4.4)
|
5
5
|
diplomat
|
6
6
|
dotenv
|
7
7
|
json
|
@@ -14,6 +14,7 @@ GEM
|
|
14
14
|
diff-lcs (1.3)
|
15
15
|
diplomat (2.0.5)
|
16
16
|
faraday (~> 0.9)
|
17
|
+
docile (1.3.1)
|
17
18
|
dotenv (2.7.1)
|
18
19
|
faraday (0.15.4)
|
19
20
|
multipart-post (>= 1.2, < 3)
|
@@ -36,6 +37,13 @@ GEM
|
|
36
37
|
rspec-core (> 3.3)
|
37
38
|
rspec-set (0.1.3)
|
38
39
|
rspec-support (3.8.0)
|
40
|
+
rspec_junit_formatter (0.4.1)
|
41
|
+
rspec-core (>= 2, < 4, != 2.12.0)
|
42
|
+
simplecov (0.16.1)
|
43
|
+
docile (~> 1.1)
|
44
|
+
json (>= 1.8, < 3)
|
45
|
+
simplecov-html (~> 0.10.0)
|
46
|
+
simplecov-html (0.10.2)
|
39
47
|
tty-tree (0.2.0)
|
40
48
|
|
41
49
|
PLATFORMS
|
@@ -49,6 +57,8 @@ DEPENDENCIES
|
|
49
57
|
rspec
|
50
58
|
rspec-retry
|
51
59
|
rspec-set
|
60
|
+
rspec_junit_formatter
|
61
|
+
simplecov
|
52
62
|
|
53
63
|
BUNDLED WITH
|
54
64
|
1.16.2
|
data/README.md
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
# aggkit
|
2
2
|
Helper tools for work with docker and consul
|
3
3
|
|
4
|
-
[](http://br.rnds.pro/aggredator/support/aggkit/commits/master)
|
5
|
+
[](https://badge.fury.io/rb/aggkit)
|
6
|
+
[](http://br.rnds.pro/aggredator/support/aggkit/commits/master)
|
5
7
|
|
6
8
|
## Scripts
|
7
9
|
|
data/bin/aggmerge
CHANGED
@@ -123,7 +123,7 @@ end
|
|
123
123
|
|
124
124
|
if File.basename($PROGRAM_NAME) == File.basename(__FILE__)
|
125
125
|
# version в базовом хэше для того чтобы первым попасть в итоговый файл.
|
126
|
-
result = ENV['COMPOSE_FILE'].split(':').reduce(
|
126
|
+
result = ENV['COMPOSE_FILE'].split(':').reduce('version' => nil) do |parent, file|
|
127
127
|
yml = process_compose_hash(YAML.load(File.read(file)), File.dirname(file), parent)
|
128
128
|
if yml['version'] && parent['version'] && yml['version'] != parent['version']
|
129
129
|
raise "version mismatch: #{file}"
|
data/bin/aggstart
CHANGED
@@ -93,7 +93,7 @@ if @opts[:watch]
|
|
93
93
|
%W[-config-dir #{folder}]
|
94
94
|
end.flatten
|
95
95
|
|
96
|
-
consulcmd = %
|
96
|
+
consulcmd = %w[consul agent] + configs + %W[-node #{@opts[:node_name]}]
|
97
97
|
watcher.add *consulcmd
|
98
98
|
@opts[:consul] = ENV['CONSUL_HTTP_ADDR'] = 'localhost'
|
99
99
|
end
|
data/docker/run_tests.sh
CHANGED
@@ -16,6 +16,7 @@ docker-compose up -d --force-recreate --build || exit 1
|
|
16
16
|
echo "\n ** Testing with Ruby $RUBY_VERSION **\n"
|
17
17
|
docker-compose exec -T tests /bin/bash -c -l "rvm use $RUBY_VERSION; exec bundle exec rspec $@"
|
18
18
|
|
19
|
+
docker cp "$(docker-compose ps -q tests)":/home/app/rspec.xml ./rspec-${RUBY_VERSION}.xml || true
|
19
20
|
|
20
21
|
code=$?
|
21
22
|
if [ $code -ne 0 ]; then
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aggkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.4.
|
4
|
+
version: 0.4.4.9269
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Godko Ivan
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-
|
12
|
+
date: 2019-03-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: diplomat
|
@@ -116,6 +116,7 @@ files:
|
|
116
116
|
- ".dockerignore"
|
117
117
|
- ".gitignore"
|
118
118
|
- ".gitlab-ci.yml"
|
119
|
+
- ".pronto.yml"
|
119
120
|
- ".rspec"
|
120
121
|
- ".rubocop.yml"
|
121
122
|
- ".travis.yml"
|