clipboard 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/clipboard/linux_wayland.rb +6 -5
- data/lib/clipboard/version.rb +1 -1
- data/lib/clipboard.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1176250dac08a0b34135139cae0057d85980a5db1b64f56b5c89fd4745d176e2
|
4
|
+
data.tar.gz: b55213775852ec00ffa7d58a8e97b8e3b31530067e02e6604885873e44a6424e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 317ce477428ad9390f5ea8dff8afac8fbd23633210bc94de5a4f5db55982681e1a6fa7c4eca2c2204ca4d46238a707ec1a5516076fa456556ad0ec0bd1b7221e
|
7
|
+
data.tar.gz: f7245a4588ba5fecfd2974f970b6849807fe488acc321b54d546c993900c95487b2be5c0bf50230ba617fa3aac15097ffc912050fdbe1cf2983be41321b6b976
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 1.4.1
|
4
|
+
* Always use plaintext mimetype for wl-clipboard
|
5
|
+
* Do not include newline when pasting from wl-clipboard
|
6
|
+
* Internal: Let ClipboardLoadError inherit from StandardError, not Exception
|
7
|
+
|
3
8
|
## 1.4.0
|
4
9
|
* Add Wayland support via `wl-copy`, patch by @cramt
|
5
10
|
* Only silence clipboard warnings when $VERBOSE is nil
|
@@ -6,17 +6,18 @@ module Clipboard
|
|
6
6
|
module LinuxWayland
|
7
7
|
extend self
|
8
8
|
|
9
|
-
|
10
|
-
|
9
|
+
TEST_COMMAND = "wl-copy"
|
10
|
+
WRITE_COMMAND = "wl-copy --type text/plain"
|
11
|
+
READ_COMMAND = "wl-paste --type text/plain --no-newline"
|
11
12
|
|
12
|
-
if !Utils.executable_installed?(
|
13
|
+
if !Utils.executable_installed?(TEST_COMMAND)
|
13
14
|
raise Clipboard::ClipboardLoadError, "clipboard: Could not find required program wl-copy\n" \
|
14
15
|
"Please install it or try a different implementation"
|
15
16
|
end
|
16
17
|
|
17
18
|
def paste(might_select_primary_clipboard = nil)
|
18
19
|
if might_select_primary_clipboard == "primary"
|
19
|
-
`#{READ_COMMAND}
|
20
|
+
`#{READ_COMMAND} --primary`
|
20
21
|
else
|
21
22
|
`#{READ_COMMAND}`
|
22
23
|
end
|
@@ -28,7 +29,7 @@ module Clipboard
|
|
28
29
|
end
|
29
30
|
|
30
31
|
def clear
|
31
|
-
`#{WRITE_COMMAND}
|
32
|
+
`#{WRITE_COMMAND} --clear`
|
32
33
|
end
|
33
34
|
end
|
34
35
|
end
|
data/lib/clipboard/version.rb
CHANGED
data/lib/clipboard.rb
CHANGED