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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 16bb73985a58efb484265c6e308722b6c514e266
4
- data.tar.gz: 5835567a7136f4ce107bbeaa51a3f537ef3f1a61
3
+ metadata.gz: 550e2a9836cdbc77434cc56098668bf87fe94bae
4
+ data.tar.gz: 88642f87dc459901bbbf785cffde6cdbccf3bd36
5
5
  SHA512:
6
- metadata.gz: 934563242bc1d5bd970cbac371c806f178b18b7111d3932d573da6bb50531ea739ae9babde9c700829fc0ce2f365069815b5eccdd4ff0060e9f979abb5e700f9
7
- data.tar.gz: 9f88ef948d9fcb8d1b8af1fce62c944cd0ef3ed6eb5c8c717b43effe2f741336d5da009eca55d245c9137ed3296e7c8739c518ee06d6b9c80c9fe7961b2dab06
6
+ metadata.gz: 914b3851ebf828674603c38b5e0f31a4445b1380a9d1003ab5a645ed8ea16d28aca2aa00999cf220579d224e81632ebfb175fcbc2a42547380797fda8c23acf0
7
+ data.tar.gz: b4305ba14c38d66153d06882dcf20ae68f4cb85cd4ab038187663314dbfe9b9c69d476578a9919661cc82baf42363056d748e08362c46dbc469ad7e3c574fddc
@@ -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(" --config #{file}")
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(" --approved-folder #{expected_folder}")
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(" --highlight-folder #{compared_folder}")
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(" --build-folder #{test_target_folder}")
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(" --fail-orphans")
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(" --fail-additions")
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(" #{command}")
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(" #{path}")
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 = "./tmp/kobold.txt")
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
@@ -1,3 +1,3 @@
1
1
  class Koboldy
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -16,7 +16,7 @@ class RunTest < Test::Unit::TestCase
16
16
 
17
17
 
18
18
  def test_cmd_configuration
19
- expected = "kobold --config a --approved-folder b --highlight-folder c --build-folder d --fail-orphans --fail-additions neko"
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.0
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-07 00:00:00.000000000 Z
11
+ date: 2015-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-unit