ratpoison 0.0.1

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.
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in ratpoison.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2012 Vincent Batts
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,21 @@
1
+ # Ratpoison
2
+
3
+ TODO: Write a gem description
4
+
5
+ ## Installation
6
+
7
+ Install it yourself as:
8
+
9
+ $ gem install ratpoison
10
+
11
+ ## Usage
12
+
13
+ TODO: Write usage instructions here
14
+
15
+ ## Contributing
16
+
17
+ 1. Fork it
18
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
19
+ 3. Commit your changes (`git commit -am 'Added some feature'`)
20
+ 4. Push to the branch (`git push origin my-new-feature`)
21
+ 5. Create new Pull Request
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
3
+
4
+ task :default => :build
5
+
@@ -0,0 +1,580 @@
1
+ module Ratpoison
2
+
3
+ RATPOISON="ratpoison"
4
+
5
+ def command(command, *args)
6
+ return `#{RATPOISON} -c "#{command} #{args.join(' ')}"`
7
+ end
8
+ module_function :command
9
+
10
+ def abort(*args)
11
+ return command("abort", args)
12
+ end
13
+ module_function :abort
14
+
15
+ def addhook(*args)
16
+ return command("addhook", args)
17
+ end
18
+ module_function :addhook
19
+
20
+ def alias(*args)
21
+ return command("alias", args)
22
+ end
23
+ module_function :alias
24
+
25
+ def banish(*args)
26
+ return command("banish", args)
27
+ end
28
+ module_function :banish
29
+
30
+ def chdir(*args)
31
+ return command("chdir", args)
32
+ end
33
+ module_function :chdir
34
+
35
+ def clrunmanaged(*args)
36
+ return command("clrunmanaged", args)
37
+ end
38
+ module_function :clrunmanaged
39
+
40
+ def colon(*args)
41
+ return command("colon", args)
42
+ end
43
+ module_function :colon
44
+
45
+ def curframe(*args)
46
+ return command("curframe", args)
47
+ end
48
+ module_function :curframe
49
+
50
+ def definekey(*args)
51
+ return command("definekey", args)
52
+ end
53
+ module_function :definekey
54
+
55
+ def undefinekey(*args)
56
+ return command("undefinekey", args)
57
+ end
58
+ module_function :undefinekey
59
+
60
+ def delete(*args)
61
+ return command("delete", args)
62
+ end
63
+ module_function :delete
64
+
65
+ def delkmap(*args)
66
+ return command("delkmap", args)
67
+ end
68
+ module_function :delkmap
69
+
70
+ def echo(*args)
71
+ return command("echo", args)
72
+ end
73
+ module_function :echo
74
+
75
+ def escape(*args)
76
+ return command("escape", args)
77
+ end
78
+ module_function :escape
79
+
80
+ def exec(*args)
81
+ return command("exec", args)
82
+ end
83
+ module_function :exec
84
+
85
+ def execa(*args)
86
+ return command("execa", args)
87
+ end
88
+ module_function :execa
89
+
90
+ def execf(*args)
91
+ return command("execf", args)
92
+ end
93
+ module_function :execf
94
+
95
+ def fdump(*args)
96
+ return command("fdump", args)
97
+ end
98
+ module_function :fdump
99
+
100
+ def focus(*args)
101
+ return command("focus", args)
102
+ end
103
+ module_function :focus
104
+
105
+ def focusprev(*args)
106
+ return command("focusprev", args)
107
+ end
108
+ module_function :focusprev
109
+
110
+ def focusdown(*args)
111
+ return command("focusdown", args)
112
+ end
113
+ module_function :focusdown
114
+
115
+ def exchangeup(*args)
116
+ return command("exchangeup", args)
117
+ end
118
+ module_function :exchangeup
119
+
120
+ def exchangedown(*args)
121
+ return command("exchangedown", args)
122
+ end
123
+ module_function :exchangedown
124
+
125
+ def exchangeleft(*args)
126
+ return command("exchangeleft", args)
127
+ end
128
+ module_function :exchangeleft
129
+
130
+ def exchangeright(*args)
131
+ return command("exchangeright", args)
132
+ end
133
+ module_function :exchangeright
134
+
135
+ def swap(*args)
136
+ return command("swap", args)
137
+ end
138
+ module_function :swap
139
+
140
+ def focuslast(*args)
141
+ return command("focuslast", args)
142
+ end
143
+ module_function :focuslast
144
+
145
+ def focusleft(*args)
146
+ return command("focusleft", args)
147
+ end
148
+ module_function :focusleft
149
+
150
+ def focusright(*args)
151
+ return command("focusright", args)
152
+ end
153
+ module_function :focusright
154
+
155
+ def focusup(*args)
156
+ return command("focusup", args)
157
+ end
158
+ module_function :focusup
159
+
160
+ def frestore(*args)
161
+ return command("frestore", args)
162
+ end
163
+ module_function :frestore
164
+
165
+ def fselect(*args)
166
+ return command("fselect", args)
167
+ end
168
+ module_function :fselect
169
+
170
+ def gdelete(*args)
171
+ return command("gdelete", args)
172
+ end
173
+ module_function :gdelete
174
+
175
+ def getenv(*args)
176
+ return command("getenv", args)
177
+ end
178
+ module_function :getenv
179
+
180
+ def gmerge(*args)
181
+ return command("gmerge", args)
182
+ end
183
+ module_function :gmerge
184
+
185
+ def gmove(*args)
186
+ return command("gmove", args)
187
+ end
188
+ module_function :gmove
189
+
190
+ def gnew(*args)
191
+ return command("gnew", args)
192
+ end
193
+ module_function :gnew
194
+
195
+ def gnewbg(*args)
196
+ return command("gnewbg", args)
197
+ end
198
+ module_function :gnewbg
199
+
200
+ def grename(*args)
201
+ return command("grename", args)
202
+ end
203
+ module_function :grename
204
+
205
+ def gnext(*args)
206
+ return command("gnext", args)
207
+ end
208
+ module_function :gnext
209
+
210
+ def gprev(*args)
211
+ return command("gprev", args)
212
+ end
213
+ module_function :gprev
214
+
215
+ def gother(*args)
216
+ return command("gother", args)
217
+ end
218
+ module_function :gother
219
+
220
+ def gravity(*args)
221
+ return command("gravity", args)
222
+ end
223
+ module_function :gravity
224
+
225
+ def groups(*args)
226
+ return command("groups", args)
227
+ end
228
+ module_function :groups
229
+
230
+ def gselect(*args)
231
+ return command("gselect", args)
232
+ end
233
+ module_function :gselect
234
+
235
+ def help(*args)
236
+ return command("help", args)
237
+ end
238
+ module_function :help
239
+
240
+ def hsplit(*args)
241
+ return command("hsplit", args)
242
+ end
243
+ module_function :hsplit
244
+
245
+ def info(*args)
246
+ return command("info", args)
247
+ end
248
+ module_function :info
249
+
250
+ def kill(*args)
251
+ return command("kill", args)
252
+ end
253
+ module_function :kill
254
+
255
+ def lastmsg(*args)
256
+ return command("lastmsg", args)
257
+ end
258
+ module_function :lastmsg
259
+
260
+ def license(*args)
261
+ return command("license", args)
262
+ end
263
+ module_function :license
264
+
265
+ def link(*args)
266
+ return command("link", args)
267
+ end
268
+ module_function :link
269
+
270
+ def listhook(*args)
271
+ return command("listhook", args)
272
+ end
273
+ module_function :listhook
274
+
275
+ def meta(*args)
276
+ return command("meta", args)
277
+ end
278
+ module_function :meta
279
+
280
+ def msgwait(*args)
281
+ return command("msgwait", args)
282
+ end
283
+ module_function :msgwait
284
+
285
+ def newkmap(*args)
286
+ return command("newkmap", args)
287
+ end
288
+ module_function :newkmap
289
+
290
+ def newwm(*args)
291
+ return command("newwm", args)
292
+ end
293
+ module_function :newwm
294
+
295
+ def next(*args)
296
+ return command("next", args)
297
+ end
298
+ module_function :next
299
+
300
+ def nextscreen(*args)
301
+ return command("nextscreen", args)
302
+ end
303
+ module_function :nextscreen
304
+
305
+ def number(*args)
306
+ return command("number", args)
307
+ end
308
+ module_function :number
309
+
310
+ def only(*args)
311
+ return command("only", args)
312
+ end
313
+ module_function :only
314
+
315
+ def other(*args)
316
+ return command("other", args)
317
+ end
318
+ module_function :other
319
+
320
+ def prev(*args)
321
+ return command("prev", args)
322
+ end
323
+ module_function :prev
324
+
325
+ def prevscreen(*args)
326
+ return command("prevscreen", args)
327
+ end
328
+ module_function :prevscreen
329
+
330
+ def quit(*args)
331
+ return command("quit", args)
332
+ end
333
+ module_function :quit
334
+
335
+ def ratinfo(*args)
336
+ return command("ratinfo", args)
337
+ end
338
+ module_function :ratinfo
339
+
340
+ def ratrelinfo(*args)
341
+ return command("ratrelinfo", args)
342
+ end
343
+ module_function :ratrelinfo
344
+
345
+ def banishrel(*args)
346
+ return command("banishrel", args)
347
+ end
348
+ module_function :banishrel
349
+
350
+ def ratwarp(*args)
351
+ return command("ratwarp", args)
352
+ end
353
+ module_function :ratwarp
354
+
355
+ def ratrelwarp(*args)
356
+ return command("ratrelwarp", args)
357
+ end
358
+ module_function :ratrelwarp
359
+
360
+ def ratclick(*args)
361
+ return command("ratclick", args)
362
+ end
363
+ module_function :ratclick
364
+
365
+ def rathold(*args)
366
+ return command("rathold", args)
367
+ end
368
+ module_function :rathold
369
+
370
+ def readkey(*args)
371
+ return command("readkey", args)
372
+ end
373
+ module_function :readkey
374
+
375
+ def redisplay(*args)
376
+ return command("redisplay", args)
377
+ end
378
+ module_function :redisplay
379
+
380
+ def remhook(*args)
381
+ return command("remhook", args)
382
+ end
383
+ module_function :remhook
384
+
385
+ def remove(*args)
386
+ return command("remove", args)
387
+ end
388
+ module_function :remove
389
+
390
+ def resize(*args)
391
+ return command("resize", args)
392
+ end
393
+ module_function :resize
394
+
395
+ def restart(*args)
396
+ return command("restart", args)
397
+ end
398
+ module_function :restart
399
+
400
+ def rudeness(*args)
401
+ return command("rudeness", args)
402
+ end
403
+ module_function :rudeness
404
+
405
+ def select(*args)
406
+ return command("select", args)
407
+ end
408
+ module_function :select
409
+
410
+ def set(*args)
411
+ return command("set", args)
412
+ end
413
+ module_function :set
414
+
415
+ def setenv(*args)
416
+ return command("setenv", args)
417
+ end
418
+ module_function :setenv
419
+
420
+ def shrink(*args)
421
+ return command("shrink", args)
422
+ end
423
+ module_function :shrink
424
+
425
+ def sfrestore(*args)
426
+ return command("sfrestore", args)
427
+ end
428
+ module_function :sfrestore
429
+
430
+ def source(*args)
431
+ return command("source", args)
432
+ end
433
+ module_function :source
434
+
435
+ def sselect(*args)
436
+ return command("sselect", args)
437
+ end
438
+ module_function :sselect
439
+
440
+ def startup_message(*args)
441
+ return command("startup_message", args)
442
+ end
443
+ module_function :startup_message
444
+
445
+ def time(*args)
446
+ return command("time", args)
447
+ end
448
+ module_function :time
449
+
450
+ def title(*args)
451
+ return command("title", args)
452
+ end
453
+ module_function :title
454
+
455
+ def tmpwm(*args)
456
+ return command("tmpwm", args)
457
+ end
458
+ module_function :tmpwm
459
+
460
+ def unalias(*args)
461
+ return command("unalias", args)
462
+ end
463
+ module_function :unalias
464
+
465
+ def unmanage(*args)
466
+ return command("unmanage", args)
467
+ end
468
+ module_function :unmanage
469
+
470
+ def unsetenv(*args)
471
+ return command("unsetenv", args)
472
+ end
473
+ module_function :unsetenv
474
+
475
+ def verbexec(*args)
476
+ return command("verbexec", args)
477
+ end
478
+ module_function :verbexec
479
+
480
+ def version(*args)
481
+ return command("version", args)
482
+ end
483
+ module_function :version
484
+
485
+ def vsplit(*args)
486
+ return command("vsplit", args)
487
+ end
488
+ module_function :vsplit
489
+
490
+ def warp(*args)
491
+ return command("warp", args)
492
+ end
493
+ module_function :warp
494
+
495
+ def windows(*args)
496
+ return command("windows", args)
497
+ end
498
+ module_function :windows
499
+
500
+ def cnext(*args)
501
+ return command("cnext", args)
502
+ end
503
+ module_function :cnext
504
+
505
+ def cother(*args)
506
+ return command("cother", args)
507
+ end
508
+ module_function :cother
509
+
510
+ def cprev(*args)
511
+ return command("cprev", args)
512
+ end
513
+ module_function :cprev
514
+
515
+ def dedicate(*args)
516
+ return command("dedicate", args)
517
+ end
518
+ module_function :dedicate
519
+
520
+ def describekey(*args)
521
+ return command("describekey", args)
522
+ end
523
+ module_function :describekey
524
+
525
+ def inext(*args)
526
+ return command("inext", args)
527
+ end
528
+ module_function :inext
529
+
530
+ def iother(*args)
531
+ return command("iother", args)
532
+ end
533
+ module_function :iother
534
+
535
+ def iprev(*args)
536
+ return command("iprev", args)
537
+ end
538
+ module_function :iprev
539
+
540
+ def prompt(*args)
541
+ return command("prompt", args)
542
+ end
543
+ module_function :prompt
544
+
545
+ def sdump(*args)
546
+ return command("sdump", args)
547
+ end
548
+ module_function :sdump
549
+
550
+ def sfdump(*args)
551
+ return command("sfdump", args)
552
+ end
553
+ module_function :sfdump
554
+
555
+ def undo(*args)
556
+ return command("undo", args)
557
+ end
558
+ module_function :undo
559
+
560
+ def redo(*args)
561
+ return command("redo", args)
562
+ end
563
+ module_function :redo
564
+
565
+ def putsel(*args)
566
+ return command("putsel", args)
567
+ end
568
+ module_function :putsel
569
+
570
+ def getsel(*args)
571
+ return command("getsel", args)
572
+ end
573
+ module_function :getsel
574
+
575
+ def compat(*args)
576
+ return command("compat", args)
577
+ end
578
+ module_function :compat
579
+
580
+ end
@@ -0,0 +1,3 @@
1
+ module Ratpoison
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,17 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/ratpoison/version', __FILE__)
3
+
4
+ Gem::Specification.new do |gem|
5
+ gem.authors = ["Vincent Batts"]
6
+ gem.email = ["vbatts@slackware.com"]
7
+ gem.description = %q{bindings for the rapoison WM}
8
+ gem.summary = %q{bindings for the rapoison WM}
9
+ gem.homepage = ""
10
+
11
+ gem.files = `git ls-files`.split($\)
12
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
13
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
14
+ gem.name = "ratpoison"
15
+ gem.require_paths = ["lib"]
16
+ gem.version = Ratpoison::VERSION
17
+ end
metadata ADDED
@@ -0,0 +1,54 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ratpoison
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Vincent Batts
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-08-09 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: bindings for the rapoison WM
15
+ email:
16
+ - vbatts@slackware.com
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - .gitignore
22
+ - Gemfile
23
+ - LICENSE
24
+ - README.md
25
+ - Rakefile
26
+ - lib/ratpoison.rb
27
+ - lib/ratpoison/version.rb
28
+ - ratpoison.gemspec
29
+ homepage: ''
30
+ licenses: []
31
+ post_install_message:
32
+ rdoc_options: []
33
+ require_paths:
34
+ - lib
35
+ required_ruby_version: !ruby/object:Gem::Requirement
36
+ none: false
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ required_rubygems_version: !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ! '>='
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ requirements: []
48
+ rubyforge_project:
49
+ rubygems_version: 1.8.17
50
+ signing_key:
51
+ specification_version: 3
52
+ summary: bindings for the rapoison WM
53
+ test_files: []
54
+ has_rdoc: