docomoru 0.1.2 → 0.1.3

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: 980fdc8d5e4becacc3c352f09ba54c4911427e60
4
- data.tar.gz: 2d9dd4b4ec00780c292db47287a898590b64568f
3
+ metadata.gz: b84dd62eb788e17d5354463b078dde924346b999
4
+ data.tar.gz: b62f7b0d78978682d64876a0aa665387aa6e4e59
5
5
  SHA512:
6
- metadata.gz: 5a91c3147ae3ff54bb5b9e1fbe55567ed0394a1d58263be05a3e252c691db429797dae9f2ed2265968d6e2ccbc17f34d63ce5e694f234d1f07b9de3a21ed3896
7
- data.tar.gz: 1cade03851a761b7122a6f0e04532870b17ccea87e8e2d46315c3e761566b8495bf4c94b6434b71356026884c7e5fa4ea6ba0e5b93958fcaa557f0d9540c3ddb
6
+ metadata.gz: 4271dee4b5324a1d25047912c776698c0e0f46133f8c749bfe41a952776aaa7e800701c67c5a1829de39c90fec47f3d873fd3b22cca3199d5b648467e4d3e0dc
7
+ data.tar.gz: 62784c4421766152a7f742be8c9a41932b369a21fa4cbebadc4e37636c9eb66d36d0269f4b16fd172c36a2575c8afb349e1179b5858480a1654095f74bba2fdb
@@ -1,3 +1,6 @@
1
+ ## 0.1.3
2
+ - Fix CLI bug
3
+
1
4
  ## 0.1.2
2
5
  - Support slop version 4
3
6
 
@@ -70,7 +70,7 @@ module Docomoru
70
70
  end
71
71
 
72
72
  def has_valid_arguments?
73
- -(Client.instance_method(method_name).arity) == arguments.length
73
+ -(Client.instance_method(method_name).arity) - 1 == arguments.length
74
74
  end
75
75
 
76
76
  def has_valid_method_name?
@@ -1,3 +1,3 @@
1
1
  module Docomoru
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -31,29 +31,5 @@ RSpec.describe Docomoru::CommandBuilder do
31
31
  subject
32
32
  end
33
33
  end
34
-
35
- context "with create_dialogue" do
36
- let(:argv) do
37
- super() + %w[create_dialogue message --api-key dummy]
38
- end
39
-
40
- it "calls create_dialogue method" do
41
- expect_any_instance_of(Docomoru::Commands::Request).to receive(:print)
42
- expect_any_instance_of(Docomoru::Client).to receive(:create_dialogue).and_return(dummy_response)
43
- subject
44
- end
45
- end
46
-
47
- context "with create_knowledge" do
48
- let(:argv) do
49
- super() + %w[create_knowledge message --api-key dummy]
50
- end
51
-
52
- it "calls create_knowledge method" do
53
- expect_any_instance_of(Docomoru::Commands::Request).to receive(:print)
54
- expect_any_instance_of(Docomoru::Client).to receive(:create_knowledge).and_return(dummy_response)
55
- subject
56
- end
57
- end
58
34
  end
59
35
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docomoru
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-18 00:00:00.000000000 Z
11
+ date: 2015-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport