csexton-captured 0.1.11 → 0.1.13

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.
data/README.markdown CHANGED
@@ -3,6 +3,17 @@ captured
3
3
 
4
4
  Quick screen capture and sharing application for Mac OS X.
5
5
 
6
+ By programmers for programmers
7
+ ==============================
8
+
9
+ While I would love to tinker with this to make it easy to install (it is really easy to use once it is setup), it proved to be non-trivial.
10
+
11
+ So, I am making some assumptions about the environment that captured runs in. In particular it expects:
12
+
13
+ * A decent understanding of scp and ssh
14
+ * That [Growl](http://growl.info/) (and the [growlnotify](http://growl.info/documentation/growlnotify.php) command-line tool) are installed
15
+
16
+ With that said, once things are installed and configured it really is handy.
6
17
 
7
18
  Install
8
19
  =======
@@ -13,11 +24,13 @@ to install captured:
13
24
  $ captured --install
14
25
  $ open -e ~/.captured.yml
15
26
 
16
- Then you will need to exit that config file with the approprate settings for your server.
27
+ Then you will need to exit that config file with the appropriate settings for your server.
28
+
29
+ When you install it will copy an example config file to ~/.captured.yml, which has a few examples of possible configuration types.
17
30
 
18
- The simplest way is to use the scp type.
31
+ The simplest of this is to the scp type:
19
32
 
20
- * user - optinal if your remote user is the same as your local user
33
+ * user - optional if your remote user is the same as your local user
21
34
  * password - optional if you have setup key pair authentication
22
35
  * host - the remote host name
23
36
  * url - the public url to the remote host+path
@@ -50,10 +50,11 @@ class FileUploader
50
50
 
51
51
  def process_upload(file)
52
52
  remote_name = Digest::MD5.hexdigest(file+Time.now.to_i.to_s) + File.extname(file)
53
+ growl("Processing Upload", "#{File.dirname(File.expand_path(__FILE__))}/../../resources/action_run.png")
53
54
  remote_path = @upload_proc.call(file, remote_name)
54
55
  puts "Uploaded '#{file}' to '#{remote_path}'"
55
56
  raise "Copy Failed" unless system("echo '#{remote_path}' | /usr/bin/pbcopy")
56
- growl("Uploaded Image", "#{File.dirname(File.expand_path(__FILE__))}/../../resources/green_check.png")
57
+ growl("Upload Succeeded", "#{File.dirname(File.expand_path(__FILE__))}/../../resources/green_check.png")
57
58
  rescue => e
58
59
  puts e
59
60
  puts e.backtrace
data/lib/captured.rb CHANGED
@@ -10,11 +10,11 @@ class Captured
10
10
  if `sw_vers | awk '/ProductVersion:/ {print $2}'` =~ /10\.5/
11
11
  "Picture**.png"
12
12
  else
13
- "Screenshot**.png"
13
+ "Screen**.png"
14
14
  end
15
15
  rescue => e
16
16
  puts e
17
- "Screenshot**.png"
17
+ "Screen**.png"
18
18
  end
19
19
 
20
20
  def self.run_once!(options)
Binary file
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: csexton-captured
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.13
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-06-26 00:00:00 -07:00
12
+ date: 2009-07-10 00:00:00 -07:00
13
13
  default_executable: captured
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -40,6 +40,8 @@ files:
40
40
  - lib/captured/file_tracker.rb
41
41
  - lib/captured/file_uploader.rb
42
42
  - lib/captured/fs_events.rb
43
+ - resources/2uparrow.png
44
+ - resources/action_run.png
43
45
  - resources/captured.png
44
46
  - resources/green_check.png
45
47
  - resources/red_star.png