milkode 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. data/.document +5 -0
  2. data/Gemfile +12 -0
  3. data/Gemfile.lock +18 -0
  4. data/HISTORY.rdoc +5 -0
  5. data/LICENSE.txt +20 -0
  6. data/README.rdoc +19 -0
  7. data/Rakefile +78 -0
  8. data/VERSION +1 -0
  9. data/bin/cdv +6 -0
  10. data/bin/cdview +10 -0
  11. data/bin/milk +10 -0
  12. data/lib/milkode/cdstk/cdstk.rb +508 -0
  13. data/lib/milkode/cdstk/cdstk_yaml.rb +106 -0
  14. data/lib/milkode/cdstk/cli_cdstk.rb +103 -0
  15. data/lib/milkode/cdstk/cli_cdstksub.rb +102 -0
  16. data/lib/milkode/cdview/cli_cdview.rb +43 -0
  17. data/lib/milkode/cdweb/app.rb +136 -0
  18. data/lib/milkode/cdweb/cli_cdweb.rb +111 -0
  19. data/lib/milkode/cdweb/config.ru +3 -0
  20. data/lib/milkode/cdweb/lib/coderay_wrapper.rb +94 -0
  21. data/lib/milkode/cdweb/lib/command.rb +67 -0
  22. data/lib/milkode/cdweb/lib/database.rb +260 -0
  23. data/lib/milkode/cdweb/lib/grep.rb +68 -0
  24. data/lib/milkode/cdweb/lib/mkurl.rb +56 -0
  25. data/lib/milkode/cdweb/lib/query.rb +81 -0
  26. data/lib/milkode/cdweb/lib/search_contents.rb +117 -0
  27. data/lib/milkode/cdweb/lib/search_files.rb +88 -0
  28. data/lib/milkode/cdweb/public/css/coderay.css +131 -0
  29. data/lib/milkode/cdweb/public/css/gren.css +75 -0
  30. data/lib/milkode/cdweb/public/images/directory.png +0 -0
  31. data/lib/milkode/cdweb/public/images/file.png +0 -0
  32. data/lib/milkode/cdweb/public/images/gren-icon-mini.png +0 -0
  33. data/lib/milkode/cdweb/public/images/gren-icon.png +0 -0
  34. data/lib/milkode/cdweb/views/filelist.haml +14 -0
  35. data/lib/milkode/cdweb/views/help.haml +16 -0
  36. data/lib/milkode/cdweb/views/index.haml +17 -0
  37. data/lib/milkode/cdweb/views/layout.haml +33 -0
  38. data/lib/milkode/cdweb/views/search.haml +12 -0
  39. data/lib/milkode/cdweb/views/view.haml +16 -0
  40. data/lib/milkode/common/dbdir.rb +39 -0
  41. data/lib/milkode/common/display_util.rb +62 -0
  42. data/lib/milkode/common/grenfiletest.rb +19 -0
  43. data/lib/milkode/common/grensnip.rb +37 -0
  44. data/lib/milkode/common/platform.rb +17 -0
  45. data/lib/milkode/common/string_snip.rb +61 -0
  46. data/lib/milkode/common/util.rb +144 -0
  47. data/lib/milkode/findgrep/findgrep.rb +408 -0
  48. data/lib/milkode/findgrep/result.rb +43 -0
  49. data/milkode.gemspec +159 -0
  50. data/test/data/abc.zip +0 -0
  51. data/test/data/nodir_abc.zip +0 -0
  52. data/test/data/nodir_abc_xpi.xpi +0 -0
  53. data/test/file_assert.rb +41 -0
  54. data/test/file_test_utils.rb +59 -0
  55. data/test/rake_test_loader.rb +7 -0
  56. data/test/runner.rb +11 -0
  57. data/test/test_bin_exec.rb +30 -0
  58. data/test/test_cdstk.rb +90 -0
  59. data/test/test_cdstk_yaml.rb +157 -0
  60. data/test/test_coderay_wrapper.rb +22 -0
  61. data/test/test_coderay_wrapper_data.rb +91 -0
  62. data/test/test_database.rb +78 -0
  63. data/test/test_dbdir.rb +60 -0
  64. data/test/test_gren_util.rb +34 -0
  65. data/test/test_helper.rb +2 -0
  66. data/test/test_mkurl.rb +30 -0
  67. data/test/test_query.rb +54 -0
  68. data/test/test_string_snip.rb +31 -0
  69. data/test/test_util.rb +40 -0
  70. metadata +300 -0
metadata ADDED
@@ -0,0 +1,300 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: milkode
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 1
8
+ - 0
9
+ version: 0.1.0
10
+ platform: ruby
11
+ authors:
12
+ - ongaeshi
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2011-07-25 00:00:00 +09:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ version_requirements: &id001 !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - ~>
24
+ - !ruby/object:Gem::Version
25
+ segments:
26
+ - 1
27
+ - 0
28
+ - 0
29
+ version: 1.0.0
30
+ name: bundler
31
+ requirement: *id001
32
+ prerelease: false
33
+ type: :development
34
+ - !ruby/object:Gem::Dependency
35
+ version_requirements: &id002 !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ~>
38
+ - !ruby/object:Gem::Version
39
+ segments:
40
+ - 1
41
+ - 5
42
+ - 2
43
+ version: 1.5.2
44
+ name: jeweler
45
+ requirement: *id002
46
+ prerelease: false
47
+ type: :development
48
+ - !ruby/object:Gem::Dependency
49
+ version_requirements: &id003 !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ segments:
54
+ - 0
55
+ version: "0"
56
+ name: rcov
57
+ requirement: *id003
58
+ prerelease: false
59
+ type: :development
60
+ - !ruby/object:Gem::Dependency
61
+ version_requirements: &id004 !ruby/object:Gem::Requirement
62
+ requirements:
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ segments:
66
+ - 1
67
+ - 2
68
+ - 0
69
+ version: 1.2.0
70
+ name: termcolor
71
+ requirement: *id004
72
+ prerelease: false
73
+ type: :runtime
74
+ - !ruby/object:Gem::Dependency
75
+ version_requirements: &id005 !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ segments:
80
+ - 1
81
+ - 0
82
+ - 0
83
+ version: 1.0.0
84
+ name: rroonga
85
+ requirement: *id005
86
+ prerelease: false
87
+ type: :runtime
88
+ - !ruby/object:Gem::Dependency
89
+ version_requirements: &id006 !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ segments:
94
+ - 1
95
+ - 2
96
+ - 1
97
+ version: 1.2.1
98
+ name: rack
99
+ requirement: *id006
100
+ prerelease: false
101
+ type: :runtime
102
+ - !ruby/object:Gem::Dependency
103
+ version_requirements: &id007 !ruby/object:Gem::Requirement
104
+ requirements:
105
+ - - ">="
106
+ - !ruby/object:Gem::Version
107
+ segments:
108
+ - 1
109
+ - 2
110
+ - 6
111
+ version: 1.2.6
112
+ name: sinatra
113
+ requirement: *id007
114
+ prerelease: false
115
+ type: :runtime
116
+ - !ruby/object:Gem::Dependency
117
+ version_requirements: &id008 !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - ">="
120
+ - !ruby/object:Gem::Version
121
+ segments:
122
+ - 0
123
+ - 3
124
+ - 7
125
+ version: 0.3.7
126
+ name: launchy
127
+ requirement: *id008
128
+ prerelease: false
129
+ type: :runtime
130
+ - !ruby/object:Gem::Dependency
131
+ version_requirements: &id009 !ruby/object:Gem::Requirement
132
+ requirements:
133
+ - - ">="
134
+ - !ruby/object:Gem::Version
135
+ segments:
136
+ - 0
137
+ - 9
138
+ - 8
139
+ version: 0.9.8
140
+ name: coderay
141
+ requirement: *id009
142
+ prerelease: false
143
+ type: :runtime
144
+ - !ruby/object:Gem::Dependency
145
+ version_requirements: &id010 !ruby/object:Gem::Requirement
146
+ requirements:
147
+ - - ">="
148
+ - !ruby/object:Gem::Version
149
+ segments:
150
+ - 1
151
+ - 2
152
+ - 10
153
+ version: 1.2.10
154
+ name: thin
155
+ requirement: *id010
156
+ prerelease: false
157
+ type: :runtime
158
+ - !ruby/object:Gem::Dependency
159
+ version_requirements: &id011 !ruby/object:Gem::Requirement
160
+ requirements:
161
+ - - ">="
162
+ - !ruby/object:Gem::Version
163
+ segments:
164
+ - 0
165
+ - 3
166
+ - 0
167
+ version: 0.3.0
168
+ name: archive-zip
169
+ requirement: *id011
170
+ prerelease: false
171
+ type: :runtime
172
+ description: longer description of your gem
173
+ email: ongaeshi0621@gmail.com
174
+ executables:
175
+ - cdv
176
+ - milk
177
+ - cdview
178
+ extensions: []
179
+
180
+ extra_rdoc_files:
181
+ - LICENSE.txt
182
+ - README.rdoc
183
+ files:
184
+ - .document
185
+ - Gemfile
186
+ - Gemfile.lock
187
+ - HISTORY.rdoc
188
+ - LICENSE.txt
189
+ - README.rdoc
190
+ - Rakefile
191
+ - VERSION
192
+ - bin/cdv
193
+ - bin/cdview
194
+ - bin/milk
195
+ - lib/milkode/cdstk/cdstk.rb
196
+ - lib/milkode/cdstk/cdstk_yaml.rb
197
+ - lib/milkode/cdstk/cli_cdstk.rb
198
+ - lib/milkode/cdstk/cli_cdstksub.rb
199
+ - lib/milkode/cdview/cli_cdview.rb
200
+ - lib/milkode/cdweb/app.rb
201
+ - lib/milkode/cdweb/cli_cdweb.rb
202
+ - lib/milkode/cdweb/config.ru
203
+ - lib/milkode/cdweb/lib/coderay_wrapper.rb
204
+ - lib/milkode/cdweb/lib/command.rb
205
+ - lib/milkode/cdweb/lib/database.rb
206
+ - lib/milkode/cdweb/lib/grep.rb
207
+ - lib/milkode/cdweb/lib/mkurl.rb
208
+ - lib/milkode/cdweb/lib/query.rb
209
+ - lib/milkode/cdweb/lib/search_contents.rb
210
+ - lib/milkode/cdweb/lib/search_files.rb
211
+ - lib/milkode/cdweb/public/css/coderay.css
212
+ - lib/milkode/cdweb/public/css/gren.css
213
+ - lib/milkode/cdweb/public/images/directory.png
214
+ - lib/milkode/cdweb/public/images/file.png
215
+ - lib/milkode/cdweb/public/images/gren-icon-mini.png
216
+ - lib/milkode/cdweb/public/images/gren-icon.png
217
+ - lib/milkode/cdweb/views/filelist.haml
218
+ - lib/milkode/cdweb/views/help.haml
219
+ - lib/milkode/cdweb/views/index.haml
220
+ - lib/milkode/cdweb/views/layout.haml
221
+ - lib/milkode/cdweb/views/search.haml
222
+ - lib/milkode/cdweb/views/view.haml
223
+ - lib/milkode/common/dbdir.rb
224
+ - lib/milkode/common/display_util.rb
225
+ - lib/milkode/common/grenfiletest.rb
226
+ - lib/milkode/common/grensnip.rb
227
+ - lib/milkode/common/platform.rb
228
+ - lib/milkode/common/string_snip.rb
229
+ - lib/milkode/common/util.rb
230
+ - lib/milkode/findgrep/findgrep.rb
231
+ - lib/milkode/findgrep/result.rb
232
+ - milkode.gemspec
233
+ - test/data/abc.zip
234
+ - test/data/nodir_abc.zip
235
+ - test/data/nodir_abc_xpi.xpi
236
+ - test/file_assert.rb
237
+ - test/file_test_utils.rb
238
+ - test/rake_test_loader.rb
239
+ - test/runner.rb
240
+ - test/test_bin_exec.rb
241
+ - test/test_cdstk.rb
242
+ - test/test_cdstk_yaml.rb
243
+ - test/test_coderay_wrapper.rb
244
+ - test/test_coderay_wrapper_data.rb
245
+ - test/test_database.rb
246
+ - test/test_dbdir.rb
247
+ - test/test_gren_util.rb
248
+ - test/test_helper.rb
249
+ - test/test_mkurl.rb
250
+ - test/test_query.rb
251
+ - test/test_string_snip.rb
252
+ - test/test_util.rb
253
+ has_rdoc: true
254
+ homepage: http://github.com/ongaeshi/milkode
255
+ licenses:
256
+ - MIT
257
+ post_install_message:
258
+ rdoc_options: []
259
+
260
+ require_paths:
261
+ - lib
262
+ required_ruby_version: !ruby/object:Gem::Requirement
263
+ requirements:
264
+ - - ">="
265
+ - !ruby/object:Gem::Version
266
+ segments:
267
+ - 0
268
+ version: "0"
269
+ required_rubygems_version: !ruby/object:Gem::Requirement
270
+ requirements:
271
+ - - ">="
272
+ - !ruby/object:Gem::Version
273
+ segments:
274
+ - 0
275
+ version: "0"
276
+ requirements: []
277
+
278
+ rubyforge_project:
279
+ rubygems_version: 1.3.6
280
+ signing_key:
281
+ specification_version: 3
282
+ summary: Line based local source(src) code search engin & web-app
283
+ test_files:
284
+ - test/file_assert.rb
285
+ - test/file_test_utils.rb
286
+ - test/rake_test_loader.rb
287
+ - test/runner.rb
288
+ - test/test_bin_exec.rb
289
+ - test/test_cdstk.rb
290
+ - test/test_cdstk_yaml.rb
291
+ - test/test_coderay_wrapper.rb
292
+ - test/test_coderay_wrapper_data.rb
293
+ - test/test_database.rb
294
+ - test/test_dbdir.rb
295
+ - test/test_gren_util.rb
296
+ - test/test_helper.rb
297
+ - test/test_mkurl.rb
298
+ - test/test_query.rb
299
+ - test/test_string_snip.rb
300
+ - test/test_util.rb