evil_clipboard 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 9d66114b63442a3cce39cae9b5cf6c2ab607822a
4
+ data.tar.gz: 755838a0a300bde1096339c8ed78febaf6387ead
5
+ SHA512:
6
+ metadata.gz: e03498f1b127dc5860bc1084bffc169a1aa971234334d8062c9cea5a67cbc3becebd1ac3dca7effe108083c2cb591b177d508c6676b4fac63f27590bc7688f89
7
+ data.tar.gz: 8211ac61afc3b3ae89425172aa5265b2ee031baccefa4335cac59543ca00780718d2ffe2ac18c6b330c8aea773abce22d765a2a2d854131e1373e526034fbd2a
@@ -0,0 +1,27 @@
1
+ require "clipboard"
2
+ require "evil_clipboard/version"
3
+
4
+ module EvilClipboard extend self
5
+
6
+ def listen
7
+ output = Clipboard.paste
8
+ yield output
9
+ loop do
10
+ more_output = Clipboard.paste
11
+ yield more_output unless output == more_output
12
+ output = more_output
13
+ sleep 0.01
14
+ end
15
+ end
16
+
17
+ def inject(data)
18
+ loop do
19
+ unless data == Clipboard.paste
20
+ puts "Injecting data into the clipboard over: #{Clipboard.paste}"
21
+ Clipboard.copy(data)
22
+ end
23
+ sleep 0.01
24
+ end
25
+ end
26
+
27
+ end
@@ -0,0 +1,3 @@
1
+ module EvilClipboard
2
+ VERSION = "1.0.0"
3
+ end
metadata ADDED
@@ -0,0 +1,102 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: evil_clipboard
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Kent 'picat' Gruber
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-12-10 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: clipboard
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 1.1.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 1.1.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.16'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.16'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.0'
69
+ description:
70
+ email:
71
+ - kgruber1@emich.edu
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - lib/evil_clipboard.rb
77
+ - lib/evil_clipboard/version.rb
78
+ homepage: https://github.com/picatz/Evil-Clipboard
79
+ licenses:
80
+ - MIT
81
+ metadata: {}
82
+ post_install_message:
83
+ rdoc_options: []
84
+ require_paths:
85
+ - lib
86
+ required_ruby_version: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ required_rubygems_version: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ requirements: []
97
+ rubyforge_project:
98
+ rubygems_version: 2.6.12
99
+ signing_key:
100
+ specification_version: 4
101
+ summary: An evil clipboard.
102
+ test_files: []