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.
- checksums.yaml +4 -4
- data/bin/yaml-read-write +2 -4
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 699e62163575533262a44eae570f92122c32a9ad1cc0d22f874bdbbf8e581237
|
4
|
+
data.tar.gz: 316e34c21dded0039a0a53f1508dcda06b0bd06accedb6510df1904a6bb86177
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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("
|
12
|
+
abort File.read(File.expand_path("../VERSION", __dir__))
|
13
13
|
end
|
14
14
|
|
15
|
-
parsed.files.each
|
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.
|
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-
|
11
|
+
date: 2024-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
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:
|
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:
|
62
|
+
version: 3.3.4
|
63
63
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - ">="
|