captured 0.2.7 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +1 -20
- data/README.markdown +27 -22
- data/VERSION +1 -1
- data/bin/captured +1 -2
- data/etc/captured.yml-example +7 -6
- data/lib/captured/file_uploader.rb +1 -1
- data/resources/captured-box.png +0 -0
- data/resources/captured-empty-box.png +0 -0
- data/resources/captured.png +0 -0
- data/resources/growlnotify +0 -0
- data/spec/captured_spec.rb +1 -1
- metadata +5 -2
data/LICENSE
CHANGED
@@ -1,20 +1 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
-
a copy of this software and associated documentation files (the
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
9
|
-
the following conditions:
|
10
|
-
|
11
|
-
The above copyright notice and this permission notice shall be
|
12
|
-
included in all copies or substantial portions of the Software.
|
13
|
-
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
1
|
+
This is software is distributed under the same license as Ruby itself. See http://www.ruby-lang.org/en/LICENSE.txt.
|
data/README.markdown
CHANGED
@@ -1,17 +1,19 @@
|
|
1
1
|
captured
|
2
2
|
========
|
3
3
|
|
4
|
+
<img src="http://github.com/csexton/captured/raw/master/resources/captured.png" align="right" />
|
5
|
+
|
4
6
|
Quick screen capture and sharing application for Mac OS X.
|
5
7
|
|
6
|
-
|
7
|
-
|
8
|
+
Screen Capture Sharing Tool
|
9
|
+
===========================
|
8
10
|
|
9
|
-
|
11
|
+
I made captured because I wanted to customize and extend screen capture sharing programs, it is really intended for the commandline savvy.
|
10
12
|
|
11
13
|
So, I am making some assumptions about the environment that captured runs in. In particular it expects:
|
12
14
|
|
13
15
|
* A decent understanding of installing ruby gems
|
14
|
-
* That [Growl](http://growl.info/)
|
16
|
+
* That [Growl](http://growl.info/) is installed
|
15
17
|
|
16
18
|
With that said, once things are installed and configured it really is handy.
|
17
19
|
|
@@ -30,7 +32,7 @@ Using Captured
|
|
30
32
|
|
31
33
|
The main use is to upload a screen shot taken using OS X's built in screen capture.
|
32
34
|
|
33
|
-
1. Press
|
35
|
+
1. Press ⌘-⇧-4 to capture
|
34
36
|
2. Paste the link
|
35
37
|
|
36
38
|
Captured can also be used from the command line to easily share files.
|
@@ -41,30 +43,31 @@ Captured can also be used from the command line to easily share files.
|
|
41
43
|
Configuration
|
42
44
|
=============
|
43
45
|
|
44
|
-
By default captured uses
|
46
|
+
By default captured uses Imgur as the default host, but you can configure it to upload and share images by other services.
|
45
47
|
|
46
48
|
To edit the configuraiton:
|
47
49
|
|
48
50
|
$ open -e ~/.captured.yml
|
49
51
|
|
50
|
-
Type:
|
52
|
+
Type: Imgur
|
51
53
|
----------------
|
52
|
-
The
|
54
|
+
The simple image sharer. The default option.
|
53
55
|
|
54
56
|
<pre>
|
55
|
-
|
56
|
-
|
57
|
+
upload:
|
58
|
+
type: imgur
|
57
59
|
</pre>
|
58
60
|
|
59
|
-
Type:
|
61
|
+
Type: Imageshack
|
60
62
|
----------------
|
61
|
-
|
63
|
+
This service is a little slower, but is free and easy.
|
62
64
|
|
63
65
|
<pre>
|
64
|
-
|
65
|
-
|
66
|
+
upload:
|
67
|
+
type: imageshack
|
66
68
|
</pre>
|
67
69
|
|
70
|
+
|
68
71
|
Type: scp
|
69
72
|
---------
|
70
73
|
|
@@ -77,13 +80,13 @@ If you have you own web server scp is a very handy way to host your own captures
|
|
77
80
|
* path - the remote path to upload to
|
78
81
|
|
79
82
|
<pre>
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
83
|
+
upload:
|
84
|
+
type: scp
|
85
|
+
user: user
|
86
|
+
password: secret
|
87
|
+
host: example.com
|
88
|
+
path: path/to/captured/
|
89
|
+
url: "http://example.com/captured/"
|
87
90
|
</pre>
|
88
91
|
|
89
92
|
Icons
|
@@ -91,7 +94,9 @@ Icons
|
|
91
94
|
|
92
95
|
Icons from the [Crystal Clear](http://www.everaldo.com/crystal/) icon set by [Everaldo Coelho](http://en.wikipedia.org/wiki/Everaldo_Coelho). – The icons are [licensed](http://www.everaldo.com/crystal/?action=license) under the [GNU Lesser General Public License (LGPL)](http://en.wikipedia.org/wiki/GNU_Lesser_General_Public_License).
|
93
96
|
|
97
|
+
The Logo was made from the fantastic Vector Wood Signs by [DragonArt](http://dragonartz.wordpress.com) under the [Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License](http://creativecommons.org/licenses/by-nc-sa/3.0/us/).
|
98
|
+
|
94
99
|
Copyright
|
95
100
|
=========
|
96
101
|
|
97
|
-
Copyright (c)
|
102
|
+
Copyright (c) 2010 Christopher Sexton. See LICENSE for details.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.9
|
data/bin/captured
CHANGED
@@ -5,8 +5,7 @@ require "#{File.dirname(__FILE__)}/../lib/captured"
|
|
5
5
|
|
6
6
|
options = {:config_file => "#{ENV['HOME']}/.captured.yml",
|
7
7
|
:watch_path => "#{ENV['HOME']}/Desktop/",
|
8
|
-
:watch_pattern => Captured.guess_watch_path
|
9
|
-
:growl_path => "/usr/local/bin/growlnotify" }
|
8
|
+
:watch_pattern => Captured.guess_watch_path}
|
10
9
|
|
11
10
|
OptionParser.new do |opts|
|
12
11
|
opts.summary_width = 25
|
data/etc/captured.yml-example
CHANGED
@@ -1,18 +1,19 @@
|
|
1
1
|
# Example captured configuration file
|
2
2
|
#
|
3
|
-
|
3
|
+
|
4
|
+
# Upload type: Imgur
|
4
5
|
# =================================
|
6
|
+
#
|
7
|
+
# The simple image sharer
|
5
8
|
|
6
9
|
upload:
|
7
|
-
type:
|
10
|
+
type: imgur
|
8
11
|
|
9
|
-
#
|
12
|
+
# Upload type: Image Shack
|
10
13
|
# =================================
|
11
|
-
#
|
12
|
-
# The simple image sharer
|
13
14
|
|
14
15
|
#upload:
|
15
|
-
# type:
|
16
|
+
# type: imageshack
|
16
17
|
|
17
18
|
#
|
18
19
|
# Powerful upload type: scp
|
@@ -8,7 +8,7 @@ class FileUploader
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def initialize(options)
|
11
|
-
@growl_path = options[:growl_path] || "/
|
11
|
+
@growl_path = options[:growl_path] || "#{File.dirname(File.expand_path(__FILE__))}/../../resources/growlnotify"
|
12
12
|
@config = YAML.load_file(options[:config_file])
|
13
13
|
case @config['upload']['type']
|
14
14
|
when "eval"
|
Binary file
|
Binary file
|
data/resources/captured.png
CHANGED
Binary file
|
Binary file
|
data/spec/captured_spec.rb
CHANGED
@@ -11,7 +11,7 @@ describe "File Uploader" do
|
|
11
11
|
@options = {:config_file => File.dirname(__FILE__) + '/fixtures/scp_config.yml',
|
12
12
|
:watch_path => File.dirname(__FILE__) + '/../tmp/watch_path',
|
13
13
|
:watch_pattern => Captured.guess_watch_path,
|
14
|
-
:growl_path => "/
|
14
|
+
:growl_path => "#{File.dirname(File.expand_path(__FILE__))}/../resources/growlnotify" }
|
15
15
|
end
|
16
16
|
|
17
17
|
after(:all) do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: captured
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christopher Sexton
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-12-07 00:00:00 -05:00
|
13
13
|
default_executable: captured
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -57,8 +57,11 @@ files:
|
|
57
57
|
- lib/captured/uploaders/scp_uploader.rb
|
58
58
|
- resources/2uparrow.png
|
59
59
|
- resources/action_run.png
|
60
|
+
- resources/captured-box.png
|
61
|
+
- resources/captured-empty-box.png
|
60
62
|
- resources/captured.png
|
61
63
|
- resources/green_check.png
|
64
|
+
- resources/growlnotify
|
62
65
|
- resources/red_star.png
|
63
66
|
- resources/red_x.png
|
64
67
|
- resources/ruby.png
|