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 +1 -1
- data/clipboard.gemspec +1 -1
- data/doc/Clipboard.html +25 -20
- data/doc/README_rdoc.html +1 -1
- data/doc/created.rid +2 -2
- data/doc/index.html +3 -3
- data/doc/lib/clipboard_rb.html +2 -2
- data/lib/clipboard.rb +1 -0
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.8.
|
1
|
+
0.8.4
|
data/clipboard.gemspec
CHANGED
data/doc/Clipboard.html
CHANGED
@@ -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
|
203
|
-
|
204
|
-
|
205
|
-
|
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
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
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"><<</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
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
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">" -selection #{which}"</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>
|
data/doc/README_rdoc.html
CHANGED
data/doc/created.rid
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
Sun, 03 Oct 2010
|
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
|
3
|
+
lib/clipboard.rb Sun, 03 Oct 2010 22:32:28 +0200
|
data/doc/index.html
CHANGED
@@ -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.
|
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.
|
23
|
+
<h1>clipboard 0.8.3
|
24
24
|
</h1>
|
25
25
|
|
26
26
|
|
27
|
-
<p>This is the API documentation for 'clipboard 0.8.
|
27
|
+
<p>This is the API documentation for 'clipboard 0.8.3
|
28
28
|
'.</p>
|
29
29
|
|
30
30
|
|
data/doc/lib/clipboard_rb.html
CHANGED
@@ -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.
|
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
|
28
|
+
<dd class="modified-date">2010-10-03 22:32:28 +0200</dd>
|
29
29
|
|
30
30
|
|
31
31
|
<dt class="requires">Requires</dt>
|
data/lib/clipboard.rb
CHANGED
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:
|
4
|
+
hash: 55
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 8
|
9
|
-
-
|
10
|
-
version: 0.8.
|
9
|
+
- 4
|
10
|
+
version: 0.8.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jan Lelis
|