fluent-plugin-masking 1.0.2 → 1.0.3

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: 737c2cddcc0b796becb417b194c5ac9a8d25dc540125c81c8e9f1f4ae90c67fc
4
- data.tar.gz: 15d0092825ca7b06b4d844f9d68042a56d081cf15f70327deddc06e63458c586
3
+ metadata.gz: eac8728e8ab2116246c15dc8b97352fb317b0c774d4cbd19e2578f2d426fd5de
4
+ data.tar.gz: a9dc09d8ed9b0d72285e1bd9c10bbcc825e33b097090a7afb286a8841a0b4d28
5
5
  SHA512:
6
- metadata.gz: f956ccf1112547d5d1a4a9ef29368c6719cf7b67c5b57e1c2f95540067774e1d06a5fad3d55b5f2282d36ea68a14f1e098dcc7b704e4ba653d5d3a248e081d19
7
- data.tar.gz: 71eb6075664087bb1d600b5fedf7be4d9fedea8c8e6f98516f1e8b19661198d7dc44de6aaf5e6e3956a24426b1cc827d909150109c393553d33910aad8508f47
6
+ metadata.gz: effefbecab3678855e6ca8e903c9eac426a5d27b62be6e3931c625a7abd40c9c4aafcdded96b6b28dcdaa2b905228e6f5705b62c5d81ce5c9a15970a24c4fe58
7
+ data.tar.gz: f17f1fd48b7484668a8210994a26cdc73c603a9106d3e1f4a4fb8f793029496458e962f9e2fe2462fb607d54c1526655402271054e43fbd1df7135469f7b5d1b
data/.gitignore ADDED
@@ -0,0 +1,3 @@
1
+ .bundle/
2
+ vendor/
3
+ *.gem
data/.gitlab-ci.yml ADDED
@@ -0,0 +1,75 @@
1
+ image: ruby:2.6.3
2
+
3
+ # Cache gems in between builds
4
+ cache:
5
+ key: ${CI_COMMIT_REF_SLUG}
6
+ paths:
7
+ - vendor/ruby
8
+
9
+ before_script:
10
+ - gem install bundler:2.0.2
11
+ - bundle install -j $(nproc) --path vendor # Install dependencies into ./vendor/ruby
12
+
13
+ stages:
14
+ - test
15
+ - release
16
+
17
+ variables:
18
+ DOCKER_TLS_CERTDIR: ""
19
+
20
+ unit-test:
21
+ tags:
22
+ - dcos-multi-runner
23
+ stage: test
24
+ script:
25
+ - bundle exec rake test
26
+ except:
27
+ - tags
28
+
29
+ .release: &release
30
+ tags:
31
+ - dcos-multi-runner
32
+ stage: release
33
+ before_script:
34
+ - echo "Setup ssh inside the runner.."
35
+ - git config --global user.email $GITLAB_USER_EMAIL
36
+ - git config --global user.name $GITLAB_USER_LOGIN
37
+ - 'which ssh-agent || ( apk --update add openssh-client )'
38
+ - eval $(ssh-agent -s)
39
+ - ssh-add <(echo "$SSH_PRIVATE_KEY")
40
+ - mkdir -p ~/.ssh
41
+ - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
42
+ - echo "Clone the source code.."
43
+ - GIT_URL=$(echo $CI_PROJECT_URL | cut -d'/' -f3)
44
+ - git clone git@$GIT_URL:$CI_PROJECT_PATH.git
45
+ - cd $CI_PROJECT_NAME
46
+ - git reset --hard $CI_COMMIT_SHA
47
+ script:
48
+ - mkdir -p ~/.gem
49
+ - 'echo -e "---\n:rubygems_api_key: $GEM_HOST_API_KEY" > ~/.gem/credentials && echo "created gem credentials"'
50
+ - chmod 0600 ~/.gem/credentials
51
+ - gem install gem-release
52
+ - gem bump fluent-plugin-masking --version $TYPE --file ./lib/fluent/plugin/version.rb --commit --push
53
+ # - gem release fluent-plugin-masking --push --key rubygems_api_key
54
+ - gem build fluent-plugin-masking.gemspec
55
+ # - export VERSION=$(gem bump --pretend --file ./lib/fluent/plugin/version.rb --no-commit | awk '{ print $4 }')
56
+ - export VERSION=$(cat ./lib/fluent/plugin/version.rb | grep VERSION | sed -ne 's/[^0-9]*\(\([0-9]\.\)\{0,4\}[0-9][^.]\).*/\1/p' | sed 's/"$//')
57
+ - gem push fluent-plugin-masking-$VERSION.gem
58
+ when: manual
59
+ only:
60
+ - master
61
+
62
+ release:patch:
63
+ extends: .release
64
+ variables:
65
+ TYPE: patch
66
+
67
+ release:minor:
68
+ extends: .release
69
+ variables:
70
+ TYPE: minor
71
+
72
+ release:major:
73
+ extends: .release
74
+ variables:
75
+ TYPE: major
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fluent-plugin-masking (1.0.0)
4
+ fluent-plugin-masking (1.0.2)
5
5
  fluentd (>= 0.14.0, < 2)
6
6
 
7
7
  GEM
data/README.md ADDED
@@ -0,0 +1 @@
1
+ fluent-plugin-masking
@@ -1,9 +1,11 @@
1
1
  lib = File.expand_path('../lib', __FILE__)
2
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
+ require ('./lib/fluent/plugin/version.rb')
5
+
4
6
  Gem::Specification.new do |spec|
5
7
  spec.name = "fluent-plugin-masking"
6
- spec.version = "1.0.2"
8
+ spec.version = FilterMasking::VERSION
7
9
 
8
10
  spec.authors = ["Shai Moria", "Niv Lipetz"]
9
11
  spec.email = ["shai.moria@zooz.com", "niv.lipetz@zooz.com"]
@@ -0,0 +1,3 @@
1
+ module FilterMasking
2
+ VERSION = "1.0.3"
3
+ end
@@ -4,7 +4,7 @@ require "test-unit"
4
4
  require "fluent/test"
5
5
  require "fluent/test/driver/filter"
6
6
  require "fluent/test/helpers"
7
- require "/Users/nivlipetz/Documents/sre/logs-infra/fluentd-docker/custom-plugins/filter_masking.rb"
7
+ require "./lib/fluent/plugin/filter_masking.rb"
8
8
 
9
9
  MASK_STRING = "*******"
10
10
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-masking
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shai Moria
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-08-14 00:00:00.000000000 Z
12
+ date: 2019-08-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fluentd
@@ -95,13 +95,15 @@ executables: []
95
95
  extensions: []
96
96
  extra_rdoc_files: []
97
97
  files:
98
+ - ".gitignore"
99
+ - ".gitlab-ci.yml"
98
100
  - Gemfile
99
101
  - Gemfile.lock
102
+ - README.md
100
103
  - Rakefile
101
- - fluent-plugin-masking-1.0.0.gem
102
- - fluent-plugin-masking-1.0.1.gem
103
104
  - fluent-plugin-masking.gemspec
104
105
  - lib/fluent/plugin/filter_masking.rb
106
+ - lib/fluent/plugin/version.rb
105
107
  - test/fields-to-mask
106
108
  - test/test_filter_masking.rb
107
109
  homepage: https://github.com/zooz
@@ -123,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
125
  - !ruby/object:Gem::Version
124
126
  version: '0'
125
127
  requirements: []
126
- rubygems_version: 3.0.4
128
+ rubygems_version: 3.0.3
127
129
  signing_key:
128
130
  specification_version: 4
129
131
  summary: Fluentd Filter plugin to mask given fields in messages
Binary file
Binary file