deskshot 0.0.1 → 0.0.2

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: 758c93e24028680fe8d9c18bfa2e71c2b9ea6dfc
4
- data.tar.gz: 4818c085525af4a4160275ca779a414cd5b12a0a
3
+ metadata.gz: ddf586a2255db2248e8ad776f217f2fdd3eebe34
4
+ data.tar.gz: 706baf185210709db3be9855b2bac867022ee388
5
5
  SHA512:
6
- metadata.gz: 1022b676d9c2d42865b5a9847e2f0d0488bc2ca9660778047f0568f3504779fdbd29677fb4cf84aebd8095661af9cab85991d8a2d579ddcc364a0ae390ecbc9b
7
- data.tar.gz: be276c1b27a3c0fb8909e67d41db9b15d4ac48226d6dc657a79ccc3cd9ecf7f11dc4451af526e1eb4e19aa45c2495dab962e778139442303e9f103c39e8bfd21
6
+ metadata.gz: a1c31305810de07d7e8f5f6a4e4d91fe18f93191fa5d0edfe1bc6e62a5d2aba72335e80b3d53b05e82d400e56b59ec57bd5bafd7fc20c242ec908110f8a04dff
7
+ data.tar.gz: b10be34d19beed5722843a5f3758acfd2de4a2b828d592d480c5b398512fed10e40983ba45a607a04910f9b3e9d01258737196dc0b2a3acb648a1bec6aab8938
data/CHANGELOG.rdoc ADDED
@@ -0,0 +1,17 @@
1
+ = deskshot CHANGELOG
2
+
3
+ == v0.0.2 [10-Feb-2014] :
4
+
5
+ * Fix icon issue
6
+ * fix rdoc issue
7
+ * Change shortcut to 'CTRL + ALT + Q' to remove conflict in Linux
8
+
9
+ == v0.0.1 [10-Feb-2014] :
10
+
11
+ * Fix icon issue. Refactor code for ease.
12
+ * Include RDoc,History,Manifest
13
+
14
+ == v0.0.0 [7-Feb-2014] :
15
+
16
+ * Born Deskshot. Happy Birthday Dear Deskshot!
17
+ * Ignore console warning. Many more updates are coming soon :)
data/Manifest.txt ADDED
@@ -0,0 +1,3 @@
1
+ CHANGELOG.rdoc
2
+ Manifest.txt
3
+ README.rdoc
data/README.rdoc ADDED
@@ -0,0 +1,76 @@
1
+ = deskshot
2
+
3
+ * Homepage: https://rubygems.org/gems/deskshot
4
+
5
+ == DESCRIPTION:
6
+ Deskshot allows you to take screenshot of your desktop. You can
7
+ capture your favourite page by using opened window or by using
8
+ System tray icon. Mainly It is designed for Windows users.
9
+ but Yes, if your keyboard's 'Print Screen' key is not working
10
+ in Linux then It is for you also!
11
+
12
+
13
+ == FEATURES:
14
+
15
+ * Cross-platform App(Windows/Linux)[Haven't tested in Mac]
16
+ * Capture whole Screen
17
+ * Keyboard Shortcut
18
+
19
+ == REQUIREMENTS:
20
+
21
+ * Working JRuby installation(nothing else!)
22
+
23
+
24
+ == INSTALL:
25
+
26
+ === Gem Package
27
+
28
+ Install by running:
29
+
30
+ gem install deskshot
31
+
32
+ === Alternate Gem download:
33
+
34
+ * https://rubygems.org/gems/deskshot
35
+
36
+
37
+ == Getting Started:
38
+
39
+ Step 1 : After installing gem, you can simply run following command once only in your console/terminal.
40
+
41
+ irb -Ilib -rdeskshot
42
+
43
+ Step 2 : Next time onwards, you can simply use below command to run app.
44
+
45
+ irb -rdeskshot
46
+
47
+ Step 3 : After running above command, one pop-up window will open. You can take screenshot from File > Take Screenshot
48
+ or by right clicking system tray icon.
49
+
50
+ Step 4 : Actually there is no Step 4!! Just enjoy app if you like it!
51
+
52
+
53
+ == LICENSE:
54
+
55
+ (The MIT License)
56
+
57
+ Copyright (c) 2014 Parth Bharadiya
58
+
59
+ Permission is hereby granted, free of charge, to any person obtaining
60
+ a copy of this software and associated documentation files (the
61
+ 'Software'), to deal in the Software without restriction, including
62
+ without limitation the rights to use, copy, modify, merge, publish,
63
+ distribute, sublicense, and/or sell copies of the Software, and to
64
+ permit persons to whom the Software is furnished to do so, subject to
65
+ the following conditions:
66
+
67
+ The above copyright notice and this permission notice shall be
68
+ included in all copies or substantial portions of the Software.
69
+
70
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
71
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
72
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
73
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
74
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
75
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
76
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/lib/deskshot/tray.rb CHANGED
@@ -21,8 +21,8 @@ class TrayApplication
21
21
  def run
22
22
  popup = java.awt.PopupMenu.new
23
23
  @menu_items.each { |i| popup.add(i)}
24
-
25
- image = java.awt.Toolkit::default_toolkit.get_image('deskshot/deskshot_icon.png')
24
+ abs_path = File.dirname(__FILE__)
25
+ image = java.awt.Toolkit::default_toolkit.get_image(abs_path + '/deskshot_icon.png')
26
26
  tray_icon = TrayIcon.new(image, @name, popup)
27
27
  tray_icon.image_auto_size = true
28
28
 
data/lib/deskshot.rb CHANGED
@@ -27,7 +27,7 @@ class DeskShot < JFrame
27
27
 
28
28
  fileNew = JMenuItem.new "Take Screenshot!"
29
29
  fileNew.addActionListener { Screenshot.capture }
30
- fileNew.setAccelerator KeyStroke.getKeyStroke KeyEvent::VK_S, 10
30
+ fileNew.setAccelerator KeyStroke.getKeyStroke KeyEvent::VK_Q, 10
31
31
  #10 is a combination of 8 + 2, 8 is ALT, 2 is CTRL
32
32
 
33
33
  fileExit = JMenuItem.new "Exit"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deskshot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Parth Bharadiya
@@ -17,15 +17,18 @@ extensions: []
17
17
  extra_rdoc_files: []
18
18
  files:
19
19
  - lib/deskshot.rb
20
+ - lib/deskshot/deskshot_icon.png
20
21
  - lib/deskshot/screenshot.rb
21
22
  - lib/deskshot/tray.rb
22
23
  - lib/deskshot/tray_app.rb
23
- - lib/deskshot/deskshot_icon.png
24
+ - CHANGELOG.rdoc
25
+ - Manifest.txt
26
+ - README.rdoc
24
27
  homepage: http://rubygems.org/gems/deskshot
25
28
  licenses:
26
29
  - MIT
27
30
  metadata: {}
28
- post_install_message:
31
+ post_install_message: Thanks for installing! Please go through Documentation provided in http://rubydoc.info/gems/deskshot
29
32
  rdoc_options: []
30
33
  require_paths:
31
34
  - lib
@@ -39,7 +42,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
39
42
  - - '>='
40
43
  - !ruby/object:Gem::Version
41
44
  version: '0'
42
- requirements: []
45
+ requirements:
46
+ - Working installation of JRuby
43
47
  rubyforge_project:
44
48
  rubygems_version: 2.1.9
45
49
  signing_key: