slack_trello 0.0.9 → 0.0.10

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: 4a3f9e2b0d4172b5cc6690be677a5868845f5534
4
- data.tar.gz: 740d9ce537474587c04cd07b0f6d161205573a42
3
+ metadata.gz: 3791db0c34afbc514cb91852c97ebffd43dd5aaf
4
+ data.tar.gz: 991042e5ae0522f640e8f969ebfa633aab60c65f
5
5
  SHA512:
6
- metadata.gz: 6c6fc191bf0ea75d35d8a44a9bf51043818026ad02b498abc50c6f52af2d7da181f32aa0a49606afc82ad45a6623da9be355ec1a65a6e8062a96d1e962e9a1b9
7
- data.tar.gz: a5d4a00caed8e21d4ec58f69a6fe05138be55e3d7570a9c6938d0895b3b0bbf44a88ed4af799744bea8934512b319255bf04cc3874a37ada0211d8c30ff9a255
6
+ metadata.gz: f5728525d85df6dc1c85a22f4b80f8061ce2c9881a3df6f02c4e056cf24c51991d209b13a5b34b3e194f6695150f9220da823583fa19556550173750e5286352
7
+ data.tar.gz: 24fc6547e947010c940a5a3454c59194bef9997be43360603cba84073f6359e96dee1384b885f5fc9c021b61a53be9c15b3c3f7db03ad10a7d0d02f92604cc7d
@@ -11,6 +11,7 @@ module SlackTrello; class CreateCardCommand
11
11
 
12
12
  def run
13
13
  return help_message unless valid_text_format?
14
+ return help_message unless num_args == 2
14
15
  return board_not_found_message unless trello_card_creator.trello_board
15
16
  return list_not_found_message unless trello_card_creator.trello_list
16
17
 
@@ -12,6 +12,10 @@ module SlackTrello; module TextParser
12
12
  !!matched_text
13
13
  end
14
14
 
15
+ def num_args
16
+ args.length
17
+ end
18
+
15
19
  private
16
20
 
17
21
  def regex
@@ -1,3 +1,3 @@
1
1
  module SlackTrello
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slack_trello
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Powers