ratch 0.2.2 → 0.2.3

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.
Files changed (73) hide show
  1. data/COPYING +674 -0
  2. data/README +5 -5
  3. data/bin/lt +11 -11
  4. data/bin/ratch +3 -2
  5. data/demo/README +1 -0
  6. data/demo/WILMA +1 -0
  7. data/demo/doc/rdoc/created.rid +1 -1
  8. data/demo/doc/rdoc/files/README.html +1 -1
  9. data/demo/doc/rdoc/files/lib/foo/foo_rb.html +1 -1
  10. data/demo/doc/rdoc/index.html +3 -3
  11. data/demo/p.rb +9 -0
  12. data/demo/r.rb +6 -0
  13. data/demo/t.rb +3 -0
  14. data/demo/task/config.yaml +2 -0
  15. data/demo/{util → task}/one +0 -0
  16. data/demo/task/rdoc +88 -0
  17. data/demo/task/rdoc-old +182 -0
  18. data/demo/task/simplebuild +15 -0
  19. data/demo/task/stats +6 -0
  20. data/demo/task/task +6 -0
  21. data/demo/{util → task}/tryme +0 -0
  22. data/lib/ratch/argvutils.rb +57 -14
  23. data/lib/ratch/batch.rb +73 -21
  24. data/lib/ratch/batchable.rb +56 -26
  25. data/lib/ratch/batchfile.rb +95 -0
  26. data/lib/ratch/buildable.rb +117 -42
  27. data/lib/ratch/configutils.rb +43 -13
  28. data/lib/ratch/consoleutils.rb +76 -19
  29. data/lib/ratch/emailutils.rb +24 -0
  30. data/lib/ratch/facets/multiglob.rb +160 -0
  31. data/lib/ratch/fileutils.rb +40 -8
  32. data/lib/ratch/options.rb +43 -4
  33. data/lib/ratch/taskable.rb +48 -12
  34. data/{data/ratch/rubyproject → lib/ratch/toolset/ruby}/announce +0 -0
  35. data/lib/ratch/toolset/ruby/crosstest +305 -0
  36. data/{data/ratch/rubyproject → lib/ratch/toolset/ruby}/extest +0 -0
  37. data/{data/ratch/rubyproject → lib/ratch/toolset/ruby}/install +0 -0
  38. data/lib/ratch/toolset/ruby/isotest +293 -0
  39. data/{data/ratch/rubyproject → lib/ratch/toolset/ruby}/load +0 -0
  40. data/lib/ratch/toolset/ruby/loadtest +28 -0
  41. data/{data/ratch/rubyproject → lib/ratch/toolset/ruby}/notes +0 -0
  42. data/{data/ratch/rubyproject → lib/ratch/toolset/ruby}/publish +0 -0
  43. data/lib/ratch/toolset/ruby/rdoc +88 -0
  44. data/{data/ratch/rubyproject → lib/ratch/toolset/ruby}/setup +0 -0
  45. data/{data/ratch/rubyproject → lib/ratch/toolset/ruby}/stats +0 -0
  46. data/lib/ratch/toolset/ruby/syntax +29 -0
  47. data/lib/ratch/toolset/ruby/test +26 -0
  48. data/lib/ratch/uploadutils.rb +25 -4
  49. data/log/history.rd +10 -0
  50. data/log/recent.rd +8 -0
  51. data/log/todo.rd +2 -0
  52. data/man/ratch.man +73 -0
  53. data/meta/MANIFEST +45 -31
  54. data/meta/{RATCH-0.2.2.roll → ratch-0.2.3.roll} +3 -3
  55. data/task/clobber/package +10 -0
  56. data/task/config.yaml +4 -0
  57. data/task/man +14 -0
  58. data/task/publish +1 -1
  59. data/task/rdoc +6 -0
  60. metadata +64 -40
  61. data/LICENSE +0 -344
  62. data/data/ratch/rubyproject/rdoc +0 -42
  63. data/demo/util/conf/rdoc +0 -4
  64. data/demo/util/rdoc +0 -39
  65. data/dev/install +0 -89
  66. data/dev/install.0 +0 -49
  67. data/dev/install.1 +0 -63
  68. data/dev/ludo +0 -25
  69. data/dev/oldtaskable.rb +0 -573
  70. data/dev/taskable-simple.rb +0 -42
  71. data/dev/taskable.rb +0 -120
  72. data/lib/ratch/t.rb +0 -0
  73. data/lib/ratch/taskutils.rb +0 -41
@@ -0,0 +1,26 @@
1
+ #!/usr/bin/env ratch
2
+
3
+ # Run unit tests
4
+
5
+ live = ARGV.delete('--live')
6
+
7
+ unless live
8
+ $LOAD_PATH.unshift(File.expand_path('lib/methods'))
9
+ $LOAD_PATH.unshift(File.expand_path('lib/core'))
10
+ $LOAD_PATH.unshift(File.expand_path('lib/more'))
11
+ end
12
+
13
+ main :test do
14
+ if find = argv[0]
15
+ unless file?(find)
16
+ find = File.join(find, '**', 'test_*.rb')
17
+ end
18
+ else
19
+ find = 'test/**/test_*.rb'
20
+ end
21
+
22
+ Dir.glob(find).each do |file|
23
+ next if dir?(file)
24
+ load file
25
+ end
26
+ end
@@ -1,9 +1,30 @@
1
- # = uploadutils.rb
1
+ # TITLE:
2
2
  #
3
- # CREDIT Thomas Sawyer
3
+ # UploadUtils
4
4
  #
5
- # TODO Incorporate password into scp and ftp ?
6
- # TODO rsync needs --delete option
5
+ # COPYING:
6
+ #
7
+ # Copyright (c) 2007 Psi T Corp.
8
+ #
9
+ # This file is part of the ProUtils' Ratch program.
10
+ #
11
+ # Ratch is free software: you can redistribute it and/or modify
12
+ # it under the terms of the GNU General Public License as published by
13
+ # the Free Software Foundation, either version 3 of the License, or
14
+ # (at your option) any later version.
15
+ #
16
+ # Ratch is distributed in the hope that it will be useful,
17
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ # GNU General Public License for more details.
20
+ #
21
+ # You should have received a copy of the GNU General Public License
22
+ # along with Ratch. If not, see <http://www.gnu.org/licenses/>.
23
+ #
24
+ # TODO:
25
+ #
26
+ # - Incorporate password into scp and ftp ?
27
+ # - rsync needs --delete option
7
28
 
8
29
  require 'openssl'
9
30
  require 'shellwords'
data/log/history.rd ADDED
@@ -0,0 +1,10 @@
1
+ = Ratch Revision History
2
+
3
+ == 0.2.3 / 2007-11-12
4
+
5
+ * Major Changes
6
+ * Removed BatchFile context and now execute files in top-level.
7
+ * Buildable iis working now.
8
+ * Minor Changes
9
+ * Improved webpage; added news items.
10
+ * Generate RDocs for the first time. Yep, they need work ;)
data/log/recent.rd ADDED
@@ -0,0 +1,8 @@
1
+ == 0.2.3 / 2007-11-12
2
+
3
+ * Major Changes
4
+ * Removed BatchFile context and now execute files in top-level.
5
+ * Buildable iis working now.
6
+ * Minor Changes
7
+ * Improved webpage; added news items.
8
+ * Generate RDocs for the first time. Yep, they need work ;)
data/log/todo.rd ADDED
@@ -0,0 +1,2 @@
1
+ = Ratch To Do List
2
+
data/man/ratch.man ADDED
@@ -0,0 +1,73 @@
1
+ .\" TITLE: Ratch Man Page
2
+ .\"
3
+ .\" SECTION: 1
4
+ .\"
5
+ .\" NAME:
6
+ .\" ratch - ruby-based batch files
7
+ .\"
8
+ .\" SYNOPSIS: |
9
+ .\" ratch [-n] [-h] [file]
10
+ .\"
11
+ .\" DESCRIPTION: |
12
+ .\" Ratch is batch file system using a Ruby=based DSL.
13
+ .\"
14
+ .\" OPTIONS: |
15
+ .\" -h help This option displays help.
16
+ .\" -n dryrun Dry-run/no-harm mode.
17
+ .\"
18
+ .\" ENVIRONMENT: |
19
+ .\" PAGER name of paging command, usually more(1), or less(1). If not set
20
+ .\" falls back to more(1).
21
+ .\"
22
+ .\" EXAMPLES: |
23
+ .\" Try this command to format this text itself:
24
+ .\"
25
+ .\" $ txt2man -h 2>&1 | txt2man -T
26
+ .\"
27
+ .\" HINTS: >
28
+ .\" To obtain an overall good formating of output document, keep paragraphs
29
+ .\" indented correctly. If you have unwanted bold sections, search for
30
+ .\" multiple spaces between words, which are used to identify a tag list
31
+ .\" (term followed by a description). Choose also carefully the name of
32
+ .\" command line or function parameters, as they will be emphasized each
33
+ .\" time they are encountered in the document.
34
+ .\"
35
+ .\" SEE ALSO:
36
+ .\" man(1), mandoc(7), rman(1), groff(1), more(1), gxditview(1), troff(1).
37
+ .\"
38
+ .\" BUGS:
39
+ .\" Automatic probe (-p option) works only if input is a regular file (i.e. not stdin).
40
+ .\"
41
+ .\" AUTHOR:
42
+ .\" Trans <transfire@gmail,com>
43
+ .TH man 1 "08 November 2007" "1.0" "Ratch Man Page"
44
+ .SH NAME
45
+ ratch \- ruby-based batch files
46
+ .SH SYNOPSIS
47
+ .B ratch [-n] [-h] [file]
48
+ .SH DESCRIPTION
49
+ Ratch is batch file system using a Ruby=based DSL.
50
+ .SH OPTIONS
51
+ -h help This option displays help.
52
+ -n dryrun Dry-run/no-harm mode.
53
+ .SH HINTS
54
+ To obtain an overall good formating of output document, keep paragraphs indented correctly. If you have unwanted bold sections, search for multiple spaces between words, which are used to identify a tag list (term followed by a description). Choose also carefully the name of command line or function parameters, as they will be emphasized each time they are encountered in the document.
55
+ .SH ENVIRONMENT
56
+ PAGER name of paging command, usually more(1), or less(1). If not set
57
+ falls back to more(1).
58
+ .SH BUGS
59
+ Automatic probe (-p option) works only if input is a regular file (i.e. not stdin).
60
+ .SH SEE ALSO
61
+ .BR man(1),
62
+ .BR mandoc(7),
63
+ .BR rman(1),
64
+ .BR groff(1),
65
+ .BR more(1),
66
+ .BR gxditview(1),
67
+ .BR troff(1).,
68
+ .SH EXAMPLES
69
+ Try this command to format this text itself:
70
+
71
+ $ txt2man \-h 2>&1 | txt2man \-T
72
+ .SH AUTHOR
73
+ Trans <transfire@gmail,com>
data/meta/MANIFEST CHANGED
@@ -1,24 +1,13 @@
1
- # -x doc -x pkg
2
- LICENSE
1
+ # -x doc -x pkg -x scrap
2
+ COPYING
3
3
  README
4
4
  bin
5
5
  bin/lt
6
6
  bin/ludo
7
7
  bin/ratch
8
- data
9
- data/ratch
10
- data/ratch/rubyproject
11
- data/ratch/rubyproject/announce
12
- data/ratch/rubyproject/extest
13
- data/ratch/rubyproject/install
14
- data/ratch/rubyproject/load
15
- data/ratch/rubyproject/notes
16
- data/ratch/rubyproject/publish
17
- data/ratch/rubyproject/rdoc
18
- data/ratch/rubyproject/setup
19
- data/ratch/rubyproject/stats
20
8
  demo
21
9
  demo/README
10
+ demo/WILMA
22
11
  demo/doc
23
12
  demo/doc/rdoc
24
13
  demo/doc/rdoc/classes
@@ -36,41 +25,66 @@ demo/doc/rdoc/rdoc-style.css
36
25
  demo/lib
37
26
  demo/lib/foo
38
27
  demo/lib/foo/foo.rb
39
- demo/util
40
- demo/util/conf
41
- demo/util/conf/rdoc
42
- demo/util/one
43
- demo/util/rdoc
44
- demo/util/tryme
45
- dev
46
- dev/install
47
- dev/install.0
48
- dev/install.1
49
- dev/ludo
50
- dev/oldtaskable.rb
51
- dev/taskable-simple.rb
52
- dev/taskable.rb
28
+ demo/p.rb
29
+ demo/r.rb
30
+ demo/t.rb
31
+ demo/task
32
+ demo/task/config.yaml
33
+ demo/task/one
34
+ demo/task/rdoc
35
+ demo/task/rdoc-old
36
+ demo/task/simplebuild
37
+ demo/task/stats
38
+ demo/task/task
39
+ demo/task/tryme
53
40
  lib
54
41
  lib/ratch
55
42
  lib/ratch/argvutils.rb
56
43
  lib/ratch/batch.rb
57
44
  lib/ratch/batchable.rb
45
+ lib/ratch/batchfile.rb
58
46
  lib/ratch/buildable.rb
59
47
  lib/ratch/configutils.rb
60
48
  lib/ratch/consoleutils.rb
61
49
  lib/ratch/emailutils.rb
50
+ lib/ratch/facets
51
+ lib/ratch/facets/multiglob.rb
62
52
  lib/ratch/fileutils.rb
63
53
  lib/ratch/options.rb
64
- lib/ratch/t.rb
65
54
  lib/ratch/taskable.rb
66
- lib/ratch/taskutils.rb
55
+ lib/ratch/toolset
56
+ lib/ratch/toolset/ruby
57
+ lib/ratch/toolset/ruby/announce
58
+ lib/ratch/toolset/ruby/crosstest
59
+ lib/ratch/toolset/ruby/extest
60
+ lib/ratch/toolset/ruby/install
61
+ lib/ratch/toolset/ruby/isotest
62
+ lib/ratch/toolset/ruby/load
63
+ lib/ratch/toolset/ruby/loadtest
64
+ lib/ratch/toolset/ruby/notes
65
+ lib/ratch/toolset/ruby/publish
66
+ lib/ratch/toolset/ruby/rdoc
67
+ lib/ratch/toolset/ruby/setup
68
+ lib/ratch/toolset/ruby/stats
69
+ lib/ratch/toolset/ruby/syntax
70
+ lib/ratch/toolset/ruby/test
67
71
  lib/ratch/uploadutils.rb
72
+ log
73
+ log/history.rd
74
+ log/recent.rd
75
+ log/todo.rd
76
+ man
77
+ man/ratch.man
68
78
  meta
69
79
  meta/MANIFEST
70
- meta/RATCH-0.2.2.roll
80
+ meta/ratch-0.2.3.roll
71
81
  task
82
+ task/clobber
83
+ task/clobber/package
72
84
  task/config.yaml
85
+ task/man
73
86
  task/publish
87
+ task/rdoc
74
88
  task/setup
75
89
  task/stats
76
90
  test
@@ -2,7 +2,6 @@
2
2
 
3
3
  title : Ratch
4
4
  subtitle : Ruby-based Batch Files
5
- slogan : Ratch It Up!
6
5
  description: >
7
6
  Ratch is batch file system suitable for creating project build scripts
8
7
  and any variety of command line utilities.
@@ -13,15 +12,16 @@ created : "2007-08-09"
13
12
  homepage : "http://proutils.rubyforge.org"
14
13
  download : "https://rubyforge.org/frs/?group_id=4411"
15
14
  repository : "http://proutils.rubyforge.org/ratch"
16
-
15
+ slogan : Ratch It Up!
17
16
 
18
17
  lib_path:
19
18
  - lib/ratch
20
19
 
21
- formats : [gem, tgz]
20
+ formats : [gem, zip]
22
21
 
23
22
  #rubyforge:
24
23
  # project : protutils
25
24
  # username : transami
26
25
  # groupid : 4411
27
26
  # package : ratch
27
+
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env ratch
2
+
3
+ # Remove package products.
4
+
5
+ main :clobber_packaging do
6
+ glob("pkg/*").each do |f|
7
+ rm_r(f)
8
+ end
9
+ end
10
+
data/task/config.yaml CHANGED
@@ -4,3 +4,7 @@ publish:
4
4
  subdir : ratch
5
5
  username : transami
6
6
 
7
+ rdoc:
8
+ main: README
9
+ output: doc/rdoc
10
+
data/task/man ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ratch
2
+
3
+ # generate man pages
4
+
5
+ require 'ratchets/doc/man'
6
+
7
+ main :man do
8
+ cd 'man' do
9
+ files = glob('*.man')
10
+ files.each do |file|
11
+ ManPage.generate(file, :dryrun=>dryrun?)
12
+ end
13
+ end
14
+ end
data/task/publish CHANGED
@@ -42,7 +42,7 @@ main :publish do
42
42
  end
43
43
  end
44
44
 
45
- op << "--filter='dir-merge #{filter_file}'"
45
+ op << "--filter='dir-merge #{filter_file}' --delete-after"
46
46
 
47
47
  args = op + [dir, url]
48
48
 
data/task/rdoc ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ratch
2
+
3
+ # generater rdocs
4
+
5
+ load('ratch/toolset/ruby/rdoc')
6
+
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.4
3
- specification_version: 1
2
+ rubygems_version: 0.9.4.6
3
+ specification_version: 2
4
4
  name: ratch
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.2.2
7
- date: 2007-11-01 00:00:00 -04:00
6
+ version: 0.2.3
7
+ date: 2007-11-12 00:00:00 -05:00
8
8
  summary: Ruby-based Batch Files
9
9
  require_paths:
10
10
  - lib
@@ -16,39 +16,36 @@ autorequire:
16
16
  default_executable:
17
17
  bindir: bin
18
18
  has_rdoc:
19
- required_ruby_version: !ruby/object:Gem::Version::Requirement
19
+ required_ruby_version: !ruby/object:Gem::Requirement
20
20
  requirements:
21
- - - ">"
21
+ - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 0.0.0
23
+ version: "0"
24
+ version:
25
+ required_rubygems_version: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: "0"
24
30
  version:
25
31
  platform: ruby
26
32
  signing_key:
27
- cert_chain:
33
+ cert_chain: []
34
+
28
35
  post_install_message:
36
+ extensions_fallback:
29
37
  authors:
30
38
  - Thomas Sawyer <transfire@gmail.com>
31
39
  files:
32
- - LICENSE
40
+ - COPYING
33
41
  - README
34
42
  - bin
35
43
  - bin/lt
36
44
  - bin/ludo
37
45
  - bin/ratch
38
- - data
39
- - data/ratch
40
- - data/ratch/rubyproject
41
- - data/ratch/rubyproject/announce
42
- - data/ratch/rubyproject/extest
43
- - data/ratch/rubyproject/install
44
- - data/ratch/rubyproject/load
45
- - data/ratch/rubyproject/notes
46
- - data/ratch/rubyproject/publish
47
- - data/ratch/rubyproject/rdoc
48
- - data/ratch/rubyproject/setup
49
- - data/ratch/rubyproject/stats
50
46
  - demo
51
47
  - demo/README
48
+ - demo/WILMA
52
49
  - demo/doc
53
50
  - demo/doc/rdoc
54
51
  - demo/doc/rdoc/classes
@@ -66,41 +63,66 @@ files:
66
63
  - demo/lib
67
64
  - demo/lib/foo
68
65
  - demo/lib/foo/foo.rb
69
- - demo/util
70
- - demo/util/conf
71
- - demo/util/conf/rdoc
72
- - demo/util/one
73
- - demo/util/rdoc
74
- - demo/util/tryme
75
- - dev
76
- - dev/install
77
- - dev/install.0
78
- - dev/install.1
79
- - dev/ludo
80
- - dev/oldtaskable.rb
81
- - dev/taskable-simple.rb
82
- - dev/taskable.rb
66
+ - demo/p.rb
67
+ - demo/r.rb
68
+ - demo/t.rb
69
+ - demo/task
70
+ - demo/task/config.yaml
71
+ - demo/task/one
72
+ - demo/task/rdoc
73
+ - demo/task/rdoc-old
74
+ - demo/task/simplebuild
75
+ - demo/task/stats
76
+ - demo/task/task
77
+ - demo/task/tryme
83
78
  - lib
84
79
  - lib/ratch
85
80
  - lib/ratch/argvutils.rb
86
81
  - lib/ratch/batch.rb
87
82
  - lib/ratch/batchable.rb
83
+ - lib/ratch/batchfile.rb
88
84
  - lib/ratch/buildable.rb
89
85
  - lib/ratch/configutils.rb
90
86
  - lib/ratch/consoleutils.rb
91
87
  - lib/ratch/emailutils.rb
88
+ - lib/ratch/facets
89
+ - lib/ratch/facets/multiglob.rb
92
90
  - lib/ratch/fileutils.rb
93
91
  - lib/ratch/options.rb
94
- - lib/ratch/t.rb
95
92
  - lib/ratch/taskable.rb
96
- - lib/ratch/taskutils.rb
93
+ - lib/ratch/toolset
94
+ - lib/ratch/toolset/ruby
95
+ - lib/ratch/toolset/ruby/announce
96
+ - lib/ratch/toolset/ruby/crosstest
97
+ - lib/ratch/toolset/ruby/extest
98
+ - lib/ratch/toolset/ruby/install
99
+ - lib/ratch/toolset/ruby/isotest
100
+ - lib/ratch/toolset/ruby/load
101
+ - lib/ratch/toolset/ruby/loadtest
102
+ - lib/ratch/toolset/ruby/notes
103
+ - lib/ratch/toolset/ruby/publish
104
+ - lib/ratch/toolset/ruby/rdoc
105
+ - lib/ratch/toolset/ruby/setup
106
+ - lib/ratch/toolset/ruby/stats
107
+ - lib/ratch/toolset/ruby/syntax
108
+ - lib/ratch/toolset/ruby/test
97
109
  - lib/ratch/uploadutils.rb
110
+ - log
111
+ - log/history.rd
112
+ - log/recent.rd
113
+ - log/todo.rd
114
+ - man
115
+ - man/ratch.man
98
116
  - meta
99
117
  - meta/MANIFEST
100
- - meta/RATCH-0.2.2.roll
118
+ - meta/ratch-0.2.3.roll
101
119
  - task
120
+ - task/clobber
121
+ - task/clobber/package
102
122
  - task/config.yaml
123
+ - task/man
103
124
  - task/publish
125
+ - task/rdoc
104
126
  - task/setup
105
127
  - task/stats
106
128
  - test
@@ -110,8 +132,10 @@ rdoc_options: []
110
132
 
111
133
  extra_rdoc_files: []
112
134
 
113
- executables: []
114
-
135
+ executables:
136
+ - ratch
137
+ - ludo
138
+ - lt
115
139
  extensions: []
116
140
 
117
141
  requirements: []