koboldy 0.2.3 → 0.2.4

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: c850df52a34add5899550b1068f1e022e56b22b3
4
- data.tar.gz: 3875ae4eb29e5517ea48033c2305a2dffbc77839
3
+ metadata.gz: 73149e09ea7f9b16f784f8796594d774c2980e8f
4
+ data.tar.gz: 5776d4356641cec3a65f76a8aba0a5d2a8242d0a
5
5
  SHA512:
6
- metadata.gz: 2dc934e3acd502541c424fc14f62981213a0548fb51bd668a0b4056828521b027d1bb6d63fc844367016e99a00d7303303e78a2cbf2b9c3dac61e988a143d7ac
7
- data.tar.gz: b54fa7a26bdbdf9b53181efcdfe4f94a7a5185aa55795cb4da9ecd345cf04ee67871f2662b7e8357c98dde6822f327419fcaa0146458f54f4c88036b0cfd2bc7
6
+ metadata.gz: 4aa3ee3d13ba260602eae7616d503e9a8506b0cb6de3a67565c19f7703e5a6c6ebd8e7d727b7802691d4ede325a2bcab21ee75b419ccec672cd803e7130f78b0
7
+ data.tar.gz: 72a7e5d650391d5338a8d0ee29ea886b5494e665860d4f5d76a582fef3fc7ca608b1056c2c5aebe53664134c2e4bd4ff4fed0b2052c8da52ae2dfe797e48b1d8
@@ -78,6 +78,7 @@ class Koboldy
78
78
  # @param [String] into_file(Option) A path you would like to save the result. If into_file is empty, then the method return JSON.
79
79
  # @return [String] into_file A path to saved result file.
80
80
  def results(from_path, into_file = "")
81
+ fail ArgumentError, "no #{from_path}" unless File.exist? from_path
81
82
  result = File.read(from_path)
82
83
  add, orp, dif = additions(result), orphans(result), different(result)
83
84
 
@@ -1,3 +1,3 @@
1
1
  class Koboldy
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
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.3
4
+ version: 0.2.4
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-09 00:00:00.000000000 Z
11
+ date: 2015-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-unit