vex 0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. data/Manifest +112 -0
  2. data/Rakefile +53 -0
  3. data/VERSION +1 -0
  4. data/config/README +2 -0
  5. data/config/dependencies.rb +10 -0
  6. data/config/gem.yml +7 -0
  7. data/init.rb +36 -0
  8. data/lib/nokogiri/nokogiri_ext.rb +96 -0
  9. data/lib/vex.rb +5 -0
  10. data/lib/vex/action_controller.rb +4 -0
  11. data/lib/vex/action_controller/verify_action.rb +97 -0
  12. data/lib/vex/action_controller/whitelisted_actions.rb +45 -0
  13. data/lib/vex/active_record.rb +3 -0
  14. data/lib/vex/active_record/__init__.rb +0 -0
  15. data/lib/vex/active_record/advisory_lock.rb +11 -0
  16. data/lib/vex/active_record/advisory_lock/mysql_adapter.rb +16 -0
  17. data/lib/vex/active_record/advisory_lock/sqlite_adapter.rb +78 -0
  18. data/lib/vex/active_record/belongs_to_many.rb +143 -0
  19. data/lib/vex/active_record/find_by_extension.rb +70 -0
  20. data/lib/vex/active_record/gem.rb +8 -0
  21. data/lib/vex/active_record/lite_table.rb +139 -0
  22. data/lib/vex/active_record/lite_view.rb +140 -0
  23. data/lib/vex/active_record/mass_load.rb +65 -0
  24. data/lib/vex/active_record/mysql_backup.rb +21 -0
  25. data/lib/vex/active_record/plugins/default_value_for/LICENSE.TXT +19 -0
  26. data/lib/vex/active_record/plugins/default_value_for/README.rdoc +421 -0
  27. data/lib/vex/active_record/plugins/default_value_for/Rakefile +6 -0
  28. data/lib/vex/active_record/plugins/default_value_for/init.rb +91 -0
  29. data/lib/vex/active_record/plugins/default_value_for/test.rb +279 -0
  30. data/lib/vex/active_record/plugins/default_value_for/test.sqlite3 +0 -0
  31. data/lib/vex/active_record/random_id.rb +56 -0
  32. data/lib/vex/active_record/resolver.rb +49 -0
  33. data/lib/vex/active_record/serialize_hash.rb +125 -0
  34. data/lib/vex/active_record/to_html.rb +53 -0
  35. data/lib/vex/active_record/validate.rb +76 -0
  36. data/lib/vex/active_record/validation_error_ext.rb +68 -0
  37. data/lib/vex/base.rb +2 -0
  38. data/lib/vex/base/app.rb +75 -0
  39. data/lib/vex/base/array/at_random.rb +17 -0
  40. data/lib/vex/base/array/cross.rb +26 -0
  41. data/lib/vex/base/array/each_batch.rb +32 -0
  42. data/lib/vex/base/array/parallel_map.rb +98 -0
  43. data/lib/vex/base/deprecation.rb +41 -0
  44. data/lib/vex/base/enumerable/deep.rb +95 -0
  45. data/lib/vex/base/enumerable/enumerable_ext.rb +59 -0
  46. data/lib/vex/base/enumerable/progress.rb +71 -0
  47. data/lib/vex/base/filesystem/fast_copy.rb +61 -0
  48. data/lib/vex/base/filesystem/grep.rb +34 -0
  49. data/lib/vex/base/filesystem/lock.rb +43 -0
  50. data/lib/vex/base/filesystem/lock.rb.test.lck +0 -0
  51. data/lib/vex/base/filesystem/lock.rb.test.pid +1 -0
  52. data/lib/vex/base/filesystem/make_dirs.rb +94 -0
  53. data/lib/vex/base/filesystem/parse_filename.rb +36 -0
  54. data/lib/vex/base/filesystem/tmp_file.rb +87 -0
  55. data/lib/vex/base/filesystem/write.rb +43 -0
  56. data/lib/vex/base/hash/compact.rb +38 -0
  57. data/lib/vex/base/hash/cross.rb +117 -0
  58. data/lib/vex/base/hash/easy_access.rb +141 -0
  59. data/lib/vex/base/hash/ensure_keys.rb +18 -0
  60. data/lib/vex/base/hash/extract.rb +71 -0
  61. data/lib/vex/base/hash/extras.rb +62 -0
  62. data/lib/vex/base/hash/inspect.rb +17 -0
  63. data/lib/vex/base/hash/simple_access_methods.rb +74 -0
  64. data/lib/vex/base/invalid_argument/invalid_argument.rb +97 -0
  65. data/lib/vex/base/local_conf.rb +35 -0
  66. data/lib/vex/base/net/http_ext.rb +227 -0
  67. data/lib/vex/base/net/socket_ext.rb +43 -0
  68. data/lib/vex/base/object/insp.rb +123 -0
  69. data/lib/vex/base/object/multiple_attributes.rb +58 -0
  70. data/lib/vex/base/object/singleton_methods.rb +23 -0
  71. data/lib/vex/base/object/with_benchmark.rb +110 -0
  72. data/lib/vex/base/range_array.rb +40 -0
  73. data/lib/vex/base/range_ext.rb +28 -0
  74. data/lib/vex/base/safe_token.rb +156 -0
  75. data/lib/vex/base/string/string_ext.rb +136 -0
  76. data/lib/vex/base/thread/deferred.rb +52 -0
  77. data/lib/vex/base/thread/sleep.rb +11 -0
  78. data/lib/vex/base/time/date_ext.rb +12 -0
  79. data/lib/vex/boot.rb +40 -0
  80. data/lib/vex/boot/array.rb +22 -0
  81. data/lib/vex/boot/blank.rb +41 -0
  82. data/lib/vex/boot/string.rb +60 -0
  83. data/migration/create_request_log.rb +28 -0
  84. data/r.rb +35 -0
  85. data/script/console +19 -0
  86. data/script/rebuild +7 -0
  87. data/tasks/echoe.rake +52 -0
  88. data/tasks/validate_db.rake +14 -0
  89. data/test/ar.rb +30 -0
  90. data/test/auto.rb +31 -0
  91. data/test/base-tests/local_conf.rb +25 -0
  92. data/test/base.rb +2 -0
  93. data/test/boot.rb +3 -0
  94. data/test/config/local.defaults.yml +4 -0
  95. data/test/config/local.yml +8 -0
  96. data/test/test.sqlite3 +0 -0
  97. data/test/test.sqlite3.Class#create.lck +0 -0
  98. data/test/test.sqlite3.Class#create.lck.lck +0 -0
  99. data/test/test.sqlite3.Class#create.lck.pid +1 -0
  100. data/test/test.sqlite3.Class#create.pid +1 -0
  101. data/test/test.sqlite3.LiteView.make.holders__view_dummy.lck +0 -0
  102. data/test/test.sqlite3.LiteView.make.holders__view_dummy.lck.lck +0 -0
  103. data/test/test.sqlite3.LiteView.make.holders__view_dummy.lck.pid +1 -0
  104. data/test/test.sqlite3.LiteView.make.holders__view_dummy.pid +1 -0
  105. data/test/test.sqlite3.vex.lck +0 -0
  106. data/test/test_helper.rb +49 -0
  107. data/test/tmp/copy.dat +1 -0
  108. data/test/tmp/lock.sqlite3 +0 -0
  109. data/test/tmp/lock.sqlite3.etest.lck +0 -0
  110. data/test/tmp/lock.sqlite3.etest.pid +1 -0
  111. data/test/tmp/somedata.dat +61 -0
  112. data/vex.gemspec +49 -0
  113. data/vex.tmproj +186 -0
  114. metadata +305 -0
metadata ADDED
@@ -0,0 +1,305 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: vex
3
+ version: !ruby/object:Gem::Version
4
+ version: "0.2"
5
+ platform: ruby
6
+ authors:
7
+ - pboy
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2010-03-05 00:00:00 +01:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: nokogiri
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: "0"
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: openssl
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: "0"
34
+ version:
35
+ - !ruby/object:Gem::Dependency
36
+ name: etest
37
+ type: :runtime
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: "0"
44
+ version:
45
+ - !ruby/object:Gem::Dependency
46
+ name: sanitize
47
+ type: :runtime
48
+ version_requirement:
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: "0"
54
+ version:
55
+ - !ruby/object:Gem::Dependency
56
+ name: htmlentities
57
+ type: :runtime
58
+ version_requirement:
59
+ version_requirements: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: "0"
64
+ version:
65
+ - !ruby/object:Gem::Dependency
66
+ name: json
67
+ type: :runtime
68
+ version_requirement:
69
+ version_requirements: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: "0"
74
+ version:
75
+ description: "Vex: some ruby extensions"
76
+ email: eno-pboy@open-lab.org
77
+ executables: []
78
+
79
+ extensions: []
80
+
81
+ extra_rdoc_files:
82
+ - lib/nokogiri/nokogiri_ext.rb
83
+ - lib/vex.rb
84
+ - lib/vex/action_controller.rb
85
+ - lib/vex/action_controller/verify_action.rb
86
+ - lib/vex/action_controller/whitelisted_actions.rb
87
+ - lib/vex/active_record.rb
88
+ - lib/vex/active_record/__init__.rb
89
+ - lib/vex/active_record/advisory_lock.rb
90
+ - lib/vex/active_record/advisory_lock/mysql_adapter.rb
91
+ - lib/vex/active_record/advisory_lock/sqlite_adapter.rb
92
+ - lib/vex/active_record/belongs_to_many.rb
93
+ - lib/vex/active_record/find_by_extension.rb
94
+ - lib/vex/active_record/gem.rb
95
+ - lib/vex/active_record/lite_table.rb
96
+ - lib/vex/active_record/lite_view.rb
97
+ - lib/vex/active_record/mass_load.rb
98
+ - lib/vex/active_record/mysql_backup.rb
99
+ - lib/vex/active_record/plugins/default_value_for/LICENSE.TXT
100
+ - lib/vex/active_record/plugins/default_value_for/README.rdoc
101
+ - lib/vex/active_record/plugins/default_value_for/Rakefile
102
+ - lib/vex/active_record/plugins/default_value_for/init.rb
103
+ - lib/vex/active_record/plugins/default_value_for/test.rb
104
+ - lib/vex/active_record/plugins/default_value_for/test.sqlite3
105
+ - lib/vex/active_record/random_id.rb
106
+ - lib/vex/active_record/resolver.rb
107
+ - lib/vex/active_record/serialize_hash.rb
108
+ - lib/vex/active_record/to_html.rb
109
+ - lib/vex/active_record/validate.rb
110
+ - lib/vex/active_record/validation_error_ext.rb
111
+ - lib/vex/base.rb
112
+ - lib/vex/base/app.rb
113
+ - lib/vex/base/array/at_random.rb
114
+ - lib/vex/base/array/cross.rb
115
+ - lib/vex/base/array/each_batch.rb
116
+ - lib/vex/base/array/parallel_map.rb
117
+ - lib/vex/base/deprecation.rb
118
+ - lib/vex/base/enumerable/deep.rb
119
+ - lib/vex/base/enumerable/enumerable_ext.rb
120
+ - lib/vex/base/enumerable/progress.rb
121
+ - lib/vex/base/filesystem/fast_copy.rb
122
+ - lib/vex/base/filesystem/grep.rb
123
+ - lib/vex/base/filesystem/lock.rb
124
+ - lib/vex/base/filesystem/lock.rb.test.lck
125
+ - lib/vex/base/filesystem/lock.rb.test.pid
126
+ - lib/vex/base/filesystem/make_dirs.rb
127
+ - lib/vex/base/filesystem/parse_filename.rb
128
+ - lib/vex/base/filesystem/tmp_file.rb
129
+ - lib/vex/base/filesystem/write.rb
130
+ - lib/vex/base/hash/compact.rb
131
+ - lib/vex/base/hash/cross.rb
132
+ - lib/vex/base/hash/easy_access.rb
133
+ - lib/vex/base/hash/ensure_keys.rb
134
+ - lib/vex/base/hash/extract.rb
135
+ - lib/vex/base/hash/extras.rb
136
+ - lib/vex/base/hash/inspect.rb
137
+ - lib/vex/base/hash/simple_access_methods.rb
138
+ - lib/vex/base/invalid_argument/invalid_argument.rb
139
+ - lib/vex/base/local_conf.rb
140
+ - lib/vex/base/net/http_ext.rb
141
+ - lib/vex/base/net/socket_ext.rb
142
+ - lib/vex/base/object/insp.rb
143
+ - lib/vex/base/object/multiple_attributes.rb
144
+ - lib/vex/base/object/singleton_methods.rb
145
+ - lib/vex/base/object/with_benchmark.rb
146
+ - lib/vex/base/range_array.rb
147
+ - lib/vex/base/range_ext.rb
148
+ - lib/vex/base/safe_token.rb
149
+ - lib/vex/base/string/string_ext.rb
150
+ - lib/vex/base/thread/deferred.rb
151
+ - lib/vex/base/thread/sleep.rb
152
+ - lib/vex/base/time/date_ext.rb
153
+ - lib/vex/boot.rb
154
+ - lib/vex/boot/array.rb
155
+ - lib/vex/boot/blank.rb
156
+ - lib/vex/boot/string.rb
157
+ - tasks/echoe.rake
158
+ - tasks/validate_db.rake
159
+ files:
160
+ - Manifest
161
+ - Rakefile
162
+ - VERSION
163
+ - config/README
164
+ - config/dependencies.rb
165
+ - config/gem.yml
166
+ - init.rb
167
+ - lib/nokogiri/nokogiri_ext.rb
168
+ - lib/vex.rb
169
+ - lib/vex/action_controller.rb
170
+ - lib/vex/action_controller/verify_action.rb
171
+ - lib/vex/action_controller/whitelisted_actions.rb
172
+ - lib/vex/active_record.rb
173
+ - lib/vex/active_record/__init__.rb
174
+ - lib/vex/active_record/advisory_lock.rb
175
+ - lib/vex/active_record/advisory_lock/mysql_adapter.rb
176
+ - lib/vex/active_record/advisory_lock/sqlite_adapter.rb
177
+ - lib/vex/active_record/belongs_to_many.rb
178
+ - lib/vex/active_record/find_by_extension.rb
179
+ - lib/vex/active_record/gem.rb
180
+ - lib/vex/active_record/lite_table.rb
181
+ - lib/vex/active_record/lite_view.rb
182
+ - lib/vex/active_record/mass_load.rb
183
+ - lib/vex/active_record/mysql_backup.rb
184
+ - lib/vex/active_record/plugins/default_value_for/LICENSE.TXT
185
+ - lib/vex/active_record/plugins/default_value_for/README.rdoc
186
+ - lib/vex/active_record/plugins/default_value_for/Rakefile
187
+ - lib/vex/active_record/plugins/default_value_for/init.rb
188
+ - lib/vex/active_record/plugins/default_value_for/test.rb
189
+ - lib/vex/active_record/plugins/default_value_for/test.sqlite3
190
+ - lib/vex/active_record/random_id.rb
191
+ - lib/vex/active_record/resolver.rb
192
+ - lib/vex/active_record/serialize_hash.rb
193
+ - lib/vex/active_record/to_html.rb
194
+ - lib/vex/active_record/validate.rb
195
+ - lib/vex/active_record/validation_error_ext.rb
196
+ - lib/vex/base.rb
197
+ - lib/vex/base/app.rb
198
+ - lib/vex/base/array/at_random.rb
199
+ - lib/vex/base/array/cross.rb
200
+ - lib/vex/base/array/each_batch.rb
201
+ - lib/vex/base/array/parallel_map.rb
202
+ - lib/vex/base/deprecation.rb
203
+ - lib/vex/base/enumerable/deep.rb
204
+ - lib/vex/base/enumerable/enumerable_ext.rb
205
+ - lib/vex/base/enumerable/progress.rb
206
+ - lib/vex/base/filesystem/fast_copy.rb
207
+ - lib/vex/base/filesystem/grep.rb
208
+ - lib/vex/base/filesystem/lock.rb
209
+ - lib/vex/base/filesystem/lock.rb.test.lck
210
+ - lib/vex/base/filesystem/lock.rb.test.pid
211
+ - lib/vex/base/filesystem/make_dirs.rb
212
+ - lib/vex/base/filesystem/parse_filename.rb
213
+ - lib/vex/base/filesystem/tmp_file.rb
214
+ - lib/vex/base/filesystem/write.rb
215
+ - lib/vex/base/hash/compact.rb
216
+ - lib/vex/base/hash/cross.rb
217
+ - lib/vex/base/hash/easy_access.rb
218
+ - lib/vex/base/hash/ensure_keys.rb
219
+ - lib/vex/base/hash/extract.rb
220
+ - lib/vex/base/hash/extras.rb
221
+ - lib/vex/base/hash/inspect.rb
222
+ - lib/vex/base/hash/simple_access_methods.rb
223
+ - lib/vex/base/invalid_argument/invalid_argument.rb
224
+ - lib/vex/base/local_conf.rb
225
+ - lib/vex/base/net/http_ext.rb
226
+ - lib/vex/base/net/socket_ext.rb
227
+ - lib/vex/base/object/insp.rb
228
+ - lib/vex/base/object/multiple_attributes.rb
229
+ - lib/vex/base/object/singleton_methods.rb
230
+ - lib/vex/base/object/with_benchmark.rb
231
+ - lib/vex/base/range_array.rb
232
+ - lib/vex/base/range_ext.rb
233
+ - lib/vex/base/safe_token.rb
234
+ - lib/vex/base/string/string_ext.rb
235
+ - lib/vex/base/thread/deferred.rb
236
+ - lib/vex/base/thread/sleep.rb
237
+ - lib/vex/base/time/date_ext.rb
238
+ - lib/vex/boot.rb
239
+ - lib/vex/boot/array.rb
240
+ - lib/vex/boot/blank.rb
241
+ - lib/vex/boot/string.rb
242
+ - migration/create_request_log.rb
243
+ - r.rb
244
+ - script/console
245
+ - script/rebuild
246
+ - tasks/echoe.rake
247
+ - tasks/validate_db.rake
248
+ - test/ar.rb
249
+ - test/auto.rb
250
+ - test/base-tests/local_conf.rb
251
+ - test/base.rb
252
+ - test/boot.rb
253
+ - test/config/local.defaults.yml
254
+ - test/config/local.yml
255
+ - test/test.sqlite3
256
+ - test/test.sqlite3.Class#create.lck
257
+ - test/test.sqlite3.Class#create.lck.lck
258
+ - test/test.sqlite3.Class#create.lck.pid
259
+ - test/test.sqlite3.Class#create.pid
260
+ - test/test.sqlite3.LiteView.make.holders__view_dummy.lck
261
+ - test/test.sqlite3.LiteView.make.holders__view_dummy.lck.lck
262
+ - test/test.sqlite3.LiteView.make.holders__view_dummy.lck.pid
263
+ - test/test.sqlite3.LiteView.make.holders__view_dummy.pid
264
+ - test/test.sqlite3.vex.lck
265
+ - test/test_helper.rb
266
+ - test/tmp/copy.dat
267
+ - test/tmp/lock.sqlite3
268
+ - test/tmp/lock.sqlite3.etest.lck
269
+ - test/tmp/lock.sqlite3.etest.pid
270
+ - test/tmp/somedata.dat
271
+ - vex.tmproj
272
+ - vex.gemspec
273
+ has_rdoc: true
274
+ homepage: http://github.com/pboy/vex
275
+ licenses: []
276
+
277
+ post_install_message:
278
+ rdoc_options:
279
+ - --line-numbers
280
+ - --inline-source
281
+ - --title
282
+ - Vex
283
+ require_paths:
284
+ - lib
285
+ required_ruby_version: !ruby/object:Gem::Requirement
286
+ requirements:
287
+ - - ">="
288
+ - !ruby/object:Gem::Version
289
+ version: "0"
290
+ version:
291
+ required_rubygems_version: !ruby/object:Gem::Requirement
292
+ requirements:
293
+ - - ">="
294
+ - !ruby/object:Gem::Version
295
+ version: "1.2"
296
+ version:
297
+ requirements: []
298
+
299
+ rubyforge_project: vex
300
+ rubygems_version: 1.3.5
301
+ signing_key:
302
+ specification_version: 3
303
+ summary: "Vex: some ruby extensions"
304
+ test_files:
305
+ - test/test_helper.rb