dorian-anonymize-yaml 0.2.3 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/anonymize-yaml +2 -4
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4b4a24d6484fb6c4079c7777f0f1bfdb54c4d0f16bd53ebb771388fd009d6cc3
4
- data.tar.gz: 93debeed80b244757704efc1e610a2e0db4a3e58cc74bc3a4a6b2e3c32279006
3
+ metadata.gz: c8abb514c397e36971a3edc99d10418e356057a02a9cbe33dbd81fd71b263177
4
+ data.tar.gz: fb18bc9a83722216373b42aa5e3bb0736ea217b1a1a9db09417aebd7b129d69f
5
5
  SHA512:
6
- metadata.gz: 0543dc286a648769f4fe64fbdbc71a5f56d2e6fb13d8f596b58e89e6118ab811e4d0c1b6dc050ae7a4d83f51583626ede4736983c0a80539df4d57df2ce4ed79
7
- data.tar.gz: cb86e85bbd65cc9f20374ad95af72a6d2936b7545583b845540835c39275ec823fab52fdbe55effacd35a7f75e2c614f64d267373b467297a375ff3f266af8f4
6
+ metadata.gz: f14dec32699fb144544142b913256be39ed9c4628eb87858f1a76697613ac2114613395cbde353b97e948a2f333b858ba593565ab38473c4044381efd9351510
7
+ data.tar.gz: 2429b57e5b9ff98a3d1dbb30ed8c67cbae554674b275fa3a4025c06628c2c62a6176018c85876b3332db7b3ae7fff250b478066ae17c93bd669e0169cf7197ac
data/bin/anonymize-yaml CHANGED
@@ -28,12 +28,10 @@ parsed = Dorian::Arguments.parse(version: { alias: :v }, help: { alias: :h })
28
28
  abort parsed.help if parsed.options.help
29
29
 
30
30
  if parsed.options.version
31
- abort File.read(File.expand_path("../../VERSION", __FILE__))
31
+ abort File.read(File.expand_path("../VERSION", __dir__))
32
32
  end
33
33
 
34
34
  inputs = parsed.arguments + parsed.files.map { |file| File.read(file) }
35
35
  inputs = [$stdin.each_line.to_a.join] if inputs.empty?
36
36
 
37
- inputs.each do |input|
38
- puts anonymize_yaml(YAML.safe_load(input)).to_yaml
39
- end
37
+ inputs.each { |input| puts anonymize_yaml(YAML.safe_load(input)).to_yaml }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dorian-anonymize-yaml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dorian Marié
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-22 00:00:00.000000000 Z
11
+ date: 2024-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dorian-arguments
@@ -43,9 +43,9 @@ require_paths:
43
43
  - lib
44
44
  required_ruby_version: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - ">="
46
+ - - '='
47
47
  - !ruby/object:Gem::Version
48
- version: '0'
48
+ version: 3.3.4
49
49
  required_rubygems_version: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - ">="