volay 0.7.0 → 1.0.0

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
  SHA1:
3
- metadata.gz: ca7a3ea6127b67b4ff5c2a547635fc3d5721590e
4
- data.tar.gz: 7a220fb07c26bff226e5316909318dcbd57d2eb1
3
+ metadata.gz: df1228f2ed17835ea69682d354967b12b0fbcfe7
4
+ data.tar.gz: 856899d78500be2d1ca8c559ce11dc979c3e2c37
5
5
  SHA512:
6
- metadata.gz: e31bfd375cce997979f9a7fbaa58cd953c3aa6ae837d9ca308db7fe858c2e148319c8bd85fb030d47233c83b5c1f797406775529692b1777e4fd349064ba8611
7
- data.tar.gz: 0193fc4f2f793f99c1c8ac3dabd94735a54ad7245e5e1f15bdd70f922c7921c6dd499ad04906ee0a1bba5e9d15ef328d26eefe3693a4ebd771a9eec33954a527
6
+ metadata.gz: af6cc7ffc098daec0e3bd0c7a27f089a5bee8aa064cdf36a8c3ffe1c3a4daa01226feb7389dd2b7ed4c1b19d8062e80e6b8b3adfc2837dca25230378bc886beb
7
+ data.tar.gz: 888efe7fecae589434f74da3bd68a932ed0377e43c610f20014afd348beaeca2a46b8ab1b03e3369a9a50a20a05acc9c41d20899cf78c61d332e4d3ecaeb49a5
data/.travis.yml CHANGED
@@ -7,6 +7,18 @@ rvm:
7
7
  before_install:
8
8
  - export DISPLAY=:99.0
9
9
  - sh -e /etc/init.d/xvfb start
10
- - sudo apt-get install -y libgirepository1.0-dev
11
10
 
12
11
  script: bundle exec rake
12
+
13
+ addons:
14
+ apt:
15
+ packages:
16
+ - pkg-config
17
+ - gtk-doc-tools
18
+ - libgtk-3-dev
19
+ - libfreetype6-dev # for font function
20
+ - libglib2.0-dev # for font functions / tests / utils
21
+ - libcairo2-dev # for utils
22
+ - libicu-dev # for extra unicode functions
23
+ - libgraphite2-dev # for extra shapers
24
+ - libgirepository1.0-dev # for gobject-introspection
data/bin/volay CHANGED
@@ -24,7 +24,6 @@ module Volay
24
24
  end
25
25
 
26
26
  def app
27
- Gtk.init
28
27
  Volay::App.new(File.expand_path('../../glade/volay.glade', __FILE__))
29
28
  Gtk.main
30
29
  end
data/lib/volay/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # Volay module
2
2
  module Volay
3
- VERSION = '0.7.0'
3
+ VERSION = '1.0.0'
4
4
  end
@@ -58,7 +58,8 @@ module Volay
58
58
  # @param [Gtk::Window] window Window
59
59
  #
60
60
  def get_position(window)
61
- screen, rectangle, orientation = @app.get_object('status_icon').geometry
61
+ _e, screen, rectangle, orientation = @app.get_object('status_icon')
62
+ .geometry
62
63
  window.set_screen(screen)
63
64
  monitor_num = screen.get_monitor_at_point(rectangle.x, rectangle.y)
64
65
  monitor = screen.get_monitor_geometry(monitor_num)
@@ -26,9 +26,10 @@ module Volay
26
26
  ##
27
27
  # When mute toggle image is clicked
28
28
  #
29
- def on_toggle_mute_toggled
29
+ def on_toggle_mute_toggled(widget)
30
30
  Thread.new do
31
- @app.mixer.toggle unless widget.active? && @app.mixer.muted?
31
+ @app.mixer.toggle unless (widget.active? && @app.mixer.muted?) ||
32
+ (!widget.active? && !@app.mixer.muted?)
32
33
  @app.utils.update_status_icon
33
34
  end
34
35
  end
data/volay.gemspec CHANGED
@@ -15,13 +15,13 @@ Gem::Specification.new do |s|
15
15
  s.required_ruby_version = '>= 1.9.3'
16
16
 
17
17
  s.add_dependency 'mixlib-cli', '~>1.5'
18
- s.add_dependency 'mixlib-shellout', '~>2.0'
19
- s.add_dependency 'gtk3', '~>2.2'
18
+ s.add_dependency 'mixlib-shellout', '~>2.2'
19
+ s.add_dependency 'gtk3', '~>3.0'
20
20
 
21
21
  s.add_development_dependency 'fakefs', '~>0.6'
22
- s.add_development_dependency 'rake', '~>10.0'
22
+ s.add_development_dependency 'rake', '~>10.5'
23
23
  s.add_development_dependency 'rack-test', '~>0.6'
24
- s.add_development_dependency 'rspec', '~>3.0'
25
- s.add_development_dependency 'simplecov', '~>0.9'
26
- s.add_development_dependency 'rubocop', '~>0.25'
24
+ s.add_development_dependency 'rspec', '~>3.4'
25
+ s.add_development_dependency 'simplecov', '~>0.11'
26
+ s.add_development_dependency 'rubocop', '~>0.35'
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: volay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pierre Rambaud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-13 00:00:00.000000000 Z
11
+ date: 2016-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mixlib-cli
@@ -30,28 +30,28 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '2.0'
33
+ version: '2.2'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '2.0'
40
+ version: '2.2'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: gtk3
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '2.2'
47
+ version: '3.0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '2.2'
54
+ version: '3.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: fakefs
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '10.0'
75
+ version: '10.5'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '10.0'
82
+ version: '10.5'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rack-test
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -100,42 +100,42 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '3.0'
103
+ version: '3.4'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '3.0'
110
+ version: '3.4'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: simplecov
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '0.9'
117
+ version: '0.11'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '0.9'
124
+ version: '0.11'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rubocop
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '0.25'
131
+ version: '0.35'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: '0.25'
138
+ version: '0.35'
139
139
  description: Really simple volume system tray written in ruby.
140
140
  email: pierre.rambaud86@gmail.com
141
141
  executables: