imagebin 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/bin/takeScreenshot.sh +10 -3
- metadata +4 -4
data/VERSION.yml
CHANGED
data/bin/takeScreenshot.sh
CHANGED
@@ -1,11 +1,17 @@
|
|
1
1
|
#!/usr/bin/env bash
|
2
|
+
#
|
3
|
+
# Take a screenshot, upload it, and display the link
|
4
|
+
#
|
5
|
+
# Requires: imagemagick, xmessage, and the imagebin script
|
6
|
+
#
|
2
7
|
|
3
8
|
# Location to save files
|
4
|
-
WORKINGDIR
|
9
|
+
WORKINGDIR=/tmp
|
5
10
|
# Default delay before taking screenshots
|
6
11
|
DELAY=3
|
7
12
|
#Prefix to use for images captured.
|
8
13
|
PREFIX=screenshot
|
14
|
+
IMPORT=`which import`
|
9
15
|
|
10
16
|
# Check if the dir to store the screenshots exists, else create it:
|
11
17
|
if [ ! -d "${WORKINGDIR}" ]; then mkdir "${WORKINGDIR}"; fi
|
@@ -14,5 +20,6 @@ i=`ls -l $WORKINGDIR/$PREFIX*.png | wc -l`
|
|
14
20
|
((i = i+1))
|
15
21
|
|
16
22
|
sleep $DELAY
|
17
|
-
|
18
|
-
|
23
|
+
$IMPORT -window root $WORKINGDIR/$PREFIX-$i.png
|
24
|
+
xmessage -nearmouse `imagebin -p -l -f $WORKINGDIR/$PREFIX-$i.png`
|
25
|
+
rm $WORKINGDIR/$PREFIX-$i.png
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: imagebin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- dougsko
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-12-26 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -45,8 +45,8 @@ dependencies:
|
|
45
45
|
description: Command line interface to imagebin.ca
|
46
46
|
email: dougtko@gmail.com
|
47
47
|
executables:
|
48
|
-
- imagebin
|
49
48
|
- takeScreenshot.sh
|
49
|
+
- imagebin
|
50
50
|
extensions: []
|
51
51
|
|
52
52
|
extra_rdoc_files:
|
@@ -93,5 +93,5 @@ signing_key:
|
|
93
93
|
specification_version: 3
|
94
94
|
summary: Command line interface to imagebin.ca
|
95
95
|
test_files:
|
96
|
-
- spec/spec_helper.rb
|
97
96
|
- spec/imagebin_spec.rb
|
97
|
+
- spec/spec_helper.rb
|