deskshot 0.0.0 → 0.0.1
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 +4 -4
- data/lib/deskshot/tray.rb +2 -3
- data/lib/deskshot/tray_app.rb +0 -1
- metadata +4 -4
- /data/lib/deskshot/{capture_icon.png → deskshot_icon.png} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 758c93e24028680fe8d9c18bfa2e71c2b9ea6dfc
|
4
|
+
data.tar.gz: 4818c085525af4a4160275ca779a414cd5b12a0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1022b676d9c2d42865b5a9847e2f0d0488bc2ca9660778047f0568f3504779fdbd29677fb4cf84aebd8095661af9cab85991d8a2d579ddcc364a0ae390ecbc9b
|
7
|
+
data.tar.gz: be276c1b27a3c0fb8909e67d41db9b15d4ac48226d6dc657a79ccc3cd9ecf7f11dc4451af526e1eb4e19aa45c2495dab962e778139442303e9f103c39e8bfd21
|
data/lib/deskshot/tray.rb
CHANGED
@@ -3,13 +3,12 @@ class TrayApplication
|
|
3
3
|
import java.awt.TrayIcon
|
4
4
|
import java.awt.Toolkit
|
5
5
|
|
6
|
-
attr_accessor :icon_filename
|
7
6
|
attr_accessor :menu_items
|
8
7
|
|
9
8
|
def initialize(name= 'Tray Application')
|
10
9
|
@menu_items = []
|
11
10
|
@name = name
|
12
|
-
puts "Application is started successfully!! click on Tray Icon"
|
11
|
+
puts "Application is started successfully!! Right click on Tray Icon"
|
13
12
|
end
|
14
13
|
|
15
14
|
def item(label, &block)
|
@@ -23,7 +22,7 @@ class TrayApplication
|
|
23
22
|
popup = java.awt.PopupMenu.new
|
24
23
|
@menu_items.each { |i| popup.add(i)}
|
25
24
|
|
26
|
-
image = java.awt.Toolkit::default_toolkit.get_image(
|
25
|
+
image = java.awt.Toolkit::default_toolkit.get_image('deskshot/deskshot_icon.png')
|
27
26
|
tray_icon = TrayIcon.new(image, @name, popup)
|
28
27
|
tray_icon.image_auto_size = true
|
29
28
|
|
data/lib/deskshot/tray_app.rb
CHANGED
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deskshot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Parth Bharadiya
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description:
|
13
|
+
description: Deskshot allows you to take screenshot of your desktop. It also has system tray application along with. It is implemented using JRuby
|
14
14
|
email: parthbharadiya007@gmail.com
|
15
15
|
executables: []
|
16
16
|
extensions: []
|
@@ -20,7 +20,7 @@ files:
|
|
20
20
|
- lib/deskshot/screenshot.rb
|
21
21
|
- lib/deskshot/tray.rb
|
22
22
|
- lib/deskshot/tray_app.rb
|
23
|
-
- lib/deskshot/
|
23
|
+
- lib/deskshot/deskshot_icon.png
|
24
24
|
homepage: http://rubygems.org/gems/deskshot
|
25
25
|
licenses:
|
26
26
|
- MIT
|
File without changes
|