dorian-yaml-read-write 1.0.0 → 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/yaml-read-write +2 -4
  3. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 25cf764d83c86ae99d85b0fe75da6cb7744db00e877489bd893cbd4ae254463e
4
- data.tar.gz: 8936baf029954e5b83a00e45fd54499b2dff6d579cb61551b635e5a406ff6f71
3
+ metadata.gz: 699e62163575533262a44eae570f92122c32a9ad1cc0d22f874bdbbf8e581237
4
+ data.tar.gz: 316e34c21dded0039a0a53f1508dcda06b0bd06accedb6510df1904a6bb86177
5
5
  SHA512:
6
- metadata.gz: 511643ec4c239668ba9a740a43e6f3ab2abe17155530df90e2ce57ce68e567e8172cd22f02c285ca10eae25becfc0ffa0d040eef40a65e8d973dfff155241ba2
7
- data.tar.gz: 49dc82b9ffb6bc5d04a028dd59ed45b9dbfdbcf285995ca2390bad21c0e60a298782e867d1b4bd7c742af185f99435a7db33e80e3ab03611f4013d4f4c75abd0
6
+ metadata.gz: 45b778ace16873ba2aecb2833a0d00c127eb0b2cb6f99b709f15d8faeca79f4d0b6e8e9af2d72537ff939ed7124bf7583c349cbd3c78a2461aeb60af2e4caa31
7
+ data.tar.gz: c1a7e9c7c3ade25f95773a9528f4d5ba632d1a223525c027f42730a48179db90d99d13912d7d4850741d3d819ea6779e0c0c4bdb5bc80dfbfdccc2874cf024bc
data/bin/yaml-read-write CHANGED
@@ -9,12 +9,10 @@ parsed = Dorian::Arguments.parse(version: { alias: :v }, help: { alias: :h })
9
9
  abort parsed.help if parsed.options.help
10
10
 
11
11
  if parsed.options.version
12
- abort File.read(File.expand_path("../../VERSION", __FILE__))
12
+ abort File.read(File.expand_path("../VERSION", __dir__))
13
13
  end
14
14
 
15
- parsed.files.each do |file|
16
- File.write(file, YAML.safe_load(File.read(file)).to_yaml)
17
- end
15
+ parsed.files.each { |file| File.write(file, YAML.safe_load_file(file).to_yaml) }
18
16
 
19
17
  if parsed.files.empty?
20
18
  input = parsed.arguments.join("\n")
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dorian-yaml-read-write
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
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-24 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
- name: yaml
14
+ name: dorian-arguments
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
@@ -25,7 +25,7 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: dorian-arguments
28
+ name: yaml
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
@@ -57,9 +57,9 @@ require_paths:
57
57
  - lib
58
58
  required_ruby_version: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - ">="
60
+ - - '='
61
61
  - !ruby/object:Gem::Version
62
- version: '0'
62
+ version: 3.3.4
63
63
  required_rubygems_version: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - ">="