live_paper 0.0.14 → 0.0.15

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: 55487ee90d033af97fe99a9bee4d5c94795c47a5
4
- data.tar.gz: 69687e92cfae6cb80b658e332213624ab86dc264
3
+ metadata.gz: bc9d4a0f5ae9b418231f0362636a18d550ae5810
4
+ data.tar.gz: 258d621b03eb204c2fdb04f2410c16531484f46a
5
5
  SHA512:
6
- metadata.gz: b683e8714f1d051c52df36ebc70c4ca83e5b8698eb507fef2de071a81f8fa0846520e238dee464884f2667b99c2a5c07eaf8fe5f881176171b6268deb9e77cac
7
- data.tar.gz: 68854880dcfe91eda7b7b6eebc10fa3ce27673ad02609e54530b51060946ff2e3fda213bfe75f13ef8a997b286ade2c86382c2eedccf24d717b455c8144f521d
6
+ metadata.gz: 853a2d59a588a7b4c5d8c17f72e3cd1b2aec9be56b9249d69a2c087325b040b9819a19a58ceca25837af68b9f2719f664a2e96380716b6dc7af3671fda3222dd
7
+ data.tar.gz: ab7cb67aa4d378e58dfbb5be6b428c38a5f2d2d76e2d8d66588449cda169d2bc0b6f096f4970c9ff092d50167e482c31b828f274a2d8fa96ad535a84ca2d5bea
@@ -32,6 +32,7 @@ module LivePaper
32
32
  request_access_token unless @access_token
33
33
  request = http_request(url, method)
34
34
  request['Authorization'] = "Bearer #{@access_token}"
35
+ request['X-user-info'] = 'app=rubygem'
35
36
  request['Accept'] = "application/json"
36
37
  yield request
37
38
  rescue NotAuthenticatedError => e
@@ -3,6 +3,7 @@ require 'rest-client'
3
3
 
4
4
  module LivePaper
5
5
  class Image
6
+ extend HttpClient
6
7
 
7
8
  attr_accessor :url
8
9
 
@@ -15,6 +15,7 @@ module LivePaper
15
15
 
16
16
  def download_qrcode
17
17
  QrTrigger.request_handling_auth(self.qrcode_url, 'GET') do |request|
18
+ request['Accept'] = "image/jpg"
18
19
  response = QrTrigger.send_request(request)
19
20
  response.body.empty? ? nil : response.body
20
21
  end
@@ -1,3 +1,3 @@
1
1
  module LivePaper
2
- VERSION = "0.0.14"
2
+ VERSION = "0.0.15"
3
3
  end
@@ -16,6 +16,7 @@ module LivePaper
16
16
 
17
17
  def download_watermark
18
18
  WmTrigger.request_handling_auth(self.wm_url, 'GET') do |request|
19
+ request['Accept'] = "image/jpg"
19
20
  response = WmTrigger.send_request(request)
20
21
  response.body.empty? ? nil : response.body
21
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: live_paper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Whitmarsh