rumai 3.2.1 → 3.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CREDITS +1 -0
- data/HISTORY +24 -1
- data/INSTALL +2 -0
- data/{doc/index.erb → MANUAL} +9 -4
- data/bin/rumai +40 -7
- data/doc/ann.xml +61 -0
- data/doc/api/IO.html +1 -1
- data/doc/api/Integer.html +1 -1
- data/doc/api/Rumai.html +275 -5
- data/doc/api/Rumai/Area.html +1 -1
- data/doc/api/Rumai/Chain.html +1 -1
- data/doc/api/Rumai/Client.html +1 -1
- data/doc/api/Rumai/ClientContainer.html +1 -1
- data/doc/api/Rumai/ExportInstanceMethods.html +1 -1
- data/doc/api/Rumai/IXP.html +1 -1
- data/doc/api/Rumai/IXP/Agent.html +1 -1
- data/doc/api/Rumai/IXP/Agent/FidStream.html +1 -1
- data/doc/api/Rumai/IXP/Agent/RangedPool.html +1 -1
- data/doc/api/Rumai/IXP/Error.html +1 -1
- data/doc/api/Rumai/IXP/Fcall.html +1 -1
- data/doc/api/Rumai/IXP/Qid.html +1 -1
- data/doc/api/Rumai/IXP/Rattach.html +1 -1
- data/doc/api/Rumai/IXP/Rauth.html +1 -1
- data/doc/api/Rumai/IXP/Rclunk.html +1 -1
- data/doc/api/Rumai/IXP/Rcreate.html +1 -1
- data/doc/api/Rumai/IXP/Rerror.html +1 -1
- data/doc/api/Rumai/IXP/Rflush.html +1 -1
- data/doc/api/Rumai/IXP/Ropen.html +1 -1
- data/doc/api/Rumai/IXP/Rread.html +1 -1
- data/doc/api/Rumai/IXP/Rremove.html +1 -1
- data/doc/api/Rumai/IXP/Rstat.html +1 -1
- data/doc/api/Rumai/IXP/Rversion.html +1 -1
- data/doc/api/Rumai/IXP/Rwalk.html +1 -1
- data/doc/api/Rumai/IXP/Rwrite.html +1 -1
- data/doc/api/Rumai/IXP/Rwstat.html +1 -1
- data/doc/api/Rumai/IXP/Stat.html +1 -1
- data/doc/api/Rumai/IXP/Stream.html +1 -1
- data/doc/api/Rumai/IXP/Struct.html +1 -1
- data/doc/api/Rumai/IXP/Struct/ClassField.html +1 -1
- data/doc/api/Rumai/IXP/Struct/Field.html +1 -1
- data/doc/api/Rumai/IXP/Struct/Field/CounteeField.html +1 -1
- data/doc/api/Rumai/IXP/Struct/Field/CounterField.html +1 -1
- data/doc/api/Rumai/IXP/Struct/Integer8Field.html +1 -1
- data/doc/api/Rumai/IXP/Struct/StringField.html +1 -1
- data/doc/api/Rumai/IXP/Tattach.html +1 -1
- data/doc/api/Rumai/IXP/Tauth.html +1 -1
- data/doc/api/Rumai/IXP/Tclunk.html +1 -1
- data/doc/api/Rumai/IXP/Tcreate.html +1 -1
- data/doc/api/Rumai/IXP/Terror.html +1 -1
- data/doc/api/Rumai/IXP/Tflush.html +1 -1
- data/doc/api/Rumai/IXP/Topen.html +1 -1
- data/doc/api/Rumai/IXP/Tread.html +1 -1
- data/doc/api/Rumai/IXP/Tremove.html +1 -1
- data/doc/api/Rumai/IXP/Tstat.html +1 -1
- data/doc/api/Rumai/IXP/Tversion.html +1 -1
- data/doc/api/Rumai/IXP/Twalk.html +1 -1
- data/doc/api/Rumai/IXP/Twrite.html +1 -1
- data/doc/api/Rumai/IXP/Twstat.html +1 -1
- data/doc/api/Rumai/Node.html +1 -1
- data/doc/api/Rumai/View.html +1 -1
- data/doc/api/Rumai/WidgetImpl.html +1 -1
- data/doc/api/Rumai/WidgetNode.html +1 -1
- data/doc/api/String.html +1 -1
- data/doc/api/StringIO.html +1 -1
- data/doc/api/Time.html +1 -1
- data/doc/api/_index.html +3 -3
- data/doc/api/file.LICENSE.html +2 -2
- data/doc/api/frames.html +1 -1
- data/doc/api/index.html +2 -2
- data/doc/api/method_list.html +65 -57
- data/doc/api/top-level-namespace.html +1 -1
- data/doc/index.html +176 -129
- data/inochi.opts +31 -0
- data/lib/rumai/inochi.rb +84 -29
- data/test/test_helper.rb +1 -1
- metadata +20 -8
- data/lib/rumai/inochi.yaml +0 -94
- data/test/rumai/inochi_test.rb +0 -17
data/inochi.opts
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
##
|
2
|
+
# Location where project documentation will be uploaded by `inochi pub:doc`.
|
3
|
+
# This value can utilize any remote/destination syntax supported by `rsync`.
|
4
|
+
#
|
5
|
+
:pub_doc_target: ~/www/lib/rumai
|
6
|
+
|
7
|
+
##
|
8
|
+
# Options for the `rsync` command used to upload this project's documentation.
|
9
|
+
#
|
10
|
+
:pub_doc_options: --verbose --compress --archive --update --delete
|
11
|
+
|
12
|
+
##
|
13
|
+
# Arbitrary Ruby code that will configure this project's RubyGem before it
|
14
|
+
# is built by `inochi gem`. This code has access to a local variable named
|
15
|
+
# `gem` which holds a Gem::Specification object representing this project.
|
16
|
+
#
|
17
|
+
# @example
|
18
|
+
#
|
19
|
+
# :gem_spec_logic: |
|
20
|
+
# # show the Inochi-provided specification for this project's RubyGem
|
21
|
+
# puts gem
|
22
|
+
#
|
23
|
+
# # add files that are outside this project directory to the RubyGem
|
24
|
+
# gem.files += FileList['/some/outside/**/*.files']
|
25
|
+
#
|
26
|
+
# # omit some files in this project's directory from the RubyGem
|
27
|
+
# gem.files.exclude '{some*files,in_this,project/**/directory}'
|
28
|
+
#
|
29
|
+
# # and so on... anything is possible! use your imagination!
|
30
|
+
#
|
31
|
+
:gem_spec_logic: |
|
data/lib/rumai/inochi.rb
CHANGED
@@ -1,48 +1,103 @@
|
|
1
1
|
module Rumai
|
2
2
|
|
3
|
-
|
3
|
+
##
|
4
|
+
# Official name of this project.
|
5
|
+
#
|
6
|
+
PROJECT = "Rumai"
|
4
7
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
+
##
|
9
|
+
# Short single-line description of this project.
|
10
|
+
#
|
11
|
+
TAGLINE = "Ruby interface to the wmii window manager"
|
8
12
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
+
##
|
14
|
+
# Address of this project's official home page.
|
15
|
+
#
|
16
|
+
WEBSITE = "http://snk.tuxfamily.org/lib/rumai/"
|
13
17
|
|
14
|
-
|
15
|
-
|
16
|
-
|
18
|
+
##
|
19
|
+
# Number of this release of this project.
|
20
|
+
#
|
21
|
+
VERSION = "3.2.2"
|
17
22
|
|
18
|
-
|
23
|
+
##
|
24
|
+
# Date of this release of this project.
|
25
|
+
#
|
26
|
+
RELDATE = "2010-04-01"
|
19
27
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
28
|
+
##
|
29
|
+
# Description of this release of this project.
|
30
|
+
#
|
31
|
+
def self.inspect
|
32
|
+
"#{PROJECT} #{VERSION} (#{RELDATE})"
|
24
33
|
end
|
25
34
|
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
35
|
+
##
|
36
|
+
# Location of this release of this project.
|
37
|
+
#
|
38
|
+
INSTDIR = File.expand_path('../../..', __FILE__)
|
30
39
|
|
31
|
-
|
32
|
-
|
33
|
-
|
40
|
+
##
|
41
|
+
# RubyGems required by this project during runtime.
|
42
|
+
#
|
43
|
+
# @example
|
44
|
+
#
|
45
|
+
# RUNTIME = {
|
46
|
+
# # this project needs exactly version 1.2.3 of the "an_example" gem
|
47
|
+
# "an_example" => [ "1.2.3" ],
|
48
|
+
#
|
49
|
+
# # this project needs at least version 1.2 (but not
|
50
|
+
# # version 1.2.4 or newer) of the "another_example" gem
|
51
|
+
# "another_example" => [ ">= 1.2" , "< 1.2.4" ],
|
52
|
+
#
|
53
|
+
# # this project needs any version of the "yet_another_example" gem
|
54
|
+
# "yet_another_example" => [],
|
55
|
+
# }
|
56
|
+
#
|
57
|
+
RUNTIME = {}
|
34
58
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
59
|
+
##
|
60
|
+
# RubyGems required by this project during development.
|
61
|
+
#
|
62
|
+
# @example
|
63
|
+
#
|
64
|
+
# DEVTIME = {
|
65
|
+
# # this project needs exactly version 1.2.3 of the "an_example" gem
|
66
|
+
# "an_example" => [ "1.2.3" ],
|
67
|
+
#
|
68
|
+
# # this project needs at least version 1.2 (but not
|
69
|
+
# # version 1.2.4 or newer) of the "another_example" gem
|
70
|
+
# "another_example" => [ ">= 1.2" , "< 1.2.4" ],
|
71
|
+
#
|
72
|
+
# # this project needs any version of the "yet_another_example" gem
|
73
|
+
# "yet_another_example" => [],
|
74
|
+
# }
|
75
|
+
#
|
76
|
+
DEVTIME = {
|
77
|
+
"inochi" => [ "~> 2" ], # for managing this project
|
78
|
+
"dfect" => [ "~> 2" ], # for unit testing
|
79
|
+
}
|
80
|
+
|
81
|
+
##
|
82
|
+
# Loads the correct version (as defined by the {RUNTIME} or {DEVTIME}
|
83
|
+
# constant in this module) of the given gem or the gem that contains
|
84
|
+
# the given library.
|
85
|
+
#
|
86
|
+
def self.require gem_name_or_library
|
87
|
+
# prepare the correct version of the gem for loading
|
88
|
+
if respond_to? :gem
|
89
|
+
gem_name = gem_name_or_library.to_s.sub(%r{/.*$}, '')
|
90
|
+
if gem_version = RUNTIME[gem_name] || DEVTIME[gem_name]
|
39
91
|
begin
|
40
|
-
gem gem_name, *
|
92
|
+
gem gem_name, *gem_version
|
41
93
|
rescue LoadError => error
|
42
|
-
warn "#{inspect}
|
94
|
+
warn "#{self.inspect}: #{error}"
|
43
95
|
end
|
44
96
|
end
|
45
97
|
end
|
98
|
+
|
99
|
+
# do the loading
|
100
|
+
super
|
46
101
|
end
|
47
102
|
|
48
103
|
end
|
data/test/test_helper.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
require 'dfect/auto'
|
1
|
+
Rumai.require 'dfect/auto'
|
metadata
CHANGED
@@ -5,20 +5,20 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 3
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: 3.2.
|
8
|
+
- 2
|
9
|
+
version: 3.2.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
|
-
- Suraj N. Kurapati
|
12
|
+
- Suraj N. Kurapati
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-04-01 00:00:00 -07:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
|
-
name:
|
21
|
+
name: inochi
|
22
22
|
prerelease: false
|
23
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
@@ -29,6 +29,18 @@ dependencies:
|
|
29
29
|
version: "2"
|
30
30
|
type: :development
|
31
31
|
version_requirements: *id001
|
32
|
+
- !ruby/object:Gem::Dependency
|
33
|
+
name: dfect
|
34
|
+
prerelease: false
|
35
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ~>
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
segments:
|
40
|
+
- 2
|
41
|
+
version: "2"
|
42
|
+
type: :development
|
43
|
+
version_requirements: *id002
|
32
44
|
description: " Rumai is a [1]Ruby interface to the [2]wmii window manager.\n\n\n\
|
33
45
|
References\n\n 1. http://ruby-lang.org/\n 2. http://wmii.suckless.org/\n"
|
34
46
|
email:
|
@@ -40,9 +52,10 @@ extra_rdoc_files: []
|
|
40
52
|
|
41
53
|
files:
|
42
54
|
- CREDITS
|
55
|
+
- inochi.opts
|
43
56
|
- INSTALL
|
57
|
+
- MANUAL
|
44
58
|
- test/runner
|
45
|
-
- test/rumai/inochi_test.rb
|
46
59
|
- test/rumai/ixp/message_test.rb
|
47
60
|
- test/test_helper.rb
|
48
61
|
- lib/rumai.rb
|
@@ -50,7 +63,6 @@ files:
|
|
50
63
|
- lib/rumai/wm.rb
|
51
64
|
- lib/rumai/ixp.rb
|
52
65
|
- lib/rumai/inochi.rb
|
53
|
-
- lib/rumai/inochi.yaml
|
54
66
|
- lib/rumai/ixp/transport.rb
|
55
67
|
- lib/rumai/ixp/message.rb
|
56
68
|
- bin/rumai
|
@@ -58,6 +70,7 @@ files:
|
|
58
70
|
- LICENSE
|
59
71
|
- HISTORY
|
60
72
|
- README
|
73
|
+
- doc/ann.xml
|
61
74
|
- doc/index.html
|
62
75
|
- doc/api/Time.html
|
63
76
|
- doc/api/class_list.html
|
@@ -132,7 +145,6 @@ files:
|
|
132
145
|
- doc/api/IO.html
|
133
146
|
- doc/api/file.LICENSE.html
|
134
147
|
- doc/api/file_list.html
|
135
|
-
- doc/index.erb
|
136
148
|
has_rdoc: true
|
137
149
|
homepage: http://snk.tuxfamily.org/lib/rumai/
|
138
150
|
licenses: []
|
data/lib/rumai/inochi.yaml
DELETED
@@ -1,94 +0,0 @@
|
|
1
|
-
--- # information about your project -----------------------------------------
|
2
|
-
|
3
|
-
# Name of your project.
|
4
|
-
:project: Rumai
|
5
|
-
|
6
|
-
# Name of your project when packaged as a directory.
|
7
|
-
:package: rumai
|
8
|
-
|
9
|
-
# Name of Ruby module that namespaces your project.
|
10
|
-
:library: Rumai
|
11
|
-
|
12
|
-
# A short, single-line description of your project.
|
13
|
-
:tagline: Ruby interface to the wmii window manager
|
14
|
-
|
15
|
-
# Address of your project's published website.
|
16
|
-
:website: http://snk.tuxfamily.org/lib/rumai/
|
17
|
-
|
18
|
-
# A list of the core developers of your project.
|
19
|
-
#
|
20
|
-
# :authors:
|
21
|
-
# - An Example <an@example.com> # with email
|
22
|
-
# - Another Example # without email
|
23
|
-
#
|
24
|
-
:authors:
|
25
|
-
- Suraj N. Kurapati <sunaku@gmail.com>
|
26
|
-
|
27
|
-
# Number of the current release of your project.
|
28
|
-
:version: 3.2.1
|
29
|
-
|
30
|
-
# Date of the current release of your project.
|
31
|
-
:release: 2010-03-22
|
32
|
-
|
33
|
-
# A list of gems required by your project during runtime.
|
34
|
-
#
|
35
|
-
# :runtime:
|
36
|
-
# # your project needs exactly version 1.2.3 of the "an_example" gem
|
37
|
-
# an_example: 1.2.3
|
38
|
-
#
|
39
|
-
# # your project needs at least version 1.2 (but not
|
40
|
-
# # version 1.2.4 or newer) of the "another_example" gem
|
41
|
-
# another_example: [ >= 1.2 , < 1.2.4 ]
|
42
|
-
#
|
43
|
-
# # your project needs any version of the "yet_another_example" gem
|
44
|
-
# yet_another_example:
|
45
|
-
#
|
46
|
-
:runtime:
|
47
|
-
|
48
|
-
# A list of gems required by your project during development.
|
49
|
-
#
|
50
|
-
# :devtime:
|
51
|
-
# # your project needs exactly version 1.2.3 of the "an_example" gem
|
52
|
-
# an_example: 1.2.3
|
53
|
-
#
|
54
|
-
# # your project needs at least version 1.2 (but not
|
55
|
-
# # version 1.2.4 or newer) of the "another_example" gem
|
56
|
-
# another_example: [ >= 1.2 , < 1.2.4 ]
|
57
|
-
#
|
58
|
-
# # your project needs any version of the "yet_another_example" gem
|
59
|
-
# yet_another_example:
|
60
|
-
#
|
61
|
-
:devtime:
|
62
|
-
dfect: ~> 2 # for unit testing
|
63
|
-
|
64
|
-
--- # parameters for the `inochi` command ------------------------------------
|
65
|
-
|
66
|
-
# Location where project documentation will be uploaded by `inochi pub:doc`.
|
67
|
-
:pub_doc_target: ~/www/lib/rumai/
|
68
|
-
|
69
|
-
# Options for the `rsync` command used to upload your project's documentation.
|
70
|
-
:pub_doc_options: --verbose --compress --archive --update --delete
|
71
|
-
|
72
|
-
# Path to YAML file containing login information for publishing announcements.
|
73
|
-
:pub_ann_logins: ~/.config/inochi/pub_ann_logins.yaml
|
74
|
-
|
75
|
-
# Your project's unique identifier in the RAA (Ruby Application Archive).
|
76
|
-
:pub_ann_raa_id: rumai
|
77
|
-
|
78
|
-
# Arbitrary Ruby code to configure your project's
|
79
|
-
# RubyGem, whose Gem::Specification object is made
|
80
|
-
# available to the given code in the `gem` variable.
|
81
|
-
#
|
82
|
-
# :gem_spec_logic: |
|
83
|
-
# # view the Inochi-provided default configuration of your RubyGem
|
84
|
-
# puts gem
|
85
|
-
#
|
86
|
-
# # add files that are outside your project directory to your RubyGem
|
87
|
-
# gem.files += FileList['/some/outside/**/*.files']
|
88
|
-
#
|
89
|
-
# # omit some files in your project directory from your RubyGem
|
90
|
-
# gem.files.exclude '{some*files,in_your,project/**/directory}'
|
91
|
-
#
|
92
|
-
# # and so on... anything is possible! use your imagination!
|
93
|
-
#
|
94
|
-
:gem_spec_logic: |
|
data/test/rumai/inochi_test.rb
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
require 'rumai/inochi'
|
2
|
-
|
3
|
-
unless defined? Rumai::INOCHI
|
4
|
-
fail "Rumai module must be established by Inochi"
|
5
|
-
end
|
6
|
-
|
7
|
-
Rumai::INOCHI.each do |param, value|
|
8
|
-
const = param.to_s.upcase
|
9
|
-
|
10
|
-
unless Rumai.const_defined? const
|
11
|
-
fail "Rumai::#{const} must be established by Inochi"
|
12
|
-
end
|
13
|
-
|
14
|
-
unless Rumai.const_get(const) == value
|
15
|
-
fail "Rumai::#{const} is not what Inochi established"
|
16
|
-
end
|
17
|
-
end
|