dorian-yaml-read-write 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 3ccac2c6b26c1032509184d5f80fbc9a7d9cb84afc49edabda03f18702542dd3
4
+ data.tar.gz: 505e704c309aa54510662bd08b1cc95a2098c873ed59d00e51591c19969e924d
5
+ SHA512:
6
+ metadata.gz: e3084b84146fe65d9708f39d64e2dd3651116e6d5b141859cd70127183f09e5ae35c9bdbb85b1421779631b4a5f32d8cbfb7b46eedc09605a31ffa54189e25a3
7
+ data.tar.gz: 75ef13aacd3b984db4ffc5e494bd2021694e4c66f8acfad11b75a25fc53c6c675d775c93ec122ea3c18bc09faf718acc8e1c714ea05fa04812a76c1bedba74ea
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'dorian/yaml/read-write'
4
+ Dorian::Yaml::ReadWrite.run
@@ -0,0 +1,16 @@
1
+ require 'yaml'
2
+
3
+ module Dorian
4
+ module Yaml
5
+ class Compare
6
+ def self.run
7
+ if ARGV.size != 1
8
+ puts 'USAGE: yaml-read-write FILE'
9
+ exit
10
+ end
11
+
12
+ File.write(ARGV.first, YAML.safe_load(File.read(ARGV.first)).to_yaml)
13
+ end
14
+ end
15
+ end
16
+ end
metadata ADDED
@@ -0,0 +1,48 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: dorian-yaml-read-write
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Dorian Marié
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2021-10-10 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: |-
14
+ Reads and writes a YAML file
15
+
16
+ e.g. `yaml-read-write config/locales/en.yml`
17
+ email: dorian@dorianmarie.fr
18
+ executables:
19
+ - yaml-read-write
20
+ extensions: []
21
+ extra_rdoc_files: []
22
+ files:
23
+ - bin/yaml-read-write
24
+ - lib/dorian/yaml/read-write.rb
25
+ homepage: https://github.com/dorianmariefr/yaml-compare
26
+ licenses:
27
+ - MIT
28
+ metadata: {}
29
+ post_install_message:
30
+ rdoc_options: []
31
+ require_paths:
32
+ - lib
33
+ required_ruby_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ required_rubygems_version: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
43
+ requirements: []
44
+ rubygems_version: 3.2.22
45
+ signing_key:
46
+ specification_version: 4
47
+ summary: Reads and writes a YAML file
48
+ test_files: []