line-bot-api 1.1.0 → 1.2.0

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: ac17e583e3e7d618381475bac207da05c13d61bb
4
- data.tar.gz: ba6468b9b1b35b43cd09223ad4c672bfaaaa257e
3
+ metadata.gz: 436c495be34da397746918d170147031ffb8bc31
4
+ data.tar.gz: b7eb17d5726aef81c04fa636525a6b8ff8c8f665
5
5
  SHA512:
6
- metadata.gz: 02c2995896e031ef222f50ce07999aa167143d816b6af19ab5b0e741a94dfc2e98bff452c68cd87bbd05e97343a710b28c864f8e52ec382cef4a888e19639858
7
- data.tar.gz: ac2f3c60778040cfa45b7ad3cdbdd6cbbc65ea817fdb456c124a628a62ca462fbcdc8a78d4b572b35a43ea23396df769cb58deb91db0641d7d6ee17e5714e494
6
+ metadata.gz: cfd3b83e48a92775cc0a3ff54d3bd57973ab567e2bfe1bfe077f93c1f4410fd01a61fc228fab59f61cefaabfa5dbac98d3547aa22ca61c54f24d048b636e1ca5
7
+ data.tar.gz: b99db257ce5500b664a466b127ce8343f2d11b01559e71c9cd1f5b44c864141016288b24abd8f600d0a9472ad837f59465d00a868d7d4078bd3c695b74e21ce2
@@ -15,7 +15,7 @@
15
15
  module Line
16
16
  module Bot
17
17
  module API
18
- VERSION = "1.1.0"
18
+ VERSION = "1.2.0"
19
19
  end
20
20
  end
21
21
  end
@@ -16,6 +16,17 @@ module Line
16
16
  module Bot
17
17
  module Event
18
18
  class Beacon < Base
19
+ def type
20
+ @src['beacon']['type']
21
+ end
22
+
23
+ def hwid
24
+ @src['beacon']['hwid']
25
+ end
26
+
27
+ def deviceMessage
28
+ [@src['beacon']['dm']].pack('H*')
29
+ end
19
30
  end
20
31
  end
21
32
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: line-bot-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - LINE Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-18 00:00:00.000000000 Z
11
+ date: 2017-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -127,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  version: '0'
128
128
  requirements: []
129
129
  rubyforge_project:
130
- rubygems_version: 2.5.1
130
+ rubygems_version: 2.4.5
131
131
  signing_key:
132
132
  specification_version: 4
133
133
  summary: SDK of the LINE Messaging API