zucker 8 → 9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (366) hide show
  1. data/CHANGELOG +14 -0
  2. data/MIT-LICENSE +1 -1
  3. data/README +1 -1
  4. data/Rakefile +33 -40
  5. data/desc/alias_for.yaml +17 -0
  6. data/desc/aliases.yaml +18 -0
  7. data/desc/array.yaml +13 -0
  8. data/desc/array_to_proc.yaml +16 -0
  9. data/desc/binding.yaml +22 -0
  10. data/desc/blank.yaml +9 -0
  11. data/desc/cc.yaml +10 -0
  12. data/desc/class_to_proc.yaml +11 -0
  13. data/desc/dd.yaml +23 -0
  14. data/desc/egonil.yaml +15 -0
  15. data/desc/engine.yaml +15 -0
  16. data/desc/enumerable.yaml +10 -0
  17. data/desc/file.yaml +15 -0
  18. data/desc/hash.yaml +14 -0
  19. data/desc/hash_to_proc.yaml +10 -0
  20. data/desc/info.yaml +20 -0
  21. data/desc/iterate.yaml +16 -0
  22. data/desc/ivars.yaml +19 -0
  23. data/desc/kernel.yaml +14 -0
  24. data/desc/mcopy.yaml +11 -0
  25. data/desc/mm.yaml +15 -0
  26. data/desc/not.yaml +11 -0
  27. data/desc/oo.yaml +10 -0
  28. data/desc/os.yaml +19 -0
  29. data/desc/qq.yaml +11 -0
  30. data/desc/regexp_to_proc.yaml +12 -0
  31. data/desc/regexp_visualize.yaml +23 -0
  32. data/desc/sandbox.yaml +12 -0
  33. data/desc/square_brackets_for.yaml +22 -0
  34. data/desc/string.yaml +23 -0
  35. data/desc/tap.yaml +17 -0
  36. data/desc/unary.yaml +15 -0
  37. data/desc/union.yaml +10 -0
  38. data/desc/version.yaml +28 -0
  39. data/doc/zucker_doc.html +2688 -0
  40. data/doc/zucker_doc.rb +553 -0
  41. data/lib/zucker.rb +10 -9
  42. data/lib/zucker/array2proc.rb +2 -18
  43. data/lib/zucker/{2/array2proc.rb → array_to_proc.rb} +0 -0
  44. data/lib/zucker/binding.rb +4 -5
  45. data/lib/zucker/cc.rb +7 -2
  46. data/lib/zucker/class2proc.rb +2 -12
  47. data/lib/zucker/{1/class2proc.rb → class_to_proc.rb} +0 -0
  48. data/lib/zucker/file.rb +22 -0
  49. data/lib/zucker/hash2proc.rb +2 -16
  50. data/lib/zucker/{1/hash2proc.rb → hash_to_proc.rb} +0 -0
  51. data/lib/zucker/kernel.rb +4 -2
  52. data/lib/zucker/mm.rb +14 -8
  53. data/lib/zucker/regexp2proc.rb +2 -12
  54. data/lib/zucker/{1/regexp2proc.rb → regexp_to_proc.rb} +0 -0
  55. data/lib/zucker/regexp_visualize.rb +26 -0
  56. data/lib/zucker/sandbox.rb +1 -11
  57. data/spec/alias_for_spec.rb +117 -0
  58. data/spec/aliases_spec.rb +13 -0
  59. data/spec/array_spec.rb +23 -0
  60. data/spec/array_to_proc_spec.rb +12 -0
  61. data/spec/binding_spec.rb +6 -0
  62. data/spec/blank_spec.rb +20 -0
  63. data/spec/cc_spec.rb +6 -0
  64. data/spec/class_to_proc_spec.rb +9 -0
  65. data/spec/dd_spec.rb +37 -0
  66. data/spec/egonil_spec.rb +32 -0
  67. data/spec/engine_spec.rb +11 -0
  68. data/spec/enumerable_spec.rb +8 -0
  69. data/spec/file_spec.rb +30 -0
  70. data/spec/hash_spec.rb +25 -0
  71. data/spec/hash_to_proc_spec.rb +12 -0
  72. data/spec/info_spec.rb +8 -0
  73. data/spec/iterate_spec.rb +59 -0
  74. data/spec/ivars_spec.rb +20 -0
  75. data/spec/kernel_spec.rb +37 -0
  76. data/spec/mcopy_spec.rb +13 -0
  77. data/spec/mm_spec.rb +6 -0
  78. data/spec/not_spec.rb +12 -0
  79. data/spec/oo_spec.rb +6 -0
  80. data/spec/os_spec.rb +37 -0
  81. data/spec/qq_spec.rb +19 -0
  82. data/spec/regexp_to_proc_spec.rb +9 -0
  83. data/spec/regexp_visualize_spec.rb +38 -0
  84. data/spec/sandbox_spec.rb +12 -0
  85. data/spec/spec_helper.rb +18 -0
  86. data/spec/square_brackets_for_spec.rb +59 -0
  87. data/spec/string_spec.rb +65 -0
  88. data/spec/tap_spec.rb +18 -0
  89. data/spec/unary_spec.rb +26 -0
  90. data/spec/union_spec.rb +17 -0
  91. data/spec/version_spec.rb +55 -0
  92. data/zucker.gemspec +21 -0
  93. metadata +139 -323
  94. data/lib/zucker/1/D.rb +0 -21
  95. data/lib/zucker/1/aliases.rb +0 -30
  96. data/lib/zucker/1/all.rb +0 -8
  97. data/lib/zucker/1/array.rb +0 -19
  98. data/lib/zucker/1/array2proc.rb +0 -12
  99. data/lib/zucker/1/binding.rb +0 -27
  100. data/lib/zucker/1/blank.rb +0 -28
  101. data/lib/zucker/1/debug.rb +0 -6
  102. data/lib/zucker/1/default.rb +0 -27
  103. data/lib/zucker/1/egonil.rb +0 -16
  104. data/lib/zucker/1/enumerable.rb +0 -14
  105. data/lib/zucker/1/hash.rb +0 -21
  106. data/lib/zucker/1/iterate.rb +0 -25
  107. data/lib/zucker/1/ivars.rb +0 -28
  108. data/lib/zucker/1/kernel.rb +0 -22
  109. data/lib/zucker/1/mcopy.rb +0 -11
  110. data/lib/zucker/1/mm.rb +0 -33
  111. data/lib/zucker/1/sandbox.rb +0 -17
  112. data/lib/zucker/1/square_brackets_for.rb +0 -22
  113. data/lib/zucker/1/string.rb +0 -27
  114. data/lib/zucker/1/unary.rb +0 -24
  115. data/lib/zucker/1/union.rb +0 -16
  116. data/lib/zucker/2/D.rb +0 -21
  117. data/lib/zucker/2/aliases.rb +0 -30
  118. data/lib/zucker/2/all.rb +0 -8
  119. data/lib/zucker/2/array.rb +0 -19
  120. data/lib/zucker/2/binding.rb +0 -27
  121. data/lib/zucker/2/blank.rb +0 -28
  122. data/lib/zucker/2/class2proc.rb +0 -12
  123. data/lib/zucker/2/debug.rb +0 -6
  124. data/lib/zucker/2/default.rb +0 -27
  125. data/lib/zucker/2/egonil.rb +0 -16
  126. data/lib/zucker/2/enumerable.rb +0 -14
  127. data/lib/zucker/2/hash.rb +0 -21
  128. data/lib/zucker/2/hash2proc.rb +0 -16
  129. data/lib/zucker/2/info.rb +0 -166
  130. data/lib/zucker/2/iterate.rb +0 -25
  131. data/lib/zucker/2/ivars.rb +0 -28
  132. data/lib/zucker/2/kernel.rb +0 -20
  133. data/lib/zucker/2/mcopy.rb +0 -11
  134. data/lib/zucker/2/mm.rb +0 -33
  135. data/lib/zucker/2/regexp2proc.rb +0 -12
  136. data/lib/zucker/2/sandbox.rb +0 -21
  137. data/lib/zucker/2/square_brackets_for.rb +0 -22
  138. data/lib/zucker/2/string.rb +0 -27
  139. data/lib/zucker/2/unary.rb +0 -24
  140. data/lib/zucker/2/union.rb +0 -16
  141. data/lib/zucker/3/D.rb +0 -21
  142. data/lib/zucker/3/alias_for.rb +0 -21
  143. data/lib/zucker/3/aliases.rb +0 -30
  144. data/lib/zucker/3/all.rb +0 -8
  145. data/lib/zucker/3/array.rb +0 -25
  146. data/lib/zucker/3/array2proc.rb +0 -18
  147. data/lib/zucker/3/binding.rb +0 -27
  148. data/lib/zucker/3/blank.rb +0 -28
  149. data/lib/zucker/3/class2proc.rb +0 -12
  150. data/lib/zucker/3/debug.rb +0 -8
  151. data/lib/zucker/3/default.rb +0 -37
  152. data/lib/zucker/3/egonil.rb +0 -16
  153. data/lib/zucker/3/enumerable.rb +0 -14
  154. data/lib/zucker/3/hash.rb +0 -21
  155. data/lib/zucker/3/hash2proc.rb +0 -16
  156. data/lib/zucker/3/info.rb +0 -169
  157. data/lib/zucker/3/iterate.rb +0 -25
  158. data/lib/zucker/3/ivars.rb +0 -28
  159. data/lib/zucker/3/kernel.rb +0 -50
  160. data/lib/zucker/3/mcopy.rb +0 -10
  161. data/lib/zucker/3/mm.rb +0 -33
  162. data/lib/zucker/3/not.rb +0 -19
  163. data/lib/zucker/3/regexp2proc.rb +0 -12
  164. data/lib/zucker/3/sandbox.rb +0 -21
  165. data/lib/zucker/3/square_brackets_for.rb +0 -22
  166. data/lib/zucker/3/string.rb +0 -49
  167. data/lib/zucker/3/tap.rb +0 -11
  168. data/lib/zucker/3/unary.rb +0 -24
  169. data/lib/zucker/3/union.rb +0 -16
  170. data/lib/zucker/4/D.rb +0 -21
  171. data/lib/zucker/4/alias_for.rb +0 -21
  172. data/lib/zucker/4/aliases.rb +0 -35
  173. data/lib/zucker/4/all.rb +0 -8
  174. data/lib/zucker/4/array.rb +0 -25
  175. data/lib/zucker/4/array2proc.rb +0 -18
  176. data/lib/zucker/4/binding.rb +0 -27
  177. data/lib/zucker/4/blank.rb +0 -28
  178. data/lib/zucker/4/class2proc.rb +0 -12
  179. data/lib/zucker/4/debug.rb +0 -8
  180. data/lib/zucker/4/default.rb +0 -40
  181. data/lib/zucker/4/egonil.rb +0 -16
  182. data/lib/zucker/4/engine.rb +0 -69
  183. data/lib/zucker/4/enumerable.rb +0 -14
  184. data/lib/zucker/4/hash.rb +0 -21
  185. data/lib/zucker/4/hash2proc.rb +0 -16
  186. data/lib/zucker/4/info.rb +0 -173
  187. data/lib/zucker/4/iterate.rb +0 -25
  188. data/lib/zucker/4/ivars.rb +0 -28
  189. data/lib/zucker/4/kernel.rb +0 -27
  190. data/lib/zucker/4/mcopy.rb +0 -10
  191. data/lib/zucker/4/mm.rb +0 -33
  192. data/lib/zucker/4/not.rb +0 -19
  193. data/lib/zucker/4/os.rb +0 -50
  194. data/lib/zucker/4/q.rb +0 -7
  195. data/lib/zucker/4/regexp2proc.rb +0 -12
  196. data/lib/zucker/4/sandbox.rb +0 -23
  197. data/lib/zucker/4/square_brackets_for.rb +0 -22
  198. data/lib/zucker/4/string.rb +0 -54
  199. data/lib/zucker/4/tap.rb +0 -11
  200. data/lib/zucker/4/unary.rb +0 -24
  201. data/lib/zucker/4/union.rb +0 -16
  202. data/lib/zucker/4/version.rb +0 -115
  203. data/lib/zucker/5/alias_for.rb +0 -21
  204. data/lib/zucker/5/aliases.rb +0 -51
  205. data/lib/zucker/5/all.rb +0 -4
  206. data/lib/zucker/5/array.rb +0 -25
  207. data/lib/zucker/5/array2proc.rb +0 -18
  208. data/lib/zucker/5/binding.rb +0 -34
  209. data/lib/zucker/5/blank.rb +0 -28
  210. data/lib/zucker/5/cc.rb +0 -25
  211. data/lib/zucker/5/class2proc.rb +0 -12
  212. data/lib/zucker/5/control.rb +0 -4
  213. data/lib/zucker/5/dd.rb +0 -24
  214. data/lib/zucker/5/debug.rb +0 -4
  215. data/lib/zucker/5/default.rb +0 -4
  216. data/lib/zucker/5/egonil.rb +0 -16
  217. data/lib/zucker/5/engine.rb +0 -69
  218. data/lib/zucker/5/enumerable.rb +0 -14
  219. data/lib/zucker/5/env.rb +0 -4
  220. data/lib/zucker/5/extensions.rb +0 -4
  221. data/lib/zucker/5/hash.rb +0 -27
  222. data/lib/zucker/5/hash2proc.rb +0 -16
  223. data/lib/zucker/5/info.rb +0 -177
  224. data/lib/zucker/5/iterate.rb +0 -26
  225. data/lib/zucker/5/ivars.rb +0 -28
  226. data/lib/zucker/5/kernel.rb +0 -34
  227. data/lib/zucker/5/mcopy.rb +0 -10
  228. data/lib/zucker/5/mm.rb +0 -34
  229. data/lib/zucker/5/not.rb +0 -19
  230. data/lib/zucker/5/object.rb +0 -4
  231. data/lib/zucker/5/oo.rb +0 -17
  232. data/lib/zucker/5/os.rb +0 -49
  233. data/lib/zucker/5/qq.rb +0 -12
  234. data/lib/zucker/5/regexp2proc.rb +0 -12
  235. data/lib/zucker/5/sandbox.rb +0 -25
  236. data/lib/zucker/5/shortcuts.rb +0 -4
  237. data/lib/zucker/5/square_brackets_for.rb +0 -21
  238. data/lib/zucker/5/string.rb +0 -54
  239. data/lib/zucker/5/tap.rb +0 -11
  240. data/lib/zucker/5/to_proc.rb +0 -4
  241. data/lib/zucker/5/unary.rb +0 -24
  242. data/lib/zucker/5/union.rb +0 -16
  243. data/lib/zucker/5/version.rb +0 -118
  244. data/lib/zucker/6/alias_for.rb +0 -21
  245. data/lib/zucker/6/aliases.rb +0 -51
  246. data/lib/zucker/6/all.rb +0 -4
  247. data/lib/zucker/6/array.rb +0 -25
  248. data/lib/zucker/6/array2proc.rb +0 -18
  249. data/lib/zucker/6/binding.rb +0 -34
  250. data/lib/zucker/6/blank.rb +0 -28
  251. data/lib/zucker/6/cc.rb +0 -25
  252. data/lib/zucker/6/class2proc.rb +0 -12
  253. data/lib/zucker/6/control.rb +0 -4
  254. data/lib/zucker/6/dd.rb +0 -23
  255. data/lib/zucker/6/debug.rb +0 -4
  256. data/lib/zucker/6/default.rb +0 -4
  257. data/lib/zucker/6/egonil.rb +0 -27
  258. data/lib/zucker/6/engine.rb +0 -68
  259. data/lib/zucker/6/enumerable.rb +0 -14
  260. data/lib/zucker/6/env.rb +0 -4
  261. data/lib/zucker/6/extensions.rb +0 -4
  262. data/lib/zucker/6/hash.rb +0 -27
  263. data/lib/zucker/6/hash2proc.rb +0 -16
  264. data/lib/zucker/6/info.rb +0 -192
  265. data/lib/zucker/6/iterate.rb +0 -27
  266. data/lib/zucker/6/ivars.rb +0 -28
  267. data/lib/zucker/6/kernel.rb +0 -34
  268. data/lib/zucker/6/mcopy.rb +0 -10
  269. data/lib/zucker/6/mm.rb +0 -34
  270. data/lib/zucker/6/not.rb +0 -19
  271. data/lib/zucker/6/object.rb +0 -4
  272. data/lib/zucker/6/oo.rb +0 -17
  273. data/lib/zucker/6/os.rb +0 -54
  274. data/lib/zucker/6/qq.rb +0 -12
  275. data/lib/zucker/6/regexp2proc.rb +0 -12
  276. data/lib/zucker/6/sandbox.rb +0 -25
  277. data/lib/zucker/6/shortcuts.rb +0 -4
  278. data/lib/zucker/6/square_brackets_for.rb +0 -21
  279. data/lib/zucker/6/string.rb +0 -54
  280. data/lib/zucker/6/tap.rb +0 -11
  281. data/lib/zucker/6/to_proc.rb +0 -4
  282. data/lib/zucker/6/unary.rb +0 -24
  283. data/lib/zucker/6/union.rb +0 -16
  284. data/lib/zucker/6/version.rb +0 -118
  285. data/lib/zucker/7/alias_for.rb +0 -21
  286. data/lib/zucker/7/aliases.rb +0 -51
  287. data/lib/zucker/7/all.rb +0 -4
  288. data/lib/zucker/7/array.rb +0 -25
  289. data/lib/zucker/7/array2proc.rb +0 -18
  290. data/lib/zucker/7/binding.rb +0 -34
  291. data/lib/zucker/7/blank.rb +0 -28
  292. data/lib/zucker/7/cc.rb +0 -25
  293. data/lib/zucker/7/class2proc.rb +0 -12
  294. data/lib/zucker/7/control.rb +0 -4
  295. data/lib/zucker/7/dd.rb +0 -23
  296. data/lib/zucker/7/debug.rb +0 -4
  297. data/lib/zucker/7/default.rb +0 -4
  298. data/lib/zucker/7/egonil.rb +0 -27
  299. data/lib/zucker/7/engine.rb +0 -68
  300. data/lib/zucker/7/enumerable.rb +0 -14
  301. data/lib/zucker/7/env.rb +0 -4
  302. data/lib/zucker/7/extensions.rb +0 -4
  303. data/lib/zucker/7/hash.rb +0 -27
  304. data/lib/zucker/7/hash2proc.rb +0 -16
  305. data/lib/zucker/7/info.rb +0 -192
  306. data/lib/zucker/7/iterate.rb +0 -27
  307. data/lib/zucker/7/ivars.rb +0 -28
  308. data/lib/zucker/7/kernel.rb +0 -34
  309. data/lib/zucker/7/mcopy.rb +0 -10
  310. data/lib/zucker/7/mm.rb +0 -34
  311. data/lib/zucker/7/not.rb +0 -19
  312. data/lib/zucker/7/object.rb +0 -4
  313. data/lib/zucker/7/oo.rb +0 -17
  314. data/lib/zucker/7/os.rb +0 -54
  315. data/lib/zucker/7/qq.rb +0 -12
  316. data/lib/zucker/7/regexp2proc.rb +0 -12
  317. data/lib/zucker/7/sandbox.rb +0 -25
  318. data/lib/zucker/7/shortcuts.rb +0 -4
  319. data/lib/zucker/7/square_brackets_for.rb +0 -21
  320. data/lib/zucker/7/string.rb +0 -54
  321. data/lib/zucker/7/tap.rb +0 -11
  322. data/lib/zucker/7/to_proc.rb +0 -4
  323. data/lib/zucker/7/unary.rb +0 -24
  324. data/lib/zucker/7/union.rb +0 -16
  325. data/lib/zucker/7/version.rb +0 -118
  326. data/lib/zucker/8/alias_for.rb +0 -21
  327. data/lib/zucker/8/aliases.rb +0 -51
  328. data/lib/zucker/8/all.rb +0 -4
  329. data/lib/zucker/8/array.rb +0 -25
  330. data/lib/zucker/8/array2proc.rb +0 -18
  331. data/lib/zucker/8/binding.rb +0 -33
  332. data/lib/zucker/8/blank.rb +0 -28
  333. data/lib/zucker/8/cc.rb +0 -25
  334. data/lib/zucker/8/class2proc.rb +0 -12
  335. data/lib/zucker/8/control.rb +0 -4
  336. data/lib/zucker/8/dd.rb +0 -23
  337. data/lib/zucker/8/debug.rb +0 -4
  338. data/lib/zucker/8/default.rb +0 -4
  339. data/lib/zucker/8/egonil.rb +0 -27
  340. data/lib/zucker/8/engine.rb +0 -68
  341. data/lib/zucker/8/enumerable.rb +0 -14
  342. data/lib/zucker/8/env.rb +0 -4
  343. data/lib/zucker/8/extensions.rb +0 -4
  344. data/lib/zucker/8/hash.rb +0 -27
  345. data/lib/zucker/8/hash2proc.rb +0 -16
  346. data/lib/zucker/8/info.rb +0 -192
  347. data/lib/zucker/8/iterate.rb +0 -27
  348. data/lib/zucker/8/ivars.rb +0 -28
  349. data/lib/zucker/8/kernel.rb +0 -34
  350. data/lib/zucker/8/mcopy.rb +0 -10
  351. data/lib/zucker/8/mm.rb +0 -34
  352. data/lib/zucker/8/not.rb +0 -19
  353. data/lib/zucker/8/object.rb +0 -4
  354. data/lib/zucker/8/oo.rb +0 -17
  355. data/lib/zucker/8/os.rb +0 -54
  356. data/lib/zucker/8/qq.rb +0 -12
  357. data/lib/zucker/8/regexp2proc.rb +0 -12
  358. data/lib/zucker/8/sandbox.rb +0 -25
  359. data/lib/zucker/8/shortcuts.rb +0 -4
  360. data/lib/zucker/8/square_brackets_for.rb +0 -21
  361. data/lib/zucker/8/string.rb +0 -54
  362. data/lib/zucker/8/tap.rb +0 -11
  363. data/lib/zucker/8/to_proc.rb +0 -4
  364. data/lib/zucker/8/unary.rb +0 -24
  365. data/lib/zucker/8/union.rb +0 -16
  366. data/lib/zucker/8/version.rb +0 -118
@@ -0,0 +1,19 @@
1
+ require 'zucker/qq'
2
+
3
+ describe 'q' do
4
+
5
+ it 'should output the same as p for a single arg' do
6
+ capture_stdout{p /some object/}.should ==
7
+ capture_stdout{q /some object/}
8
+ end
9
+
10
+ it "should output the same as p but for multiple args one one line, values separated by two spaces" do
11
+ capture_stdout do
12
+ q 1, "1", 2..5, [], {:hallo => :du}, nil, true
13
+ end.chop.should ==
14
+ capture_stdout do
15
+ p 1, "1", 2..5, [], {:hallo => :du}, nil, true
16
+ end.chop.gsub( "\n", ' ' )
17
+ end
18
+ end
19
+
@@ -0,0 +1,9 @@
1
+ require 'zucker/regexp_to_proc'
2
+
3
+ describe 'Regexp#to_proc' do
4
+ it 'should match the regex' do
5
+ %w|just another string array|.map( &/[jy]/).should == ["j", nil, nil, "y"]
6
+ %w|just another string array|.select( &/[jy]/).should == ["just", "array"]
7
+ end
8
+ end
9
+
@@ -0,0 +1,38 @@
1
+ require 'zucker/regexp_visualize'
2
+
3
+ describe 'Regexp#visualize' do
4
+ let :regex do /\b([A-Z0-9._%+-]+)@([A-Z0-9.-]+\.[A-Z]{2,4})\b/i end # regex from regular-expressions.info/email.html
5
+
6
+ it 'should display a string where >and< mark the found regex' do
7
+ capture_stdout do
8
+ regex.vis 'I do not contain an email address.'
9
+ end.chomp.should == 'no match'
10
+ end
11
+
12
+ it 'should display "no match" if the regex could not be matched' do
13
+ capture_stdout do
14
+ regex.vis 'I contain an email address: mail@example.com'
15
+ end.chomp.should == 'I contain an email address: >mail@example.com< '
16
+ end
17
+
18
+ it 'should display a string where >and< mark the found regex group if group identifier is given as arg2' do
19
+ capture_stdout do
20
+ regex.vis 'mail@example.com', 1
21
+ end.chomp.should == '1: >mail< @example.com'
22
+ end
23
+
24
+ it 'should display "group identifier: no match" the arg2 group could not be matched' do
25
+ capture_stdout do
26
+ regex.vis 'mail@example.com', 3
27
+ end.chomp.should == '3: no match'
28
+ end
29
+
30
+ it 'should also take an array of group identfiers as arg2' do
31
+ capture_stdout do
32
+ regex.vis 'mail@example.com', [0,1,2]
33
+ end.chomp.should == "0: >mail@example.com< \n"\
34
+ "1: >mail< @example.com\n"\
35
+ "2: mail@ >example.com< "
36
+ end
37
+ end
38
+
@@ -0,0 +1,12 @@
1
+ require 'zucker/sandbox'
2
+
3
+ describe 'sandbox' do
4
+ it 'should throw a SecurityError if bad commands are issued' do
5
+ proc do
6
+ sandbox do
7
+ `ls`
8
+ end
9
+ end.should raise_exception SecurityError
10
+ end
11
+ end
12
+
@@ -0,0 +1,18 @@
1
+ require 'stringio'
2
+
3
+ def capture_stdout
4
+ capture = StringIO.new
5
+ restore, $stdout = $stdout, capture
6
+ yield
7
+ $stdout = restore
8
+ capture.string
9
+ end
10
+
11
+ def capture_stderr
12
+ capture = StringIO.new
13
+ restore, $stderr = $stderr, capture
14
+ yield
15
+ $stderr = restore
16
+ capture.string
17
+ end
18
+
@@ -0,0 +1,59 @@
1
+ require 'zucker/square_brackets_for'
2
+
3
+ describe 'square_brackets_for' do
4
+
5
+ before do
6
+ class Klass
7
+ def initialize
8
+ @var = {
9
+ :a_key => 1,
10
+ :another_one => 2,
11
+ }
12
+ end
13
+
14
+ @eigenvar = {
15
+ :a_key => 99
16
+ }
17
+ end
18
+ end
19
+
20
+ it 'should define a [] getter (not a setter) for an instance var, if the second parameter is false' do
21
+
22
+ class Klass
23
+ square_brackets_for :var, nil
24
+ end
25
+
26
+ a = Klass.new
27
+ a[:a_key].should == 1
28
+
29
+ proc do
30
+ a[:this_is] = 'not possible'
31
+ end.should raise_exception NoMethodError
32
+ end
33
+
34
+ it 'should define [] and []= for accessing an instance variable' do
35
+
36
+ class Klass
37
+ square_brackets_for :var
38
+ end
39
+
40
+ a = Klass.new
41
+ a[:a_key].should == 1
42
+
43
+ a[:this_is] = 'useful'
44
+ a[:this_is].should == 'useful'
45
+ end
46
+
47
+ it 'should also work for class-instance variables' do
48
+
49
+ class Klass
50
+ class << Klass
51
+ square_brackets_for :eigenvar
52
+ end
53
+ end
54
+
55
+ Klass[:a_key].should == 99
56
+ end
57
+
58
+ end
59
+
@@ -0,0 +1,65 @@
1
+ require 'zucker/string'
2
+
3
+ describe 'String#-' do
4
+ it 'should remove the applied Regexp or String from self via gsub' do
5
+ ('1234abc5678' - 'b' - /\d/).should == 'ac'
6
+ end
7
+ end
8
+
9
+ describe 'String#^' do
10
+ it 'should give C-like substring access to strings' do
11
+ string = 'Theoretische Informatik ist voll geil!'
12
+
13
+ (string^0).should == 'Theoretische Informatik ist voll geil!'
14
+ (string^1).should == 'heoretische Informatik ist voll geil!'
15
+ (string^13).should == 'Informatik ist voll geil!'
16
+ (string^-1).should == 'Theoretische Informatik ist voll geil'
17
+ (string^38).should == ''
18
+ (string^99).should == nil
19
+ end
20
+ end
21
+
22
+ describe 'String#lchomp' do
23
+ it 'should chomp on the left side' do
24
+ string = 'Theoretische Informatik ist voll geil!'
25
+ string.lchomp('T').should == 'heoretische Informatik ist voll geil!'
26
+ end
27
+ end
28
+
29
+ describe 'String#ords' do
30
+ it 'should unpack characters' do
31
+ string = 'Theoretische Informatik ist voll geil!'
32
+ string.ords.should == [84, 104, 101, 111, 114, 101, 116, 105, 115, 99, 104, 101, 32, 73, 110, 102, 111, 114, 109, 97, 116, 105, 107, 32, 105, 115, 116, 32, 118, 111, 108, 108, 32, 103, 101, 105, 108, 33]
33
+ end
34
+
35
+ describe 'String#constantize' do
36
+ it 'should return the constant with that name' do
37
+ 'Object'.constantize.should == Object
38
+ end
39
+
40
+ it 'should also work for nested constants' do
41
+ 'Zucker::VERSION'.constantize.should == Zucker::VERSION
42
+ end
43
+
44
+ it 'should throw name error if constant does not exist (and no parameter is given)' do
45
+ proc do
46
+ 'ObfsefsefsefafesafaefRubyZuckerafdfselijfesject'.constantize
47
+ end.should raise_exception NameError
48
+ end
49
+
50
+ it 'should call the block (and not raise an error) if constant does not exist and block given' do
51
+ proc do
52
+ 'ObfsefsefsefafesafaefRubyZuckerafdfselijfesject'.constantize do |string|
53
+ Default = [1,2,3]
54
+ end.should == [1,2,3]
55
+ end.should_not raise_exception NameError
56
+ end
57
+
58
+ it 'should return the second parameter (and not raise an error) if constant does not exist and parameter given' do
59
+ proc do
60
+ 'ObfsefsefsefafesafaefRubyZuckerafdfselijfesject'.constantize(Array).should == Array
61
+ end.should_not raise_exception NameError
62
+ end
63
+ end
64
+ end
65
+
@@ -0,0 +1,18 @@
1
+ require 'zucker/tap'
2
+
3
+ describe 'tap_on' do
4
+ it 'should call tap on the argument and apply the block' do
5
+ obj = "an_object"
6
+ block = :reverse.to_proc
7
+
8
+ tap_on( obj, &block ).should == obj.tap( &block )
9
+ end
10
+ end
11
+
12
+ describe 'make_new' do
13
+ it 'should create a new instance of the class given as argument, apply the block on it and return result' do
14
+ make_new Hash do |obj|
15
+ obj[1] = 2
16
+ end.should.send(:'==', { 1 => 2})
17
+ end
18
+ end
@@ -0,0 +1,26 @@
1
+ require 'zucker/unary'
2
+
3
+ describe Symbol, '#+@' do
4
+ it 'should convert to_s' do
5
+ +(:matz) == 'matz' # () 1.8 bug
6
+ end
7
+ end
8
+
9
+ describe Symbol, '#-@' do
10
+ it 'should do nothing' do
11
+ -:matz == :matz
12
+ end
13
+ end
14
+
15
+ describe String, '#+@' do
16
+ it 'should do nothing' do
17
+ +'matz' == 'matz'
18
+ end
19
+ end
20
+
21
+ describe String, '#-@' do
22
+ it 'should convert to_sym' do
23
+ -'matz' == :matz
24
+ end
25
+ end
26
+
@@ -0,0 +1,17 @@
1
+ require 'zucker/union'
2
+
3
+ shared_examples_for "Regexp.union operator" do
4
+ it "should create an Regexp.union of both operands" do
5
+ (/Ruby\d/ | /test/i | "cheat").should ==
6
+ Regexp.union( Regexp.union( /Ruby\d/, /test/i ), "cheat" )
7
+ end
8
+ end
9
+
10
+ describe 'Regexp#|' do
11
+ it_should_behave_like 'Regexp.union operator'
12
+ end
13
+
14
+ describe 'String#|' do
15
+ it_should_behave_like 'Regexp.union operator'
16
+ end
17
+
@@ -0,0 +1,55 @@
1
+ require 'zucker/version'
2
+ require 'date'
3
+
4
+ describe 'RubyVersion' do
5
+ before :all do
6
+ @remember_version = RUBY_VERSION
7
+ capture_stderr{ RUBY_VERSION = '1.8.7' }
8
+ end
9
+
10
+ it 'should display RUBY_VERSION if called directly (to_s)' do
11
+ RubyVersion.to_s.should == '1.8.7'
12
+ end
13
+
14
+ context 'using is method with parameter' do
15
+ it 'should check for main version (1.8 or 1.9) when Float paramater is given' do
16
+ RubyVersion.is?( 1.8 ).should == true
17
+ RubyVersion.is?( 1.9 ).should == false
18
+ end
19
+
20
+ it 'should check with string comparison if parameter is not Float' do
21
+ RubyVersion.is?( '1.8' ).should == false
22
+ end
23
+ end
24
+
25
+ context 'using is method without parameter but method chaining' do
26
+ it 'should return a string for usage with comparison operators' do
27
+ (RubyVersion.is > '1.8.7').should == false
28
+ (RubyVersion <= '1.8.7').should == true
29
+ (RubyVersion.is.between? '1.8.6', '1.8.7').should == true
30
+ end
31
+
32
+ it 'should create some handy compare aliases' do
33
+ RubyVersion.is.above( '1.8.7' ).should == false
34
+ RubyVersion.is.at_least( '1.8.7' ).should == true
35
+ RubyVersion.is.exactly( '1.8.7' ).should == true
36
+ end
37
+
38
+ it 'also allows to check for the release dates' do
39
+ RubyVersion.is.older_than( Date.today ).should == true
40
+ RubyVersion.is.newer_than( '2000-01-01' ).should == true
41
+ end
42
+ end
43
+
44
+ it 'should define some accessors' do
45
+ RubyVersion.major.should == 1
46
+ RubyVersion.minor.should == 8
47
+ RubyVersion.tiny.should == 7
48
+ # RubyVersion.patchlevel # => RUBY_PATCHLEVEL
49
+ # RubyVersion.description # => RUBY_DESCRIPTION
50
+ end
51
+
52
+ after :all do
53
+ capture_stderr{ RUBY_VERSION = @remember_version }
54
+ end
55
+ end
@@ -0,0 +1,21 @@
1
+ # Ruby 1.9, encoding: utf-8
2
+ require 'rubygems' unless defined? Gem
3
+ require File.dirname(__FILE__) + '/lib/zucker'
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "zucker"
7
+ s.version = Zucker::VERSION
8
+ s.authors = ['Jan Lelis','and others']
9
+ s.email = 'mail@janlelis.de'
10
+ s.summary = "Many little helpers that sweeten your Ruby code :)."
11
+ s.description = "Sweeten your Ruby code with syntactic sugar :).
12
+ Adds a lot of little helpers that you do not want to miss again."
13
+ s.homepage = "http://rubyzucker.info"
14
+ s.files = Dir.glob( %w[{lib,spec}/**/*.rb desc/**/*.yaml] ) + %w{Rakefile zucker.gemspec MIT-LICENSE README CHANGELOG doc/zucker_doc.rb doc/zucker_doc.html}
15
+ s.has_rdoc = false
16
+ s.require_paths = ["lib"]
17
+ s.required_ruby_version = '>= 1.8.7' # 1.9 recommended
18
+ s.license = 'MIT'
19
+ s.add_development_dependency 'rspec'
20
+ s.add_development_dependency 'coderay'
21
+ end
metadata CHANGED
@@ -3,8 +3,8 @@ name: zucker
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
- - 8
7
- version: "8"
6
+ - 9
7
+ version: "9"
8
8
  platform: ruby
9
9
  authors:
10
10
  - Jan Lelis
@@ -13,11 +13,11 @@ autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
15
 
16
- date: 2010-10-06 00:00:00 +02:00
16
+ date: 2011-01-22 00:00:00 +01:00
17
17
  default_executable:
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
- name: coderay
20
+ name: rspec
21
21
  prerelease: false
22
22
  requirement: &id001 !ruby/object:Gem::Requirement
23
23
  none: false
@@ -29,7 +29,22 @@ dependencies:
29
29
  version: "0"
30
30
  type: :development
31
31
  version_requirements: *id001
32
- description: Sweeten your Ruby code with this syntactic sugar :). Adds a lot of little helpers that you do not want to miss again. See http://rubyzucker.info
32
+ - !ruby/object:Gem::Dependency
33
+ name: coderay
34
+ prerelease: false
35
+ requirement: &id002 !ruby/object:Gem::Requirement
36
+ none: false
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ segments:
41
+ - 0
42
+ version: "0"
43
+ type: :development
44
+ version_requirements: *id002
45
+ description: |-
46
+ Sweeten your Ruby code with syntactic sugar :).
47
+ Adds a lot of little helpers that you do not want to miss again.
33
48
  email: mail@janlelis.de
34
49
  executables: []
35
50
 
@@ -38,336 +53,137 @@ extensions: []
38
53
  extra_rdoc_files: []
39
54
 
40
55
  files:
41
- - MIT-LICENSE
42
- - Rakefile
43
- - CHANGELOG
44
- - README
56
+ - lib/zucker.rb
57
+ - lib/zucker/tap.rb
58
+ - lib/zucker/alias_for.rb
59
+ - lib/zucker/hash_to_proc.rb
60
+ - lib/zucker/mcopy.rb
61
+ - lib/zucker/class2proc.rb
62
+ - lib/zucker/info.rb
63
+ - lib/zucker/version.rb
64
+ - lib/zucker/array_to_proc.rb
65
+ - lib/zucker/engine.rb
45
66
  - lib/zucker/default.rb
46
- - lib/zucker/qq.rb
47
- - lib/zucker/all.rb
67
+ - lib/zucker/env.rb
68
+ - lib/zucker/binding.rb
69
+ - lib/zucker/blank.rb
70
+ - lib/zucker/object.rb
48
71
  - lib/zucker/string.rb
49
- - lib/zucker/sandbox.rb
72
+ - lib/zucker/kernel.rb
73
+ - lib/zucker/class_to_proc.rb
50
74
  - lib/zucker/regexp2proc.rb
51
- - lib/zucker/ivars.rb
52
- - lib/zucker/dd.rb
53
- - lib/zucker/class2proc.rb
54
- - lib/zucker/enumerable.rb
55
- - lib/zucker/alias_for.rb
56
- - lib/zucker/4/default.rb
57
- - lib/zucker/4/all.rb
58
- - lib/zucker/4/string.rb
59
- - lib/zucker/4/sandbox.rb
60
- - lib/zucker/4/regexp2proc.rb
61
- - lib/zucker/4/ivars.rb
62
- - lib/zucker/4/class2proc.rb
63
- - lib/zucker/4/enumerable.rb
64
- - lib/zucker/4/alias_for.rb
65
- - lib/zucker/4/unary.rb
66
- - lib/zucker/4/hash.rb
67
- - lib/zucker/4/hash2proc.rb
68
- - lib/zucker/4/tap.rb
69
- - lib/zucker/4/blank.rb
70
- - lib/zucker/4/not.rb
71
- - lib/zucker/4/array2proc.rb
72
- - lib/zucker/4/info.rb
73
- - lib/zucker/4/array.rb
74
- - lib/zucker/4/binding.rb
75
- - lib/zucker/4/mm.rb
76
- - lib/zucker/4/aliases.rb
77
- - lib/zucker/4/q.rb
78
- - lib/zucker/4/iterate.rb
79
- - lib/zucker/4/egonil.rb
80
- - lib/zucker/4/mcopy.rb
81
- - lib/zucker/4/D.rb
82
- - lib/zucker/4/square_brackets_for.rb
83
- - lib/zucker/4/kernel.rb
84
- - lib/zucker/4/engine.rb
85
- - lib/zucker/4/os.rb
86
- - lib/zucker/4/debug.rb
87
- - lib/zucker/4/version.rb
88
- - lib/zucker/4/union.rb
89
- - lib/zucker/control.rb
90
- - lib/zucker/8/default.rb
91
- - lib/zucker/8/qq.rb
92
- - lib/zucker/8/all.rb
93
- - lib/zucker/8/string.rb
94
- - lib/zucker/8/sandbox.rb
95
- - lib/zucker/8/regexp2proc.rb
96
- - lib/zucker/8/ivars.rb
97
- - lib/zucker/8/dd.rb
98
- - lib/zucker/8/class2proc.rb
99
- - lib/zucker/8/enumerable.rb
100
- - lib/zucker/8/alias_for.rb
101
- - lib/zucker/8/control.rb
102
- - lib/zucker/8/unary.rb
103
- - lib/zucker/8/hash.rb
104
- - lib/zucker/8/hash2proc.rb
105
- - lib/zucker/8/tap.rb
106
- - lib/zucker/8/blank.rb
107
- - lib/zucker/8/not.rb
108
- - lib/zucker/8/array2proc.rb
109
- - lib/zucker/8/info.rb
110
- - lib/zucker/8/array.rb
111
- - lib/zucker/8/binding.rb
112
- - lib/zucker/8/extensions.rb
113
- - lib/zucker/8/mm.rb
114
- - lib/zucker/8/oo.rb
115
- - lib/zucker/8/aliases.rb
116
- - lib/zucker/8/to_proc.rb
117
- - lib/zucker/8/iterate.rb
118
- - lib/zucker/8/egonil.rb
119
- - lib/zucker/8/mcopy.rb
120
- - lib/zucker/8/shortcuts.rb
121
- - lib/zucker/8/square_brackets_for.rb
122
- - lib/zucker/8/kernel.rb
123
- - lib/zucker/8/engine.rb
124
- - lib/zucker/8/os.rb
125
- - lib/zucker/8/object.rb
126
- - lib/zucker/8/cc.rb
127
- - lib/zucker/8/debug.rb
128
- - lib/zucker/8/env.rb
129
- - lib/zucker/8/version.rb
130
- - lib/zucker/8/union.rb
131
- - lib/zucker/1/default.rb
132
- - lib/zucker/1/all.rb
133
- - lib/zucker/1/string.rb
134
- - lib/zucker/1/sandbox.rb
135
- - lib/zucker/1/regexp2proc.rb
136
- - lib/zucker/1/ivars.rb
137
- - lib/zucker/1/class2proc.rb
138
- - lib/zucker/1/enumerable.rb
139
- - lib/zucker/1/unary.rb
140
- - lib/zucker/1/hash.rb
141
- - lib/zucker/1/hash2proc.rb
142
- - lib/zucker/1/blank.rb
143
- - lib/zucker/1/array2proc.rb
144
- - lib/zucker/1/array.rb
145
- - lib/zucker/1/binding.rb
146
- - lib/zucker/1/mm.rb
147
- - lib/zucker/1/aliases.rb
148
- - lib/zucker/1/iterate.rb
149
- - lib/zucker/1/egonil.rb
150
- - lib/zucker/1/mcopy.rb
151
- - lib/zucker/1/D.rb
152
- - lib/zucker/1/square_brackets_for.rb
153
- - lib/zucker/1/kernel.rb
154
- - lib/zucker/1/debug.rb
155
- - lib/zucker/1/union.rb
156
75
  - lib/zucker/unary.rb
157
- - lib/zucker/hash.rb
158
- - lib/zucker/hash2proc.rb
159
- - lib/zucker/tap.rb
160
- - lib/zucker/blank.rb
161
76
  - lib/zucker/not.rb
162
- - lib/zucker/array2proc.rb
163
- - lib/zucker/info.rb
164
- - lib/zucker/array.rb
165
- - lib/zucker/binding.rb
166
- - lib/zucker/extensions.rb
167
- - lib/zucker/mm.rb
168
- - lib/zucker/oo.rb
77
+ - lib/zucker/regexp_visualize.rb
78
+ - lib/zucker/all.rb
79
+ - lib/zucker/hash.rb
169
80
  - lib/zucker/aliases.rb
170
- - lib/zucker/to_proc.rb
81
+ - lib/zucker/extensions.rb
82
+ - lib/zucker/sandbox.rb
83
+ - lib/zucker/control.rb
84
+ - lib/zucker/dd.rb
85
+ - lib/zucker/enumerable.rb
86
+ - lib/zucker/file.rb
87
+ - lib/zucker/ivars.rb
88
+ - lib/zucker/array.rb
89
+ - lib/zucker/qq.rb
90
+ - lib/zucker/union.rb
171
91
  - lib/zucker/iterate.rb
92
+ - lib/zucker/array2proc.rb
93
+ - lib/zucker/cc.rb
94
+ - lib/zucker/debug.rb
95
+ - lib/zucker/square_brackets_for.rb
172
96
  - lib/zucker/egonil.rb
173
- - lib/zucker/mcopy.rb
174
- - lib/zucker/7/default.rb
175
- - lib/zucker/7/qq.rb
176
- - lib/zucker/7/all.rb
177
- - lib/zucker/7/string.rb
178
- - lib/zucker/7/sandbox.rb
179
- - lib/zucker/7/regexp2proc.rb
180
- - lib/zucker/7/ivars.rb
181
- - lib/zucker/7/dd.rb
182
- - lib/zucker/7/class2proc.rb
183
- - lib/zucker/7/enumerable.rb
184
- - lib/zucker/7/alias_for.rb
185
- - lib/zucker/7/control.rb
186
- - lib/zucker/7/unary.rb
187
- - lib/zucker/7/hash.rb
188
- - lib/zucker/7/hash2proc.rb
189
- - lib/zucker/7/tap.rb
190
- - lib/zucker/7/blank.rb
191
- - lib/zucker/7/not.rb
192
- - lib/zucker/7/array2proc.rb
193
- - lib/zucker/7/info.rb
194
- - lib/zucker/7/array.rb
195
- - lib/zucker/7/binding.rb
196
- - lib/zucker/7/extensions.rb
197
- - lib/zucker/7/mm.rb
198
- - lib/zucker/7/oo.rb
199
- - lib/zucker/7/aliases.rb
200
- - lib/zucker/7/to_proc.rb
201
- - lib/zucker/7/iterate.rb
202
- - lib/zucker/7/egonil.rb
203
- - lib/zucker/7/mcopy.rb
204
- - lib/zucker/7/shortcuts.rb
205
- - lib/zucker/7/square_brackets_for.rb
206
- - lib/zucker/7/kernel.rb
207
- - lib/zucker/7/engine.rb
208
- - lib/zucker/7/os.rb
209
- - lib/zucker/7/object.rb
210
- - lib/zucker/7/cc.rb
211
- - lib/zucker/7/debug.rb
212
- - lib/zucker/7/env.rb
213
- - lib/zucker/7/version.rb
214
- - lib/zucker/7/union.rb
215
97
  - lib/zucker/shortcuts.rb
216
- - lib/zucker/square_brackets_for.rb
217
- - lib/zucker/kernel.rb
218
- - lib/zucker/2/default.rb
219
- - lib/zucker/2/all.rb
220
- - lib/zucker/2/string.rb
221
- - lib/zucker/2/sandbox.rb
222
- - lib/zucker/2/regexp2proc.rb
223
- - lib/zucker/2/ivars.rb
224
- - lib/zucker/2/class2proc.rb
225
- - lib/zucker/2/enumerable.rb
226
- - lib/zucker/2/unary.rb
227
- - lib/zucker/2/hash.rb
228
- - lib/zucker/2/hash2proc.rb
229
- - lib/zucker/2/blank.rb
230
- - lib/zucker/2/array2proc.rb
231
- - lib/zucker/2/info.rb
232
- - lib/zucker/2/array.rb
233
- - lib/zucker/2/binding.rb
234
- - lib/zucker/2/mm.rb
235
- - lib/zucker/2/aliases.rb
236
- - lib/zucker/2/iterate.rb
237
- - lib/zucker/2/egonil.rb
238
- - lib/zucker/2/mcopy.rb
239
- - lib/zucker/2/D.rb
240
- - lib/zucker/2/square_brackets_for.rb
241
- - lib/zucker/2/kernel.rb
242
- - lib/zucker/2/debug.rb
243
- - lib/zucker/2/union.rb
244
- - lib/zucker/3/default.rb
245
- - lib/zucker/3/all.rb
246
- - lib/zucker/3/string.rb
247
- - lib/zucker/3/sandbox.rb
248
- - lib/zucker/3/regexp2proc.rb
249
- - lib/zucker/3/ivars.rb
250
- - lib/zucker/3/class2proc.rb
251
- - lib/zucker/3/enumerable.rb
252
- - lib/zucker/3/alias_for.rb
253
- - lib/zucker/3/unary.rb
254
- - lib/zucker/3/hash.rb
255
- - lib/zucker/3/hash2proc.rb
256
- - lib/zucker/3/tap.rb
257
- - lib/zucker/3/blank.rb
258
- - lib/zucker/3/not.rb
259
- - lib/zucker/3/array2proc.rb
260
- - lib/zucker/3/info.rb
261
- - lib/zucker/3/array.rb
262
- - lib/zucker/3/binding.rb
263
- - lib/zucker/3/mm.rb
264
- - lib/zucker/3/aliases.rb
265
- - lib/zucker/3/iterate.rb
266
- - lib/zucker/3/egonil.rb
267
- - lib/zucker/3/mcopy.rb
268
- - lib/zucker/3/D.rb
269
- - lib/zucker/3/square_brackets_for.rb
270
- - lib/zucker/3/kernel.rb
271
- - lib/zucker/3/debug.rb
272
- - lib/zucker/3/union.rb
273
- - lib/zucker/6/default.rb
274
- - lib/zucker/6/qq.rb
275
- - lib/zucker/6/all.rb
276
- - lib/zucker/6/string.rb
277
- - lib/zucker/6/sandbox.rb
278
- - lib/zucker/6/regexp2proc.rb
279
- - lib/zucker/6/ivars.rb
280
- - lib/zucker/6/dd.rb
281
- - lib/zucker/6/class2proc.rb
282
- - lib/zucker/6/enumerable.rb
283
- - lib/zucker/6/alias_for.rb
284
- - lib/zucker/6/control.rb
285
- - lib/zucker/6/unary.rb
286
- - lib/zucker/6/hash.rb
287
- - lib/zucker/6/hash2proc.rb
288
- - lib/zucker/6/tap.rb
289
- - lib/zucker/6/blank.rb
290
- - lib/zucker/6/not.rb
291
- - lib/zucker/6/array2proc.rb
292
- - lib/zucker/6/info.rb
293
- - lib/zucker/6/array.rb
294
- - lib/zucker/6/binding.rb
295
- - lib/zucker/6/extensions.rb
296
- - lib/zucker/6/mm.rb
297
- - lib/zucker/6/oo.rb
298
- - lib/zucker/6/aliases.rb
299
- - lib/zucker/6/to_proc.rb
300
- - lib/zucker/6/iterate.rb
301
- - lib/zucker/6/egonil.rb
302
- - lib/zucker/6/mcopy.rb
303
- - lib/zucker/6/shortcuts.rb
304
- - lib/zucker/6/square_brackets_for.rb
305
- - lib/zucker/6/kernel.rb
306
- - lib/zucker/6/engine.rb
307
- - lib/zucker/6/os.rb
308
- - lib/zucker/6/object.rb
309
- - lib/zucker/6/cc.rb
310
- - lib/zucker/6/debug.rb
311
- - lib/zucker/6/env.rb
312
- - lib/zucker/6/version.rb
313
- - lib/zucker/6/union.rb
314
- - lib/zucker/engine.rb
98
+ - lib/zucker/to_proc.rb
315
99
  - lib/zucker/os.rb
316
- - lib/zucker/object.rb
317
- - lib/zucker/cc.rb
318
- - lib/zucker/debug.rb
319
- - lib/zucker/5/default.rb
320
- - lib/zucker/5/qq.rb
321
- - lib/zucker/5/all.rb
322
- - lib/zucker/5/string.rb
323
- - lib/zucker/5/sandbox.rb
324
- - lib/zucker/5/regexp2proc.rb
325
- - lib/zucker/5/ivars.rb
326
- - lib/zucker/5/dd.rb
327
- - lib/zucker/5/class2proc.rb
328
- - lib/zucker/5/enumerable.rb
329
- - lib/zucker/5/alias_for.rb
330
- - lib/zucker/5/control.rb
331
- - lib/zucker/5/unary.rb
332
- - lib/zucker/5/hash.rb
333
- - lib/zucker/5/hash2proc.rb
334
- - lib/zucker/5/tap.rb
335
- - lib/zucker/5/blank.rb
336
- - lib/zucker/5/not.rb
337
- - lib/zucker/5/array2proc.rb
338
- - lib/zucker/5/info.rb
339
- - lib/zucker/5/array.rb
340
- - lib/zucker/5/binding.rb
341
- - lib/zucker/5/extensions.rb
342
- - lib/zucker/5/mm.rb
343
- - lib/zucker/5/oo.rb
344
- - lib/zucker/5/aliases.rb
345
- - lib/zucker/5/to_proc.rb
346
- - lib/zucker/5/iterate.rb
347
- - lib/zucker/5/egonil.rb
348
- - lib/zucker/5/mcopy.rb
349
- - lib/zucker/5/shortcuts.rb
350
- - lib/zucker/5/square_brackets_for.rb
351
- - lib/zucker/5/kernel.rb
352
- - lib/zucker/5/engine.rb
353
- - lib/zucker/5/os.rb
354
- - lib/zucker/5/object.rb
355
- - lib/zucker/5/cc.rb
356
- - lib/zucker/5/debug.rb
357
- - lib/zucker/5/env.rb
358
- - lib/zucker/5/version.rb
359
- - lib/zucker/5/union.rb
360
- - lib/zucker/env.rb
361
- - lib/zucker/version.rb
362
- - lib/zucker/union.rb
363
- - lib/zucker.rb
100
+ - lib/zucker/mm.rb
101
+ - lib/zucker/regexp_to_proc.rb
102
+ - lib/zucker/oo.rb
103
+ - lib/zucker/hash2proc.rb
104
+ - spec/file_spec.rb
105
+ - spec/tap_spec.rb
106
+ - spec/hash_spec.rb
107
+ - spec/array_spec.rb
108
+ - spec/dd_spec.rb
109
+ - spec/square_brackets_for_spec.rb
110
+ - spec/mm_spec.rb
111
+ - spec/sandbox_spec.rb
112
+ - spec/binding_spec.rb
113
+ - spec/unary_spec.rb
114
+ - spec/qq_spec.rb
115
+ - spec/kernel_spec.rb
116
+ - spec/spec_helper.rb
117
+ - spec/alias_for_spec.rb
118
+ - spec/blank_spec.rb
119
+ - spec/regexp_visualize_spec.rb
120
+ - spec/array_to_proc_spec.rb
121
+ - spec/version_spec.rb
122
+ - spec/os_spec.rb
123
+ - spec/iterate_spec.rb
124
+ - spec/cc_spec.rb
125
+ - spec/mcopy_spec.rb
126
+ - spec/egonil_spec.rb
127
+ - spec/ivars_spec.rb
128
+ - spec/not_spec.rb
129
+ - spec/aliases_spec.rb
130
+ - spec/string_spec.rb
131
+ - spec/oo_spec.rb
132
+ - spec/class_to_proc_spec.rb
133
+ - spec/hash_to_proc_spec.rb
134
+ - spec/regexp_to_proc_spec.rb
135
+ - spec/union_spec.rb
136
+ - spec/info_spec.rb
137
+ - spec/engine_spec.rb
138
+ - spec/enumerable_spec.rb
139
+ - desc/mm.yaml
140
+ - desc/tap.yaml
141
+ - desc/class_to_proc.yaml
142
+ - desc/string.yaml
143
+ - desc/dd.yaml
144
+ - desc/array.yaml
145
+ - desc/file.yaml
146
+ - desc/alias_for.yaml
147
+ - desc/iterate.yaml
148
+ - desc/version.yaml
149
+ - desc/aliases.yaml
150
+ - desc/binding.yaml
151
+ - desc/regexp_visualize.yaml
152
+ - desc/unary.yaml
153
+ - desc/blank.yaml
154
+ - desc/hash_to_proc.yaml
155
+ - desc/ivars.yaml
156
+ - desc/engine.yaml
157
+ - desc/sandbox.yaml
158
+ - desc/egonil.yaml
159
+ - desc/union.yaml
160
+ - desc/hash.yaml
161
+ - desc/qq.yaml
162
+ - desc/cc.yaml
163
+ - desc/info.yaml
164
+ - desc/oo.yaml
165
+ - desc/os.yaml
166
+ - desc/not.yaml
167
+ - desc/square_brackets_for.yaml
168
+ - desc/array_to_proc.yaml
169
+ - desc/kernel.yaml
170
+ - desc/enumerable.yaml
171
+ - desc/regexp_to_proc.yaml
172
+ - desc/mcopy.yaml
173
+ - Rakefile
174
+ - zucker.gemspec
175
+ - MIT-LICENSE
176
+ - README
177
+ - CHANGELOG
178
+ - doc/zucker_doc.rb
179
+ - doc/zucker_doc.html
364
180
  has_rdoc: true
365
181
  homepage: http://rubyzucker.info
366
- licenses: []
367
-
182
+ licenses:
183
+ - MIT
368
184
  post_install_message:
369
- rdoc_options:
370
- - --version
185
+ rdoc_options: []
186
+
371
187
  require_paths:
372
188
  - lib
373
189
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -394,6 +210,6 @@ rubyforge_project:
394
210
  rubygems_version: 1.3.7
395
211
  signing_key:
396
212
  specification_version: 3
397
- summary: Sweeten your Ruby code with this syntactic sugar :). Adds a lot of little helpers that you do not want to miss again. See http://rubyzucker.info
213
+ summary: Many little helpers that sweeten your Ruby code :).
398
214
  test_files: []
399
215