clipboard 1.3.2 → 1.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/MIT-LICENSE.txt +1 -1
- data/README.md +12 -4
- data/lib/clipboard/cygwin.rb +2 -2
- data/lib/clipboard/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64b7a76449a2e228636c060f77d6fb55a1ffd1cb60df07d375310aa8eddeaefc
|
4
|
+
data.tar.gz: 601d8358b1927078ab00e5b20b879623ed9ffa50d9307876ad16b07a4fcdcfce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c4c2033047d53911a639b2122f66574bf1723ddcf7e2896f96de3b407a4464373f916d65ac414025c3929e5ea6d8d8026f027625c6aa1bb4ad555471cc1f853
|
7
|
+
data.tar.gz: d69a8d8fdcbfc9bd807d04269d0b92207b3e4dbfba3c708cb15be87f6d058b085087ac5cf8f04231de4a93b3a701172183e00f2daf76c9e2c2dc9a99eee4ab62
|
data/CHANGELOG.md
CHANGED
data/MIT-LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -16,16 +16,24 @@ Lets you access the clipboard from everywhere. Currently supported platforms:
|
|
16
16
|
* `Clipboard.paste` - Paste contents from system clipboard as string
|
17
17
|
* `Clipboard.clear` - Empties the system clipboard
|
18
18
|
|
19
|
+
## Supported Rubies
|
20
|
+
|
21
|
+
* **2.6**, **2.5**, **2.4**, **2.3**
|
22
|
+
|
23
|
+
Unsupported, but might still work:
|
24
|
+
|
25
|
+
* **2.2**, **2.1**, **2.0**, **1.9**
|
26
|
+
|
19
27
|
## Setup
|
20
28
|
|
21
29
|
Add the following lines to your `Gemfile`:
|
22
30
|
|
23
31
|
```ruby
|
24
|
-
gem
|
25
|
-
gem
|
32
|
+
gem "clipboard"
|
33
|
+
gem "ffi", :platforms => [:mswin, :mingw] # Required by Clipboard on Windows
|
26
34
|
```
|
27
35
|
|
28
|
-
- Important note for
|
36
|
+
- **Important note for Linux** users: The clipboard requires the *xsel* or the *xclip* command-line program. On debian and ubuntu, *xsel* can be installed with: `sudo apt-get install xsel`
|
29
37
|
|
30
38
|
## Clipboard Implementations
|
31
39
|
|
@@ -84,4 +92,4 @@ Without any arguments, it will just paste the contents of the clipboard.
|
|
84
92
|
|
85
93
|
### MIT
|
86
94
|
|
87
|
-
Copyright (c) 2010-
|
95
|
+
Copyright (c) 2010-2019 Jan Lelis <http://janlelis.com> released under the MIT license. Contributions by and thanks to Michael Grosser and [all the other contributors!](https://github.com/janlelis/clipboard/graphs/contributors)
|
data/lib/clipboard/cygwin.rb
CHANGED
@@ -5,11 +5,11 @@ module Clipboard
|
|
5
5
|
extend self
|
6
6
|
|
7
7
|
def paste(_ = nil)
|
8
|
-
File.read("/dev/clipboard")
|
8
|
+
::File.read("/dev/clipboard")
|
9
9
|
end
|
10
10
|
|
11
11
|
def copy(data)
|
12
|
-
File.open("/dev/clipboard", "w"){ |f| f.write(data) }
|
12
|
+
::File.open("/dev/clipboard", "w"){ |f| f.write(data) }
|
13
13
|
paste
|
14
14
|
end
|
15
15
|
|
data/lib/clipboard/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clipboard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Lelis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|