Skip to content

Commit 48ae41d

Browse files
committed
fix: resolve master conflicts
2 parents 255ea71 + 989c44d commit 48ae41d

11 files changed

+39
-91
lines changed

.circleci/config.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
version: 2.1
2+
orbs:
3+
ruby: circleci/ruby@0.1.2
4+
5+
executors:
6+
v2-5-0:
7+
docker:
8+
- image: circleci/ruby:2.5.0
9+
10+
jobs:
11+
tests:
12+
parameters:
13+
ruby-version:
14+
type: executor
15+
executor: << parameters.ruby-version >>
16+
steps:
17+
- checkout
18+
- run: gem install bundler
19+
- run: bundle install
20+
- run: ruby -r ./test/*.rb
21+
22+
workflows:
23+
tests:
24+
jobs:
25+
- tests:
26+
matrix:
27+
parameters:
28+
ruby-version: [v2-5-0]
29+

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
.bundle/
22
vendor/
33
*.gem
4-
.idea/
4+
.idea/
5+
Gemfile.lock
6+
Rakefile

.travis.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

Gemfile.lock

Lines changed: 0 additions & 55 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Fluentd filter plugin to mask sensitive or privacy records with `*******` in pla
88
# Requirements
99
| fluent-plugin-masking | fluentd | ruby |
1010
| --------------------- | ---------- | ------ |
11-
| 1.0.x | >= v0.14.0 | >= 2.1 |
11+
| 1.2.x | >= v0.14.0 | >= 2.5 |
1212

1313

1414
# Installation
@@ -39,7 +39,7 @@ Example fields-to-mask-file:
3939
```
4040
name
4141
email
42-
phone
42+
phone/i # the '/i' suffix will make sure phone field will be case insensitive
4343
```
4444

4545
# Quick Guide

Rakefile

Lines changed: 0 additions & 9 deletions
This file was deleted.

fluent-plugin-masking.gemspec

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@ Gem::Specification.new do |spec|
1818
spec.require_paths = ["lib"]
1919
spec.license = "Apache-2.0"
2020

21-
spec.required_ruby_version = '>= 2.1'
21+
spec.required_ruby_version = '>= 2.5.0'
2222

2323
spec.add_runtime_dependency "fluentd", ">= 0.14.0"
24-
spec.add_development_dependency "bundler", "1.17.3"
25-
spec.add_development_dependency "rake", "~> 12.0"
2624
spec.add_development_dependency "test-unit", ">= 3.1.0"
2725
spec.add_development_dependency "test-unit-rr"
2826
end

lib/fluent/plugin/filter_masking.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
require 'fluent/filter'
2-
require './lib/fluent/plugin/helpers.rb'
2+
require_relative './helpers.rb'
33

44
module Fluent
55
module Plugin
@@ -85,7 +85,6 @@ def configure(conf)
8585

8686
File.open(fieldsToMaskFilePath, "r") do |f|
8787
f.each_line do |line|
88-
8988
value = line.to_s # make sure it's string
9089
value = value.gsub(/\s+/, "") # remove spaces
9190
value = value.gsub('\n', '') # remove line breakers

lib/fluent/plugin/version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module FilterMasking
2-
VERSION = "1.1.1"
3-
end
2+
VERSION = "1.2.0"
3+
end

test/fields-to-mask

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ last_name
44
street
55
number
66
password
7-
cookie
7+
cookie

test/test_filter_masking.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# test/plugin/test_filter_your_own.rb
2-
31
require "test-unit"
42
require "fluent/test"
53
require "fluent/test/driver/filter"

0 commit comments

Comments
 (0)