dingbot 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: feb88573a5e512c9cd01935bb7090ee0f50cd781
4
- data.tar.gz: 15eb3bd8f37837c71774a8860580f1b84d29b0ef
3
+ metadata.gz: 891eb19b1f3dbc85d7cd60765985dd7c8e9b6f00
4
+ data.tar.gz: 86616b1c794ec9933694c0d651b3dd222a518686
5
5
  SHA512:
6
- metadata.gz: 868aca4c058b5d2affd590d6f4d4325b1d1492d1446761f951978d561cb525eeb9af6a1b7da962fef3245e5d8adcf0c0ab053ccd7dacd1c954d36bcf6c1f6209
7
- data.tar.gz: 12a4e7729663abcaf894376f82be8bda809c978c287324c186ea47fe10f63a384031f3272cede0971f5d107707633e5927ae84774e2cefdd84f6c8af05993f2d
6
+ metadata.gz: a78af359e4c94dd0b5ca679af2fe92c6f98ffc061efa7498083923514c35bc45215b757309b5a290c45589d5ed0c3373525428d11e8e799a24f594b0bd1535b3
7
+ data.tar.gz: c75e226f9218042e415b77938bc0cae19a15dbd8ce316fc363215b5a4e82023bb0e67ffa51f9703e7d2e712631e3f03f8d568a5b80a45f80649c60c0d15f64ee
@@ -21,8 +21,8 @@ module DingBot
21
21
  actionCard: {
22
22
  title: @title,
23
23
  text: @text,
24
- "hideAvatar": @hide_avatar,
25
- "btnOrientation": @btn_orientation,
24
+ hideAvatar: @hide_avatar,
25
+ btnOrientation: @btn_orientation,
26
26
  }
27
27
  )
28
28
  end
@@ -17,7 +17,7 @@ module DingBot
17
17
  # }
18
18
  class Text < Base
19
19
  attr_accessor :content, :at_mobiles, :is_at_all
20
-
20
+
21
21
  def initialize(content='', at_mobiles=[], is_at_all=false)
22
22
  @content = content
23
23
  @at_mobiles = at_mobiles
@@ -32,7 +32,7 @@ module DingBot
32
32
  super.merge(
33
33
  {
34
34
  text: {
35
- "content": @content
35
+ content: @content
36
36
  },
37
37
  at: {
38
38
  atMobiles: @at_mobiles,
@@ -1,5 +1,5 @@
1
1
  module DingBot
2
2
 
3
- VERSION = "0.2.1"
3
+ VERSION = "0.2.2"
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dingbot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thierry Xing