koboldy 0.2.0 → 0.2.1
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/lib/koboldy/run.rb +9 -9
- data/lib/koboldy/version.rb +1 -1
- data/test/kobold/run_test.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 550e2a9836cdbc77434cc56098668bf87fe94bae
|
4
|
+
data.tar.gz: 88642f87dc459901bbbf785cffde6cdbccf3bd36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 914b3851ebf828674603c38b5e0f31a4445b1380a9d1003ab5a645ed8ea16d28aca2aa00999cf220579d224e81632ebfb175fcbc2a42547380797fda8c23acf0
|
7
|
+
data.tar.gz: b4305ba14c38d66153d06882dcf20ae68f4cb85cd4ab038187663314dbfe9b9c69d476578a9919661cc82baf42363056d748e08362c46dbc469ad7e3c574fddc
|
data/lib/koboldy/run.rb
CHANGED
@@ -15,60 +15,60 @@ class Koboldy
|
|
15
15
|
# @param [String] file A path to configuration file
|
16
16
|
# @return [Self]
|
17
17
|
def config(file)
|
18
|
-
@cmd.concat(
|
18
|
+
@cmd.concat(%( --config "#{file}"))
|
19
19
|
self
|
20
20
|
end
|
21
21
|
|
22
22
|
# @param [String] expected_folder A path to expected files
|
23
23
|
# @return [Self]
|
24
24
|
def approved(expected_folder)
|
25
|
-
@cmd.concat(
|
25
|
+
@cmd.concat(%( --approved-folder "#{expected_folder}"))
|
26
26
|
self
|
27
27
|
end
|
28
28
|
|
29
29
|
# @param [String] compared_folder A path to compared files
|
30
30
|
# @return [Self]
|
31
31
|
def highlight(compared_folder)
|
32
|
-
@cmd.concat(
|
32
|
+
@cmd.concat(%( --highlight-folder "#{compared_folder}"))
|
33
33
|
self
|
34
34
|
end
|
35
35
|
|
36
36
|
# @param [String] test_target_folder A path to test target files
|
37
37
|
# @return [Self]
|
38
38
|
def build(test_target_folder)
|
39
|
-
@cmd.concat(
|
39
|
+
@cmd.concat(%( --build-folder "#{test_target_folder}"))
|
40
40
|
self
|
41
41
|
end
|
42
42
|
|
43
43
|
# Add "--fail-orphans" option
|
44
44
|
# @return [Self]
|
45
45
|
def fail_orphans
|
46
|
-
@cmd.concat(
|
46
|
+
@cmd.concat(%( --fail-orphans))
|
47
47
|
self
|
48
48
|
end
|
49
49
|
|
50
50
|
# Add "--fail-additions" option
|
51
51
|
# @return [Self]
|
52
52
|
def fail_additions
|
53
|
-
@cmd.concat(
|
53
|
+
@cmd.concat(%( --fail-additions))
|
54
54
|
self
|
55
55
|
end
|
56
56
|
|
57
57
|
# @param [String] command Add aditional options.
|
58
58
|
# @return [Self]
|
59
59
|
def additional_option(command)
|
60
|
-
@cmd.concat(
|
60
|
+
@cmd.concat(%( #{command}))
|
61
61
|
self
|
62
62
|
end
|
63
63
|
|
64
64
|
# @param [String] path Path of current path.
|
65
65
|
def base_uri(path)
|
66
|
-
@cmd.concat("
|
66
|
+
@cmd.concat(%( "#{path}"))
|
67
67
|
end
|
68
68
|
|
69
69
|
# @param [String] in_file_path A path to file which you would like to save standard output and error.
|
70
70
|
# @return [String] File path which is saved results.
|
71
|
-
def check_and_save(in_file_path =
|
71
|
+
def check_and_save(in_file_path = %(./tmp/kobold.txt))
|
72
72
|
fail "no command: #{@cmd}" if @cmd.nil?
|
73
73
|
Koboldy::Io.capture(@cmd, in_file_path)
|
74
74
|
in_file_path
|
data/lib/koboldy/version.rb
CHANGED
data/test/kobold/run_test.rb
CHANGED
@@ -16,7 +16,7 @@ class RunTest < Test::Unit::TestCase
|
|
16
16
|
|
17
17
|
|
18
18
|
def test_cmd_configuration
|
19
|
-
expected =
|
19
|
+
expected = %(kobold --config "a" --approved-folder "b" --highlight-folder "c" --build-folder "d" --fail-orphans --fail-additions "neko")
|
20
20
|
cmd = @run
|
21
21
|
.config("a")
|
22
22
|
.approved("b")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: koboldy
|
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
|
- Kazuaki MATSUO
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-unit
|