bravtroller 0.1.3 → 0.1.4

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: 29ad1e4a6956ad23f43d5c3b00cb0b7000833d39
4
- data.tar.gz: e2fea513152d2ae3e67c8b45dc92fc16cc20b4d1
3
+ metadata.gz: 72d84940f71aa4a52ccf87c1d3dcf5cfc0876120
4
+ data.tar.gz: e317163f6fcfdf8d68e27098a96653dacd2dde9d
5
5
  SHA512:
6
- metadata.gz: 21880af7bc343cb5e71070e2274d015e617e6a3821342a2ed3fe45e203d7ec4d2d9e04ba6b4c6d20a6b92bd554f5df4fba943b07f147ba19e6ee09eaf242aaab
7
- data.tar.gz: 8dbf7d29f49c7a8b0af6fa6e2407c89b021996dc84909486b31a767b54f539d41535221b4102d0a086f20a97418d62fc35fabe1b8f9b1c10651e52119d1c29a9
6
+ metadata.gz: 9686553231d1fff5465812e723a61e021acd471b9850e6ac2ff0f5b59a33762f1fcf6313e00fa2c5daee5f8b6459efb45bf44dc2a9d6c466a12eaf7c011c9a49
7
+ data.tar.gz: ba08a4201399871b0aeb8c1068689cef0c7ec3571ef6e87baf973ab068aa333bb4133281bf33fc2f5c016eb0f713edb415ee03aff4ae136efd240b8da5663109
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bravtroller (0.1.2)
5
- easy_upnp
4
+ bravtroller (0.1.3)
5
+ easy_upnp (~> 0.1.6)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -11,7 +11,6 @@ GEM
11
11
  gyoku (>= 0.4.0)
12
12
  nokogiri
13
13
  builder (3.2.2)
14
- diff-lcs (1.2.5)
15
14
  easy_upnp (0.1.6)
16
15
  nokogiri (~> 1.6.6.2)
17
16
  nori (~> 2.6.0)
@@ -27,19 +26,6 @@ GEM
27
26
  nori (2.6.0)
28
27
  rack (1.6.4)
29
28
  rake (10.4.2)
30
- rspec (3.3.0)
31
- rspec-core (~> 3.3.0)
32
- rspec-expectations (~> 3.3.0)
33
- rspec-mocks (~> 3.3.0)
34
- rspec-core (3.3.1)
35
- rspec-support (~> 3.3.0)
36
- rspec-expectations (3.3.0)
37
- diff-lcs (>= 1.2.0, < 2.0)
38
- rspec-support (~> 3.3.0)
39
- rspec-mocks (3.3.1)
40
- diff-lcs (>= 1.2.0, < 2.0)
41
- rspec-support (~> 3.3.0)
42
- rspec-support (3.3.0)
43
29
  savon (2.11.1)
44
30
  akami (~> 1.2)
45
31
  builder (>= 2.1.2)
@@ -57,5 +43,7 @@ PLATFORMS
57
43
 
58
44
  DEPENDENCIES
59
45
  bravtroller!
60
- rake
61
- rspec (>= 3.0.0)
46
+ rake (~> 10.4)
47
+
48
+ BUNDLED WITH
49
+ 1.10.5
@@ -33,11 +33,11 @@ module Bravtroller
33
33
  '200' == response.code
34
34
  end
35
35
 
36
- def authorize(&callback)
36
+ def authorize(auth_code = nil?, &callback)
37
37
  response = @bravia_client.post_request('/sony/accessControl', AUTH_REQUEST_PARAMS)
38
38
 
39
39
  if response.code == '401'
40
- challenge_value = callback.call(response)
40
+ challenge_value = auth_code || callback.call(response)
41
41
  auth_value = "Basic #{Base64.encode64(":#{challenge_value}")}"
42
42
  headers = { 'Authorization' => auth_value }
43
43
 
@@ -1,3 +1,3 @@
1
1
  module Bravtroller
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bravtroller
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Mullins
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-18 00:00:00.000000000 Z
11
+ date: 2015-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: easy_upnp
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: 0.1.6
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.1.6
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: '10.4'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.4'
41
41
  description: Controller for the Bravia KDL-50W700B supporting WOL and IRCC (Remote
@@ -45,7 +45,7 @@ executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
- - ".gitignore"
48
+ - .gitignore
49
49
  - Gemfile
50
50
  - Gemfile.lock
51
51
  - LICENSE
@@ -67,19 +67,18 @@ require_paths:
67
67
  - lib
68
68
  required_ruby_version: !ruby/object:Gem::Requirement
69
69
  requirements:
70
- - - ">="
70
+ - - '>='
71
71
  - !ruby/object:Gem::Version
72
72
  version: '0'
73
73
  required_rubygems_version: !ruby/object:Gem::Requirement
74
74
  requirements:
75
- - - ">="
75
+ - - '>='
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
78
  requirements: []
79
79
  rubyforge_project:
80
- rubygems_version: 2.4.4
80
+ rubygems_version: 2.4.8
81
81
  signing_key:
82
82
  specification_version: 4
83
83
  summary: Controller for the Bravia KDL-50W700B
84
84
  test_files: []
85
- has_rdoc: