clipboard 1.3.4 → 1.3.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4273ba8f7f61ccc3657f0f2aab86f5a3081a13168162fa981680637b1131d418
4
- data.tar.gz: b96fedec56a94fd7438f590a2aa8131ceff76d57cf379160206b22dcf7484cb2
3
+ metadata.gz: 892729b3fc00a3f989dfa1c3c5e1c05062b94a2f01af23a358d519a09b737f33
4
+ data.tar.gz: 38f17ac7f06b2ff302b9498c3a3ad81bc2e7c9418f700f485569d8b8f15a18c9
5
5
  SHA512:
6
- metadata.gz: d158273b330e700c6196931dd159ab7cd2f6ebf7aa37631263f6dcde31c4689971c4127331923769aa187792827fe5737b6a00cf19c89e62fbe895ec6cf2a226
7
- data.tar.gz: aa588c6748c02b6ca17ff7b94197df14267e3d2b1355afcf0995926170b9d933710b4068664abc0fbe487b72af0fc3bc1146b3ef117ad807e68d24ab3b6ba143
6
+ metadata.gz: 5920c4e55b0322ac05a0df5c36e7d3c2dca41a31a481aab7ed3df6f838a10c0d4592910617c4e95b5878d5133d1b628b46cecef236118abecab608dc64b31827
7
+ data.tar.gz: 4ff5e2aba0b87384d16941ed3b85ba61382c7e28bc3a07e922328e3a9faf8a23f0524b797d8a729fd34cbb11720d6271890b6d772597444793dc66dd9443ad27
@@ -1,5 +1,8 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.3.5
4
+ * Fix missing String#+@ method on Ruby <2.3, patch by @AaronC81
5
+
3
6
  ## 1.3.4
4
7
  * Don't break on Ruby 2.1, patch by @grosser
5
8
 
data/README.md CHANGED
@@ -10,20 +10,16 @@ Lets you access the clipboard from everywhere. Currently supported platforms:
10
10
  - Gtk+ (Cross Platform Widget Toolkit)
11
11
  - Java (on JRuby)
12
12
 
13
+ Supported Rubies: **2.7**, **2.6**, **2.5**
14
+
15
+ Unsupported, but might still work: **2.4**, **2.3**, **2.2**, **2.1**, **2.0**
16
+
13
17
  ## Usage
14
18
 
15
19
  * `Clipboard.copy` - Copies a string to system clipboard
16
20
  * `Clipboard.paste` - Paste contents from system clipboard as string
17
21
  * `Clipboard.clear` - Empties the system clipboard
18
22
 
19
- ## Supported Rubies
20
-
21
- * **2.7**, **2.6**, **2.5**, **2.4**
22
-
23
- Unsupported, but might still work:
24
-
25
- * **2.3**, **2.2**, **2.1**, **2.0**, **1.9**
26
-
27
23
  ## Setup
28
24
 
29
25
  Add the following lines to your `Gemfile`:
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
19
19
  s.files = Dir.glob(%w[{lib,spec}/**/*.rb [A-Z]*.txt [A-Z]*.md]) + %w{clipboard.gemspec}
20
20
 
21
21
  s.required_ruby_version = '>= 1.9.3'
22
- s.add_development_dependency 'rake', '~> 11'
22
+ s.add_development_dependency 'rake', '~> 13.0'
23
23
  s.add_development_dependency 'rspec', '~> 3'
24
24
  # s.add_development_dependency 'ffi', '~> 1.9'
25
25
  # s.add_development_dependency 'gtk3', '~> 3'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Clipboard
4
- VERSION = "1.3.4"
4
+ VERSION = "1.3.5"
5
5
  end
@@ -42,7 +42,7 @@ module Clipboard
42
42
 
43
43
  # see http://www.codeproject.com/KB/clipboard/archerclipboard1.aspx
44
44
  def paste(_ = nil)
45
- data = +""
45
+ data = "".dup
46
46
  if 0 != User32.open( 0 )
47
47
  hclip = User32.get( CF_UNICODETEXT )
48
48
  if hclip && 0 != hclip
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
4
+ version: 1.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Lelis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-23 00:00:00.000000000 Z
11
+ date: 2020-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '11'
19
+ version: '13.0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '11'
26
+ version: '13.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement