audio_switch 0.0.3 → 0.0.4

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: e12eb2e9ceb73f7771435e76da09d68020e74f35d31bc61915a6e9d7f7ca87bd
4
- data.tar.gz: 43cb348f9dae56a5e4f19beabfe58a1b3cf79af680c7059c0c59b0b19c5faf4d
3
+ metadata.gz: f460265109a3d22115bfe7efb708cb31c36c892efca4685d5cbfae5724c28a94
4
+ data.tar.gz: eec7b4371f43e4e29355e8e72c2c03bb61369848966dad7ac250f359de4cb893
5
5
  SHA512:
6
- metadata.gz: 7603a6c6191c08d7ebd6edae406b125ac6a3950ee49ab80aeaabd053844cc6c5031f67340e10ff7d3edaadc2b19fdb29fc8eea1cca939f3b82254c00b04b0dc1
7
- data.tar.gz: b3b9973abce4f4e3432484a74ef5f76d2b7c86f36fca180a4a0327328cf757ba342f96aa765a60ff0b0eee0047594246c0001090d9b9f7348c2899e511f1e19a
6
+ metadata.gz: 7c196846ef60c850fcf15f2c7a2f72abe8adf527d859fe630adeb4c78d00de556d1ecb52f92484159c3fb8cca860d96c88af925e5cf4c41e54d77bbb4998029b
7
+ data.tar.gz: 4b407dd1e07833aeedb0894dddfec1a8b2746361baa186568816c46b6e8a210a6cf10cfd8a6b6e65f7765e200c5ced03b4da55dfcadb51222b13c68e42bab2ad
data/lib/audio_switch.rb CHANGED
@@ -10,7 +10,7 @@ module AudioSwitch
10
10
 
11
11
  module App
12
12
  def self.start
13
- AudioSwitch::LOG.info("starting audio_switch #{AudioSwitch::VERSION}")
13
+ AudioSwitch::LOG.info("starting audio_switch #{AudioSwitch::VERSION} on ruby #{RUBY_VERSION}")
14
14
  pactl = AudioSwitch::Pactl.new
15
15
  model = AudioSwitch::Model.new(pactl)
16
16
  ui = AudioSwitch::UI.new(model)
@@ -12,7 +12,11 @@ module AudioSwitch
12
12
  def start
13
13
  add_to_tray
14
14
  subscribe
15
- Gtk.main
15
+ AudioSwitch::LOG.info 'starting GTK main'
16
+ loop do
17
+ Gtk.main
18
+ AudioSwitch::LOG.info 'restarting GTK main'
19
+ end
16
20
  end
17
21
 
18
22
  private
@@ -1,3 +1,3 @@
1
1
  module AudioSwitch
2
- VERSION = '0.0.3'.freeze
2
+ VERSION = '0.0.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: audio_switch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anatolii Saienko