sycsvpro 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. data/Gemfile.lock +3 -1
  2. data/README.md +21 -8
  3. data/README.rdoc +3 -2
  4. data/bin/sycsvpro +17 -6
  5. data/lib/sycsvpro/aggregator.rb +16 -5
  6. data/lib/sycsvpro/calculator.rb +19 -5
  7. data/lib/sycsvpro/counter.rb +17 -7
  8. data/lib/sycsvpro/dsl.rb +43 -0
  9. data/lib/sycsvpro/filter.rb +0 -7
  10. data/lib/sycsvpro/sorter.rb +28 -8
  11. data/lib/sycsvpro/version.rb +1 -1
  12. data/spec/sycsvpro/sorter_spec.rb +50 -0
  13. data/sycsvpro.gemspec +1 -0
  14. metadata +18 -66
  15. data/html/Dsl.html +0 -277
  16. data/html/Object.html +0 -187
  17. data/html/README_rdoc.html +0 -187
  18. data/html/Sycsvpro/Aggregator.html +0 -482
  19. data/html/Sycsvpro/Allocator.html +0 -293
  20. data/html/Sycsvpro/Analyzer.html +0 -239
  21. data/html/Sycsvpro/Calculator.html +0 -407
  22. data/html/Sycsvpro/Collector.html +0 -281
  23. data/html/Sycsvpro/ColumnFilter.html +0 -170
  24. data/html/Sycsvpro/ColumnTypeFilter.html +0 -191
  25. data/html/Sycsvpro/Counter.html +0 -492
  26. data/html/Sycsvpro/Extractor.html +0 -269
  27. data/html/Sycsvpro/Filter.html +0 -411
  28. data/html/Sycsvpro/Header.html +0 -239
  29. data/html/Sycsvpro/Inserter.html +0 -275
  30. data/html/Sycsvpro/Mapper.html +0 -288
  31. data/html/Sycsvpro/Profiler.html +0 -234
  32. data/html/Sycsvpro/RowFilter.html +0 -175
  33. data/html/Sycsvpro/ScriptCreator.html +0 -235
  34. data/html/Sycsvpro/ScriptList.html +0 -281
  35. data/html/Sycsvpro/Sorter.html +0 -346
  36. data/html/Sycsvpro.html +0 -155
  37. data/html/created.rid +0 -24
  38. data/html/fonts/Lato-Light.ttf +0 -0
  39. data/html/fonts/Lato-LightItalic.ttf +0 -0
  40. data/html/fonts/Lato-Regular.ttf +0 -0
  41. data/html/fonts/Lato-RegularItalic.ttf +0 -0
  42. data/html/fonts/SourceCodePro-Bold.ttf +0 -0
  43. data/html/fonts/SourceCodePro-Regular.ttf +0 -0
  44. data/html/fonts.css +0 -167
  45. data/html/images/add.png +0 -0
  46. data/html/images/arrow_up.png +0 -0
  47. data/html/images/brick.png +0 -0
  48. data/html/images/brick_link.png +0 -0
  49. data/html/images/bug.png +0 -0
  50. data/html/images/bullet_black.png +0 -0
  51. data/html/images/bullet_toggle_minus.png +0 -0
  52. data/html/images/bullet_toggle_plus.png +0 -0
  53. data/html/images/date.png +0 -0
  54. data/html/images/delete.png +0 -0
  55. data/html/images/find.png +0 -0
  56. data/html/images/loadingAnimation.gif +0 -0
  57. data/html/images/macFFBgHack.png +0 -0
  58. data/html/images/package.png +0 -0
  59. data/html/images/page_green.png +0 -0
  60. data/html/images/page_white_text.png +0 -0
  61. data/html/images/page_white_width.png +0 -0
  62. data/html/images/plugin.png +0 -0
  63. data/html/images/ruby.png +0 -0
  64. data/html/images/tag_blue.png +0 -0
  65. data/html/images/tag_green.png +0 -0
  66. data/html/images/transparent.png +0 -0
  67. data/html/images/wrench.png +0 -0
  68. data/html/images/wrench_orange.png +0 -0
  69. data/html/images/zoom.png +0 -0
  70. data/html/index.html +0 -225
  71. data/html/js/darkfish.js +0 -140
  72. data/html/js/jquery.js +0 -18
  73. data/html/js/navigation.js +0 -142
  74. data/html/js/search.js +0 -109
  75. data/html/js/search_index.js +0 -1
  76. data/html/js/searcher.js +0 -228
  77. data/html/rdoc.css +0 -580
  78. data/html/table_of_contents.html +0 -347
data/html/Dsl.html DELETED
@@ -1,277 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta charset="UTF-8">
6
-
7
- <title>module Dsl - Your application title</title>
8
-
9
- <link href="./fonts.css" rel="stylesheet">
10
- <link href="./rdoc.css" rel="stylesheet">
11
-
12
- <script type="text/javascript">
13
- var rdoc_rel_prefix = "./";
14
- </script>
15
-
16
- <script src="./js/jquery.js"></script>
17
- <script src="./js/navigation.js"></script>
18
- <script src="./js/search_index.js"></script>
19
- <script src="./js/search.js"></script>
20
- <script src="./js/searcher.js"></script>
21
- <script src="./js/darkfish.js"></script>
22
-
23
-
24
- <body id="top" role="document" class="module">
25
- <nav role="navigation">
26
- <div id="project-navigation">
27
- <div id="home-section" role="region" title="Quick navigation" class="nav-section">
28
- <h2>
29
- <a href="./index.html" rel="home">Home</a>
30
- </h2>
31
-
32
- <div id="table-of-contents-navigation">
33
- <a href="./table_of_contents.html#pages">Pages</a>
34
- <a href="./table_of_contents.html#classes">Classes</a>
35
- <a href="./table_of_contents.html#methods">Methods</a>
36
- </div>
37
- </div>
38
-
39
- <div id="search-section" role="search" class="project-section initially-hidden">
40
- <form action="#" method="get" accept-charset="utf-8">
41
- <div id="search-field-wrapper">
42
- <input id="search-field" role="combobox" aria-label="Search"
43
- aria-autocomplete="list" aria-controls="search-results"
44
- type="text" name="search" placeholder="Search" spellcheck="false"
45
- title="Type to search, Up and Down to navigate, Enter to load">
46
- </div>
47
-
48
- <ul id="search-results" aria-label="Search Results"
49
- aria-busy="false" aria-expanded="false"
50
- aria-atomic="false" class="initially-hidden"></ul>
51
- </form>
52
- </div>
53
-
54
- </div>
55
-
56
-
57
-
58
- <div id="class-metadata">
59
-
60
-
61
-
62
-
63
- <!-- Method Quickref -->
64
- <div id="method-list-section" class="nav-section">
65
- <h3>Methods</h3>
66
-
67
- <ul class="link-list" role="directory">
68
-
69
- <li ><a href="#method-i-rows">#rows</a>
70
-
71
- <li ><a href="#method-i-str2utf8">#str2utf8</a>
72
-
73
- <li ><a href="#method-i-unstring">#unstring</a>
74
-
75
- <li ><a href="#method-i-write_to">#write_to</a>
76
-
77
- </ul>
78
- </div>
79
-
80
- </div>
81
- </nav>
82
-
83
- <main role="main" aria-labelledby="module-Dsl">
84
- <h1 id="module-Dsl" class="module">
85
- module Dsl
86
- </h1>
87
-
88
- <section class="description">
89
-
90
- <p>Methods to be used in customer specific script files</p>
91
-
92
- </section>
93
-
94
-
95
-
96
-
97
- <section id="5Buntitled-5D" class="documentation-section">
98
-
99
-
100
-
101
-
102
-
103
-
104
-
105
-
106
-
107
- <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
108
- <header>
109
- <h3>Public Instance Methods</h3>
110
- </header>
111
-
112
-
113
- <div id="method-i-rows" class="method-detail ">
114
-
115
- <div class="method-heading">
116
- <span class="method-name">rows</span><span
117
- class="method-args">(options={}) { |*params| ... }</span>
118
-
119
- <span class="method-click-advice">click to toggle source</span>
120
-
121
- </div>
122
-
123
-
124
- <div class="method-description">
125
-
126
- <p>Retrieves rows and columns from the file and returns them to the block
127
- provided by the caller</p>
128
-
129
-
130
-
131
-
132
- <div class="method-source-code" id="rows-source">
133
- <pre><span class="ruby-comment"># File lib/sycsvpro/dsl.rb, line 7</span>
134
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">rows</span>(<span class="ruby-identifier">options</span>={})
135
- <span class="ruby-identifier">infile</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-identifier">options</span>[<span class="ruby-value">:infile</span>])
136
- <span class="ruby-identifier">row_filter</span> = <span class="ruby-constant">Sycsvpro</span><span class="ruby-operator">::</span><span class="ruby-constant">RowFilter</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>[<span class="ruby-value">:row_filter</span>]) <span class="ruby-keyword">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-value">:row_filter</span>]
137
-
138
- <span class="ruby-constant">File</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">infile</span>).<span class="ruby-identifier">each_with_index</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">line</span>, <span class="ruby-identifier">index</span><span class="ruby-operator">|</span>
139
- <span class="ruby-keyword">next</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">line</span>.<span class="ruby-identifier">chomp</span>.<span class="ruby-identifier">empty?</span>
140
- <span class="ruby-keyword">next</span> <span class="ruby-keyword">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">row_filter</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-keyword">and</span> <span class="ruby-identifier">row_filter</span>.<span class="ruby-identifier">process</span>(<span class="ruby-identifier">line</span>.<span class="ruby-identifier">chomp</span>, <span class="ruby-identifier">row</span><span class="ruby-operator">:</span> <span class="ruby-identifier">index</span>).<span class="ruby-identifier">nil?</span>
141
-
142
- <span class="ruby-identifier">values</span> = <span class="ruby-identifier">line</span>.<span class="ruby-identifier">chomp</span>.<span class="ruby-identifier">split</span>(<span class="ruby-string">&#39;;&#39;</span>)
143
- <span class="ruby-identifier">params</span> = []
144
- <span class="ruby-identifier">options</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-identifier">params</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">extract_values</span>(<span class="ruby-identifier">values</span>, <span class="ruby-identifier">k</span>, <span class="ruby-identifier">v</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">k</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/column$|columns$/</span> }
145
-
146
- <span class="ruby-keyword">yield</span> <span class="ruby-operator">*</span><span class="ruby-identifier">params</span>
147
- <span class="ruby-keyword">end</span>
148
- <span class="ruby-keyword">end</span></pre>
149
- </div>
150
-
151
- </div>
152
-
153
-
154
-
155
-
156
- </div>
157
-
158
-
159
- <div id="method-i-str2utf8" class="method-detail ">
160
-
161
- <div class="method-heading">
162
- <span class="method-name">str2utf8</span><span
163
- class="method-args">(str)</span>
164
-
165
- <span class="method-click-advice">click to toggle source</span>
166
-
167
- </div>
168
-
169
-
170
- <div class="method-description">
171
-
172
- <p>Remove non-UTF chars from string</p>
173
-
174
-
175
-
176
-
177
- <div class="method-source-code" id="str2utf8-source">
178
- <pre><span class="ruby-comment"># File lib/sycsvpro/dsl.rb, line 41</span>
179
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">str2utf8</span>(<span class="ruby-identifier">str</span>)
180
- <span class="ruby-identifier">str</span>.<span class="ruby-identifier">encode</span>(<span class="ruby-string">&#39;UTF-8&#39;</span>, <span class="ruby-string">&#39;binary&#39;</span>, <span class="ruby-identifier">invalid</span><span class="ruby-operator">:</span> <span class="ruby-value">:replace</span>, <span class="ruby-keyword">undef</span><span class="ruby-operator">:</span> <span class="ruby-value">:replace</span>, <span class="ruby-identifier">replace</span><span class="ruby-operator">:</span> <span class="ruby-string">&#39;&#39;</span>)
181
- <span class="ruby-keyword">end</span></pre>
182
- </div>
183
-
184
- </div>
185
-
186
-
187
-
188
-
189
- </div>
190
-
191
-
192
- <div id="method-i-unstring" class="method-detail ">
193
-
194
- <div class="method-heading">
195
- <span class="method-name">unstring</span><span
196
- class="method-args">(line)</span>
197
-
198
- <span class="method-click-advice">click to toggle source</span>
199
-
200
- </div>
201
-
202
-
203
- <div class="method-description">
204
-
205
- <p>Remove leading and trailing “ and spaces as well as reducing more than 2
206
- spaces between words from csv values. Replac ; with , from values as ; is
207
- used as value separator</p>
208
-
209
-
210
-
211
-
212
- <div class="method-source-code" id="unstring-source">
213
- <pre><span class="ruby-comment"># File lib/sycsvpro/dsl.rb, line 32</span>
214
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">unstring</span>(<span class="ruby-identifier">line</span>)
215
- <span class="ruby-identifier">line</span> = <span class="ruby-identifier">str2utf8</span>(<span class="ruby-identifier">line</span>)
216
- <span class="ruby-identifier">line</span>.<span class="ruby-identifier">scan</span>(<span class="ruby-regexp">/(?&lt;=^&quot;|;&quot;)[^&quot;]+(?=;)+[^&quot;]*|;+[^&quot;](?=&quot;;|&quot;$)/</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
217
- <span class="ruby-identifier">line</span> = <span class="ruby-identifier">line</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-identifier">value</span>, <span class="ruby-identifier">value</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-string">&#39;;&#39;</span>, <span class="ruby-string">&#39;,&#39;</span>))
218
- <span class="ruby-keyword">end</span>
219
- <span class="ruby-identifier">line</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp">/(?&lt;=^|;)\s*&quot;?\s*|\s*&quot;?\s*(?=;|$)/</span>, <span class="ruby-string">&quot;&quot;</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp">/\s{2,}/</span>, <span class="ruby-string">&quot; &quot;</span>) <span class="ruby-keyword">unless</span> <span class="ruby-identifier">line</span>.<span class="ruby-identifier">nil?</span>
220
- <span class="ruby-keyword">end</span></pre>
221
- </div>
222
-
223
- </div>
224
-
225
-
226
-
227
-
228
- </div>
229
-
230
-
231
- <div id="method-i-write_to" class="method-detail ">
232
-
233
- <div class="method-heading">
234
- <span class="method-name">write_to</span><span
235
- class="method-args">(file) { |out| ... }</span>
236
-
237
- <span class="method-click-advice">click to toggle source</span>
238
-
239
- </div>
240
-
241
-
242
- <div class="method-description">
243
-
244
- <p>writes values provided by a block to the given file</p>
245
-
246
-
247
-
248
-
249
- <div class="method-source-code" id="write_to-source">
250
- <pre><span class="ruby-comment"># File lib/sycsvpro/dsl.rb, line 24</span>
251
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">write_to</span>(<span class="ruby-identifier">file</span>)
252
- <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">file</span>, <span class="ruby-string">&#39;w&#39;</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">out</span><span class="ruby-operator">|</span>
253
- <span class="ruby-keyword">yield</span> <span class="ruby-identifier">out</span>
254
- <span class="ruby-keyword">end</span>
255
- <span class="ruby-keyword">end</span></pre>
256
- </div>
257
-
258
- </div>
259
-
260
-
261
-
262
-
263
- </div>
264
-
265
-
266
- </section>
267
-
268
- </section>
269
- </main>
270
-
271
-
272
- <footer id="validator-badges" role="contentinfo">
273
- <p><a href="http://validator.w3.org/check/referer">Validate</a>
274
- <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.1.
275
- <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
276
- </footer>
277
-
data/html/Object.html DELETED
@@ -1,187 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta charset="UTF-8">
6
-
7
- <title>class Object - Your application title</title>
8
-
9
- <link href="./fonts.css" rel="stylesheet">
10
- <link href="./rdoc.css" rel="stylesheet">
11
-
12
- <script type="text/javascript">
13
- var rdoc_rel_prefix = "./";
14
- </script>
15
-
16
- <script src="./js/jquery.js"></script>
17
- <script src="./js/navigation.js"></script>
18
- <script src="./js/search_index.js"></script>
19
- <script src="./js/search.js"></script>
20
- <script src="./js/searcher.js"></script>
21
- <script src="./js/darkfish.js"></script>
22
-
23
-
24
- <body id="top" role="document" class="class">
25
- <nav role="navigation">
26
- <div id="project-navigation">
27
- <div id="home-section" role="region" title="Quick navigation" class="nav-section">
28
- <h2>
29
- <a href="./index.html" rel="home">Home</a>
30
- </h2>
31
-
32
- <div id="table-of-contents-navigation">
33
- <a href="./table_of_contents.html#pages">Pages</a>
34
- <a href="./table_of_contents.html#classes">Classes</a>
35
- <a href="./table_of_contents.html#methods">Methods</a>
36
- </div>
37
- </div>
38
-
39
- <div id="search-section" role="search" class="project-section initially-hidden">
40
- <form action="#" method="get" accept-charset="utf-8">
41
- <div id="search-field-wrapper">
42
- <input id="search-field" role="combobox" aria-label="Search"
43
- aria-autocomplete="list" aria-controls="search-results"
44
- type="text" name="search" placeholder="Search" spellcheck="false"
45
- title="Type to search, Up and Down to navigate, Enter to load">
46
- </div>
47
-
48
- <ul id="search-results" aria-label="Search Results"
49
- aria-busy="false" aria-expanded="false"
50
- aria-atomic="false" class="initially-hidden"></ul>
51
- </form>
52
- </div>
53
-
54
- </div>
55
-
56
-
57
-
58
- <div id="class-metadata">
59
-
60
- <div id="parent-class-section" class="nav-section">
61
- <h3>Parent</h3>
62
-
63
-
64
- <p class="link">BasicObject
65
-
66
- </div>
67
-
68
- <div id="includes-section" class="nav-section">
69
- <h3>Included Modules</h3>
70
-
71
- <ul class="link-list">
72
-
73
-
74
- <li><span class="include">GLI::App</span>
75
-
76
-
77
- </ul>
78
- </div>
79
-
80
-
81
- <!-- Method Quickref -->
82
- <div id="method-list-section" class="nav-section">
83
- <h3>Methods</h3>
84
-
85
- <ul class="link-list" role="directory">
86
-
87
- <li ><a href="#method-i-set_max_row">#set_max_row</a>
88
-
89
- </ul>
90
- </div>
91
-
92
- </div>
93
- </nav>
94
-
95
- <main role="main" aria-labelledby="class-Object">
96
- <h1 id="class-Object" class="class">
97
- class Object
98
- </h1>
99
-
100
- <section class="description">
101
-
102
- </section>
103
-
104
-
105
-
106
-
107
- <section id="5Buntitled-5D" class="documentation-section">
108
-
109
-
110
-
111
-
112
-
113
- <section class="constants-list">
114
- <header>
115
- <h3>Constants</h3>
116
- </header>
117
- <dl>
118
-
119
- <dt id="Stats">Stats
120
-
121
- <dd><p>Creates statistics on the command operation</p>
122
-
123
-
124
- </dl>
125
- </section>
126
-
127
-
128
-
129
-
130
-
131
- <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
132
- <header>
133
- <h3>Public Instance Methods</h3>
134
- </header>
135
-
136
-
137
- <div id="method-i-set_max_row" class="method-detail ">
138
-
139
- <div class="method-heading">
140
- <span class="method-name">set_max_row</span><span
141
- class="method-args">(options, max_row)</span>
142
-
143
- <span class="method-click-advice">click to toggle source</span>
144
-
145
- </div>
146
-
147
-
148
- <div class="method-description">
149
-
150
- <p>the -r flag can take a EOF value which is replaced by the actual row value
151
- of the input file</p>
152
-
153
-
154
-
155
-
156
- <div class="method-source-code" id="set_max_row-source">
157
- <pre><span class="ruby-comment"># File bin/sycsvpro, line 459</span>
158
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">set_max_row</span>(<span class="ruby-identifier">options</span>, <span class="ruby-identifier">max_row</span>)
159
- <span class="ruby-identifier">options</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">option</span>, <span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
160
- <span class="ruby-keyword">case</span> <span class="ruby-identifier">option</span>
161
- <span class="ruby-keyword">when</span> <span class="ruby-string">&quot;r&quot;</span>, <span class="ruby-value">:r</span>, <span class="ruby-string">&quot;row&quot;</span>, <span class="ruby-value">:row</span>
162
- <span class="ruby-identifier">options</span>[<span class="ruby-identifier">option</span>] = <span class="ruby-identifier">options</span>[<span class="ruby-identifier">option</span>].<span class="ruby-identifier">sub</span>(<span class="ruby-regexp">/EOF/i</span>, <span class="ruby-identifier">max_row</span>.<span class="ruby-identifier">to_s</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">option</span>] <span class="ruby-operator">=~</span> <span class="ruby-regexp">/EOF/i</span>
163
- <span class="ruby-keyword">end</span>
164
- <span class="ruby-keyword">end</span>
165
- <span class="ruby-keyword">end</span></pre>
166
- </div>
167
-
168
- </div>
169
-
170
-
171
-
172
-
173
- </div>
174
-
175
-
176
- </section>
177
-
178
- </section>
179
- </main>
180
-
181
-
182
- <footer id="validator-badges" role="contentinfo">
183
- <p><a href="http://validator.w3.org/check/referer">Validate</a>
184
- <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.1.
185
- <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
186
- </footer>
187
-
@@ -1,187 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta charset="UTF-8">
6
-
7
- <title>README - Your application title</title>
8
-
9
- <link href="./fonts.css" rel="stylesheet">
10
- <link href="./rdoc.css" rel="stylesheet">
11
-
12
- <script type="text/javascript">
13
- var rdoc_rel_prefix = "./";
14
- </script>
15
-
16
- <script src="./js/jquery.js"></script>
17
- <script src="./js/navigation.js"></script>
18
- <script src="./js/search_index.js"></script>
19
- <script src="./js/search.js"></script>
20
- <script src="./js/searcher.js"></script>
21
- <script src="./js/darkfish.js"></script>
22
-
23
-
24
- <body id="top" role="document" class="file">
25
- <nav role="navigation">
26
- <div id="project-navigation">
27
- <div id="home-section" role="region" title="Quick navigation" class="nav-section">
28
- <h2>
29
- <a href="./index.html" rel="home">Home</a>
30
- </h2>
31
-
32
- <div id="table-of-contents-navigation">
33
- <a href="./table_of_contents.html#pages">Pages</a>
34
- <a href="./table_of_contents.html#classes">Classes</a>
35
- <a href="./table_of_contents.html#methods">Methods</a>
36
- </div>
37
- </div>
38
-
39
- <div id="search-section" role="search" class="project-section initially-hidden">
40
- <form action="#" method="get" accept-charset="utf-8">
41
- <div id="search-field-wrapper">
42
- <input id="search-field" role="combobox" aria-label="Search"
43
- aria-autocomplete="list" aria-controls="search-results"
44
- type="text" name="search" placeholder="Search" spellcheck="false"
45
- title="Type to search, Up and Down to navigate, Enter to load">
46
- </div>
47
-
48
- <ul id="search-results" aria-label="Search Results"
49
- aria-busy="false" aria-expanded="false"
50
- aria-atomic="false" class="initially-hidden"></ul>
51
- </form>
52
- </div>
53
-
54
- </div>
55
-
56
-
57
- <div class="nav-section">
58
- <h3>Table of Contents</h3>
59
-
60
- <ul class="link-list" role="directory">
61
- <li><a href="#label-sycsvpro">sycsvpro</a>
62
- <li><a href="#label-Install">Install</a>
63
- <li><a href="#label-Use">Use</a>
64
- <li><a href="#label-Developing+for+%60sycsvpro%60">Developing for `sycsvpro`</a>
65
- <li><a href="#label-sycsvpro">sycsvpro</a>
66
- </ul>
67
- </div>
68
-
69
-
70
- <div id="project-metadata">
71
- <div id="fileindex-section" class="nav-section">
72
- <h3>Pages</h3>
73
-
74
- <ul class="link-list">
75
-
76
- <li><a href="./README_rdoc.html">README</a>
77
-
78
- </ul>
79
- </div>
80
-
81
- </div>
82
- </nav>
83
-
84
- <main role="main" aria-label="Page README.rdoc">
85
-
86
- <h1 id="label-sycsvpro">sycsvpro<span><a href="#label-sycsvpro">&para;</a> <a href="#documentation">&uarr;</a></span></h1>
87
- <dl class="rdoc-list note-list"><dt>Author
88
- <dd>
89
- <p>Pierre Sugar (<a
90
- href="mailto:pierre@sugaryourcoffee.de">pierre@sugaryourcoffee.de</a>)</p>
91
- </dd><dt>Copyright
92
- <dd>
93
- <p>Copyright © 2014 by Pierre Sugar</p>
94
- </dd><dt>License
95
- <dd>
96
- <p>Distributed uder the MIT license, see LICENSE in the source distro</p>
97
- </dd></dl>
98
-
99
- <p>The application provides an interface for analyzing, cleaning and operating
100
- on csv files</p>
101
-
102
- <p><a href="http://badge.fury.io/rb/sycsvpro"><img
103
- src="https://badge.fury.io/rb/sycsvpro.png" alt="Gem Version" /></a></p>
104
-
105
- <h2 id="label-Install">Install<span><a href="#label-Install">&para;</a> <a href="#documentation">&uarr;</a></span></h2>
106
-
107
- <p>Install:</p>
108
-
109
- <pre>gem install sycsvpro</pre>
110
-
111
- <h2 id="label-Use">Use<span><a href="#label-Use">&para;</a> <a href="#documentation">&uarr;</a></span></h2>
112
-
113
- <pre>sycsvpro --help</pre>
114
-
115
- <h2 id="label-Developing+for+%60sycsvpro%60">Developing for `sycsvpro`<span><a href="#label-Developing+for+%60sycsvpro%60">&para;</a> <a href="#documentation">&uarr;</a></span></h2>
116
-
117
- <p>First install bundler</p>
118
-
119
- <pre>gem install bundler</pre>
120
-
121
- <p>Get the development dependencies</p>
122
-
123
- <pre>bundle install</pre>
124
-
125
- <p>The code is in</p>
126
-
127
- <pre>lib/sycsvpro
128
- bin</pre>
129
-
130
- <p>Tests are in</p>
131
-
132
- <pre>spec/sycsvpro</pre>
133
-
134
- <p>Test files are in</p>
135
-
136
- <pre>spec/sycsvpro/files</pre>
137
-
138
- <h1 id="label-sycsvpro">sycsvpro<span><a href="#label-sycsvpro">&para;</a> <a href="#documentation">&uarr;</a></span></h1>
139
-
140
- <p>NAME</p>
141
-
142
- <pre>sycsvpro - Processing CSV files</pre>
143
-
144
- <p>SYNOPSIS</p>
145
-
146
- <pre>sycsvpro [global options] command [command options] [arguments...]</pre>
147
-
148
- <p>VERSION</p>
149
-
150
- <pre>0.1.0</pre>
151
-
152
- <p>GLOBAL OPTIONS</p>
153
-
154
- <pre>-f, --file=FILE - CSV file to operate on (default: none)
155
- --help - Show this message
156
- -o, --out=OUT_FILE - CSV file to write the result to (default: none)
157
- -s, --[no-]silent - Silent progress doesn&#39;t show progress indicator
158
- --version - Display the program version</pre>
159
-
160
- <p>COMMANDS</p>
161
-
162
- <pre>aggregate - Aggregates the occurences of row values. Optionally adds a sum row
163
- allocate - Allocate specified columns from the file to a key value
164
- analyze - Analyze the CSV file regarding columns, rows and content
165
- calc - Process math operations on columns. Optionally adds a sum row
166
- collect - Collect values of specified rows and columns from the file and group them in
167
- categories
168
- count - Counts the occurences of column values. Uses column values as headings with count as
169
- values. Columns with a condition will be added as new columns and the condition will
170
- be set as column name. Optionally adds a sum row
171
- execute - Executes the code provided in a file
172
- extract - Extract specified rows and columns from the file
173
- help - Shows a list of commands or help for one command
174
- insert - Inserts rows from a file to a csv-file
175
- list - List scripts in the scripts directory with optionally listing methods
176
- map - Map values in columns to new values
177
- sort - Sort columns based on column values</pre>
178
- </main>
179
-
180
-
181
-
182
- <footer id="validator-badges" role="contentinfo">
183
- <p><a href="http://validator.w3.org/check/referer">Validate</a>
184
- <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.1.
185
- <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
186
- </footer>
187
-