koboldy 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 73149e09ea7f9b16f784f8796594d774c2980e8f
4
- data.tar.gz: 5776d4356641cec3a65f76a8aba0a5d2a8242d0a
3
+ metadata.gz: 3218e9c4046279b21f8e74ef2430b3ab52257a82
4
+ data.tar.gz: 37eb0f12476305956cac9bb09be6636241ba8966
5
5
  SHA512:
6
- metadata.gz: 4aa3ee3d13ba260602eae7616d503e9a8506b0cb6de3a67565c19f7703e5a6c6ebd8e7d727b7802691d4ede325a2bcab21ee75b419ccec672cd803e7130f78b0
7
- data.tar.gz: 72a7e5d650391d5338a8d0ee29ea886b5494e665860d4f5d76a582fef3fc7ca608b1056c2c5aebe53664134c2e4bd4ff4fed0b2052c8da52ae2dfe797e48b1d8
6
+ metadata.gz: 91d2b78ea55ba0a339c7232a889bc6b69ef97fe5e96e33186f1bb678a8cb86ea06da6c0ce0ce337e8194727c3342d73d284c94756452123c45d5be3d0f04361f
7
+ data.tar.gz: 6cfbc0cd905284567aab16168acd0f032e208001217e845fbb7686bb8209d301c111e153ab58d3743c5585a22ce632ef615b45bbcddeeb650c0cfccddd6656b3
@@ -70,6 +70,7 @@ class Koboldy
70
70
  # @return [String] File path which is saved results.
71
71
  def check_and_save(in_file_path = %(./tmp/kobold.txt))
72
72
  fail "no command: #{@cmd}" if @cmd.nil?
73
+ FileUtils.mkdir_p(File::dirname(in_file_path)) if Dir.exist?(File::dirname(in_file_path))
73
74
  Koboldy::Io.capture(@cmd, in_file_path)
74
75
  in_file_path
75
76
  end
@@ -1,3 +1,3 @@
1
1
  class Koboldy
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
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
4
+ version: 0.2.5
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-09-02 00:00:00.000000000 Z
11
+ date: 2015-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-unit