ratch 1.1.0 → 2.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/HISTORY.rdoc +87 -0
- data/LICENSE.txt +204 -0
- data/README.rdoc +133 -0
- data/bin/ludo +32 -0
- data/bin/ratch +1 -8
- data/lib/ratch/batch.rb +541 -0
- data/lib/ratch/core_ext/facets.rb +16 -1
- data/lib/ratch/core_ext/filetest.rb +29 -0
- data/lib/ratch/core_ext/{string.rb → to_actual_filename.rb} +0 -23
- data/lib/ratch/core_ext/to_console.rb +30 -12
- data/lib/ratch/core_ext/{object.rb → to_yamlfrag.rb} +1 -0
- data/lib/ratch/core_ext/unfold_paragraphs.rb +27 -0
- data/lib/ratch/core_ext.rb +1 -4
- data/lib/ratch/file_list.rb +402 -0
- data/lib/ratch/script/help.rb +84 -0
- data/lib/ratch/script.rb +99 -5
- data/lib/ratch/shell.rb +621 -0
- data/lib/ratch/utils/cli.rb +49 -0
- data/lib/ratch/utils/config.rb +52 -0
- data/lib/ratch/{emailer.rb → utils/email.rb} +58 -98
- data/lib/ratch/utils/rdoc.rb +45 -0
- data/lib/ratch/utils/tar.rb +132 -0
- data/lib/ratch/utils/xdg.rb +38 -0
- data/lib/ratch/utils/zlib.rb +55 -0
- data/lib/ratch/version.rb +3 -0
- data/lib/ratch.rb +12 -0
- metadata +160 -126
- data/COPYING +0 -22
- data/HISTORY +0 -6
- data/MANIFEST +0 -53
- data/NEWS +0 -12
- data/README +0 -87
- data/VERSION +0 -1
- data/demo/tryme-task.ratch +0 -12
- data/demo/tryme1.ratch +0 -6
- data/doc/log/basic_stats/index.html +0 -39
- data/doc/log/notes.xml +0 -18
- data/doc/log/stats.log +0 -14
- data/doc/log/syntax.log +0 -0
- data/doc/log/testunit.log +0 -156
- data/lib/ratch/commandline.rb +0 -16
- data/lib/ratch/core_ext/pathname.rb +0 -38
- data/lib/ratch/dsl.rb +0 -420
- data/lib/ratch/index.rb +0 -4
- data/lib/ratch/io.rb +0 -116
- data/lib/ratch/plugin.rb +0 -65
- data/lib/ratch/service.rb +0 -33
- data/lib/ratch/task.rb +0 -249
- data/lib/ratch/task2.rb +0 -298
- data/man/ratch.1 +0 -28
- data/meta/abstract +0 -4
- data/meta/author +0 -1
- data/meta/contact +0 -1
- data/meta/homepage +0 -1
- data/meta/name +0 -1
- data/meta/requires +0 -4
- data/meta/summary +0 -1
- data/test/README +0 -1
- data/test/test_helper.rb +0 -4
- data/test/test_task.rb +0 -46
metadata
CHANGED
|
@@ -1,144 +1,178 @@
|
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ratch
|
|
3
|
-
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
platform: ruby
|
|
6
|
-
authors:
|
|
7
|
-
-
|
|
8
|
-
autorequire:
|
|
6
|
+
authors:
|
|
7
|
+
- Trans
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
dependencies:
|
|
15
|
-
- !ruby/object:Gem::Dependency
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
16
13
|
name: facets
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
20
|
-
requirements:
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
21
16
|
- - ">="
|
|
22
|
-
- !ruby/object:Gem::Version
|
|
23
|
-
version:
|
|
24
|
-
version:
|
|
25
|
-
- !ruby/object:Gem::Dependency
|
|
26
|
-
name: folio
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: '4.0'
|
|
27
19
|
type: :runtime
|
|
28
|
-
|
|
29
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
30
|
-
requirements:
|
|
20
|
+
prerelease: false
|
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
22
|
+
requirements:
|
|
31
23
|
- - ">="
|
|
32
|
-
- !ruby/object:Gem::Version
|
|
33
|
-
version:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
24
|
+
- !ruby/object:Gem::Version
|
|
25
|
+
version: '4.0'
|
|
26
|
+
- !ruby/object:Gem::Dependency
|
|
27
|
+
name: net-smtp
|
|
28
|
+
requirement: !ruby/object:Gem::Requirement
|
|
29
|
+
requirements:
|
|
30
|
+
- - ">="
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '0'
|
|
33
|
+
type: :development
|
|
34
|
+
prerelease: false
|
|
35
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
36
|
+
requirements:
|
|
37
|
+
- - ">="
|
|
38
|
+
- !ruby/object:Gem::Version
|
|
39
|
+
version: '0'
|
|
40
|
+
- !ruby/object:Gem::Dependency
|
|
41
|
+
name: rdoc
|
|
42
|
+
requirement: !ruby/object:Gem::Requirement
|
|
43
|
+
requirements:
|
|
44
|
+
- - ">="
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: '0'
|
|
47
|
+
type: :development
|
|
48
|
+
prerelease: false
|
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
50
|
+
requirements:
|
|
51
|
+
- - ">="
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: '0'
|
|
54
|
+
- !ruby/object:Gem::Dependency
|
|
55
|
+
name: rake
|
|
56
|
+
requirement: !ruby/object:Gem::Requirement
|
|
57
|
+
requirements:
|
|
58
|
+
- - ">="
|
|
59
|
+
- !ruby/object:Gem::Version
|
|
60
|
+
version: '13'
|
|
61
|
+
type: :development
|
|
62
|
+
prerelease: false
|
|
63
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
64
|
+
requirements:
|
|
65
|
+
- - ">="
|
|
66
|
+
- !ruby/object:Gem::Version
|
|
67
|
+
version: '13'
|
|
68
|
+
- !ruby/object:Gem::Dependency
|
|
69
|
+
name: rubytest
|
|
70
|
+
requirement: !ruby/object:Gem::Requirement
|
|
71
|
+
requirements:
|
|
72
|
+
- - ">="
|
|
73
|
+
- !ruby/object:Gem::Version
|
|
74
|
+
version: 0.11.1
|
|
75
|
+
type: :development
|
|
76
|
+
prerelease: false
|
|
77
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
78
|
+
requirements:
|
|
79
|
+
- - ">="
|
|
80
|
+
- !ruby/object:Gem::Version
|
|
81
|
+
version: 0.11.1
|
|
82
|
+
- !ruby/object:Gem::Dependency
|
|
83
|
+
name: spectrum
|
|
84
|
+
requirement: !ruby/object:Gem::Requirement
|
|
85
|
+
requirements:
|
|
41
86
|
- - ">="
|
|
42
|
-
- !ruby/object:Gem::Version
|
|
43
|
-
version:
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
87
|
+
- !ruby/object:Gem::Version
|
|
88
|
+
version: '0.2'
|
|
89
|
+
type: :development
|
|
90
|
+
prerelease: false
|
|
91
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
92
|
+
requirements:
|
|
93
|
+
- - ">="
|
|
94
|
+
- !ruby/object:Gem::Version
|
|
95
|
+
version: '0.2'
|
|
96
|
+
- !ruby/object:Gem::Dependency
|
|
97
|
+
name: assay
|
|
98
|
+
requirement: !ruby/object:Gem::Requirement
|
|
99
|
+
requirements:
|
|
100
|
+
- - ">="
|
|
101
|
+
- !ruby/object:Gem::Version
|
|
102
|
+
version: 0.5.1
|
|
103
|
+
type: :development
|
|
104
|
+
prerelease: false
|
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
106
|
+
requirements:
|
|
107
|
+
- - ">="
|
|
108
|
+
- !ruby/object:Gem::Version
|
|
109
|
+
version: 0.5.1
|
|
110
|
+
description: 'Ratch provides a Shell object that stands at a directory and works from
|
|
111
|
+
there, as a shell prompt does: file tests, file operations, globbing and system
|
|
112
|
+
commands, with dry-run and trace modes. Batch does the same over a list of files,
|
|
113
|
+
and the ratch command runs a Ruby script inside a Shell.'
|
|
114
|
+
email:
|
|
115
|
+
- transfire@gmail.com
|
|
116
|
+
executables:
|
|
117
|
+
- ludo
|
|
48
118
|
- ratch
|
|
49
119
|
extensions: []
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
-
|
|
53
|
-
-
|
|
54
|
-
|
|
55
|
-
-
|
|
56
|
-
-
|
|
57
|
-
-
|
|
58
|
-
|
|
59
|
-
-
|
|
60
|
-
-
|
|
61
|
-
-
|
|
62
|
-
-
|
|
63
|
-
- doc/log/stats.log
|
|
64
|
-
- doc/log/notes.xml
|
|
65
|
-
- doc/log/syntax.log
|
|
66
|
-
- doc/log/testunit.log
|
|
67
|
-
- MANIFEST
|
|
68
|
-
- test
|
|
69
|
-
- test/README
|
|
70
|
-
- test/test_helper.rb
|
|
71
|
-
- test/test_task.rb
|
|
72
|
-
- README
|
|
73
|
-
- HISTORY
|
|
74
|
-
- meta
|
|
75
|
-
- meta/homepage
|
|
76
|
-
- meta/summary
|
|
77
|
-
- meta/abstract
|
|
78
|
-
- meta/name
|
|
79
|
-
- meta/requires
|
|
80
|
-
- meta/author
|
|
81
|
-
- meta/contact
|
|
82
|
-
- demo
|
|
83
|
-
- demo/tryme1.ratch
|
|
84
|
-
- demo/tryme-task.ratch
|
|
85
|
-
- lib
|
|
86
|
-
- lib/ratch
|
|
87
|
-
- lib/ratch/commandline.rb
|
|
88
|
-
- lib/ratch/emailer.rb
|
|
89
|
-
- lib/ratch/core_ext
|
|
90
|
-
- lib/ratch/core_ext/pathname.rb
|
|
91
|
-
- lib/ratch/core_ext/object.rb
|
|
120
|
+
extra_rdoc_files:
|
|
121
|
+
- HISTORY.rdoc
|
|
122
|
+
- LICENSE.txt
|
|
123
|
+
- README.rdoc
|
|
124
|
+
files:
|
|
125
|
+
- HISTORY.rdoc
|
|
126
|
+
- LICENSE.txt
|
|
127
|
+
- README.rdoc
|
|
128
|
+
- bin/ludo
|
|
129
|
+
- bin/ratch
|
|
130
|
+
- lib/ratch.rb
|
|
131
|
+
- lib/ratch/batch.rb
|
|
132
|
+
- lib/ratch/core_ext.rb
|
|
92
133
|
- lib/ratch/core_ext/facets.rb
|
|
93
|
-
- lib/ratch/core_ext/
|
|
134
|
+
- lib/ratch/core_ext/filetest.rb
|
|
135
|
+
- lib/ratch/core_ext/to_actual_filename.rb
|
|
94
136
|
- lib/ratch/core_ext/to_console.rb
|
|
95
|
-
- lib/ratch/core_ext/
|
|
96
|
-
- lib/ratch/
|
|
97
|
-
- lib/ratch/
|
|
98
|
-
- lib/ratch/
|
|
99
|
-
- lib/ratch/io.rb
|
|
100
|
-
- lib/ratch/index.rb
|
|
101
|
-
- lib/ratch/plugin.rb
|
|
102
|
-
- lib/ratch/task.rb
|
|
103
|
-
- lib/ratch/task2.rb
|
|
137
|
+
- lib/ratch/core_ext/to_list.rb
|
|
138
|
+
- lib/ratch/core_ext/to_yamlfrag.rb
|
|
139
|
+
- lib/ratch/core_ext/unfold_paragraphs.rb
|
|
140
|
+
- lib/ratch/file_list.rb
|
|
104
141
|
- lib/ratch/script.rb
|
|
105
|
-
-
|
|
106
|
-
-
|
|
107
|
-
-
|
|
108
|
-
-
|
|
109
|
-
-
|
|
110
|
-
-
|
|
111
|
-
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
142
|
+
- lib/ratch/script/help.rb
|
|
143
|
+
- lib/ratch/shell.rb
|
|
144
|
+
- lib/ratch/utils/cli.rb
|
|
145
|
+
- lib/ratch/utils/config.rb
|
|
146
|
+
- lib/ratch/utils/email.rb
|
|
147
|
+
- lib/ratch/utils/rdoc.rb
|
|
148
|
+
- lib/ratch/utils/tar.rb
|
|
149
|
+
- lib/ratch/utils/xdg.rb
|
|
150
|
+
- lib/ratch/utils/zlib.rb
|
|
151
|
+
- lib/ratch/version.rb
|
|
152
|
+
homepage: https://github.com/rubyworks/ratch
|
|
153
|
+
licenses:
|
|
154
|
+
- Apache-2.0
|
|
155
|
+
metadata:
|
|
156
|
+
homepage_uri: https://github.com/rubyworks/ratch
|
|
157
|
+
source_code_uri: https://github.com/rubyworks/ratch
|
|
158
|
+
bug_tracker_uri: https://github.com/rubyworks/ratch/issues
|
|
159
|
+
changelog_uri: https://github.com/rubyworks/ratch/blob/master/HISTORY.rdoc
|
|
160
|
+
documentation_uri: https://rubydoc.info/gems/ratch
|
|
161
|
+
rdoc_options: []
|
|
162
|
+
require_paths:
|
|
122
163
|
- lib
|
|
123
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
|
124
|
-
requirements:
|
|
164
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
165
|
+
requirements:
|
|
125
166
|
- - ">="
|
|
126
|
-
- !ruby/object:Gem::Version
|
|
127
|
-
version:
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
requirements:
|
|
167
|
+
- !ruby/object:Gem::Version
|
|
168
|
+
version: '3.1'
|
|
169
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
170
|
+
requirements:
|
|
131
171
|
- - ">="
|
|
132
|
-
- !ruby/object:Gem::Version
|
|
133
|
-
version:
|
|
134
|
-
version:
|
|
172
|
+
- !ruby/object:Gem::Version
|
|
173
|
+
version: '0'
|
|
135
174
|
requirements: []
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
specification_version: 2
|
|
141
|
-
summary: Ratch is a Ruby-based batch scripting language.
|
|
142
|
-
test_files:
|
|
143
|
-
- test/test_helper.rb
|
|
144
|
-
- test/test_task.rb
|
|
175
|
+
rubygems_version: 3.6.9
|
|
176
|
+
specification_version: 4
|
|
177
|
+
summary: A file system shell in code, and batch scripts in Ruby
|
|
178
|
+
test_files: []
|
data/COPYING
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
The MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2007,2008 Tiger Ops / Thomas Sawyer
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
all copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
THE SOFTWARE.
|
|
22
|
-
|
data/HISTORY
DELETED
data/MANIFEST
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
doc
|
|
2
|
-
doc/log
|
|
3
|
-
doc/log/basic_stats
|
|
4
|
-
doc/log/basic_stats/index.html
|
|
5
|
-
doc/log/stats.log
|
|
6
|
-
doc/log/notes.xml
|
|
7
|
-
doc/log/syntax.log
|
|
8
|
-
doc/log/testunit.log
|
|
9
|
-
MANIFEST
|
|
10
|
-
test
|
|
11
|
-
test/README
|
|
12
|
-
test/test_helper.rb
|
|
13
|
-
test/test_task.rb
|
|
14
|
-
README
|
|
15
|
-
HISTORY
|
|
16
|
-
meta
|
|
17
|
-
meta/homepage
|
|
18
|
-
meta/summary
|
|
19
|
-
meta/abstract
|
|
20
|
-
meta/name
|
|
21
|
-
meta/requires
|
|
22
|
-
meta/author
|
|
23
|
-
meta/contact
|
|
24
|
-
demo
|
|
25
|
-
demo/tryme1.ratch
|
|
26
|
-
demo/tryme-task.ratch
|
|
27
|
-
lib
|
|
28
|
-
lib/ratch
|
|
29
|
-
lib/ratch/commandline.rb
|
|
30
|
-
lib/ratch/emailer.rb
|
|
31
|
-
lib/ratch/core_ext
|
|
32
|
-
lib/ratch/core_ext/pathname.rb
|
|
33
|
-
lib/ratch/core_ext/object.rb
|
|
34
|
-
lib/ratch/core_ext/facets.rb
|
|
35
|
-
lib/ratch/core_ext/to_list.rb
|
|
36
|
-
lib/ratch/core_ext/to_console.rb
|
|
37
|
-
lib/ratch/core_ext/string.rb
|
|
38
|
-
lib/ratch/dsl.rb
|
|
39
|
-
lib/ratch/service.rb
|
|
40
|
-
lib/ratch/core_ext.rb
|
|
41
|
-
lib/ratch/io.rb
|
|
42
|
-
lib/ratch/index.rb
|
|
43
|
-
lib/ratch/plugin.rb
|
|
44
|
-
lib/ratch/task.rb
|
|
45
|
-
lib/ratch/task2.rb
|
|
46
|
-
lib/ratch/script.rb
|
|
47
|
-
VERSION
|
|
48
|
-
NEWS
|
|
49
|
-
bin
|
|
50
|
-
bin/ratch
|
|
51
|
-
man
|
|
52
|
-
man/ratch.1
|
|
53
|
-
COPYING
|
data/NEWS
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
This is the second public release of Ratch.
|
|
2
|
-
|
|
3
|
-
Folio is now used a Ratch's backend. Folio handles
|
|
4
|
-
a great deal of what Ratch requires, so much of Ratch
|
|
5
|
-
is now just a thin wrapper around Folio.
|
|
6
|
-
|
|
7
|
-
### 1.1.0 / 2008-11-21
|
|
8
|
-
|
|
9
|
-
* 1 Major Change
|
|
10
|
-
|
|
11
|
-
* Overhauled system to use Folio on the backend.
|
|
12
|
-
|
data/README
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
= Ratch -- Ruby-based Batch Scripts
|
|
2
|
-
|
|
3
|
-
http://ratch.rubyforge.org
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
== Introduction
|
|
7
|
-
|
|
8
|
-
Ratch is Ruby-based DSL for building batch scripts. It's intent
|
|
9
|
-
is to ease the burdone a batch script writers, by supplementing
|
|
10
|
-
the standard ruby environamet to be more condusive the needs
|
|
11
|
-
of batch scripting.
|
|
12
|
-
|
|
13
|
-
In addition to using Ratch to write stand-alone batch scripts,
|
|
14
|
-
it makes a very powerful library for other applications that
|
|
15
|
-
require batch-like functionality. In general any program that
|
|
16
|
-
access the file system extensively could benifit from it's use.
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
== Installation
|
|
21
|
-
|
|
22
|
-
Standard installation procedure apply.
|
|
23
|
-
|
|
24
|
-
$ gem install ratch
|
|
25
|
-
|
|
26
|
-
or manually
|
|
27
|
-
|
|
28
|
-
$ tar -xzf ratch-1.0.0.tgz
|
|
29
|
-
$ cd ratch-1.0.0
|
|
30
|
-
$ setup-rb all
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
== Usage
|
|
35
|
-
|
|
36
|
-
To use for your own scripts, simply add a bang line.
|
|
37
|
-
|
|
38
|
-
#!/usr/bin/env ratch
|
|
39
|
-
|
|
40
|
-
On Windows, of course, you will want to associate the .ratch extension
|
|
41
|
-
name to the ratch executable instead.
|
|
42
|
-
|
|
43
|
-
To use Ratch as a library, simply require 'ratch', and subclass.
|
|
44
|
-
|
|
45
|
-
require 'ratch'
|
|
46
|
-
|
|
47
|
-
class MyClass < Ratch::Service
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
end
|
|
51
|
-
|
|
52
|
-
Ratch also provides a delegated service which automatically supplies
|
|
53
|
-
method_missing() to delegate to the given *context*. This is called
|
|
54
|
-
a Ratch Plugin.
|
|
55
|
-
|
|
56
|
-
class MyClass < Ratch::Plugin
|
|
57
|
-
|
|
58
|
-
end
|
|
59
|
-
|
|
60
|
-
MyClass.new(context)
|
|
61
|
-
|
|
62
|
-
For details on all the functionality Ratch provides, please refer to
|
|
63
|
-
the API documentation.
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
== Development
|
|
68
|
-
|
|
69
|
-
You can use gitweb to browse the 'ratch' repository.
|
|
70
|
-
|
|
71
|
-
To pull the 'ratch' repository anonymously, use:
|
|
72
|
-
|
|
73
|
-
git clone git://rubyforge.org/ratch.git
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
Developers: You can push to the 'ratch' repository using:
|
|
77
|
-
|
|
78
|
-
gitosis@rubyforge.org:ratch.git
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
== Copying
|
|
83
|
-
|
|
84
|
-
Copyright (c) 2007, 2008 Tiger Ops & Thomas Sawyer
|
|
85
|
-
|
|
86
|
-
Ratch is licensed under the terms of the MIT license.
|
|
87
|
-
|
data/VERSION
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
ratch 1.1.0 stable (2008-11-22)
|
data/demo/tryme-task.ratch
DELETED
data/demo/tryme1.ratch
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<title>Ratch Code Statistics</title>
|
|
5
|
-
<style>
|
|
6
|
-
h2{margin: 5px 0;}
|
|
7
|
-
table{width: 95%;}
|
|
8
|
-
th{background: #dcc;}
|
|
9
|
-
td{padding: 5px;}
|
|
10
|
-
.basic_stats{margin: 0 auto; width: 800px;}
|
|
11
|
-
</style>
|
|
12
|
-
<link rel="stylesheet" type="text/css" href="stats.css"/>
|
|
13
|
-
</head>
|
|
14
|
-
<body>
|
|
15
|
-
<div class="basic_stats">
|
|
16
|
-
<h1>Ratch -- Basic Code Statistics</h1>
|
|
17
|
-
<table class="counts" border="1">
|
|
18
|
-
<tr><th colspan="9"><h2>Counts</h2></th></tr>
|
|
19
|
-
<tr><th>TYPE</th><th>Total</th><th>Code</th><th>-%-</th><th>Docs</th><th>-%-</th><th>Blank</th><th>-%-</th><th>Files</th></tr>
|
|
20
|
-
<tr><th>Source</th><td>1669</td><td>731</td><td>43%</td><td>635</td><td>38%</td><td>303</td><td>18%</td><td>17</td></tr>
|
|
21
|
-
<tr><th>Test</th><td>50</td><td>30</td><td>1%</td><td>3</td><td>0%</td><td>17</td><td>1%</td><td>2</td></tr>
|
|
22
|
-
<tr><th>Total</th><td>1719</td><td>761</td><td>44%</td><td>638</td><td>37%</td><td>320</td><td>18%</td><td>19</td></tr>
|
|
23
|
-
</table>
|
|
24
|
-
<br/>
|
|
25
|
-
<table class="ratios" border="1">
|
|
26
|
-
<tr><th colspan="6"><h2>Ratios</h2></th></tr>
|
|
27
|
-
<tr><th>x:1</th><th>Code</th><th>Docs</th><th>Blank</th><th>Test</th><th>Total</th></tr>
|
|
28
|
-
<tr><th>Code</th><td> 1.0</td><td> 1.2</td><td> 2.4</td><td> 14.6</td><td> 0.4</td></tr>
|
|
29
|
-
<tr><th>Docs</th><td> 0.9</td><td> 1.0</td><td> 2.1</td><td> 12.7</td><td> 0.4</td></tr>
|
|
30
|
-
<tr><th>Blank</th><td> 0.4</td><td> 0.5</td><td> 1.0</td><td> 6.1</td><td> 0.2</td></tr>
|
|
31
|
-
<tr><th>Test</th><td> 0.1</td><td> 0.1</td><td> 0.2</td><td> 1.0</td><td> 0.0</td></tr>
|
|
32
|
-
<tr><th>Total</th><td> 2.3</td><td> 2.6</td><td> 5.5</td><td> 33.4</td><td> 1.0</td></tr>
|
|
33
|
-
</table>
|
|
34
|
-
<br/>
|
|
35
|
-
<div class="date">Sun Nov 23 14:09:41 -0500 2008</div>
|
|
36
|
-
</div>
|
|
37
|
-
</body>
|
|
38
|
-
</html>
|
|
39
|
-
|
data/doc/log/notes.xml
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<notes>
|
|
2
|
-
<set label="FIXME">
|
|
3
|
-
<file src="lib/ratch/emailer.rb">
|
|
4
|
-
<note line="154" type="FIXME">FIXME: Does not hide password.</note>
|
|
5
|
-
</file>
|
|
6
|
-
</set>
|
|
7
|
-
<set label="TODO">
|
|
8
|
-
<file src="lib/ratch/dsl.rb">
|
|
9
|
-
<note line="97" type="TODO">TODO: DEPRECATE #sh in favor of #shell (?)</note>
|
|
10
|
-
<note line="115" type="TODO">TODO: Replace these with Folio when Folio's is as capable.</note>
|
|
11
|
-
<note line="178" type="TODO">TODO: Deprecate these?</note>
|
|
12
|
-
<note line="406" type="TODO">TODO: Put this in FileTest instead?</note>
|
|
13
|
-
</file>
|
|
14
|
-
<file src="lib/ratch/plugin.rb">
|
|
15
|
-
<note line="57" type="TODO">TODO: Allow this to be optional? How?</note>
|
|
16
|
-
</file>
|
|
17
|
-
</set>
|
|
18
|
-
</notes>
|
data/doc/log/stats.log
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
Ratch Statistics
|
|
2
|
-
Mon Aug 18 15:10:07 -0400 2008
|
|
3
|
-
|
|
4
|
-
TYPE Total Code -%- Docs -%- Blank -%- Files
|
|
5
|
-
Source 1703 820 48% 572 33% 311 18% 18
|
|
6
|
-
Test 50 30 1% 3 0% 17 0% 2
|
|
7
|
-
Total 1753 850 48% 575 32% 328 18% 20
|
|
8
|
-
|
|
9
|
-
RATIO Code Docs Blank Test Total
|
|
10
|
-
Code 1.0 1.4 2.6 16.4 -
|
|
11
|
-
Docs - 1.0 1.8 11.4 -
|
|
12
|
-
Blank - - 1.0 6.2 -
|
|
13
|
-
Test - - - 1.0 -
|
|
14
|
-
Total 2.1 3.0 5.5 34.1 1.0
|
data/doc/log/syntax.log
DELETED
|
File without changes
|