tikkop 1.0.0
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 +7 -0
- data/bin/tikkop +5 -0
- data/lib/tikkop.rb +27 -0
- metadata +59 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2f2ad85654c65d65204e953675071ab1e247ce95776e15c482b41114fd5b006b
|
4
|
+
data.tar.gz: 4f23b61613eadbbc843e9841c3aee1bb9ffb051edb1de754665900dc23ca6a13
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 42163e9022dd37f0afff84901f3614b247a9e69fb072ef347dd0e2fbac57765f0bf1618e8ceb677b1f166b6d57bcb8dacdf11cba631dfb492b43c35ff9ed3a1e
|
7
|
+
data.tar.gz: c8dd95a8bf12e039e9190575a4a34294b680c7dfee1a08734d6663ca8aa6117daceb3442f93dbda1986467abc48ca1f2d2797cf3d4a83b859be48e9b6996e6c2
|
data/bin/tikkop
ADDED
data/lib/tikkop.rb
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
require "rumouse"
|
2
|
+
|
3
|
+
module Tikkop
|
4
|
+
def self.run
|
5
|
+
mouse = RuMouse.new
|
6
|
+
|
7
|
+
loop do
|
8
|
+
trap "SIGINT" do
|
9
|
+
puts ""
|
10
|
+
puts "Exiting Tikkop"
|
11
|
+
exit
|
12
|
+
end
|
13
|
+
|
14
|
+
current_position = mouse.position
|
15
|
+
current_x = current_position[:x]
|
16
|
+
current_y = current_position[:y]
|
17
|
+
|
18
|
+
x_by = Random.new.rand -5..5
|
19
|
+
y_by = Random.new.rand -5..5
|
20
|
+
|
21
|
+
mouse.move current_x + x_by, current_y + y_by
|
22
|
+
|
23
|
+
sleep rand(1..2)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
metadata
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tikkop
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- David Jennings
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2024-05-28 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rumouse
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.0.7
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.0.7
|
27
|
+
description: Makes your mouse twitch to prevent screen locking
|
28
|
+
email: david@chillidoor.com
|
29
|
+
executables:
|
30
|
+
- tikkop
|
31
|
+
extensions: []
|
32
|
+
extra_rdoc_files: []
|
33
|
+
files:
|
34
|
+
- bin/tikkop
|
35
|
+
- lib/tikkop.rb
|
36
|
+
homepage: https://github.com/chillidoor/tikkop/
|
37
|
+
licenses:
|
38
|
+
- MIT
|
39
|
+
metadata: {}
|
40
|
+
post_install_message:
|
41
|
+
rdoc_options: []
|
42
|
+
require_paths:
|
43
|
+
- lib
|
44
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - ">="
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '2.7'
|
49
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
requirements: []
|
55
|
+
rubygems_version: 3.5.9
|
56
|
+
signing_key:
|
57
|
+
specification_version: 4
|
58
|
+
summary: Makes your mouse cursor twitch
|
59
|
+
test_files: []
|