xorg_buffer 1.2.4

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of xorg_buffer might be problematic. Click here for more details.

checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: a6e83450015115242440e1f87cfe3ea2519b103b3d65a485828ba67ad54293d2
4
+ data.tar.gz: d7d458f359e2085639ecd879eef3a041a0cb9c1911a3866b48a4ebd8ab33fc95
5
+ SHA512:
6
+ metadata.gz: e826a122c3496120bd9ab2f848a28bc1d2ffb8f604da87f57cec9d2d6ce28899517b5250c6884e930be85a76707914ec79f6c37f095717f20e6e742a00539693
7
+ data.tar.gz: f4dfcca828f7dcadc0abeccc5894379410e242217f9cc084ac9cba8b43b6b0b10a959585f0e305d24b7972fb278e6fd8f2091e4070fe3ae978aed37905c8de9f
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/ruby -w
2
+ # Encoding: UTF-8
3
+ # frozen_string_literal: true
4
+ # =========================================================================== #
5
+ require 'xorg_buffer/module.rb'
6
+
7
+ XorgBuffer.set_xorg_buffer(ARGF.read)
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/ruby -w
2
+ # Encoding: UTF-8
3
+ # frozen_string_literal: true
4
+ # =========================================================================== #
5
+ # require 'xorg_buffer/constants/constants.rb'
6
+ # =========================================================================== #
7
+ module XorgBuffer
8
+
9
+ # ========================================================================= #
10
+ # === USE_THIS_XORG_COMMAND
11
+ #
12
+ # We need to keep in mind that xsel may be unavailable on a user's
13
+ # machine.
14
+ # ========================================================================= #
15
+ USE_THIS_XORG_COMMAND = 'xsel --input'
16
+
17
+ end
@@ -0,0 +1,47 @@
1
+ #!/usr/bin/ruby -w
2
+ # Encoding: UTF-8
3
+ # frozen_string_literal: true
4
+ # =========================================================================== #
5
+ # This module can be included.
6
+ #
7
+ # require 'xorg_buffer/module'; include XorgBuffer
8
+ # =========================================================================== #
9
+ # require 'xorg_buffer/module.rb'
10
+ # =========================================================================== #
11
+ module XorgBuffer
12
+
13
+ require 'xorg_buffer/constants/constants.rb'
14
+
15
+ # ========================================================================= #
16
+ # === XorgBuffer.set_xorg_buffer
17
+ #
18
+ # Use this method to set to the Xorg Buffer, on Linux.
19
+ #
20
+ # Complete usage example for this method here:
21
+ # require 'xorg_buffer/module'; XorgBuffer.set_xorg_buffer('test')
22
+ #
23
+ # Now, the xorg buffer contains the word 'test'.
24
+ # ========================================================================= #
25
+ def self.set_xorg_buffer(
26
+ data = nil
27
+ )
28
+ if data
29
+ data = data.join('|') if data.is_a? Array
30
+ # ===================================================================== #
31
+ # We must get rid of '""' because this may confuse the xsel command.
32
+ # ===================================================================== #
33
+ if data.include? '"'
34
+ data = data.delete('"')
35
+ end
36
+ cmd = 'echo "'+data+'" | '+USE_THIS_XORG_COMMAND
37
+ system cmd
38
+ end
39
+ end; self.instance_eval { alias set_buffer set_xorg_buffer } # === XorgBuffer.set_buffer
40
+ self.instance_eval { alias copy_this_text_to_the_clipboard set_xorg_buffer } # === XorgBuffer.copy_this_text_to_the_clipboard
41
+ self.instance_eval { alias copy set_xorg_buffer } # === XorgBuffer.copy
42
+ self.instance_eval { alias assign set_xorg_buffer } # === XorgBuffer.assign
43
+ self.instance_eval { alias assign_xorg_buffer set_xorg_buffer } # === XorgBuffer.assign_xorg_buffer
44
+ self.instance_eval { alias set set_xorg_buffer } # === XorgBuffer.set
45
+ self.instance_eval { alias [] set_xorg_buffer } # === XorgBuffer[]
46
+
47
+ end
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/ruby -w
2
+ # Encoding: UTF-8
3
+ # frozen_string_literal: true
4
+ # =========================================================================== #
5
+ # require 'xorg_buffer/version/version.rb'
6
+ # =========================================================================== #
7
+ module XorgBuffer
8
+
9
+ # ========================================================================= #
10
+ # === VERSION
11
+ # ========================================================================= #
12
+ VERSION = '1.2.4'
13
+
14
+ # ========================================================================= #
15
+ # === LAST_UPDATE
16
+ # ========================================================================= #
17
+ LAST_UPDATE = '15.04.2022'
18
+
19
+ end
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/ruby -w
2
+ # Encoding: UTF-8
3
+ # frozen_string_literal: true
4
+ # =========================================================================== #
5
+ # require 'xorg_buffer'
6
+ # =========================================================================== #
7
+ require 'xorg_buffer/module.rb'
8
+
9
+ # =========================================================================== #
10
+ # === set_xorg_buffer
11
+ #
12
+ # Use this method to set to the Xorg Buffer, on Linux. The reason why this
13
+ # method exists is so that we can quickly use a toplevel method, without
14
+ # having to further include any other module.
15
+ # =========================================================================== #
16
+ def set_xorg_buffer(data = nil)
17
+ XorgBuffer.set_buffer(data) if data
18
+ end
@@ -0,0 +1 @@
1
+ require 'xorg_buffer/xorg_buffer.rb'
@@ -0,0 +1,2 @@
1
+ require 'xorg_buffer/module'
2
+ XorgBuffer['This is a test for XorgBuffer.']
@@ -0,0 +1,35 @@
1
+ # =========================================================================== #
2
+ # Gemspec for Project XorgBuffer.
3
+ # =========================================================================== #
4
+ require 'xorg_buffer/version/version.rb'
5
+ require 'roebe'
6
+
7
+ Gem::Specification.new { |s|
8
+
9
+ s.name = 'xorg_buffer'
10
+ s.version = XorgBuffer::VERSION
11
+ s.date = Time.now.strftime('%Y-%m-%d')
12
+
13
+ s.summary = <<-EOF
14
+ This library is called xorg_buffer. It allows
15
+ us to set to the xorg-buffer, if "xsel" is
16
+ available.
17
+ EOF
18
+
19
+ s.description = <<-EOF
20
+ This library is called xorg_buffer. It allows
21
+ us to set to the xorg-buffer, if "xsel" is
22
+ available.
23
+ EOF
24
+
25
+ s.authors = ['Robert A. Heiler']
26
+ s.email = Roebe.email?
27
+ s.files = Dir['**/*']
28
+ s.license = 'MIT'
29
+ s.homepage = 'https://rubygems.org/gems/xorg_buffer'
30
+
31
+ s.required_ruby_version = '>= '+Roebe.third_most_stable_version_of_ruby
32
+ s.required_rubygems_version = '>= '+Gem::VERSION
33
+ s.rubygems_version = '>= '+Gem::VERSION
34
+
35
+ }
metadata ADDED
@@ -0,0 +1,54 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: xorg_buffer
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.2.4
5
+ platform: ruby
6
+ authors:
7
+ - Robert A. Heiler
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-04-15 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: |
14
+ This library is called xorg_buffer. It allows
15
+ us to set to the xorg-buffer, if "xsel" is
16
+ available.
17
+ email: shevy@inbox.lt
18
+ executables: []
19
+ extensions: []
20
+ extra_rdoc_files: []
21
+ files:
22
+ - bin/set_xorg_buffer
23
+ - lib/xorg_buffer.rb
24
+ - lib/xorg_buffer/constants/constants.rb
25
+ - lib/xorg_buffer/module.rb
26
+ - lib/xorg_buffer/version/version.rb
27
+ - lib/xorg_buffer/xorg_buffer.rb
28
+ - test/testing_xorg_buffer.rb
29
+ - xorg_buffer.gemspec
30
+ homepage: https://rubygems.org/gems/xorg_buffer
31
+ licenses:
32
+ - MIT
33
+ metadata: {}
34
+ post_install_message:
35
+ rdoc_options: []
36
+ require_paths:
37
+ - lib
38
+ required_ruby_version: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 2.5.8
43
+ required_rubygems_version: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: 3.3.11
48
+ requirements: []
49
+ rubygems_version: 3.3.11
50
+ signing_key:
51
+ specification_version: 4
52
+ summary: This library is called xorg_buffer. It allows us to set to the xorg-buffer,
53
+ if "xsel" is available.
54
+ test_files: []