dumon 0.1.2 → 0.1.3
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.
- data/README.md +13 -2
- data/bin/dumon +2 -0
- data/dumon.gemspec +0 -1
- data/lib/dumon.rb +12 -6
- data/lib/dumon/version.rb +1 -0
- metadata +2 -2
data/README.md
CHANGED
@@ -13,12 +13,23 @@ Dual monitor manager for Linux with GTK2 based user interface represented by sys
|
|
13
13
|
[](https://raw.github.com/veny/dumon/master/screenshots/mirror_menu.png)
|
14
14
|
|
15
15
|
|
16
|
-
##
|
17
|
-
|
16
|
+
## USAGE
|
17
|
+
### INSTALL
|
18
18
|
> sudo gem install dumon
|
19
19
|
|
20
20
|
* gem published on http://rubygems.org/gems/dumon
|
21
21
|
|
22
|
+
### START
|
23
|
+
> ruby -r dumon -e 'Dumon::run'
|
24
|
+
|
25
|
+
* or add GEM PATH (see 'gem environment') into your PATH and then
|
26
|
+
|
27
|
+
> dumon
|
28
|
+
|
29
|
+
### UPGRADE NOTICES
|
30
|
+
|
31
|
+
* see lib/dumon/version.rb
|
32
|
+
|
22
33
|
|
23
34
|
## FEATURES/PROBLEMS
|
24
35
|
|
data/bin/dumon
CHANGED
data/dumon.gemspec
CHANGED
@@ -17,7 +17,6 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.files = `git ls-files`.split("\n").select { |item| item unless item.start_with? 'screenshot' }
|
18
18
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
19
19
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
20
|
-
puts "XX #{s.executables}"
|
21
20
|
s.require_paths = ["lib"]
|
22
21
|
|
23
22
|
s.extra_rdoc_files = [
|
data/lib/dumon.rb
CHANGED
@@ -20,21 +20,27 @@ module Dumon
|
|
20
20
|
|
21
21
|
end
|
22
22
|
|
23
|
+
|
24
|
+
###
|
25
|
+
# Runs the application.
|
26
|
+
def self.run
|
27
|
+
ui = Dumon::Tray.new
|
28
|
+
ui.omanager = Dumon::XrandrManager.new
|
29
|
+
ui.render
|
30
|
+
end
|
31
|
+
|
23
32
|
end
|
24
33
|
|
25
34
|
|
26
35
|
# Configuration of logging.
|
27
36
|
Dumon::logger = Logger.new(STDOUT)
|
28
37
|
Dumon::logger.level = Logger::INFO
|
29
|
-
#Dumon::logger.level = Logger::DEBUG
|
30
38
|
|
31
39
|
Dumon::logger.info \
|
32
40
|
"Dumon #{Dumon::VERSION}, running on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
|
33
41
|
|
34
42
|
|
35
|
-
#
|
36
|
-
|
43
|
+
# development
|
44
|
+
#Dumon::logger.level = Logger::DEBUG
|
45
|
+
#Dumon::run
|
37
46
|
|
38
|
-
ui = Dumon::Tray.new
|
39
|
-
ui.omanager = omanager
|
40
|
-
ui.render
|
data/lib/dumon/version.rb
CHANGED
@@ -2,6 +2,7 @@ module Dumon
|
|
2
2
|
|
3
3
|
# Version history.
|
4
4
|
VERSION_HISTORY = [
|
5
|
+
['0.1.3', '2013-02-03', 'Changed starting mechanism'],
|
5
6
|
['0.1.2', '2013-02-01', 'Refactoring: class name optimalization'],
|
6
7
|
['0.1.1', '2013-01-28', 'Release candidate supporting two output devices'],
|
7
8
|
['0.1.0', '2013-01-21', 'Initial version on Ruby-1.9.3p374']
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dumon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-02-
|
12
|
+
date: 2013-02-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: gtk2
|