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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7bb30439dd7a7d1288adb593aa03144d863259b554d8299979136aded4f10e92
4
- data.tar.gz: a89e39cb3854e5be179f14babd8d80040063fdab1a9c43e377928ca1aea98a34
3
+ metadata.gz: a38fc6e7442e026c8f9c726d7ac442cfa43fb9403fdf960ee466ce39e457bc43
4
+ data.tar.gz: 7c0049a82a8c3b5cf4c1fa36398eca9c583e9fa3385586abccb3df9af9f06d09
5
5
  SHA512:
6
- metadata.gz: 1df402c968d79d90562b3bbb4d5175131e4c03f2b85a8abb3fe084ba1d6d4ddb25082fd2e919cd72b5745ddc93d45cb9a68a1110fdc439f9eae2dd4d13927282
7
- data.tar.gz: 871c5cab7c980fe3b8fad439bfbeb52ede1a2c33a7196058d5ea091eadb35541260bd7107a9bae2d3a18add5b26e9edf34d5870e1331148cd89dde78ae044bb5
6
+ metadata.gz: 4cac2351423ef363506d5813130377b36f773528c99ceb81a5d248da762823b68f15e9b7b448f71148c8c4947cede0f23957309f95429210d14d78262460b6ca
7
+ data.tar.gz: 327485676aab2fe139a2def01894b146efeb974350205ea42f825bd3fbdfff97437fd5cdd3d5d46fb5c373d8e9877f4c6316f96a1f498e50b43ec36dc8d73262
@@ -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:
@@ -1,18 +1,16 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lex-sleepiq (0.1.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.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.88.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.1.0, < 1.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.2.0)
57
- parser (>= 2.7.0.1)
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.42.0)
63
- rubocop (>= 0.87.0)
60
+ rubocop-rspec (1.43.1)
61
+ rubocop (~> 0.87)
64
62
  ruby-progressbar (1.10.1)
65
- simplecov (0.18.5)
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
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/legion/extensions/sleepiq`. To experiment with that code, run `bin/console` for an interactive prompt.
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 'legion-extensions-sleepiq'
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 legion-extensions-sleepiq
22
-
23
- ## Usage
24
-
25
- TODO: Write usage instructions here
26
-
27
- ## Development
28
-
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
-
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
-
33
- ## Contributing
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
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/legion-extensions-sleepiq.
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
- ## License
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).
@@ -33,5 +33,5 @@ Gem::Specification.new do |spec|
33
33
  spec.add_development_dependency 'rubocop-performance'
34
34
  spec.add_development_dependency 'rubocop-rspec'
35
35
 
36
- spec.add_dependency 'sleepiq'
36
+ spec.add_dependency 'sleepiq', '>= 0.2.2'
37
37
  end
@@ -1,7 +1,7 @@
1
1
  module Legion
2
2
  module Extensions
3
3
  module Sleepiq
4
- VERSION = '0.1.1'.freeze
4
+ VERSION = '0.1.2'.freeze
5
5
  end
6
6
  end
7
7
  end
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.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-07-21 00:00:00.000000000 Z
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: '0'
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: '0'
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