captured 0.2.1 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/captured/file_uploader.rb +6 -3
- metadata +2 -2
@@ -49,9 +49,12 @@ class FileUploader
|
|
49
49
|
end
|
50
50
|
|
51
51
|
def pbcopy(str)
|
52
|
-
|
53
|
-
|
54
|
-
|
52
|
+
system "ruby -e \"print '#{str}'\" | pbcopy"
|
53
|
+
# I prefer the following method but it was being intermitant about actually
|
54
|
+
# coping to the clipboard.
|
55
|
+
#IO.popen('pbcopy','w+') do |pbc|
|
56
|
+
# pbc.print str
|
57
|
+
#end
|
55
58
|
rescue
|
56
59
|
raise "Copy to clipboard failed"
|
57
60
|
end
|
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.3
|
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-10-
|
12
|
+
date: 2009-10-28 00:00:00 -04:00
|
13
13
|
default_executable: captured
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|