captured 0.1.14 → 0.2.0

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.
Files changed (2) hide show
  1. data/lib/captured/file_uploader.rb +3 -3
  2. metadata +3 -3
@@ -42,7 +42,7 @@ class FileUploader
42
42
  settings['user'] || Etc.getlogin,
43
43
  file,
44
44
  settings['path']+remote_name,
45
- :password => settings[:password])
45
+ :password => settings['password'])
46
46
 
47
47
  "#{@config['upload']['url']}#{remote_name}"
48
48
  end
@@ -53,9 +53,9 @@ class FileUploader
53
53
  growl("Processing Upload", "#{File.dirname(File.expand_path(__FILE__))}/../../resources/action_run.png")
54
54
  remote_path = @upload_proc.call(file, remote_name)
55
55
  puts "Uploaded '#{file}' to '#{remote_path}'"
56
- raise "Copy Failed" unless system("echo '#{remote_path}' | /usr/bin/pbcopy")
56
+ raise "Copy Failed" unless system("echo -n '#{remote_path}' | /usr/bin/pbcopy")
57
57
  growl("Upload Succeeded", "#{File.dirname(File.expand_path(__FILE__))}/../../resources/green_check.png")
58
- rescue => e
58
+ rescue => e
59
59
  puts e
60
60
  puts e.backtrace
61
61
  growl(e)
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.1.14
4
+ version: 0.2.0
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-07-10 00:00:00 -04:00
12
+ date: 2009-10-23 00:00:00 -04:00
13
13
  default_executable: captured
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -74,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
74
74
  requirements: []
75
75
 
76
76
  rubyforge_project: captured
77
- rubygems_version: 1.3.4
77
+ rubygems_version: 1.3.5
78
78
  signing_key:
79
79
  specification_version: 3
80
80
  summary: Quick screenshot sharing for OS X