inochi 1.1.1 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. data/CREDITS +17 -1
  2. data/bin/inochi +19 -539
  3. data/lib/inochi.rb +1 -41
  4. data/lib/inochi/engine.rb +101 -0
  5. data/lib/inochi/generate.rb +52 -0
  6. data/lib/inochi/inochi.rb +109 -0
  7. data/lib/inochi/tasks/ann.rake +230 -0
  8. data/lib/inochi/tasks/api.rake +28 -0
  9. data/lib/inochi/tasks/gem.rake +46 -0
  10. data/lib/inochi/tasks/init.rake +38 -0
  11. data/lib/inochi/tasks/man.rake +78 -0
  12. data/lib/inochi/tasks/project.rake +25 -0
  13. data/lib/inochi/tasks/pub.rake +130 -0
  14. data/lib/inochi/templates/CREDITS.rbs +18 -0
  15. data/lib/inochi/templates/EXAMPLES.rbs +24 -0
  16. data/lib/inochi/templates/FURTHER.rbs +17 -0
  17. data/lib/inochi/templates/HACKING.rbs +92 -0
  18. data/lib/inochi/templates/HISTORY.rbs +55 -0
  19. data/lib/inochi/templates/LICENSE.rbs +15 -0
  20. data/lib/inochi/templates/MANUAL.rbs +27 -0
  21. data/lib/inochi/templates/README.rbs +60 -0
  22. data/lib/inochi/templates/USAGE.rbs +23 -0
  23. data/lib/inochi/templates/command.rbs +23 -0
  24. data/lib/inochi/templates/inochi.opts.rbs +43 -0
  25. data/lib/inochi/templates/inochi.rb.rbs +102 -0
  26. data/lib/inochi/templates/library.rbs +7 -0
  27. data/lib/inochi/templates/library_test.rb.rbs +3 -0
  28. data/lib/inochi/templates/test_helper.rb.rbs +3 -0
  29. data/lib/inochi/templates/test_runner.rbs +25 -0
  30. data/{doc → logo}/inochi.png +0 -0
  31. data/man.html +959 -0
  32. data/man/man1/inochi.1.gz +0 -0
  33. metadata +129 -198
  34. data/doc/README +0 -6
  35. data/doc/api/apple-touch-icon.png +0 -0
  36. data/doc/api/classes/Array.html +0 -370
  37. data/doc/api/classes/File.html +0 -110
  38. data/doc/api/classes/Inochi.html +0 -1477
  39. data/doc/api/classes/Inochi/Manual.html +0 -157
  40. data/doc/api/classes/Inochi/Phrases.html +0 -331
  41. data/doc/api/classes/Inochi/Version.html +0 -190
  42. data/doc/api/classes/TempDir.html +0 -164
  43. data/doc/api/created.rid +0 -1
  44. data/doc/api/css/main.css +0 -263
  45. data/doc/api/css/panel.css +0 -383
  46. data/doc/api/css/reset.css +0 -53
  47. data/doc/api/favicon.ico +0 -0
  48. data/doc/api/files/CREDITS.html +0 -61
  49. data/doc/api/files/LICENSE.html +0 -76
  50. data/doc/api/files/lib/inochi/book_rb.html +0 -106
  51. data/doc/api/files/lib/inochi/init_rb.html +0 -66
  52. data/doc/api/files/lib/inochi/main_rb.html +0 -52
  53. data/doc/api/files/lib/inochi/rake_rb.html +0 -52
  54. data/doc/api/files/lib/inochi/test/bacon_rb.html +0 -67
  55. data/doc/api/files/lib/inochi/test/context_rb.html +0 -69
  56. data/doc/api/files/lib/inochi/test/dfect_rb.html +0 -67
  57. data/doc/api/files/lib/inochi/test/matchy_rb.html +0 -69
  58. data/doc/api/files/lib/inochi/test/minitest_rb.html +0 -71
  59. data/doc/api/files/lib/inochi/test/mocha_rb.html +0 -67
  60. data/doc/api/files/lib/inochi/test/rspec_rb.html +0 -67
  61. data/doc/api/files/lib/inochi/test/shoulda_rb.html +0 -67
  62. data/doc/api/files/lib/inochi/test/test_spec_rb.html +0 -67
  63. data/doc/api/files/lib/inochi/test/test_unit_rb.html +0 -67
  64. data/doc/api/files/lib/inochi/util/combo_rb.html +0 -59
  65. data/doc/api/files/lib/inochi/util/tempdir_rb.html +0 -68
  66. data/doc/api/files/lib/inochi/util_rb.html +0 -59
  67. data/doc/api/files/lib/inochi_rb.html +0 -76
  68. data/doc/api/i/arrows.png +0 -0
  69. data/doc/api/i/results_bg.png +0 -0
  70. data/doc/api/i/tree_bg.png +0 -0
  71. data/doc/api/index.html +0 -14
  72. data/doc/api/js/jquery-1.3.2.min.js +0 -19
  73. data/doc/api/js/jquery-effect.js +0 -593
  74. data/doc/api/js/main.js +0 -22
  75. data/doc/api/js/searchdoc.js +0 -628
  76. data/doc/api/panel/index.html +0 -71
  77. data/doc/api/panel/search_index.js +0 -1
  78. data/doc/api/panel/tree.js +0 -1
  79. data/doc/history.erb +0 -268
  80. data/doc/index.erb +0 -11
  81. data/doc/index.html +0 -3179
  82. data/doc/inochi.svg +0 -405
  83. data/doc/intro.erb +0 -87
  84. data/doc/setup.erb +0 -105
  85. data/doc/usage.erb +0 -641
  86. data/lib/inochi/book.rb +0 -91
  87. data/lib/inochi/init.rb +0 -256
  88. data/lib/inochi/main.rb +0 -85
  89. data/lib/inochi/rake.rb +0 -902
  90. data/lib/inochi/test/bacon.rb +0 -3
  91. data/lib/inochi/test/context.rb +0 -4
  92. data/lib/inochi/test/dfect.rb +0 -3
  93. data/lib/inochi/test/matchy.rb +0 -4
  94. data/lib/inochi/test/minitest.rb +0 -7
  95. data/lib/inochi/test/mocha.rb +0 -3
  96. data/lib/inochi/test/rspec.rb +0 -3
  97. data/lib/inochi/test/shoulda.rb +0 -3
  98. data/lib/inochi/test/test_spec.rb +0 -3
  99. data/lib/inochi/test/test_unit.rb +0 -3
  100. data/lib/inochi/util.rb +0 -99
  101. data/lib/inochi/util/combo.rb +0 -191
  102. data/lib/inochi/util/tempdir.rb +0 -29
  103. data/rakefile +0 -12
  104. data/test/inochi.rb +0 -111
Binary file
metadata CHANGED
@@ -1,170 +1,142 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inochi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ prerelease: false
5
+ segments:
6
+ - 2
7
+ - 0
8
+ - 0
9
+ version: 2.0.0
5
10
  platform: ruby
6
11
  authors:
7
12
  - Suraj N. Kurapati
13
+ - Peileppe Production
14
+ - Florian Gilcher
8
15
  autorequire:
9
16
  bindir: bin
10
17
  cert_chain: []
11
18
 
12
- date: 2009-10-03 00:00:00 -07:00
19
+ date: 2010-04-24 00:00:00 -07:00
13
20
  default_executable:
14
21
  dependencies:
15
22
  - !ruby/object:Gem::Dependency
16
- name: rake
17
- type: :development
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
23
+ name: dfect
24
+ prerelease: false
25
+ requirement: &id001 !ruby/object:Gem::Requirement
20
26
  requirements:
21
- - - ~>
22
- - !ruby/object:Gem::Version
23
- version: "0"
24
27
  - - ">="
25
28
  - !ruby/object:Gem::Version
26
- version: 0.8.4
27
- version:
28
- - !ruby/object:Gem::Dependency
29
- name: rubyforge
30
- type: :development
31
- version_requirement:
32
- version_requirements: !ruby/object:Gem::Requirement
33
- requirements:
34
- - - ~>
29
+ segments:
30
+ - 1
31
+ - 1
32
+ - 0
33
+ version: 1.1.0
34
+ - - <
35
35
  - !ruby/object:Gem::Version
36
+ segments:
37
+ - 2
36
38
  version: "2"
37
- version:
38
- - !ruby/object:Gem::Dependency
39
- name: mechanize
40
39
  type: :development
41
- version_requirement:
42
- version_requirements: !ruby/object:Gem::Requirement
43
- requirements:
44
- - - ~>
45
- - !ruby/object:Gem::Version
46
- version: "0"
47
- version:
40
+ version_requirements: *id001
48
41
  - !ruby/object:Gem::Dependency
49
- name: voloko-sdoc
50
- type: :development
51
- version_requirement:
52
- version_requirements: !ruby/object:Gem::Requirement
42
+ name: highline
43
+ prerelease: false
44
+ requirement: &id002 !ruby/object:Gem::Requirement
53
45
  requirements:
54
- - - ~>
55
- - !ruby/object:Gem::Version
56
- version: "0"
57
46
  - - ">="
58
47
  - !ruby/object:Gem::Version
59
- version: 0.2.10
60
- version:
61
- - !ruby/object:Gem::Dependency
62
- name: addressable
63
- type: :development
64
- version_requirement:
65
- version_requirements: !ruby/object:Gem::Requirement
66
- requirements:
67
- - - ~>
48
+ segments:
49
+ - 1
50
+ - 5
51
+ version: "1.5"
52
+ - - <
68
53
  - !ruby/object:Gem::Version
54
+ segments:
55
+ - 2
69
56
  version: "2"
70
- version:
71
- - !ruby/object:Gem::Dependency
72
- name: erbook
73
- type: :development
74
- version_requirement:
75
- version_requirements: !ruby/object:Gem::Requirement
76
- requirements:
77
- - - ~>
78
- - !ruby/object:Gem::Version
79
- version: "7"
80
- version:
57
+ type: :runtime
58
+ version_requirements: *id002
81
59
  - !ruby/object:Gem::Dependency
82
- name: babelfish
83
- type: :development
84
- version_requirement:
85
- version_requirements: !ruby/object:Gem::Requirement
60
+ name: mechanize
61
+ prerelease: false
62
+ requirement: &id003 !ruby/object:Gem::Requirement
86
63
  requirements:
87
64
  - - ~>
88
65
  - !ruby/object:Gem::Version
89
- version: "0"
90
- version:
66
+ segments:
67
+ - 1
68
+ version: "1"
69
+ type: :runtime
70
+ version_requirements: *id003
91
71
  - !ruby/object:Gem::Dependency
92
- name: relevance-rcov
93
- type: :development
94
- version_requirement:
95
- version_requirements: !ruby/object:Gem::Requirement
72
+ name: nokogiri
73
+ prerelease: false
74
+ requirement: &id004 !ruby/object:Gem::Requirement
96
75
  requirements:
97
76
  - - ">="
98
77
  - !ruby/object:Gem::Version
99
- version: "0"
100
- version:
101
- - !ruby/object:Gem::Dependency
102
- name: flay
103
- type: :development
104
- version_requirement:
105
- version_requirements: !ruby/object:Gem::Requirement
106
- requirements:
107
- - - ">="
78
+ segments:
79
+ - 1
80
+ - 4
81
+ version: "1.4"
82
+ - - <
108
83
  - !ruby/object:Gem::Version
109
- version: "0"
110
- version:
84
+ segments:
85
+ - 2
86
+ version: "2"
87
+ type: :runtime
88
+ version_requirements: *id004
111
89
  - !ruby/object:Gem::Dependency
112
- name: reek
113
- type: :development
114
- version_requirement:
115
- version_requirements: !ruby/object:Gem::Requirement
90
+ name: rake
91
+ prerelease: false
92
+ requirement: &id005 !ruby/object:Gem::Requirement
116
93
  requirements:
117
94
  - - ">="
118
95
  - !ruby/object:Gem::Version
119
- version: "0"
120
- version:
121
- - !ruby/object:Gem::Dependency
122
- name: roodi
123
- type: :development
124
- version_requirement:
125
- version_requirements: !ruby/object:Gem::Requirement
126
- requirements:
127
- - - ">="
96
+ segments:
97
+ - 0
98
+ - 8
99
+ - 4
100
+ version: 0.8.4
101
+ - - <
128
102
  - !ruby/object:Gem::Version
129
- version: "0"
130
- version:
103
+ segments:
104
+ - 1
105
+ version: "1"
106
+ type: :runtime
107
+ version_requirements: *id005
131
108
  - !ruby/object:Gem::Dependency
132
- name: ZenTest
133
- type: :development
134
- version_requirement:
135
- version_requirements: !ruby/object:Gem::Requirement
109
+ name: ronn
110
+ prerelease: false
111
+ requirement: &id006 !ruby/object:Gem::Requirement
136
112
  requirements:
137
- - - ~>
113
+ - - ">="
138
114
  - !ruby/object:Gem::Version
139
- version: "4"
140
- version:
141
- - !ruby/object:Gem::Dependency
142
- name: trollop
143
- type: :runtime
144
- version_requirement:
145
- version_requirements: !ruby/object:Gem::Requirement
146
- requirements:
147
- - - ~>
115
+ segments:
116
+ - 0
117
+ - 5
118
+ version: "0.5"
119
+ - - <
148
120
  - !ruby/object:Gem::Version
121
+ segments:
122
+ - 1
149
123
  version: "1"
150
- version:
151
- - !ruby/object:Gem::Dependency
152
- name: launchy
153
124
  type: :runtime
154
- version_requirement:
155
- version_requirements: !ruby/object:Gem::Requirement
125
+ version_requirements: *id006
126
+ - !ruby/object:Gem::Dependency
127
+ name: yard
128
+ prerelease: false
129
+ requirement: &id007 !ruby/object:Gem::Requirement
156
130
  requirements:
157
- - - ~>
158
- - !ruby/object:Gem::Version
159
- version: "0"
160
131
  - - ">="
161
132
  - !ruby/object:Gem::Version
162
- version: 0.3.3
163
- version:
164
- description: " Inochi 1.1.1\n\n Gives life to RubyGems-based software\n\n http://snk.tuxfamily.org/lib/inochi/\n\n Inochi is an infrastructure for [1]RubyGems-based software\n that encourages good documentation, reduces programming\n effort, and automates common tasks.\n\n\
165
- Version 1.1.1 (2009-10-03)\n\n This release improves Ruby 1.9 support and upgrades gem\n dependencies.\n\n * [2]Bug fixes\n\n * [3]Housekeeping\n\n Bug fixes\n\n * require() was unable to find project library in Ruby\n 1.9.2dev.\n\n * Ruby 1.9 warning about \"shadowing outer variable\".\n\n * Ruby 1.9 error about \"incompatible encoding regexp\n match\".\n\n Housekeeping\n\n * The \"spicycode-rcov\" project was officially renamed to\n \"relevance-rcov\".\n\n * Upgrade to RubyForge 2.x library for publishing gems.\n\n\
166
- References\n\n 1. http://www.rubygems.org/\n 2. http://snk.tuxfamily.org/lib/inochi/#Bug-fixes\n 3. http://snk.tuxfamily.org/lib/inochi/#Housekeeping\n"
167
- email: sunaku@gmail.com
133
+ segments:
134
+ - 0
135
+ version: "0"
136
+ type: :runtime
137
+ version_requirements: *id007
138
+ description: Inochi is an infrastructure for Ruby projects that helps you test, document, package, publish, and announce your projects. It encourages great documentation and reduces project administrivia.
139
+ email:
168
140
  executables:
169
141
  - inochi
170
142
  extensions: []
@@ -172,82 +144,39 @@ extensions: []
172
144
  extra_rdoc_files: []
173
145
 
174
146
  files:
175
- - CREDITS
176
- - rakefile
177
- - test/inochi.rb
178
- - lib/inochi.rb
179
- - lib/inochi/util/combo.rb
180
- - lib/inochi/util/tempdir.rb
181
- - lib/inochi/main.rb
182
- - lib/inochi/book.rb
183
- - lib/inochi/rake.rb
184
- - lib/inochi/test/context.rb
185
- - lib/inochi/test/rspec.rb
186
- - lib/inochi/test/minitest.rb
187
- - lib/inochi/test/test_unit.rb
188
- - lib/inochi/test/shoulda.rb
189
- - lib/inochi/test/test_spec.rb
190
- - lib/inochi/test/mocha.rb
191
- - lib/inochi/test/dfect.rb
192
- - lib/inochi/test/matchy.rb
193
- - lib/inochi/test/bacon.rb
194
- - lib/inochi/util.rb
195
- - lib/inochi/init.rb
196
147
  - bin/inochi
148
+ - lib/inochi.rb
149
+ - lib/inochi/inochi.rb
150
+ - lib/inochi/engine.rb
151
+ - lib/inochi/generate.rb
152
+ - lib/inochi/templates/test_helper.rb.rbs
153
+ - lib/inochi/templates/CREDITS.rbs
154
+ - lib/inochi/templates/FURTHER.rbs
155
+ - lib/inochi/templates/inochi.rb.rbs
156
+ - lib/inochi/templates/test_runner.rbs
157
+ - lib/inochi/templates/LICENSE.rbs
158
+ - lib/inochi/templates/README.rbs
159
+ - lib/inochi/templates/HACKING.rbs
160
+ - lib/inochi/templates/USAGE.rbs
161
+ - lib/inochi/templates/library.rbs
162
+ - lib/inochi/templates/command.rbs
163
+ - lib/inochi/templates/HISTORY.rbs
164
+ - lib/inochi/templates/EXAMPLES.rbs
165
+ - lib/inochi/templates/library_test.rb.rbs
166
+ - lib/inochi/templates/MANUAL.rbs
167
+ - lib/inochi/templates/inochi.opts.rbs
168
+ - lib/inochi/tasks/api.rake
169
+ - lib/inochi/tasks/man.rake
170
+ - lib/inochi/tasks/pub.rake
171
+ - lib/inochi/tasks/init.rake
172
+ - lib/inochi/tasks/gem.rake
173
+ - lib/inochi/tasks/ann.rake
174
+ - lib/inochi/tasks/project.rake
197
175
  - LICENSE
198
- - doc/intro.erb
199
- - doc/setup.erb
200
- - doc/inochi.png
201
- - doc/inochi.svg
202
- - doc/index.html
203
- - doc/api/classes/TempDir.html
204
- - doc/api/classes/Inochi/Phrases.html
205
- - doc/api/classes/Inochi/Manual.html
206
- - doc/api/classes/Inochi/Version.html
207
- - doc/api/classes/Array.html
208
- - doc/api/classes/File.html
209
- - doc/api/classes/Inochi.html
210
- - doc/api/panel/search_index.js
211
- - doc/api/panel/tree.js
212
- - doc/api/panel/index.html
213
- - doc/api/js/searchdoc.js
214
- - doc/api/js/jquery-effect.js
215
- - doc/api/js/jquery-1.3.2.min.js
216
- - doc/api/js/main.js
217
- - doc/api/files/CREDITS.html
218
- - doc/api/files/LICENSE.html
219
- - doc/api/files/lib/inochi_rb.html
220
- - doc/api/files/lib/inochi/util/combo_rb.html
221
- - doc/api/files/lib/inochi/util/tempdir_rb.html
222
- - doc/api/files/lib/inochi/main_rb.html
223
- - doc/api/files/lib/inochi/rake_rb.html
224
- - doc/api/files/lib/inochi/util_rb.html
225
- - doc/api/files/lib/inochi/init_rb.html
226
- - doc/api/files/lib/inochi/test/test_unit_rb.html
227
- - doc/api/files/lib/inochi/test/bacon_rb.html
228
- - doc/api/files/lib/inochi/test/mocha_rb.html
229
- - doc/api/files/lib/inochi/test/shoulda_rb.html
230
- - doc/api/files/lib/inochi/test/dfect_rb.html
231
- - doc/api/files/lib/inochi/test/minitest_rb.html
232
- - doc/api/files/lib/inochi/test/matchy_rb.html
233
- - doc/api/files/lib/inochi/test/context_rb.html
234
- - doc/api/files/lib/inochi/test/test_spec_rb.html
235
- - doc/api/files/lib/inochi/test/rspec_rb.html
236
- - doc/api/files/lib/inochi/book_rb.html
237
- - doc/api/css/main.css
238
- - doc/api/css/reset.css
239
- - doc/api/css/panel.css
240
- - doc/api/i/arrows.png
241
- - doc/api/i/tree_bg.png
242
- - doc/api/i/results_bg.png
243
- - doc/api/apple-touch-icon.png
244
- - doc/api/created.rid
245
- - doc/api/favicon.ico
246
- - doc/api/index.html
247
- - doc/usage.erb
248
- - doc/history.erb
249
- - doc/index.erb
250
- - doc/README
176
+ - CREDITS
177
+ - man.html
178
+ - man/man1/inochi.1.gz
179
+ - logo/inochi.png
251
180
  has_rdoc: true
252
181
  homepage: http://snk.tuxfamily.org/lib/inochi/
253
182
  licenses: []
@@ -261,20 +190,22 @@ required_ruby_version: !ruby/object:Gem::Requirement
261
190
  requirements:
262
191
  - - ">="
263
192
  - !ruby/object:Gem::Version
193
+ segments:
194
+ - 0
264
195
  version: "0"
265
- version:
266
196
  required_rubygems_version: !ruby/object:Gem::Requirement
267
197
  requirements:
268
198
  - - ">="
269
199
  - !ruby/object:Gem::Version
200
+ segments:
201
+ - 0
270
202
  version: "0"
271
- version:
272
203
  requirements: []
273
204
 
274
- rubyforge_project: sunaku
275
- rubygems_version: 1.3.5
205
+ rubyforge_project:
206
+ rubygems_version: 1.3.6
276
207
  signing_key:
277
208
  specification_version: 3
278
- summary: Gives life to RubyGems-based software
209
+ summary: Gives life to Ruby projects
279
210
  test_files: []
280
211
 
data/doc/README DELETED
@@ -1,6 +0,0 @@
1
- The "inochi.png" image and its "inochi.svg" source utilize the
2
- ["3 flowers"][1] graphic, which was created and released into
3
- the public domain by [Peileppe Production][2] on June 25, 2008.
4
-
5
- [1]: http://openclipart.org/media/files/Peileppe/8978
6
- [2]: http://openclipart.org/media/people/Peileppe
Binary file
@@ -1,370 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
- <head>
6
- <title>Array</title>
7
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
- <link rel="stylesheet" href="../css/reset.css" type="text/css" media="screen" />
9
- <link rel="stylesheet" href="../css/main.css" type="text/css" media="screen" />
10
- <script src="../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
11
- <script src="../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
12
- <script src="../js/main.js" type="text/javascript" charset="utf-8"></script>
13
- </head>
14
-
15
- <body>
16
- <div class="banner">
17
- <h1>
18
- <span class="type">Class</span>
19
- Array
20
-
21
- <span class="parent">&lt;
22
-
23
- Object
24
-
25
- </span>
26
-
27
- </h1>
28
- <ul class="files">
29
-
30
- <li><a href="../files/lib/inochi/util/combo_rb.html">lib/inochi/util/combo.rb</a></li>
31
-
32
- </ul>
33
- </div>
34
- <div id="bodyContent">
35
- <div id="content">
36
-
37
-
38
-
39
-
40
-
41
-
42
-
43
-
44
-
45
- <div class="sectiontitle">Methods</div>
46
- <dl class="methods">
47
-
48
- <dt>C</dt>
49
- <dd>
50
- <ul>
51
-
52
- <li><a href="#M000002">combination</a>,</li>
53
-
54
- <li><a href="#M000003">combinations</a></li>
55
-
56
- </ul>
57
- </dd>
58
-
59
- <dt>E</dt>
60
- <dd>
61
- <ul>
62
-
63
- <li><a href="#M000000">enumeration</a>,</li>
64
-
65
- <li><a href="#M000001">enumerations</a></li>
66
-
67
- </ul>
68
- </dd>
69
-
70
- <dt>P</dt>
71
- <dd>
72
- <ul>
73
-
74
- <li><a href="#M000004">permutation</a>,</li>
75
-
76
- <li><a href="#M000005">permutations</a></li>
77
-
78
- </ul>
79
- </dd>
80
-
81
- </dl>
82
-
83
-
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
- <div class="sectiontitle">Instance Public methods</div>
96
-
97
- <div class="method">
98
- <div class="title" id="M000002">
99
-
100
- <a name="M000002"></a><b>combination</b>(sample_size = self.length, &amp;sampler)
101
-
102
- </div>
103
-
104
- <div class="description">
105
- <p>
106
- Returns all possible combinations made from sample_size number of items
107
- from this list.
108
- </p>
109
- <h4>Parameters</h4>
110
- <dl>
111
- <dt>sample_size</dt><dd>The length of each combination.
112
-
113
- </dd>
114
- <dt>sampler</dt><dd>If given, each combination is passed to this block.
115
-
116
- </dd>
117
- </dl>
118
-
119
- </div>
120
-
121
-
122
-
123
-
124
- <div class="sourcecode">
125
- <p class="source-link">
126
- Source: <a href="javascript:toggleSource('M000002_source')" id="l_M000002_source">show</a>
127
-
128
- | <a href="http://github.com/sunaku/inochi/blob/94ea085869f0eab9b04917d057bdae5b64157781/lib/inochi/util/combo.rb#L70" target="_blank" class="github_url">on GitHub</a>
129
-
130
- </p>
131
- <div id="M000002_source" class="dyn-source">
132
- <pre><span class="ruby-comment cmt"># File lib/inochi/util/combo.rb, line 70</span>
133
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">combination</span>(<span class="ruby-identifier">sample_size</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">length</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">sampler</span>)
134
- <span class="ruby-identifier">pnk_cnk_impl</span>(<span class="ruby-identifier">sample_size</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">sampler</span>)
135
- <span class="ruby-keyword kw">end</span></pre>
136
- </div>
137
- </div>
138
-
139
- </div>
140
-
141
- <div class="method">
142
- <div class="title" id="M000003">
143
-
144
- <a name="M000003"></a><b>combinations</b>(&amp;sampler)
145
-
146
- </div>
147
-
148
- <div class="description">
149
- <p>
150
- Returns all possible combinations of all possible lengths.
151
- </p>
152
- <h4>Parameters</h4>
153
- <dl>
154
- <dt>sampler</dt><dd>If given, each combination is passed to this block.
155
-
156
- </dd>
157
- </dl>
158
-
159
- </div>
160
-
161
-
162
-
163
-
164
- <div class="sourcecode">
165
- <p class="source-link">
166
- Source: <a href="javascript:toggleSource('M000003_source')" id="l_M000003_source">show</a>
167
-
168
- | <a href="http://github.com/sunaku/inochi/blob/94ea085869f0eab9b04917d057bdae5b64157781/lib/inochi/util/combo.rb#L84" target="_blank" class="github_url">on GitHub</a>
169
-
170
- </p>
171
- <div id="M000003_source" class="dyn-source">
172
- <pre><span class="ruby-comment cmt"># File lib/inochi/util/combo.rb, line 84</span>
173
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">combinations</span> <span class="ruby-operator">&amp;</span><span class="ruby-identifier">sampler</span>
174
- <span class="ruby-identifier">all_lengths_impl</span> <span class="ruby-identifier">:combination</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">sampler</span>
175
- <span class="ruby-keyword kw">end</span></pre>
176
- </div>
177
- </div>
178
-
179
- </div>
180
-
181
- <div class="method">
182
- <div class="title" id="M000000">
183
-
184
- <a name="M000000"></a><b>enumeration</b>(sample_size = self.length, &amp;sampler)
185
-
186
- </div>
187
-
188
- <div class="description">
189
- <p>
190
- Returns all possible enumerations made from sample_size number of items
191
- from this list.
192
- </p>
193
- <h4>Parameters</h4>
194
- <dl>
195
- <dt>sample_size</dt><dd>The length of each enumeration.
196
-
197
- </dd>
198
- <dt>sampler</dt><dd>If given, each enumeration is passed to this block.
199
-
200
- </dd>
201
- </dl>
202
-
203
- </div>
204
-
205
-
206
-
207
-
208
- <div class="sourcecode">
209
- <p class="source-link">
210
- Source: <a href="javascript:toggleSource('M000000_source')" id="l_M000000_source">show</a>
211
-
212
- | <a href="http://github.com/sunaku/inochi/blob/94ea085869f0eab9b04917d057bdae5b64157781/lib/inochi/util/combo.rb#L20" target="_blank" class="github_url">on GitHub</a>
213
-
214
- </p>
215
- <div id="M000000_source" class="dyn-source">
216
- <pre><span class="ruby-comment cmt"># File lib/inochi/util/combo.rb, line 20</span>
217
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">enumeration</span>(<span class="ruby-identifier">sample_size</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">length</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">sampler</span>)
218
- <span class="ruby-keyword kw">return</span> [] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">sample_size</span> <span class="ruby-operator">&lt;</span> <span class="ruby-value">1</span>
219
-
220
- <span class="ruby-identifier">results</span> = []
221
-
222
- <span class="ruby-identifier">visitor</span> = <span class="ruby-identifier">lambda</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">parents</span><span class="ruby-operator">|</span>
223
- <span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">child</span><span class="ruby-operator">|</span>
224
- <span class="ruby-identifier">result</span> = <span class="ruby-identifier">parents</span> <span class="ruby-operator">+</span> [<span class="ruby-identifier">child</span>]
225
-
226
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">&lt;</span> <span class="ruby-identifier">sample_size</span>
227
- <span class="ruby-identifier">visitor</span>.<span class="ruby-identifier">call</span> <span class="ruby-identifier">result</span>
228
- <span class="ruby-keyword kw">else</span>
229
- <span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">result</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span>
230
- <span class="ruby-identifier">results</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">result</span>
231
- <span class="ruby-keyword kw">end</span>
232
- <span class="ruby-keyword kw">end</span>
233
- <span class="ruby-keyword kw">end</span>
234
-
235
- <span class="ruby-identifier">visitor</span>.<span class="ruby-identifier">call</span> []
236
- <span class="ruby-identifier">results</span>
237
- <span class="ruby-keyword kw">end</span></pre>
238
- </div>
239
- </div>
240
-
241
- </div>
242
-
243
- <div class="method">
244
- <div class="title" id="M000001">
245
-
246
- <a name="M000001"></a><b>enumerations</b>(&amp;sampler)
247
-
248
- </div>
249
-
250
- <div class="description">
251
- <p>
252
- Returns all possible enumerations of all possible lengths.
253
- </p>
254
- <h4>Parameters</h4>
255
- <dl>
256
- <dt>sampler</dt><dd>If given, each enumeration is passed to this block.
257
-
258
- </dd>
259
- </dl>
260
-
261
- </div>
262
-
263
-
264
-
265
-
266
- <div class="sourcecode">
267
- <p class="source-link">
268
- Source: <a href="javascript:toggleSource('M000001_source')" id="l_M000001_source">show</a>
269
-
270
- | <a href="http://github.com/sunaku/inochi/blob/94ea085869f0eab9b04917d057bdae5b64157781/lib/inochi/util/combo.rb#L52" target="_blank" class="github_url">on GitHub</a>
271
-
272
- </p>
273
- <div id="M000001_source" class="dyn-source">
274
- <pre><span class="ruby-comment cmt"># File lib/inochi/util/combo.rb, line 52</span>
275
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">enumerations</span> <span class="ruby-operator">&amp;</span><span class="ruby-identifier">sampler</span>
276
- <span class="ruby-identifier">all_lengths_impl</span> <span class="ruby-identifier">:enumeration</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">sampler</span>
277
- <span class="ruby-keyword kw">end</span></pre>
278
- </div>
279
- </div>
280
-
281
- </div>
282
-
283
- <div class="method">
284
- <div class="title" id="M000004">
285
-
286
- <a name="M000004"></a><b>permutation</b>(sample_size = self.length, &amp;sampler)
287
-
288
- </div>
289
-
290
- <div class="description">
291
- <p>
292
- Returns all possible permutations made from sample_size number of items
293
- from this list.
294
- </p>
295
- <h4>Parameters</h4>
296
- <dl>
297
- <dt>sample_size</dt><dd>The length of each permutation.
298
-
299
- </dd>
300
- <dt>sampler</dt><dd>If given, each permutation is passed to this block.
301
-
302
- </dd>
303
- </dl>
304
-
305
- </div>
306
-
307
-
308
-
309
-
310
- <div class="sourcecode">
311
- <p class="source-link">
312
- Source: <a href="javascript:toggleSource('M000004_source')" id="l_M000004_source">show</a>
313
-
314
- | <a href="http://github.com/sunaku/inochi/blob/94ea085869f0eab9b04917d057bdae5b64157781/lib/inochi/util/combo.rb#L102" target="_blank" class="github_url">on GitHub</a>
315
-
316
- </p>
317
- <div id="M000004_source" class="dyn-source">
318
- <pre><span class="ruby-comment cmt"># File lib/inochi/util/combo.rb, line 102</span>
319
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">permutation</span>(<span class="ruby-identifier">sample_size</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">length</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">sampler</span>)
320
- <span class="ruby-identifier">pnk_cnk_impl</span>(<span class="ruby-identifier">sample_size</span>, <span class="ruby-keyword kw">false</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">sampler</span>)
321
- <span class="ruby-keyword kw">end</span></pre>
322
- </div>
323
- </div>
324
-
325
- </div>
326
-
327
- <div class="method">
328
- <div class="title" id="M000005">
329
-
330
- <a name="M000005"></a><b>permutations</b>(&amp;sampler)
331
-
332
- </div>
333
-
334
- <div class="description">
335
- <p>
336
- Returns all possible permutations of all possible lengths.
337
- </p>
338
- <h4>Parameters</h4>
339
- <dl>
340
- <dt>sampler</dt><dd>If given, each permutation is passed to this block.
341
-
342
- </dd>
343
- </dl>
344
-
345
- </div>
346
-
347
-
348
-
349
-
350
- <div class="sourcecode">
351
- <p class="source-link">
352
- Source: <a href="javascript:toggleSource('M000005_source')" id="l_M000005_source">show</a>
353
-
354
- | <a href="http://github.com/sunaku/inochi/blob/94ea085869f0eab9b04917d057bdae5b64157781/lib/inochi/util/combo.rb#L116" target="_blank" class="github_url">on GitHub</a>
355
-
356
- </p>
357
- <div id="M000005_source" class="dyn-source">
358
- <pre><span class="ruby-comment cmt"># File lib/inochi/util/combo.rb, line 116</span>
359
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">permutations</span> <span class="ruby-operator">&amp;</span><span class="ruby-identifier">sampler</span>
360
- <span class="ruby-identifier">all_lengths_impl</span> <span class="ruby-identifier">:permutation</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">sampler</span>
361
- <span class="ruby-keyword kw">end</span></pre>
362
- </div>
363
- </div>
364
-
365
- </div>
366
-
367
- </div>
368
- </div>
369
- </body>
370
- </html>