anonymizer 0.0.0 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,30 +1,12 @@
1
1
  require 'rubygems'
2
2
  require 'rake'
3
-
4
- begin
5
- require 'jeweler'
6
- Jeweler::Tasks.new do |gemspec|
7
- gemspec.name = "anonymizer"
8
- gemspec.summary = "Anonymizes a collection of files and/or directories for interrater reliabiliy analyses and the like."
9
- gemspec.description = "Anonymizes a collection of files and/or directories for interrater reliabiliy analyses and the like."
10
- gemspec.email = "kk4@medicine.wisc.edu"
11
- gemspec.homepage = "http://github.com/brainmap/anonymizer"
12
- gemspec.authors = ["Kristopher J. Kosmatka"]
13
- end
14
- Jeweler::GemcutterTasks.new
15
- rescue LoadError
16
- puts "Jeweler not available. Install it with: sudo gem install jeweler"
3
+ require 'echoe'
4
+
5
+ Echoe.new('anonymizer', '0.1.0') do |p|
6
+ p.description = "Anonymizes a collection of files and/or directories for interrater reliabiliy analyses and the like."
7
+ p.url = "http://github.com/kjkosmatka/anonymizer"
8
+ p.author = "Kristopher J. Kosmatka"
9
+ p.email = "kk4@medicine.wisc.edu"
10
+ p.ignore_pattern = ["test/out*"]
11
+ p.development_dependencies = []
17
12
  end
18
-
19
-
20
-
21
-
22
-
23
- #Echoe.new('anonymizer', '0.1.0') do |p|
24
- # p.description = "Anonymizes a collection of files and/or directories for interrater reliabiliy analyses and the like."
25
- # p.url = "http://github.com/kjkosmatka/anonymizer"
26
- # p.author = "Kristopher J. Kosmatka"
27
- # p.email = "kk4@medicine.wisc.edu"
28
- # p.ignore_pattern = ["test/out*"]
29
- # p.development_dependencies = []
30
- #end
data/anonymizer.gemspec CHANGED
@@ -1,62 +1,66 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
- # -*- encoding: utf-8 -*-
1
+ --- !ruby/object:Gem::Specification
2
+ name: anonymizer
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Kristopher J. Kosmatka
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
5
11
 
6
- Gem::Specification.new do |s|
7
- s.name = %q{anonymizer}
8
- s.version = "0.0.0"
12
+ date: 2009-08-13 02:00:00 -05:00
13
+ default_executable: anonymize_data.rb
14
+ dependencies: []
9
15
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Kristopher J. Kosmatka"]
12
- s.date = %q{2009-12-10}
13
- s.default_executable = %q{anonymize_data.rb}
14
- s.description = %q{Anonymizes a collection of files and/or directories for interrater reliabiliy analyses and the like.}
15
- s.email = %q{kk4@medicine.wisc.edu}
16
- s.executables = ["anonymize_data.rb"]
17
- s.extra_rdoc_files = [
18
- "README.rdoc"
19
- ]
20
- s.files = [
21
- ".gitignore",
22
- "Manifest",
23
- "README.rdoc",
24
- "Rakefile",
25
- "VERSION",
26
- "anonymizer-0.1.0.gem",
27
- "anonymizer.gemspec",
28
- "bin/anonymize_data.rb",
29
- "doc/classes/Anonymizer.html",
30
- "doc/classes/Anonymizer.src/M000003.html",
31
- "doc/classes/Anonymizer.src/M000004.html",
32
- "doc/classes/Anonymizer.src/M000005.html",
33
- "doc/classes/Array.html",
34
- "doc/classes/Array.src/M000001.html",
35
- "doc/classes/Array.src/M000002.html",
36
- "doc/created.rid",
37
- "doc/files/bin/anonymize_data_rb.html",
38
- "doc/files/lib/anonymizer_rb.html",
39
- "doc/fr_class_index.html",
40
- "doc/fr_file_index.html",
41
- "doc/fr_method_index.html",
42
- "doc/index.html",
43
- "doc/rdoc-style.css",
44
- "lib/anonymizer.rb"
45
- ]
46
- s.homepage = %q{http://github.com/brainmap/anonymizer}
47
- s.rdoc_options = ["--charset=UTF-8"]
48
- s.require_paths = ["lib"]
49
- s.rubygems_version = %q{1.3.5}
50
- s.summary = %q{Anonymizes a collection of files and/or directories for interrater reliabiliy analyses and the like.}
16
+ description: Anonymizes a collection of files and/or directories for interrater reliabiliy analyses and the like.
17
+ email: kk4@medicine.wisc.edu
18
+ executables:
19
+ - anonymize_data.rb
20
+ extensions: []
51
21
 
52
- if s.respond_to? :specification_version then
53
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
54
- s.specification_version = 3
22
+ extra_rdoc_files:
23
+ - bin/anonymize_data.rb
24
+ - lib/anonymizer.rb
25
+ - README.rdoc
26
+ files:
27
+ - anonymizer.gemspec
28
+ - bin/anonymize_data.rb
29
+ - lib/anonymizer.rb
30
+ - Manifest
31
+ - Rakefile
32
+ - README.rdoc
33
+ has_rdoc: true
34
+ homepage: http://github.com/kjkosmatka/anonymizer
35
+ licenses:
36
+ post_install_message:
37
+ rdoc_options:
38
+ - --line-numbers
39
+ - --inline-source
40
+ - --title
41
+ - Anonymizer
42
+ - --main
43
+ - README.rdoc
44
+ require_paths:
45
+ - lib
46
+ required_ruby_version: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: "0"
51
+ version:
52
+ required_rubygems_version: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: "1.2"
57
+ version:
58
+ requirements: []
55
59
 
56
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
57
- else
58
- end
59
- else
60
- end
61
- end
60
+ rubyforge_project: anonymizer
61
+ rubygems_version: 1.3.5
62
+ signing_key:
63
+ specification_version: 2
64
+ summary: Anonymizes a collection of files and/or directories for interrater reliabiliy analyses and the like.
65
+ test_files: []
62
66
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anonymizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kristopher J. Kosmatka
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-12-10 00:00:00 -06:00
12
+ date: 2009-08-13 02:00:00 -05:00
13
13
  default_executable: anonymize_data.rb
14
14
  dependencies: []
15
15
 
@@ -20,39 +20,28 @@ executables:
20
20
  extensions: []
21
21
 
22
22
  extra_rdoc_files:
23
+ - bin/anonymize_data.rb
24
+ - lib/anonymizer.rb
23
25
  - README.rdoc
24
26
  files:
25
- - .gitignore
26
- - Manifest
27
- - README.rdoc
28
- - Rakefile
29
- - VERSION
30
- - anonymizer-0.1.0.gem
31
27
  - anonymizer.gemspec
32
28
  - bin/anonymize_data.rb
33
- - doc/classes/Anonymizer.html
34
- - doc/classes/Anonymizer.src/M000003.html
35
- - doc/classes/Anonymizer.src/M000004.html
36
- - doc/classes/Anonymizer.src/M000005.html
37
- - doc/classes/Array.html
38
- - doc/classes/Array.src/M000001.html
39
- - doc/classes/Array.src/M000002.html
40
- - doc/created.rid
41
- - doc/files/bin/anonymize_data_rb.html
42
- - doc/files/lib/anonymizer_rb.html
43
- - doc/fr_class_index.html
44
- - doc/fr_file_index.html
45
- - doc/fr_method_index.html
46
- - doc/index.html
47
- - doc/rdoc-style.css
48
29
  - lib/anonymizer.rb
30
+ - Manifest
31
+ - Rakefile
32
+ - README.rdoc
49
33
  has_rdoc: true
50
- homepage: http://github.com/brainmap/anonymizer
34
+ homepage: http://github.com/kjkosmatka/anonymizer
51
35
  licenses: []
52
36
 
53
37
  post_install_message:
54
38
  rdoc_options:
55
- - --charset=UTF-8
39
+ - --line-numbers
40
+ - --inline-source
41
+ - --title
42
+ - Anonymizer
43
+ - --main
44
+ - README.rdoc
56
45
  require_paths:
57
46
  - lib
58
47
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -65,14 +54,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
65
54
  requirements:
66
55
  - - ">="
67
56
  - !ruby/object:Gem::Version
68
- version: "0"
57
+ version: "1.2"
69
58
  version:
70
59
  requirements: []
71
60
 
72
- rubyforge_project:
61
+ rubyforge_project: anonymizer
73
62
  rubygems_version: 1.3.5
74
63
  signing_key:
75
- specification_version: 3
64
+ specification_version: 2
76
65
  summary: Anonymizes a collection of files and/or directories for interrater reliabiliy analyses and the like.
77
66
  test_files: []
78
67
 
data/.gitignore DELETED
@@ -1,2 +0,0 @@
1
- .DS_Store
2
- test/*
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.0.0
data/anonymizer-0.1.0.gem DELETED
Binary file
@@ -1,227 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Class: Anonymizer</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Class</strong></td>
53
- <td class="class-name-in-header">Anonymizer</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../files/lib/anonymizer_rb.html">
59
- lib/anonymizer.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- <tr class="top-aligned-row">
66
- <td><strong>Parent:</strong></td>
67
- <td>
68
- Object
69
- </td>
70
- </tr>
71
- </table>
72
- </div>
73
- <!-- banner header -->
74
-
75
- <div id="bodyContent">
76
-
77
-
78
-
79
- <div id="contextContent">
80
-
81
-
82
-
83
- </div>
84
-
85
- <div id="method-list">
86
- <h3 class="section-bar">Methods</h3>
87
-
88
- <div class="name-list">
89
- <a href="#M000004">anonymize</a>&nbsp;&nbsp;
90
- <a href="#M000003">new</a>&nbsp;&nbsp;
91
- <a href="#M000005">record_to</a>&nbsp;&nbsp;
92
- </div>
93
- </div>
94
-
95
- </div>
96
-
97
-
98
- <!-- if includes -->
99
-
100
- <div id="section">
101
-
102
-
103
-
104
-
105
-
106
- <div id="attribute-list">
107
- <h3 class="section-bar">Attributes</h3>
108
-
109
- <div class="name-list">
110
- <table>
111
- <tr class="top-aligned-row context-row">
112
- <td class="context-item-name">anonymizations</td>
113
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
114
- <td class="context-item-desc">
115
- a hash, the keys are the original filepaths, the values are the
116
- corresponding anonymized names
117
-
118
- </td>
119
- </tr>
120
- <tr class="top-aligned-row context-row">
121
- <td class="context-item-name">destination_dir</td>
122
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
123
- <td class="context-item-desc">
124
- a string, the directory to which all of the anoymizations and the key
125
- should be copied
126
-
127
- </td>
128
- </tr>
129
- <tr class="top-aligned-row context-row">
130
- <td class="context-item-name">filepaths</td>
131
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
132
- <td class="context-item-desc">
133
- an array of strings, the paths to the items to be anonymized
134
-
135
- </td>
136
- </tr>
137
- </table>
138
- </div>
139
- </div>
140
-
141
-
142
-
143
- <!-- if method_list -->
144
- <div id="methods">
145
- <h3 class="section-bar">Public Class methods</h3>
146
-
147
- <div id="method-M000003" class="method-detail">
148
- <a name="M000003"></a>
149
-
150
- <div class="method-heading">
151
- <a href="Anonymizer.src/M000003.html" target="Code" class="method-signature"
152
- onclick="popupCode('Anonymizer.src/M000003.html');return false;">
153
- <span class="method-name">new</span><span class="method-args">(filepaths)</span>
154
- </a>
155
- </div>
156
-
157
- <div class="method-description">
158
- <p>
159
- Creates a <a href="Anonymizer.html#M000003">new</a> instance with an array
160
- of filepaths (strings) A <a href="Anonymizer.html#M000003">new</a> set of
161
- anaonymizations will be created automatically at initialization. If you
162
- want to reshuffle the anonymizations you can call <a
163
- href="Anonymizer.html#M000004">anonymize</a> at any time afterward.
164
- </p>
165
- </div>
166
- </div>
167
-
168
- <h3 class="section-bar">Public Instance methods</h3>
169
-
170
- <div id="method-M000004" class="method-detail">
171
- <a name="M000004"></a>
172
-
173
- <div class="method-heading">
174
- <a href="Anonymizer.src/M000004.html" target="Code" class="method-signature"
175
- onclick="popupCode('Anonymizer.src/M000004.html');return false;">
176
- <span class="method-name">anonymize</span><span class="method-args">()</span>
177
- </a>
178
- </div>
179
-
180
- <div class="method-description">
181
- <p>
182
- Reshuffles the anonymized names
183
- </p>
184
- </div>
185
- </div>
186
-
187
- <div id="method-M000005" class="method-detail">
188
- <a name="M000005"></a>
189
-
190
- <div class="method-heading">
191
- <a href="Anonymizer.src/M000005.html" target="Code" class="method-signature"
192
- onclick="popupCode('Anonymizer.src/M000005.html');return false;">
193
- <span class="method-name">record_to</span><span class="method-args">(destination_dir, options = {})</span>
194
- </a>
195
- </div>
196
-
197
- <div class="method-description">
198
- <p>
199
- Copies the collection of files/directories to the destination directory
200
- using the current anonymized names. Records the anonymizations in a
201
- keymap.yml file.
202
- </p>
203
- <h3>Options</h3>
204
- <p>
205
- :inclue_csv =&gt; true &#8212; writes the csv format keymap in addition to
206
- the yaml
207
- </p>
208
- <p>
209
- :keymap_name =&gt; &quot;basename&quot; &#8212; uses an alternate file
210
- basename for the keymap files (the default is &quot;keymap&quot;)
211
- </p>
212
- </div>
213
- </div>
214
-
215
-
216
- </div>
217
-
218
-
219
- </div>
220
-
221
-
222
- <div id="validator-badges">
223
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
224
- </div>
225
-
226
- </body>
227
- </html>
@@ -1,20 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html>
7
- <head>
8
- <title>new (Anonymizer)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/anonymizer.rb, line 15</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">filepaths</span>)
15
- <span class="ruby-ivar">@filepaths</span> = <span class="ruby-identifier">filepaths</span>
16
- <span class="ruby-ivar">@anonymizations</span> = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>
17
- <span class="ruby-identifier">anonymize</span>
18
- <span class="ruby-keyword kw">end</span></pre>
19
- </body>
20
- </html>
@@ -1,24 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html>
7
- <head>
8
- <title>anonymize (Anonymizer)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/anonymizer.rb, line 22</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">anonymize</span>
15
- <span class="ruby-identifier">keys</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@filepaths</span>)
16
- <span class="ruby-identifier">idx</span> = <span class="ruby-value">0</span>
17
- <span class="ruby-identifier">ndigits</span> = (<span class="ruby-constant">Math</span>.<span class="ruby-identifier">log10</span>(<span class="ruby-ivar">@filepaths</span>.<span class="ruby-identifier">length</span>)<span class="ruby-operator">+</span><span class="ruby-value">1</span>).<span class="ruby-identifier">floor</span>
18
- <span class="ruby-keyword kw">until</span> <span class="ruby-identifier">keys</span>.<span class="ruby-identifier">empty?</span>
19
- <span class="ruby-ivar">@anonymizations</span>[<span class="ruby-identifier">keys</span>.<span class="ruby-identifier">pick!</span>] = <span class="ruby-node">&quot;%0#{ndigits}d&quot;</span> <span class="ruby-operator">%</span> <span class="ruby-identifier">idx</span>
20
- <span class="ruby-identifier">idx</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
21
- <span class="ruby-keyword kw">end</span>
22
- <span class="ruby-keyword kw">end</span></pre>
23
- </body>
24
- </html>
@@ -1,24 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html>
7
- <head>
8
- <title>record_to (Anonymizer)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/anonymizer.rb, line 40</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">record_to</span>(<span class="ruby-identifier">destination_dir</span>, <span class="ruby-identifier">options</span> = {})
15
- <span class="ruby-identifier">raise</span>(<span class="ruby-constant">IOError</span>, <span class="ruby-value str">&quot;Destination directory not found.&quot;</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-identifier">destination_dir</span>) <span class="ruby-keyword kw">and</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">directory?</span>(<span class="ruby-identifier">destination_dir</span>)
16
- <span class="ruby-ivar">@anonymizations</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">orig</span>, <span class="ruby-identifier">anon</span><span class="ruby-operator">|</span>
17
- <span class="ruby-identifier">copy_directory_or_file</span>(<span class="ruby-identifier">orig</span>, <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">destination_dir</span>, <span class="ruby-identifier">anon</span>))
18
- <span class="ruby-keyword kw">end</span>
19
- <span class="ruby-identifier">keymap_filename</span> = <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:keymap_name</span>].<span class="ruby-identifier">nil?</span> <span class="ruby-value">? </span><span class="ruby-value str">&quot;keymap&quot;</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:keymap_name</span>]
20
- <span class="ruby-identifier">write_yml</span>(<span class="ruby-identifier">destination_dir</span>, <span class="ruby-identifier">keymap_filename</span> <span class="ruby-operator">+</span> <span class="ruby-value str">'.yml'</span>)
21
- <span class="ruby-identifier">write_csv</span>(<span class="ruby-identifier">destination_dir</span>, <span class="ruby-identifier">keymap_filename</span> <span class="ruby-operator">+</span> <span class="ruby-value str">'.csv'</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:include_csv</span>]
22
- <span class="ruby-keyword kw">end</span></pre>
23
- </body>
24
- </html>
@@ -1,166 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Class: Array</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Class</strong></td>
53
- <td class="class-name-in-header">Array</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../files/lib/anonymizer_rb.html">
59
- lib/anonymizer.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- <tr class="top-aligned-row">
66
- <td><strong>Parent:</strong></td>
67
- <td>
68
- Object
69
- </td>
70
- </tr>
71
- </table>
72
- </div>
73
- <!-- banner header -->
74
-
75
- <div id="bodyContent">
76
-
77
-
78
-
79
- <div id="contextContent">
80
-
81
- <div id="description">
82
- <p>
83
- Augments the ruby array class with a couple convenient random picking
84
- methods
85
- </p>
86
-
87
- </div>
88
-
89
-
90
- </div>
91
-
92
- <div id="method-list">
93
- <h3 class="section-bar">Methods</h3>
94
-
95
- <div class="name-list">
96
- <a href="#M000001">pick</a>&nbsp;&nbsp;
97
- <a href="#M000002">pick!</a>&nbsp;&nbsp;
98
- </div>
99
- </div>
100
-
101
- </div>
102
-
103
-
104
- <!-- if includes -->
105
-
106
- <div id="section">
107
-
108
-
109
-
110
-
111
-
112
-
113
-
114
-
115
- <!-- if method_list -->
116
- <div id="methods">
117
- <h3 class="section-bar">Public Instance methods</h3>
118
-
119
- <div id="method-M000001" class="method-detail">
120
- <a name="M000001"></a>
121
-
122
- <div class="method-heading">
123
- <a href="Array.src/M000001.html" target="Code" class="method-signature"
124
- onclick="popupCode('Array.src/M000001.html');return false;">
125
- <span class="method-name">pick</span><span class="method-args">()</span>
126
- </a>
127
- </div>
128
-
129
- <div class="method-description">
130
- <p>
131
- Picks one value from the array at random, array remains unchanged.
132
- </p>
133
- </div>
134
- </div>
135
-
136
- <div id="method-M000002" class="method-detail">
137
- <a name="M000002"></a>
138
-
139
- <div class="method-heading">
140
- <a href="Array.src/M000002.html" target="Code" class="method-signature"
141
- onclick="popupCode('Array.src/M000002.html');return false;">
142
- <span class="method-name">pick!</span><span class="method-args">()</span>
143
- </a>
144
- </div>
145
-
146
- <div class="method-description">
147
- <p>
148
- Removes and returns one element of the array at random, the original array
149
- is changed by this method.
150
- </p>
151
- </div>
152
- </div>
153
-
154
-
155
- </div>
156
-
157
-
158
- </div>
159
-
160
-
161
- <div id="validator-badges">
162
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
163
- </div>
164
-
165
- </body>
166
- </html>
@@ -1,18 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html>
7
- <head>
8
- <title>pick (Array)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/anonymizer.rb, line 95</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pick</span>
15
- <span class="ruby-identifier">at</span>(<span class="ruby-identifier">rand</span>(<span class="ruby-identifier">length</span>))
16
- <span class="ruby-keyword kw">end</span></pre>
17
- </body>
18
- </html>
@@ -1,18 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html>
7
- <head>
8
- <title>pick! (Array)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/anonymizer.rb, line 99</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pick!</span>
15
- <span class="ruby-identifier">delete_at</span>(<span class="ruby-identifier">rand</span>(<span class="ruby-identifier">length</span>))
16
- <span class="ruby-keyword kw">end</span></pre>
17
- </body>
18
- </html>
data/doc/created.rid DELETED
@@ -1 +0,0 @@
1
- Fri, 14 Aug 2009 09:42:06 -0500
@@ -1,109 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>File: anonymize_data.rb</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="fileHeader">
50
- <h1>anonymize_data.rb</h1>
51
- <table class="header-table">
52
- <tr class="top-aligned-row">
53
- <td><strong>Path:</strong></td>
54
- <td>bin/anonymize_data.rb
55
- </td>
56
- </tr>
57
- <tr class="top-aligned-row">
58
- <td><strong>Last Update:</strong></td>
59
- <td>Thu Aug 13 15:44:49 -0500 2009</td>
60
- </tr>
61
- </table>
62
- </div>
63
- <!-- banner header -->
64
-
65
- <div id="bodyContent">
66
-
67
-
68
-
69
- <div id="contextContent">
70
-
71
-
72
- <div id="requires-list">
73
- <h3 class="section-bar">Required files</h3>
74
-
75
- <div class="name-list">
76
- optparse&nbsp;&nbsp;
77
- anonymizer&nbsp;&nbsp;
78
- </div>
79
- </div>
80
-
81
- </div>
82
-
83
-
84
- </div>
85
-
86
-
87
- <!-- if includes -->
88
-
89
- <div id="section">
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
- <!-- if method_list -->
99
-
100
-
101
- </div>
102
-
103
-
104
- <div id="validator-badges">
105
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
106
- </div>
107
-
108
- </body>
109
- </html>
@@ -1,109 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>File: anonymizer.rb</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="fileHeader">
50
- <h1>anonymizer.rb</h1>
51
- <table class="header-table">
52
- <tr class="top-aligned-row">
53
- <td><strong>Path:</strong></td>
54
- <td>lib/anonymizer.rb
55
- </td>
56
- </tr>
57
- <tr class="top-aligned-row">
58
- <td><strong>Last Update:</strong></td>
59
- <td>Thu Aug 13 14:57:41 -0500 2009</td>
60
- </tr>
61
- </table>
62
- </div>
63
- <!-- banner header -->
64
-
65
- <div id="bodyContent">
66
-
67
-
68
-
69
- <div id="contextContent">
70
-
71
-
72
- <div id="requires-list">
73
- <h3 class="section-bar">Required files</h3>
74
-
75
- <div class="name-list">
76
- fileutils&nbsp;&nbsp;
77
- yaml&nbsp;&nbsp;
78
- </div>
79
- </div>
80
-
81
- </div>
82
-
83
-
84
- </div>
85
-
86
-
87
- <!-- if includes -->
88
-
89
- <div id="section">
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
- <!-- if method_list -->
99
-
100
-
101
- </div>
102
-
103
-
104
- <div id="validator-badges">
105
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
106
- </div>
107
-
108
- </body>
109
- </html>
@@ -1,28 +0,0 @@
1
-
2
- <?xml version="1.0" encoding="iso-8859-1"?>
3
- <!DOCTYPE html
4
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
5
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6
-
7
- <!--
8
-
9
- Classes
10
-
11
- -->
12
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
13
- <head>
14
- <title>Classes</title>
15
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
16
- <link rel="stylesheet" href="rdoc-style.css" type="text/css" />
17
- <base target="docwin" />
18
- </head>
19
- <body>
20
- <div id="index">
21
- <h1 class="section-bar">Classes</h1>
22
- <div id="index-entries">
23
- <a href="classes/Anonymizer.html">Anonymizer</a><br />
24
- <a href="classes/Array.html">Array</a><br />
25
- </div>
26
- </div>
27
- </body>
28
- </html>
@@ -1,28 +0,0 @@
1
-
2
- <?xml version="1.0" encoding="iso-8859-1"?>
3
- <!DOCTYPE html
4
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
5
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6
-
7
- <!--
8
-
9
- Files
10
-
11
- -->
12
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
13
- <head>
14
- <title>Files</title>
15
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
16
- <link rel="stylesheet" href="rdoc-style.css" type="text/css" />
17
- <base target="docwin" />
18
- </head>
19
- <body>
20
- <div id="index">
21
- <h1 class="section-bar">Files</h1>
22
- <div id="index-entries">
23
- <a href="files/bin/anonymize_data_rb.html">bin/anonymize_data.rb</a><br />
24
- <a href="files/lib/anonymizer_rb.html">lib/anonymizer.rb</a><br />
25
- </div>
26
- </div>
27
- </body>
28
- </html>
@@ -1,31 +0,0 @@
1
-
2
- <?xml version="1.0" encoding="iso-8859-1"?>
3
- <!DOCTYPE html
4
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
5
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6
-
7
- <!--
8
-
9
- Methods
10
-
11
- -->
12
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
13
- <head>
14
- <title>Methods</title>
15
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
16
- <link rel="stylesheet" href="rdoc-style.css" type="text/css" />
17
- <base target="docwin" />
18
- </head>
19
- <body>
20
- <div id="index">
21
- <h1 class="section-bar">Methods</h1>
22
- <div id="index-entries">
23
- <a href="classes/Anonymizer.html#M000004">anonymize (Anonymizer)</a><br />
24
- <a href="classes/Anonymizer.html#M000003">new (Anonymizer)</a><br />
25
- <a href="classes/Array.html#M000001">pick (Array)</a><br />
26
- <a href="classes/Array.html#M000002">pick! (Array)</a><br />
27
- <a href="classes/Anonymizer.html#M000005">record_to (Anonymizer)</a><br />
28
- </div>
29
- </div>
30
- </body>
31
- </html>
data/doc/index.html DELETED
@@ -1,24 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
5
-
6
- <!--
7
-
8
- RDoc Documentation
9
-
10
- -->
11
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
12
- <head>
13
- <title>RDoc Documentation</title>
14
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
15
- </head>
16
- <frameset rows="20%, 80%">
17
- <frameset cols="25%,35%,45%">
18
- <frame src="fr_file_index.html" title="Files" name="Files" />
19
- <frame src="fr_class_index.html" name="Classes" />
20
- <frame src="fr_method_index.html" name="Methods" />
21
- </frameset>
22
- <frame src="files/bin/anonymize_data_rb.html" name="docwin" />
23
- </frameset>
24
- </html>
data/doc/rdoc-style.css DELETED
@@ -1,208 +0,0 @@
1
-
2
- body {
3
- font-family: Verdana,Arial,Helvetica,sans-serif;
4
- font-size: 90%;
5
- margin: 0;
6
- margin-left: 40px;
7
- padding: 0;
8
- background: white;
9
- }
10
-
11
- h1,h2,h3,h4 { margin: 0; color: #efefef; background: transparent; }
12
- h1 { font-size: 150%; }
13
- h2,h3,h4 { margin-top: 1em; }
14
-
15
- a { background: #eef; color: #039; text-decoration: none; }
16
- a:hover { background: #039; color: #eef; }
17
-
18
- /* Override the base stylesheet's Anchor inside a table cell */
19
- td > a {
20
- background: transparent;
21
- color: #039;
22
- text-decoration: none;
23
- }
24
-
25
- /* and inside a section title */
26
- .section-title > a {
27
- background: transparent;
28
- color: #eee;
29
- text-decoration: none;
30
- }
31
-
32
- /* === Structural elements =================================== */
33
-
34
- div#index {
35
- margin: 0;
36
- margin-left: -40px;
37
- padding: 0;
38
- font-size: 90%;
39
- }
40
-
41
-
42
- div#index a {
43
- margin-left: 0.7em;
44
- }
45
-
46
- div#index .section-bar {
47
- margin-left: 0px;
48
- padding-left: 0.7em;
49
- background: #ccc;
50
- font-size: small;
51
- }
52
-
53
-
54
- div#classHeader, div#fileHeader {
55
- width: auto;
56
- color: white;
57
- padding: 0.5em 1.5em 0.5em 1.5em;
58
- margin: 0;
59
- margin-left: -40px;
60
- border-bottom: 3px solid #006;
61
- }
62
-
63
- div#classHeader a, div#fileHeader a {
64
- background: inherit;
65
- color: white;
66
- }
67
-
68
- div#classHeader td, div#fileHeader td {
69
- background: inherit;
70
- color: white;
71
- }
72
-
73
-
74
- div#fileHeader {
75
- background: #057;
76
- }
77
-
78
- div#classHeader {
79
- background: #048;
80
- }
81
-
82
-
83
- .class-name-in-header {
84
- font-size: 180%;
85
- font-weight: bold;
86
- }
87
-
88
-
89
- div#bodyContent {
90
- padding: 0 1.5em 0 1.5em;
91
- }
92
-
93
- div#description {
94
- padding: 0.5em 1.5em;
95
- background: #efefef;
96
- border: 1px dotted #999;
97
- }
98
-
99
- div#description h1,h2,h3,h4,h5,h6 {
100
- color: #125;;
101
- background: transparent;
102
- }
103
-
104
- div#validator-badges {
105
- text-align: center;
106
- }
107
- div#validator-badges img { border: 0; }
108
-
109
- div#copyright {
110
- color: #333;
111
- background: #efefef;
112
- font: 0.75em sans-serif;
113
- margin-top: 5em;
114
- margin-bottom: 0;
115
- padding: 0.5em 2em;
116
- }
117
-
118
-
119
- /* === Classes =================================== */
120
-
121
- table.header-table {
122
- color: white;
123
- font-size: small;
124
- }
125
-
126
- .type-note {
127
- font-size: small;
128
- color: #DEDEDE;
129
- }
130
-
131
- .xxsection-bar {
132
- background: #eee;
133
- color: #333;
134
- padding: 3px;
135
- }
136
-
137
- .section-bar {
138
- color: #333;
139
- border-bottom: 1px solid #999;
140
- margin-left: -20px;
141
- }
142
-
143
-
144
- .section-title {
145
- background: #79a;
146
- color: #eee;
147
- padding: 3px;
148
- margin-top: 2em;
149
- margin-left: -30px;
150
- border: 1px solid #999;
151
- }
152
-
153
- .top-aligned-row { vertical-align: top }
154
- .bottom-aligned-row { vertical-align: bottom }
155
-
156
- /* --- Context section classes ----------------------- */
157
-
158
- .context-row { }
159
- .context-item-name { font-family: monospace; font-weight: bold; color: black; }
160
- .context-item-value { font-size: small; color: #448; }
161
- .context-item-desc { color: #333; padding-left: 2em; }
162
-
163
- /* --- Method classes -------------------------- */
164
- .method-detail {
165
- background: #efefef;
166
- padding: 0;
167
- margin-top: 0.5em;
168
- margin-bottom: 1em;
169
- border: 1px dotted #ccc;
170
- }
171
- .method-heading {
172
- color: black;
173
- background: #ccc;
174
- border-bottom: 1px solid #666;
175
- padding: 0.2em 0.5em 0 0.5em;
176
- }
177
- .method-signature { color: black; background: inherit; }
178
- .method-name { font-weight: bold; }
179
- .method-args { font-style: italic; }
180
- .method-description { padding: 0 0.5em 0 0.5em; }
181
-
182
- /* --- Source code sections -------------------- */
183
-
184
- a.source-toggle { font-size: 90%; }
185
- div.method-source-code {
186
- background: #262626;
187
- color: #ffdead;
188
- margin: 1em;
189
- padding: 0.5em;
190
- border: 1px dashed #999;
191
- overflow: hidden;
192
- }
193
-
194
- div.method-source-code pre { color: #ffdead; overflow: hidden; }
195
-
196
- /* --- Ruby keyword styles --------------------- */
197
-
198
- .standalone-code { background: #221111; color: #ffdead; overflow: hidden; }
199
-
200
- .ruby-constant { color: #7fffd4; background: transparent; }
201
- .ruby-keyword { color: #00ffff; background: transparent; }
202
- .ruby-ivar { color: #eedd82; background: transparent; }
203
- .ruby-operator { color: #00ffee; background: transparent; }
204
- .ruby-identifier { color: #ffdead; background: transparent; }
205
- .ruby-node { color: #ffa07a; background: transparent; }
206
- .ruby-comment { color: #b22222; font-weight: bold; background: transparent; }
207
- .ruby-regexp { color: #ffa07a; background: transparent; }
208
- .ruby-value { color: #7fffd4; background: transparent; }