line-bot-lite 0.4.0 → 0.4.1

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: 66fc937c5844b7e2a1029c753b6fa3c414b562c4
4
- data.tar.gz: 18d5bd5d11bbd4d3a40646eba2177b25f74dab4c
3
+ metadata.gz: f50d60ea204073b2d65ac1491d31f872411af8d2
4
+ data.tar.gz: 1788a0b361a69e28e1edfad9c4b8be21ccd3fb88
5
5
  SHA512:
6
- metadata.gz: acfde53c219a993328939270e7e1556f98b928bd271707d85d708e2dc2b3246b1ed0e20a64ab2076101c49d5e540d2389c2d5f72588bd0daa6e7679bf386d040
7
- data.tar.gz: b02f41bc05f1c5a3e19678dd04b3d4d7c74f76043626fa13761edf1cd8791a6e4b0ecbc97ce74d5a8f1f7fc35077ebe15ac22c52717a0605cc99138b6b68b7cc
6
+ metadata.gz: fe15d971c3f7561cc134742223cc79cd0be8211157b050a68de70655fc5a98dfc6ed236ddda2b3fe13eac1917d2a7c2210332cc7b107eb2e352876d847276332
7
+ data.tar.gz: ac3bc9bff0e5a22a350099993cf6ef11b2db3fc9a98c056ea986fa3c18dfe404b4df32c229109809f3da496add6bfd901b704d0823b6bfde864485d86eb05e1c
@@ -12,7 +12,8 @@ module Line
12
12
  def get_image(id, preview = false)
13
13
  url = "#{API::ENDPOINT}/bot/message/#{id}/content"
14
14
  url = "#{url}/preview" if preview
15
- HTTP.get(url, @certentials.header)
15
+ header = @certentials.payload.inject({}) { |h, (k, v)| h[k] = v.to_s; h }
16
+ HTTP.get(url, header)
16
17
  end
17
18
 
18
19
  def send_text(to_mid, message)
@@ -1,5 +1,5 @@
1
1
  module Line
2
2
  module Bot
3
- VERSION = "0.4.0"
3
+ VERSION = "0.4.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: line-bot-lite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - 蒼時弦也