awtrix_control 0.0.1 → 0.0.2

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: f3ab9bbb11f50ef16f44802afcddacd4ed0735a3183c232e44629ebf180ed580
4
- data.tar.gz: 37127243a83f3057591f1cf6c74054c25329a50badf1a4f166f0084c474f6c1c
3
+ metadata.gz: f59a3970d81d3f00c641368d92eeaa3ae598b13984a70ca20b06cf9f02a16a74
4
+ data.tar.gz: 4849bc5eecbe35b435c68c385dbbb6c8a505e07927b9d88bebd442534713f719
5
5
  SHA512:
6
- metadata.gz: 4c96a251e9df3890cfa8bfb95448b246cd61f19f2ad0d9abb66af7eb893086cbd4d15363651f0697f7785b4d4c28ce02d4ad2112602178a073cc4164a5ef32c5
7
- data.tar.gz: 78f63a8565721667c6b038948e1f081aa1da58b29af5b4b018f7025e586ac105fb478b9f5da75b094eb4ed444e4538e28734fc962f03022499f30af053a337bd
6
+ metadata.gz: fa0a5183b88149293c71067fc8d80c99c7587a20b0eede0bb9ec3a23a335d176b4847fd2d6455647e333a026630808f3b802479bab093897b26b73d1ef642fae
7
+ data.tar.gz: 1951fe11cec065b068484cba3adc87d66add888f380446b9115b7b319d86375621a989ed385898c85de6371681e6b3b8d81a88cb1335197a1ac2cae91f73330c
@@ -80,7 +80,7 @@ module AwtrixControl
80
80
  # Pushes the app to the associated device.
81
81
  def push
82
82
  return if @device.nil?
83
- @device.push_app(self)
83
+ @device.push_app(name)
84
84
  end
85
85
 
86
86
  # Define getters for each attribute in ATTRIBUTES.
@@ -136,7 +136,6 @@ describe AwtrixControl::App do
136
136
  expect(device2.apps[:test_app]).to eq(@app)
137
137
  end
138
138
 
139
-
140
139
  end
141
140
 
142
141
  describe '#disable_scroll=' do
@@ -341,6 +340,14 @@ describe AwtrixControl::App do
341
340
  end
342
341
  end
343
342
 
343
+ describe '#push' do
344
+ it 'pushes the app to the device' do
345
+ @app.device = @device
346
+ expect(@device).to receive(:push_app).with(:test_app)
347
+ @app.push
348
+ end
349
+ end
350
+
344
351
  describe '#push_icon=' do
345
352
  it 'sets the push icon' do
346
353
  @app.push_icon = :scroll_once
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awtrix_control
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francois Gaspard