dorian-sort-yaml 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dorian/sort-yaml.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30228cc27871ce993b8716ef26d6332d72df2bd2f46df221b1856862cf4aba8e
|
4
|
+
data.tar.gz: d8f6c63e66d9e3a47da7eaec954a3bf508b9d9553267cc2c87733e349804ec54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff1d3380502172e79a460cdec69760daeb97bf7a20918c0dd41cda1df42e95e445975e73636f4d13c1b02cbf54ef3d892be722c77122f99f578cdab9779a90da
|
7
|
+
data.tar.gz: c106803271e8308aed73babd1a66a164c841ebf81bf75a7a90cf25bce19111adcb04f838ebbd8691ff20f01c461987bde9c6c42f9b4951893b3b0cb7f678d875
|
data/lib/dorian/sort-yaml.rb
CHANGED
@@ -23,7 +23,7 @@ module Dorian
|
|
23
23
|
|
24
24
|
inputs.each do |input|
|
25
25
|
content = File.exist?(input) ? File.read(input) : input
|
26
|
-
yaml = sort_yaml(YAML.safe_load(
|
26
|
+
yaml = sort_yaml(YAML.safe_load(content)).to_yaml
|
27
27
|
File.exist?(input) ? File.write(input, yaml) : puts(yaml)
|
28
28
|
end
|
29
29
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dorian-sort-yaml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dorian Marié
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-11-
|
11
|
+
date: 2021-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |-
|
14
14
|
Sorts keys of hashes of YAML files
|