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: c9a7fb2a9849cc157fdb6caab366936f9a66bf68a32e4cc3db0d99216b36b773
4
- data.tar.gz: 5bf2e20f0530871b8f577e625cd9655019042ef897d8921977cd9e54b355f925
3
+ metadata.gz: 302c9621a2f344f0ceb271a7e79cddfa83bb26ca9d00d8523c3e5eb4e59768c4
4
+ data.tar.gz: b86f3892352c4d45bb10013c2f26d3e3d18f154ccf3be7dae2013178c14943da
5
5
  SHA512:
6
- metadata.gz: e0ccbcf7cb569394f5bb4d5c90917e05133230a8e89beffc3d481b331fa496a8942d3fd329bb683994b2f6031de40c39d598816e5c9c063a2ed1fb4a88e22525
7
- data.tar.gz: 9331e45dd5da7b77bd62a4f93fa052848761c429f981f461fb9f94c6347c705dadd5024665bf45bd487a3b8ceed51799c853c5a8dfb91708014f81a08e4376dd
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
 
@@ -1,5 +1,5 @@
1
1
  module Ruboty
2
2
  module VirtualNameCard
3
- VERSION = "0.1.5"
3
+ VERSION = "0.1.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruboty-virtual_name_card
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michikawa Masayoshi