lex-sleepiq 0.1.1 → 0.1.2
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 +4 -4
- data/.rubocop.yml +5 -0
- data/Gemfile.lock +10 -12
- data/README.md +31 -21
- data/legion-extensions-sleepiq.gemspec +1 -1
- data/lib/legion/extensions/sleepiq/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a38fc6e7442e026c8f9c726d7ac442cfa43fb9403fdf960ee466ce39e457bc43
|
4
|
+
data.tar.gz: 7c0049a82a8c3b5cf4c1fa36398eca9c583e9fa3385586abccb3df9af9f06d09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4cac2351423ef363506d5813130377b36f773528c99ceb81a5d248da762823b68f15e9b7b448f71148c8c4947cede0f23957309f95429210d14d78262460b6ca
|
7
|
+
data.tar.gz: 327485676aab2fe139a2def01894b146efeb974350205ea42f825bd3fbdfff97437fd5cdd3d5d46fb5c373d8e9877f4c6316f96a1f498e50b43ec36dc8d73262
|
data/.rubocop.yml
CHANGED
@@ -6,6 +6,11 @@ Metrics/ClassLength:
|
|
6
6
|
Max: 1500
|
7
7
|
Metrics/BlockLength:
|
8
8
|
Max: 50
|
9
|
+
Metrics/AbcSize:
|
10
|
+
Max: 20
|
11
|
+
Lint/UnusedMethodArgument:
|
12
|
+
Exclude:
|
13
|
+
- lib/legion/extensions/sleepiq/runners/*.rb
|
9
14
|
Layout/SpaceAroundEqualsInParameterDefault:
|
10
15
|
EnforcedStyle: space
|
11
16
|
Style/SymbolArray:
|
data/Gemfile.lock
CHANGED
@@ -1,18 +1,16 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
lex-sleepiq (0.1.
|
5
|
-
sleepiq
|
4
|
+
lex-sleepiq (0.1.2)
|
5
|
+
sleepiq (>= 0.2.2)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
10
|
ast (2.4.1)
|
11
|
-
codecov (0.2.
|
12
|
-
colorize
|
11
|
+
codecov (0.2.8)
|
13
12
|
json
|
14
13
|
simplecov
|
15
|
-
colorize (0.8.1)
|
16
14
|
dalli (2.7.10)
|
17
15
|
diff-lcs (1.4.4)
|
18
16
|
docile (1.3.2)
|
@@ -44,25 +42,25 @@ GEM
|
|
44
42
|
rspec-support (3.9.3)
|
45
43
|
rspec_junit_formatter (0.4.1)
|
46
44
|
rspec-core (>= 2, < 4, != 2.12.0)
|
47
|
-
rubocop (0.
|
45
|
+
rubocop (0.89.1)
|
48
46
|
parallel (~> 1.10)
|
49
47
|
parser (>= 2.7.1.1)
|
50
48
|
rainbow (>= 2.2.2, < 4.0)
|
51
49
|
regexp_parser (>= 1.7)
|
52
50
|
rexml
|
53
|
-
rubocop-ast (>= 0.
|
51
|
+
rubocop-ast (>= 0.3.0, < 1.0)
|
54
52
|
ruby-progressbar (~> 1.7)
|
55
53
|
unicode-display_width (>= 1.4.0, < 2.0)
|
56
|
-
rubocop-ast (0.
|
57
|
-
parser (>= 2.7.
|
54
|
+
rubocop-ast (0.3.0)
|
55
|
+
parser (>= 2.7.1.4)
|
58
56
|
rubocop-md (0.4.0)
|
59
57
|
rubocop (~> 0.60)
|
60
58
|
rubocop-performance (1.7.1)
|
61
59
|
rubocop (>= 0.82.0)
|
62
|
-
rubocop-rspec (1.
|
63
|
-
rubocop (
|
60
|
+
rubocop-rspec (1.43.1)
|
61
|
+
rubocop (~> 0.87)
|
64
62
|
ruby-progressbar (1.10.1)
|
65
|
-
simplecov (0.
|
63
|
+
simplecov (0.19.0)
|
66
64
|
docile (~> 1.1)
|
67
65
|
simplecov-html (~> 0.11)
|
68
66
|
simplecov-html (0.12.2)
|
data/README.md
CHANGED
@@ -1,39 +1,49 @@
|
|
1
1
|
# Legion::Extensions::Sleepiq
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+
A Legion Extension designed to connect with SleepIQ by Sleep Number
|
4
|
+
Uses the [sleepiq](https://rubygems.org/gems/sleepiq) gem
|
6
5
|
|
7
6
|
## Installation
|
8
7
|
|
9
8
|
Add this line to your application's Gemfile:
|
10
9
|
|
11
10
|
```ruby
|
12
|
-
gem '
|
11
|
+
gem 'lex-sleepiq'
|
13
12
|
```
|
14
13
|
|
15
14
|
And then execute:
|
16
15
|
|
17
|
-
$ bundle
|
16
|
+
$ bundle install
|
18
17
|
|
19
18
|
Or install it yourself as:
|
20
19
|
|
21
|
-
$ gem install
|
22
|
-
|
23
|
-
##
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
20
|
+
$ gem install lex-sleepiq
|
21
|
+
|
22
|
+
## Adding to Legion
|
23
|
+
You can manually install with a `gem install lex-http` command or by adding it into your settings with something like this
|
24
|
+
```json
|
25
|
+
{
|
26
|
+
"extensions": {
|
27
|
+
"sleepiq": {
|
28
|
+
"enabled": true,
|
29
|
+
"workers": 1,
|
30
|
+
"username": "*sleep_iq_username*",
|
31
|
+
"password": "*sleep_iq_password*"
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
35
|
+
```
|
34
36
|
|
35
|
-
|
37
|
+
##### Runners
|
38
|
+
|runner|description|completed?|
|
39
|
+
|---|---|---|
|
40
|
+
|bed|Bed functions|no|
|
41
|
+
|family|used to query the family endpoint to get a summary|yes|
|
42
|
+
|foundation|used to control and query foundations|no|
|
43
|
+
|pump|used to control and query the pump|yes|
|
44
|
+
|sleeper|Used to query the sleeper endpoint|no|
|
36
45
|
|
37
|
-
##
|
46
|
+
## Usage
|
47
|
+
Control and query your bed. `Legion::Extensions::Sleepiq::Actors::Poll` will automatically every 10 seconds. This
|
48
|
+
will include things like person in bed status and the pump pressure
|
38
49
|
|
39
|
-
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lex-sleepiq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Esity
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -142,14 +142,14 @@ dependencies:
|
|
142
142
|
requirements:
|
143
143
|
- - ">="
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
145
|
+
version: 0.2.2
|
146
146
|
type: :runtime
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - ">="
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
152
|
+
version: 0.2.2
|
153
153
|
description: Used to connect Legion to Sleep Number SleepIQ API
|
154
154
|
email:
|
155
155
|
- matthewdiverson@gmail.com
|