ruboty-virtual_name_card 0.1.5 → 0.1.6
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 302c9621a2f344f0ceb271a7e79cddfa83bb26ca9d00d8523c3e5eb4e59768c4
|
4
|
+
data.tar.gz: b86f3892352c4d45bb10013c2f26d3e3d18f154ccf3be7dae2013178c14943da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0399099b68ba83f89dc763dbc69df93cf9eb13fc9255020d079c7c9c5f9e4b2504138da9b1aa65838158d517bd3dacb6103e7e9f3b0a971d9712937b6e4527cb'
|
7
|
+
data.tar.gz: 0d603b5e4c3721ff64e34f8d98541e1d9ad56f603b85db2b82cc866e7fd6148b205dd9347587ece69e85002b3fd8d0f018ae87cc6beb472421d1c08d3661c1c1
|
@@ -4,7 +4,7 @@ module Ruboty
|
|
4
4
|
module Handlers
|
5
5
|
class VirtualNameCard < Base
|
6
6
|
on(
|
7
|
-
/背景画像 (?<name_kanji>.+),(?<name_romaji>.+),(?<role>.*),(?<twitter_account>.*)\z/,
|
7
|
+
/背景画像 (?<name_kanji>.+),(?<name_romaji>.+),(?<role>.*),(?<email>.*),(?<twitter_account>.*)\z/,
|
8
8
|
name: "generate_virtual_name_card",
|
9
9
|
description: "Generate virtual name card",
|
10
10
|
)
|
@@ -13,7 +13,8 @@ module Ruboty
|
|
13
13
|
virtual_name_card = ::VirtualNameCard::Generator.generate(
|
14
14
|
name_kanji: message[:name_kanji],
|
15
15
|
name_romaji: message[:name_romaji],
|
16
|
-
role: message[:role],
|
16
|
+
role: message[:role] == "" ? nil : message[:role],
|
17
|
+
email: message[:email] == "" ? nil : message[:email],
|
17
18
|
twitter_account: message[:twitter_account] == "" ? nil : message[:twitter_account],
|
18
19
|
)
|
19
20
|
|