ruby_home 0.2.3 → 0.2.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
  SHA256:
3
- metadata.gz: 61dfd393cebfe26630d824d57c5ed1b2942038c362ceddfee56791ae9c7cbff0
4
- data.tar.gz: c4d611ea594ba1ec79487dfcfad2b919c2299def89d79faa610fcc100a4ab056
3
+ metadata.gz: 1221aca521b00bdc16b4ce1f1e0b29c945899abcb7af5328ed13f6fce1d1f8a4
4
+ data.tar.gz: 97ab21e599435d0c54e1b1f8e283a3edc245df3aca08e90c8f4dd639fb255fa8
5
5
  SHA512:
6
- metadata.gz: 254986caeb5b4de9d340e0eb9f32c8ed68b277484de64e6512a5a9c7f0778ed1f627599b86f3bccaf7244f0c2e5767ac3890ec14c260399f8d26275ad7497e65
7
- data.tar.gz: 744dede6bf50c7ca501fa8a8e84f5141cd1d275b2ca5a2aedb78340056ca2d7088566c2bb7312c0500c556014be05361b1184f45701387aeadad789565811c81
6
+ metadata.gz: 8d0ca7c92832e0a38ccf277ea2e025763efc519b2cfe83e47f0e58341d71c95c9062446e0769de147ad5f2bf93ee559677a904d24c23e3e3c4173b1cce74538c
7
+ data.tar.gz: ee712b7ea54487917bef8a70e39268addf166f7c4cba696015dd09a28a4e634912f78b01ee56b0c4c4ccc26aa17be6f1f48c5d2ffab99c63311eb866b8990659
data/.travis.yml CHANGED
@@ -15,9 +15,10 @@ install:
15
15
  - 'bundle --version'
16
16
  - bundle
17
17
  rvm:
18
- - 2.4.1
18
+ - 2.4
19
19
  - 2.5
20
20
  - 2.6
21
+ - 2.7
21
22
  - ruby-head
22
23
  os:
23
24
  - linux
data/lib/ruby_home.rb CHANGED
@@ -1,4 +1,3 @@
1
- require 'bindata'
2
1
  require 'dnssd'
3
2
  require 'facets/hash/slice'
4
3
  require 'hkdf'
@@ -4,7 +4,7 @@ module RubyHome
4
4
  DATA = YAML.load_file(FILEPATH).freeze
5
5
 
6
6
  def self.all
7
- @@all ||= DATA.map { |data| new(data) }
7
+ @@all ||= DATA.map { |data| new(**data) }
8
8
  end
9
9
 
10
10
  def self.find_by(options)
@@ -4,7 +4,7 @@ module RubyHome
4
4
  DATA = YAML.load_file(FILEPATH).freeze
5
5
 
6
6
  def self.all
7
- @all ||= DATA.map { |data| new(data) }
7
+ @all ||= DATA.map { |data| new(**data) }
8
8
  end
9
9
 
10
10
  def self.find_by(options)
@@ -96,7 +96,7 @@ module RubyHome
96
96
  encrypted_data = chacha20poly1305ietf.encrypt(nonce, subtlv)
97
97
 
98
98
  pairing_params = { admin: true, identifier: iosdevicepairingid, public_key: iosdeviceltpk.unpack1('H*') }
99
- accessory_info.add_paired_client pairing_params
99
+ accessory_info.add_paired_client(**pairing_params)
100
100
 
101
101
  tlv state: 6, encrypted_data: encrypted_data
102
102
  end
@@ -22,7 +22,7 @@ module RubyHome
22
22
  identifier: unpack_request[:identifier],
23
23
  public_key: unpack_request[:public_key].unpack1('H*')
24
24
  }
25
- accessory_info.add_paired_client pairing_params
25
+ accessory_info.add_paired_client(**pairing_params)
26
26
 
27
27
  tlv state: 2
28
28
  end
@@ -10,7 +10,7 @@ module RubyHome
10
10
  module ClassMethods
11
11
  def persisted
12
12
  if yaml = read
13
- new(yaml)
13
+ new(**yaml)
14
14
  end
15
15
  end
16
16
 
@@ -1,3 +1,3 @@
1
1
  module RubyHome
2
- VERSION = '0.2.3'
2
+ VERSION = '0.2.4'
3
3
  end
data/rubyhome.gemspec CHANGED
@@ -26,15 +26,14 @@ Gem::Specification.new do |spec|
26
26
  spec.require_paths = ['lib']
27
27
  spec.required_ruby_version = '>= 2.4.1'
28
28
 
29
- spec.add_dependency 'bindata', '~> 2.4', '>= 2.4.3'
30
29
  spec.add_dependency 'dnssd', '~> 3.0'
31
30
  spec.add_dependency 'facets', '~> 3.1'
32
31
  spec.add_dependency 'hkdf', '~> 0.3.0'
33
- spec.add_dependency 'oj', '3.9.2'
32
+ spec.add_dependency 'oj', '3.10.5'
34
33
  spec.add_dependency 'rbnacl', '~> 7.0'
35
34
  spec.add_dependency 'ruby_home-srp', '~> 1.3'
36
35
  spec.add_dependency 'ruby_home-tlv', '~> 0.1.0'
37
- spec.add_dependency 'sinatra', '2.0.7'
36
+ spec.add_dependency 'sinatra', '2.0.8.1'
38
37
  spec.add_dependency 'wisper', '~> 2.0'
39
38
 
40
39
  spec.add_development_dependency 'byebug', '~> 11.0'
metadata CHANGED
@@ -1,35 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_home
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karl Entwistle
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-20 00:00:00.000000000 Z
11
+ date: 2020-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: bindata
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '2.4'
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 2.4.3
23
- type: :runtime
24
- prerelease: false
25
- version_requirements: !ruby/object:Gem::Requirement
26
- requirements:
27
- - - "~>"
28
- - !ruby/object:Gem::Version
29
- version: '2.4'
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 2.4.3
33
13
  - !ruby/object:Gem::Dependency
34
14
  name: dnssd
35
15
  requirement: !ruby/object:Gem::Requirement
@@ -78,14 +58,14 @@ dependencies:
78
58
  requirements:
79
59
  - - '='
80
60
  - !ruby/object:Gem::Version
81
- version: 3.9.2
61
+ version: 3.10.5
82
62
  type: :runtime
83
63
  prerelease: false
84
64
  version_requirements: !ruby/object:Gem::Requirement
85
65
  requirements:
86
66
  - - '='
87
67
  - !ruby/object:Gem::Version
88
- version: 3.9.2
68
+ version: 3.10.5
89
69
  - !ruby/object:Gem::Dependency
90
70
  name: rbnacl
91
71
  requirement: !ruby/object:Gem::Requirement
@@ -134,14 +114,14 @@ dependencies:
134
114
  requirements:
135
115
  - - '='
136
116
  - !ruby/object:Gem::Version
137
- version: 2.0.7
117
+ version: 2.0.8.1
138
118
  type: :runtime
139
119
  prerelease: false
140
120
  version_requirements: !ruby/object:Gem::Requirement
141
121
  requirements:
142
122
  - - '='
143
123
  - !ruby/object:Gem::Version
144
- version: 2.0.7
124
+ version: 2.0.8.1
145
125
  - !ruby/object:Gem::Dependency
146
126
  name: wisper
147
127
  requirement: !ruby/object:Gem::Requirement