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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1ebc144bb289821cb40c971f1b702fb60a453625883d7efd38585ae1a62e65f0
4
- data.tar.gz: 90bad53653b32b65cffe04dce43d1374a9a88932036320f704235e47aa405899
3
+ metadata.gz: 64b7a76449a2e228636c060f77d6fb55a1ffd1cb60df07d375310aa8eddeaefc
4
+ data.tar.gz: 601d8358b1927078ab00e5b20b879623ed9ffa50d9307876ad16b07a4fcdcfce
5
5
  SHA512:
6
- metadata.gz: 994fe1e4db10204285de7603867055a30aa07731894c5a77f52309e5c176b52afcb6a332c2e7b90fdc4b7f89bbd714a44fe4aac3e52548f584375c234597876e
7
- data.tar.gz: c4be192c4b275b83150050d6947a79431dd167de8e62c0abcfda46617bf488707abf7e4805df642f06752c6c805a18f820466457cd8fb48bd0dbeb51ee5be819
6
+ metadata.gz: 7c4c2033047d53911a639b2122f66574bf1723ddcf7e2896f96de3b407a4464373f916d65ac414025c3929e5ea6d8d8026f027625c6aa1bb4ad555471cc1f853
7
+ data.tar.gz: d69a8d8fdcbfc9bd807d04269d0b92207b3e4dbfba3c708cb15be87f6d058b085087ac5cf8f04231de4a93b3a701172183e00f2daf76c9e2c2dc9a99eee4ab62
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.3.3
4
+
5
+ * Fix Cygwin implementation to work when File constant is loaded, fix by @ntachino
6
+
3
7
  ## 1.3.2
4
8
  * Windows version actually mutates a string, fix by @scivola
5
9
 
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010-2018 Jan Lelis
1
+ Copyright (c) 2010-2019 Jan Lelis
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
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 'clipboard'
25
- gem 'ffi', :platforms => [:mswin, :mingw]
32
+ gem "clipboard"
33
+ gem "ffi", :platforms => [:mswin, :mingw] # Required by Clipboard on Windows
26
34
  ```
27
35
 
28
- - Important note for **Linux** users: The clipboard requires the *xclip* or the *xsel* command-line program. On debian and ubuntu, *xsel* can be installed with: `sudo apt-get install xsel`
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-2018 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)
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)
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Clipboard
4
- VERSION = "1.3.2"
4
+ VERSION = "1.3.3"
5
5
  end
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.2
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: 2018-12-14 00:00:00.000000000 Z
11
+ date: 2019-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake