judges 0.0.28 → 0.0.29
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/bin/judges +9 -1
- data/features/import.feature +17 -0
- data/judges.gemspec +1 -1
- data/lib/judges/commands/import.rb +1 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e4506ff0fe002c7bd8077f203ba8a0af5b9d5b9b788e1d42370c6f990d4b9479
|
4
|
+
data.tar.gz: 8cf313cdaa8a859ffe1c286107c767aac93a0196420152c57337dd05d0ed4881
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f19785b0268c7dce59b6d9478137e2e2e1172ebc03fd803b576d0c1d155eecadea11d38ecaa258f8ecefef031e183807660dee7b0f7aede0c875a42f101ae62d
|
7
|
+
data.tar.gz: 433e49e718acd4b17ba9efdbce605181ca2b6cd88a7a36601bf71dc926f07185f652d57e1005750b28fe2c98467f05c1b93ddd93dee4461dd40f28a58a209097
|
data/bin/judges
CHANGED
@@ -32,7 +32,7 @@ Encoding.default_internal = Encoding::UTF_8
|
|
32
32
|
class App
|
33
33
|
extend GLI::App
|
34
34
|
|
35
|
-
ver = '0.0.
|
35
|
+
ver = '0.0.29'
|
36
36
|
|
37
37
|
loog = Loog::REGULAR
|
38
38
|
|
@@ -87,6 +87,14 @@ class App
|
|
87
87
|
end
|
88
88
|
end
|
89
89
|
|
90
|
+
desc 'Import YAML into a factbase'
|
91
|
+
command :import do |c|
|
92
|
+
c.action do |global, options, args|
|
93
|
+
require_relative '../lib/judges/commands/import'
|
94
|
+
Judges::Import.new(loog).run(options, args)
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
90
98
|
desc 'Remove the facts that are too old'
|
91
99
|
command :trim do |c|
|
92
100
|
c.desc 'Only the facts that match the expression are deleted'
|
@@ -0,0 +1,17 @@
|
|
1
|
+
Feature: Import
|
2
|
+
I want to import YAML into a factbase
|
3
|
+
|
4
|
+
Scenario: Simple import of a small YAML
|
5
|
+
Given I make a temp directory
|
6
|
+
Then I have a "simple.yaml" file with content:
|
7
|
+
"""
|
8
|
+
-
|
9
|
+
foo: 42
|
10
|
+
bar: 2024-03-04T22:22:22Z
|
11
|
+
t: Hello, world!
|
12
|
+
-
|
13
|
+
z: 3.14
|
14
|
+
"""
|
15
|
+
Then I run bin/judges with "--verbose import simple.yaml simple.fb"
|
16
|
+
Then Stdout contains "Import finished"
|
17
|
+
And Exit code is zero
|
data/judges.gemspec
CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |s|
|
|
26
26
|
s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to? :required_rubygems_version=
|
27
27
|
s.required_ruby_version = '>=3.2'
|
28
28
|
s.name = 'judges'
|
29
|
-
s.version = '0.0.
|
29
|
+
s.version = '0.0.29'
|
30
30
|
s.license = 'MIT'
|
31
31
|
s.summary = 'Command-Line Tool for a Factbase'
|
32
32
|
s.description = '
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: judges
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.29
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yegor Bugayenko
|
@@ -113,6 +113,7 @@ files:
|
|
113
113
|
- Rakefile
|
114
114
|
- bin/judges
|
115
115
|
- features/gem_package.feature
|
116
|
+
- features/import.feature
|
116
117
|
- features/inspect.feature
|
117
118
|
- features/join.feature
|
118
119
|
- features/misc.feature
|