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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 959684b9ca1b7add19715f4e9032453e64b1e82e
4
- data.tar.gz: 504b5e7f6112a983e473e628022ac0627b99366d
3
+ metadata.gz: 758c93e24028680fe8d9c18bfa2e71c2b9ea6dfc
4
+ data.tar.gz: 4818c085525af4a4160275ca779a414cd5b12a0a
5
5
  SHA512:
6
- metadata.gz: f39f37c3712244ddffe2eb47df99279400ea814ffc9c7c1ea68b7f7a6788e45ea765efede85334649afe14f9c836316f8431c695bd8cf8789fb170e9673fd44d
7
- data.tar.gz: 1289e8f0cab520d06c1aa62b11113697863cbfd951cb29832f47174a2bd8cf90702a9d226e3b1b45d0cc81cb89fadc6cbe019bb909cc1b44815ef3fc67a2b2e2
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(@icon_filename)
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
 
@@ -2,7 +2,6 @@ require_relative 'tray'
2
2
  require_relative 'screenshot'
3
3
 
4
4
  app = TrayApplication.new('Deskshot')
5
- app.icon_filename = 'capture_icon.png'
6
5
  app.item('Take Screenshot') {Screenshot.capture}
7
6
  app.item('Exit') {java.lang.System::exit(0)}
8
7
  app.run
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.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-07 00:00:00.000000000 Z
11
+ date: 2014-02-10 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: This gem is for taking screenshot of your desktop. It has system tray application also along with.
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/capture_icon.png
23
+ - lib/deskshot/deskshot_icon.png
24
24
  homepage: http://rubygems.org/gems/deskshot
25
25
  licenses:
26
26
  - MIT