xvert 0.0.2 → 0.0.3
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 +4 -4
- data/Gemfile.lock +3 -1
- data/exe/xvert +20 -1
- data/lib/xvert/json.rb +9 -0
- data/lib/xvert/version.rb +1 -1
- data/lib/xvert/yaml.rb +9 -0
- data/lib/xvert.rb +4 -5
- data/xvert.gemspec +2 -0
- metadata +18 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40a0b58972d6a03f7fc858e10ee824def0a16ca0e3e7289754b275706c7d13f1
|
4
|
+
data.tar.gz: a5164c3a56d0614ca7b2b4cb5a9b67f24f95a2bb7f7daf72c4a690577bd2a7b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1a885beb5428edfcca27e4d0a70c584ae97e710003a2c790206fa1e10fe4bc3e96eeda27fcca5ee3e7c24927815694167a0d336ec8de8680610a987ed1735c5
|
7
|
+
data.tar.gz: ac35cb999d473a576e6c356af2a566eee0e5879b1309a2e821b28a2e6fc1d3d9af60ea7f25eaa69839c162381a70374f39c807aee2091babff8f1f5c32a0b831
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
xvert (0.0.
|
4
|
+
xvert (0.0.3)
|
5
|
+
thor (~> 1.2.0)
|
5
6
|
|
6
7
|
GEM
|
7
8
|
remote: https://rubygems.org/
|
@@ -29,6 +30,7 @@ GEM
|
|
29
30
|
rubocop-ast (1.28.1)
|
30
31
|
parser (>= 3.2.1.0)
|
31
32
|
ruby-progressbar (1.13.0)
|
33
|
+
thor (1.2.1)
|
32
34
|
unicode-display_width (2.4.2)
|
33
35
|
|
34
36
|
PLATFORMS
|
data/exe/xvert
CHANGED
@@ -2,6 +2,25 @@
|
|
2
2
|
|
3
3
|
# frozen_string_literal: true
|
4
4
|
|
5
|
+
require "thor"
|
5
6
|
require "xvert"
|
6
7
|
|
7
|
-
|
8
|
+
class CLI < Thor
|
9
|
+
class << self
|
10
|
+
def exit_on_failure?
|
11
|
+
true
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
desc "jy", "Convert JSON to YAML"
|
16
|
+
def jy
|
17
|
+
puts Xvert.json_to_yaml($stdin.readlines.join)
|
18
|
+
end
|
19
|
+
|
20
|
+
desc "yj", "Convert YAML to JSON"
|
21
|
+
def yj
|
22
|
+
puts Xvert.yaml_to_json($stdin.readlines.join)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
CLI.start(ARGV)
|
data/lib/xvert/json.rb
ADDED
data/lib/xvert/version.rb
CHANGED
data/lib/xvert/yaml.rb
ADDED
data/lib/xvert.rb
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require "json"
|
4
|
+
require "yaml"
|
3
5
|
require_relative "xvert/version"
|
6
|
+
require_relative "xvert/json"
|
7
|
+
require_relative "xvert/yaml"
|
4
8
|
|
5
9
|
module Xvert
|
6
|
-
class << self
|
7
|
-
def hello
|
8
|
-
puts "Hello World"
|
9
|
-
end
|
10
|
-
end
|
11
10
|
end
|
data/xvert.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xvert
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- koki-develop
|
@@ -9,7 +9,21 @@ autorequire:
|
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
11
|
date: 2023-05-07 00:00:00.000000000 Z
|
12
|
-
dependencies:
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: thor
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.2.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.2.0
|
13
27
|
description: Convert between CSV, JSON, YAML, and various other formats.
|
14
28
|
email:
|
15
29
|
- kou.pg.0131@gmail.com
|
@@ -27,7 +41,9 @@ files:
|
|
27
41
|
- Rakefile
|
28
42
|
- exe/xvert
|
29
43
|
- lib/xvert.rb
|
44
|
+
- lib/xvert/json.rb
|
30
45
|
- lib/xvert/version.rb
|
46
|
+
- lib/xvert/yaml.rb
|
31
47
|
- sig/xvert.rbs
|
32
48
|
- xvert.gemspec
|
33
49
|
homepage: https://github.com/koki-develop/xvert
|