clipboard 0.8.3 → 0.8.4

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.3
1
+ 0.8.4
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{clipboard}
8
- s.version = "0.8.3"
8
+ s.version = "0.8.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jan Lelis"]
@@ -141,6 +141,11 @@
141
141
  <dd class="description"></dd>
142
142
 
143
143
 
144
+ <dt><a name="CLIPBOARDS">CLIPBOARDS</a></dt>
145
+
146
+ <dd class="description"></dd>
147
+
148
+
144
149
  <dt><a name="WriteCommands">WriteCommands</a></dt>
145
150
 
146
151
  <dd class="description"></dd>
@@ -199,10 +204,10 @@
199
204
  <div class="method-source-code"
200
205
  id="clear-source">
201
206
  <pre>
202
- <span class="ruby-comment cmt"># File lib/clipboard.rb, line 82</span>
203
- 82: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">clear</span>
204
- 83: <span class="ruby-identifier">copy</span> <span class="ruby-value str">''</span>
205
- 84: <span class="ruby-keyword kw">end</span></pre>
207
+ <span class="ruby-comment cmt"># File lib/clipboard.rb, line 83</span>
208
+ 83: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">clear</span>
209
+ 84: <span class="ruby-identifier">copy</span> <span class="ruby-value str">''</span>
210
+ 85: <span class="ruby-keyword kw">end</span></pre>
206
211
  </div>
207
212
 
208
213
  </div>
@@ -272,13 +277,13 @@ copy for all platforms
272
277
  <div class="method-source-code"
273
278
  id="copy-source">
274
279
  <pre>
275
- <span class="ruby-comment cmt"># File lib/clipboard.rb, line 88</span>
276
- 88: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">copy</span>(<span class="ruby-identifier">data</span>)
277
- 89: <span class="ruby-constant">WriteCommands</span>.<span class="ruby-identifier">each</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">cmd</span><span class="ruby-operator">|</span>
278
- 90: <span class="ruby-constant">IO</span>.<span class="ruby-identifier">popen</span>( <span class="ruby-identifier">cmd</span>, <span class="ruby-value str">'w'</span> ){ <span class="ruby-operator">|</span><span class="ruby-identifier">input</span><span class="ruby-operator">|</span> <span class="ruby-identifier">input</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">data</span> }
279
- 91: }
280
- 92: <span class="ruby-identifier">paste</span>
281
- 93: <span class="ruby-keyword kw">end</span></pre>
280
+ <span class="ruby-comment cmt"># File lib/clipboard.rb, line 89</span>
281
+ 89: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">copy</span>(<span class="ruby-identifier">data</span>)
282
+ 90: <span class="ruby-constant">WriteCommands</span>.<span class="ruby-identifier">each</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">cmd</span><span class="ruby-operator">|</span>
283
+ 91: <span class="ruby-constant">IO</span>.<span class="ruby-identifier">popen</span>( <span class="ruby-identifier">cmd</span>, <span class="ruby-value str">'w'</span> ){ <span class="ruby-operator">|</span><span class="ruby-identifier">input</span><span class="ruby-operator">|</span> <span class="ruby-identifier">input</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">data</span> }
284
+ 92: }
285
+ 93: <span class="ruby-identifier">paste</span>
286
+ 94: <span class="ruby-keyword kw">end</span></pre>
282
287
  </div>
283
288
 
284
289
  </div>
@@ -309,15 +314,15 @@ copy for all platforms
309
314
  <div class="method-source-code"
310
315
  id="paste-source">
311
316
  <pre>
312
- <span class="ruby-comment cmt"># File lib/clipboard.rb, line 73</span>
313
- 73: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">paste</span>(<span class="ruby-identifier">which</span> = <span class="ruby-keyword kw">nil</span>)
314
- 74: <span class="ruby-identifier">selection_string</span> = <span class="ruby-keyword kw">if</span> <span class="ruby-constant">Clipboards</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">which</span>.<span class="ruby-identifier">to_s</span>)
315
- 75: <span class="ruby-node">&quot; -selection #{which}&quot;</span>
316
- 76: <span class="ruby-keyword kw">else</span>
317
- 77: <span class="ruby-value str">''</span>
318
- 78: <span class="ruby-keyword kw">end</span>
319
- 79: <span class="ruby-node">%[#{ ReadCommand + selection_string }]</span>
320
- 80: <span class="ruby-keyword kw">end</span></pre>
317
+ <span class="ruby-comment cmt"># File lib/clipboard.rb, line 74</span>
318
+ 74: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">paste</span>(<span class="ruby-identifier">which</span> = <span class="ruby-keyword kw">nil</span>)
319
+ 75: <span class="ruby-identifier">selection_string</span> = <span class="ruby-keyword kw">if</span> <span class="ruby-constant">CLIPBOARDS</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">which</span>.<span class="ruby-identifier">to_s</span>)
320
+ 76: <span class="ruby-node">&quot; -selection #{which}&quot;</span>
321
+ 77: <span class="ruby-keyword kw">else</span>
322
+ 78: <span class="ruby-value str">''</span>
323
+ 79: <span class="ruby-keyword kw">end</span>
324
+ 80: <span class="ruby-node">%[#{ ReadCommand + selection_string }]</span>
325
+ 81: <span class="ruby-keyword kw">end</span></pre>
321
326
  </div>
322
327
 
323
328
  </div>
@@ -6,7 +6,7 @@
6
6
  <head>
7
7
  <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
8
8
 
9
- <title>File: README.rdoc [clipboard 0.8.0
9
+ <title>File: README.rdoc [clipboard 0.8.3
10
10
  ]</title>
11
11
 
12
12
  <link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet" />
@@ -1,3 +1,3 @@
1
- Sun, 03 Oct 2010 16:24:04 +0200
1
+ Sun, 03 Oct 2010 22:32:37 +0200
2
2
  README.rdoc Sun, 03 Oct 2010 06:03:31 +0200
3
- lib/clipboard.rb Sun, 03 Oct 2010 16:23:51 +0200
3
+ lib/clipboard.rb Sun, 03 Oct 2010 22:32:28 +0200
@@ -6,7 +6,7 @@
6
6
  <head>
7
7
  <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
8
8
 
9
- <title>clipboard 0.8.0
9
+ <title>clipboard 0.8.3
10
10
  </title>
11
11
 
12
12
  <link type="text/css" media="screen" href="rdoc.css" rel="stylesheet" />
@@ -20,11 +20,11 @@
20
20
  <body class="indexpage">
21
21
 
22
22
 
23
- <h1>clipboard 0.8.0
23
+ <h1>clipboard 0.8.3
24
24
  </h1>
25
25
 
26
26
 
27
- <p>This is the API documentation for 'clipboard 0.8.0
27
+ <p>This is the API documentation for 'clipboard 0.8.3
28
28
  '.</p>
29
29
 
30
30
 
@@ -6,7 +6,7 @@
6
6
  <head>
7
7
  <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
8
8
 
9
- <title>File: clipboard.rb [clipboard 0.8.0
9
+ <title>File: clipboard.rb [clipboard 0.8.3
10
10
  ]</title>
11
11
 
12
12
  <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet" />
@@ -25,7 +25,7 @@
25
25
  <div id="metadata">
26
26
  <dl>
27
27
  <dt class="modified-date">Last Modified</dt>
28
- <dd class="modified-date">2010-10-03 16:23:51 +0200</dd>
28
+ <dd class="modified-date">2010-10-03 22:32:28 +0200</dd>
29
29
 
30
30
 
31
31
  <dt class="requires">Requires</dt>
@@ -49,6 +49,7 @@ module Clipboard
49
49
  require 'open3'
50
50
 
51
51
  if OS.mac?
52
+ CLIPBOARDS = []
52
53
  WriteCommands = ['pbcopy']
53
54
  ReadCommand = 'pbpaste'
54
55
  else # linuX
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clipboard
3
3
  version: !ruby/object:Gem::Version
4
- hash: 57
4
+ hash: 55
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 8
9
- - 3
10
- version: 0.8.3
9
+ - 4
10
+ version: 0.8.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jan Lelis