clipboard_manager 1.0.4 → 1.0.5

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: 0fd839d070fd705e05d8beceedf7c4f2781696d1
4
- data.tar.gz: abce9790a308601479200afb390ebe64e605a027
3
+ metadata.gz: a0ce35b12b0971886c32e991585028b0fd434d0a
4
+ data.tar.gz: 85942ed874235d0541094c682a30a20c4eed208f
5
5
  SHA512:
6
- metadata.gz: 1cdfa738e9952e978b0d4ba6cc8a9e18689848fb43616591782495c08724eb335fa7d454534fccf80684ff986ead9eb163d70d054ef0c93b1a3de7128be50c0b
7
- data.tar.gz: 035980213d3c790fee2b792cb792d412ff73417b690940b14697a93e168d13bf5b54682b52b9e94ad4aeedcae42dd9425858ed48427c6284a57bfcc89f15c1ee
6
+ metadata.gz: 74f2cf9b7be33d847ffed2a43c88aa783b60266d7ae950e0633f21212d898083364aa3d2e0bdaa9e90e8518473fda6e96121624edca2019b19ea1500eea37f45
7
+ data.tar.gz: 55ecbce17723a6d09d6a3c7f5d2222f2f8af22fc42a69b9388987ac7b9ce0860eeca89aa5d0d667fbb1013de339f1a0df320918f183ba11094df5fcc1befd5d3
data/README.rdoc CHANGED
@@ -20,13 +20,16 @@ Ruby Gtk3App Clipboard Manager.
20
20
 
21
21
  == INSTALL:
22
22
 
23
+ Note that you do need gtk3app:
24
+
25
+ $ sudo gem install gtk3app
23
26
  $ sudo gem install clipboard_manager
24
27
 
25
28
  == CONFIGURATION:
26
29
 
27
30
  After an initial run, your user configuration will found in:
28
31
 
29
- ~/.config/gtk3app/clipboardmanager/config.yml
32
+ ~/.config/gtk3app/clipboardmanager/config-?.?.yml
30
33
 
31
34
  Towards the bottom of the file you will find the available tasks:
32
35
 
data/data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.4
1
+ 1.0.5
@@ -2,7 +2,6 @@
2
2
  require 'timeout'
3
3
 
4
4
  # Work gems
5
- require 'gtk3app'
6
5
  require 'helpema/zbar'
7
6
 
8
7
  # This Gem
@@ -12,6 +11,7 @@ require_relative 'clipboard_manager/clipboard_manager.rb'
12
11
 
13
12
  # Requires:
14
13
  #`ruby`
14
+ #`gtk3app`
15
15
  #`zbarcam`
16
16
  #`firefox`
17
17
  #`espeak`
@@ -1,22 +1,6 @@
1
1
  module ClipboardManager
2
2
  using Rafini::Exception
3
3
 
4
- class Dialog < Such::Dialog
5
- def initialize(*par)
6
- super
7
- add_button(Gtk::Stock::CANCEL, Gtk::ResponseType::CANCEL)
8
- add_button(Gtk::Stock::OK, Gtk::ResponseType::OK)
9
- end
10
-
11
- def runs
12
- show_all
13
- response = run
14
- response = yield(response)
15
- destroy
16
- return response
17
- end
18
- end
19
-
20
4
  def self.options=(opts)
21
5
  @@options=opts
22
6
  end
@@ -86,8 +70,8 @@ class ClipboardManager
86
70
 
87
71
  # https://github.com/ruby-gnome2/ruby-gnome2/blob/master/gtk3/sample/misc/dialog.rb
88
72
  def do_history!
89
- dialog = Dialog.new :history_dialog!
90
- combo = Such::ComboBoxText.new dialog.child, :history_combo!
73
+ dialog = Gtk3App::Dialog::CancelOk.new(:history_dialog!)
74
+ combo = dialog.combo :history_combo!
91
75
  @history.each do |str|
92
76
  if str.length > CONFIG[:MaxString]
93
77
  n = CONFIG[:MaxString]/2 - 1
@@ -96,7 +80,7 @@ class ClipboardManager
96
80
  combo.append_text(str)
97
81
  end
98
82
  dialog.runs do |response|
99
- if response==Gtk::ResponseType::OK and combo.active_text
83
+ if response == Gtk::ResponseType::OK and combo.active_text
100
84
  @previous = nil
101
85
  CLIPBOARD.text = @history[combo.active]
102
86
  end
@@ -116,9 +100,9 @@ class ClipboardManager
116
100
 
117
101
  def question?(name)
118
102
  return true unless @ask.active?
119
- dialog = Dialog.new :question_dialog!
120
- Such::Label.new dialog.child, ["Run #{name}?"]
121
- dialog.runs{|response| (response==Gtk::ResponseType::OK)}
103
+ dialog = Gtk3App::Dialog::NoYes.new :question_dialog!
104
+ dialog.label.text = "Run #{name}?"
105
+ dialog.runs
122
106
  end
123
107
 
124
108
  def toggled
@@ -1,3 +1,3 @@
1
1
  module ClipboardManager
2
- VERSION = '1.0.4'
2
+ VERSION = '1.0.5'
3
3
  end
metadata CHANGED
@@ -1,35 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clipboard_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - carlosjhr64
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-29 00:00:00.000000000 Z
11
+ date: 2014-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: gtk3app
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '1.3'
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 1.3.0
23
- type: :runtime
24
- prerelease: false
25
- version_requirements: !ruby/object:Gem::Requirement
26
- requirements:
27
- - - "~>"
28
- - !ruby/object:Gem::Version
29
- version: '1.3'
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 1.3.0
33
13
  - !ruby/object:Gem::Dependency
34
14
  name: helpema
35
15
  requirement: !ruby/object:Gem::Requirement
@@ -92,6 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
72
  version: '0'
93
73
  requirements:
94
74
  - 'ruby: ruby 2.1.3p242 (2014-09-19 revision 47630) [x86_64-linux]'
75
+ - 'gtk3app: 1.4.0'
95
76
  - 'zbarcam: 0.10'
96
77
  - 'firefox: Mozilla Firefox 34.0'
97
78
  - 'espeak: eSpeak text-to-speech: 1.47.11 03.May.13 Data at: /usr/share/espeak-data'