gsterndale-warrant 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.textile +2 -2
- data/VERSION.yml +1 -1
- data/test/rails_root/config/environment.rb +0 -4
- data/test/rails_root/test/unit/post_test.rb +18 -0
- metadata +9 -104
- data/test/rails_root/vendor/gems/RedCloth-3.0.4/bin/redcloth +0 -3
- data/test/rails_root/vendor/gems/RedCloth-3.0.4/doc/CHANGELOG +0 -160
- data/test/rails_root/vendor/gems/RedCloth-3.0.4/doc/COPYING +0 -25
- data/test/rails_root/vendor/gems/RedCloth-3.0.4/doc/README +0 -106
- data/test/rails_root/vendor/gems/RedCloth-3.0.4/doc/REFERENCE +0 -216
- data/test/rails_root/vendor/gems/RedCloth-3.0.4/doc/make.rb +0 -359
- data/test/rails_root/vendor/gems/RedCloth-3.0.4/lib/redcloth.rb +0 -1130
- data/test/rails_root/vendor/gems/RedCloth-3.0.4/run-tests.rb +0 -28
- data/test/rails_root/vendor/gems/RedCloth-3.0.4/setup.rb +0 -1376
- data/test/rails_root/vendor/gems/RedCloth-3.0.4/tests/code.yml +0 -105
- data/test/rails_root/vendor/gems/RedCloth-3.0.4/tests/hard_breaks.yml +0 -26
- data/test/rails_root/vendor/gems/RedCloth-3.0.4/tests/images.yml +0 -171
- data/test/rails_root/vendor/gems/RedCloth-3.0.4/tests/instiki.yml +0 -39
- data/test/rails_root/vendor/gems/RedCloth-3.0.4/tests/links.yml +0 -155
- data/test/rails_root/vendor/gems/RedCloth-3.0.4/tests/lists.yml +0 -77
- data/test/rails_root/vendor/gems/RedCloth-3.0.4/tests/markdown.yml +0 -218
- data/test/rails_root/vendor/gems/RedCloth-3.0.4/tests/poignant.yml +0 -64
- data/test/rails_root/vendor/gems/RedCloth-3.0.4/tests/table.yml +0 -198
- data/test/rails_root/vendor/gems/RedCloth-3.0.4/tests/textism.yml +0 -406
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/LICENSE +0 -21
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/README.textile +0 -204
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/Rakefile +0 -54
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/TODO.textile +0 -8
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/USAGE +0 -1
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/clearance_generator.rb +0 -92
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/lib/insert_commands.rb +0 -103
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/lib/rake_commands.rb +0 -22
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/README +0 -54
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/controllers/application.rb +0 -5
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/controllers/confirmations_controller.rb +0 -3
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/controllers/passwords_controller.rb +0 -3
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/controllers/sessions_controller.rb +0 -3
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/controllers/users_controller.rb +0 -3
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/models/clearance_mailer.rb +0 -5
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/models/user.rb +0 -3
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/views/clearance_mailer/change_password.html.erb +0 -10
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/views/clearance_mailer/confirmation.html.erb +0 -1
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/views/passwords/edit.html.erb +0 -25
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/views/passwords/new.html.erb +0 -15
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/views/sessions/new.html.erb +0 -28
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/views/users/_form.html.erb +0 -13
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/views/users/edit.html.erb +0 -6
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/app/views/users/new.html.erb +0 -6
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/db/migrate/create_users_with_clearance_columns.rb +0 -21
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/db/migrate/update_users_with_clearance_columns.rb +0 -42
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/test/factories/clearance.rb +0 -16
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/test/functional/confirmations_controller_test.rb +0 -5
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/test/functional/passwords_controller_test.rb +0 -5
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/test/functional/sessions_controller_test.rb +0 -5
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/test/functional/users_controller_test.rb +0 -5
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/test/unit/clearance_mailer_test.rb +0 -6
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/generators/clearance/templates/test/unit/user_test.rb +0 -5
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance.rb +0 -14
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/app/controllers/application_controller.rb +0 -82
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/app/controllers/confirmations_controller.rb +0 -42
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/app/controllers/passwords_controller.rb +0 -68
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/app/controllers/sessions_controller.rb +0 -68
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/app/controllers/users_controller.rb +0 -40
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/app/models/clearance_mailer.rb +0 -29
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/app/models/user.rb +0 -85
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/test/functional/confirmations_controller_test.rb +0 -44
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/test/functional/passwords_controller_test.rb +0 -175
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/test/functional/sessions_controller_test.rb +0 -194
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/test/functional/users_controller_test.rb +0 -85
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/test/test_helper.rb +0 -28
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/test/unit/clearance_mailer_test.rb +0 -65
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/lib/clearance/test/unit/user_test.rb +0 -163
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/rails/init.rb +0 -1
- data/test/rails_root/vendor/gems/thoughtbot-clearance-0.4.0/shoulda_macros/clearance.rb +0 -173
@@ -1,77 +0,0 @@
|
|
1
|
-
--- # Bret Pettichord, Thanks.
|
2
|
-
in: |-
|
3
|
-
* first line
|
4
|
-
* second
|
5
|
-
line
|
6
|
-
* third line
|
7
|
-
out: |-
|
8
|
-
<ul>
|
9
|
-
<li>first line</li>
|
10
|
-
<li>second
|
11
|
-
line</li>
|
12
|
-
<li>third line</li>
|
13
|
-
</ul>
|
14
|
-
---
|
15
|
-
in: |-
|
16
|
-
p. start
|
17
|
-
|
18
|
-
* one
|
19
|
-
and one
|
20
|
-
* two
|
21
|
-
and two
|
22
|
-
* three
|
23
|
-
|
24
|
-
p. end
|
25
|
-
out: |-
|
26
|
-
<p>start</p>
|
27
|
-
<ul>
|
28
|
-
<li>one
|
29
|
-
and one</li>
|
30
|
-
<li>two
|
31
|
-
and two</li>
|
32
|
-
<li>three</li>
|
33
|
-
</ul>
|
34
|
-
|
35
|
-
<p>end</p>
|
36
|
-
---
|
37
|
-
in: |-
|
38
|
-
Funky:
|
39
|
-
|
40
|
-
* Testing
|
41
|
-
*# number
|
42
|
-
*##* bullet
|
43
|
-
*# number
|
44
|
-
*# number
|
45
|
-
yeah number
|
46
|
-
#* bullet
|
47
|
-
*** okay
|
48
|
-
****# what
|
49
|
-
|
50
|
-
|
51
|
-
out: |-
|
52
|
-
<p>Funky:</p>
|
53
|
-
<ul>
|
54
|
-
<li>Testing
|
55
|
-
<ol>
|
56
|
-
<li>number
|
57
|
-
<ul>
|
58
|
-
<li>bullet</li>
|
59
|
-
</ul>
|
60
|
-
</li>
|
61
|
-
<li>number</li>
|
62
|
-
<li>number
|
63
|
-
yeah number</li>
|
64
|
-
<ul>
|
65
|
-
<li>bullet
|
66
|
-
<ul>
|
67
|
-
<li>okay
|
68
|
-
<ol>
|
69
|
-
<li>what</li>
|
70
|
-
</ul></li>
|
71
|
-
</ol></li>
|
72
|
-
</ul></li>
|
73
|
-
</ul></li>
|
74
|
-
</ol>
|
75
|
-
---
|
76
|
-
in: "* command run: @time ruby run-tests.rb > toto@"
|
77
|
-
out: "<ul>\n\t<li>command run: <code>time ruby run-tests.rb > toto</code></li>\n\t</ul>"
|
@@ -1,218 +0,0 @@
|
|
1
|
-
in: |
|
2
|
-
This is a regular paragraph.
|
3
|
-
|
4
|
-
<table>
|
5
|
-
<tr>
|
6
|
-
<td>Foo</td>
|
7
|
-
</tr>
|
8
|
-
</table>
|
9
|
-
|
10
|
-
This is another regular paragraph.
|
11
|
-
out: |-
|
12
|
-
<p>This is a regular paragraph.</p>
|
13
|
-
|
14
|
-
|
15
|
-
<table>
|
16
|
-
<tr>
|
17
|
-
<td>Foo</td>
|
18
|
-
</tr>
|
19
|
-
</table>
|
20
|
-
<p>This is another regular paragraph.</p>
|
21
|
-
---
|
22
|
-
in: '"Larry Bird":http://images.google.com/images?num=30&q=larry+bird'
|
23
|
-
out: '<p>"Larry Bird":http://images.google.com/images?num=30&q=larry+bird</p>'
|
24
|
-
---
|
25
|
-
in: '©'
|
26
|
-
out: <p>©</p>
|
27
|
-
---
|
28
|
-
in: AT&T
|
29
|
-
out: <p>AT&T</p>
|
30
|
-
|
31
|
-
# We don't do this.
|
32
|
-
# ---
|
33
|
-
# in: 4 < 5
|
34
|
-
# out: 4 < 5
|
35
|
-
---
|
36
|
-
in: |
|
37
|
-
This is an H1
|
38
|
-
=============
|
39
|
-
|
40
|
-
This is an H2
|
41
|
-
-------------
|
42
|
-
out: |-
|
43
|
-
<h1>This is an H1</h1>
|
44
|
-
|
45
|
-
<h2>This is an H2</h2>
|
46
|
-
---
|
47
|
-
in: |
|
48
|
-
# This is an H1
|
49
|
-
|
50
|
-
## This is an H2
|
51
|
-
|
52
|
-
###### This is an H6
|
53
|
-
out: |-
|
54
|
-
<h1>This is an H1</h1>
|
55
|
-
|
56
|
-
<h2>This is an H2</h2>
|
57
|
-
|
58
|
-
<h6>This is an H6</h6>
|
59
|
-
---
|
60
|
-
in: |
|
61
|
-
> This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
|
62
|
-
> consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
|
63
|
-
> Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
|
64
|
-
>
|
65
|
-
> Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
|
66
|
-
> id sem consectetuer libero luctus adipiscing.
|
67
|
-
out: |-
|
68
|
-
<blockquote>
|
69
|
-
<p>This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
|
70
|
-
consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
|
71
|
-
Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.</p>
|
72
|
-
|
73
|
-
<p>Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
|
74
|
-
id sem consectetuer libero luctus adipiscing.</p>
|
75
|
-
|
76
|
-
</blockquote>
|
77
|
-
---
|
78
|
-
in: |
|
79
|
-
> This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
|
80
|
-
consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
|
81
|
-
Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
|
82
|
-
>
|
83
|
-
> Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
|
84
|
-
id sem consectetuer libero luctus adipiscing.
|
85
|
-
out: |-
|
86
|
-
<blockquote>
|
87
|
-
<p>This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
|
88
|
-
consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
|
89
|
-
Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.</p>
|
90
|
-
|
91
|
-
<p>Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
|
92
|
-
id sem consectetuer libero luctus adipiscing.</p>
|
93
|
-
|
94
|
-
</blockquote>
|
95
|
-
---
|
96
|
-
in: |
|
97
|
-
> This is the first level of quoting.
|
98
|
-
>
|
99
|
-
> > This is nested blockquote.
|
100
|
-
>
|
101
|
-
> Back to the first level.
|
102
|
-
out: |-
|
103
|
-
<blockquote>
|
104
|
-
<p>This is the first level of quoting.</p>
|
105
|
-
<blockquote>
|
106
|
-
<p>This is nested blockquote.</p>
|
107
|
-
|
108
|
-
</blockquote>
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
<p>Back to the first level.</p>
|
113
|
-
|
114
|
-
</blockquote>
|
115
|
-
---
|
116
|
-
in: |
|
117
|
-
> ## This is a header.
|
118
|
-
>
|
119
|
-
> 1. This is the first list item.
|
120
|
-
> 2. This is the second list item.
|
121
|
-
>
|
122
|
-
> Here's some example code:
|
123
|
-
>
|
124
|
-
> return shell_exec("echo $input | $markdown_script");
|
125
|
-
out: |-
|
126
|
-
<blockquote>
|
127
|
-
<h2>This is a header.</h2>
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
<p>1. This is the first list item.
|
132
|
-
2. This is the second list item.</p>
|
133
|
-
|
134
|
-
<p>Here's some example code:</p>
|
135
|
-
<pre><code>return shell_exec("echo $input | $markdown_script");</code></pre>
|
136
|
-
|
137
|
-
</blockquote>
|
138
|
-
---
|
139
|
-
in: |
|
140
|
-
* * *
|
141
|
-
|
142
|
-
***
|
143
|
-
|
144
|
-
*****
|
145
|
-
|
146
|
-
- - -
|
147
|
-
|
148
|
-
---------------------------------------
|
149
|
-
|
150
|
-
_ _ _
|
151
|
-
out: |-
|
152
|
-
<hr />
|
153
|
-
|
154
|
-
<hr />
|
155
|
-
|
156
|
-
<hr />
|
157
|
-
|
158
|
-
<hr />
|
159
|
-
|
160
|
-
<hr />
|
161
|
-
|
162
|
-
<hr />
|
163
|
-
---
|
164
|
-
in: |
|
165
|
-
This is [an example](http://example.com/ "Title") inline link.
|
166
|
-
|
167
|
-
[This link](http://example.net/) has no title attribute.
|
168
|
-
out: |-
|
169
|
-
<p>This is <a href="http://example.com/" title="Title">an example</a> inline link.</p>
|
170
|
-
|
171
|
-
<p><a href="http://example.net/">This link</a> has no title attribute.</p>
|
172
|
-
---
|
173
|
-
in: See my [About](/about/) page for details.
|
174
|
-
out: <p>See my <a href="/about/">About</a> page for details.</p>
|
175
|
-
---
|
176
|
-
in: |
|
177
|
-
This is [an example][id] reference-style link.
|
178
|
-
|
179
|
-
This is [an example] [id] reference-style link.
|
180
|
-
|
181
|
-
[id]: http://example.com/ "Optional Title Here"
|
182
|
-
out: |-
|
183
|
-
<p>This is <a href="http://example.com/" title="Optional Title Here">an example</a> reference-style link.</p>
|
184
|
-
|
185
|
-
<p>This is <a href="http://example.com/" title="Optional Title Here">an example</a> reference-style link.</p>
|
186
|
-
---
|
187
|
-
in: |
|
188
|
-
[Google][]
|
189
|
-
[Google]: http://google.com/
|
190
|
-
out: <p><a href="http://google.com/">Google</a></p>
|
191
|
-
---
|
192
|
-
in: |
|
193
|
-
Visit [Daring Fireball][] for more information.
|
194
|
-
[Daring Fireball]: http://daringfireball.net/
|
195
|
-
out: <p>Visit <a href="http://daringfireball.net/">Daring Fireball</a> for more information.</p>
|
196
|
-
---
|
197
|
-
in: |
|
198
|
-
I get 10 times more traffic from [Google] [1] than from
|
199
|
-
[Yahoo] [2] or [MSN] [3].
|
200
|
-
|
201
|
-
[1]: http://google.com/ "Google"
|
202
|
-
[2]: http://search.yahoo.com/ "Yahoo Search"
|
203
|
-
[3]: http://search.msn.com/ "MSN Search"
|
204
|
-
|
205
|
-
out: |-
|
206
|
-
<p>I get 10 times more traffic from <a href="http://google.com/" title="Google">Google</a> than from
|
207
|
-
<a href="http://search.yahoo.com/" title="Yahoo Search">Yahoo</a> or <a href="http://search.msn.com/" title="MSN Search">MSN</a>.</p>
|
208
|
-
---
|
209
|
-
in: |
|
210
|
-
I get 10 times more traffic from [Google][] than from
|
211
|
-
[Yahoo][] or [MSN][].
|
212
|
-
|
213
|
-
[google]: http://google.com/ "Google"
|
214
|
-
[yahoo]: http://search.yahoo.com/ "Yahoo Search"
|
215
|
-
[msn]: http://search.msn.com/ "MSN Search"
|
216
|
-
out: |-
|
217
|
-
<p>I get 10 times more traffic from <a href="http://google.com/" title="Google">Google</a> than from
|
218
|
-
<a href="http://search.yahoo.com/" title="Yahoo Search">Yahoo</a> or <a href="http://search.msn.com/" title="MSN Search">MSN</a>.</p>
|
@@ -1,64 +0,0 @@
|
|
1
|
-
--- # Tests from the (Poignant Guide)
|
2
|
-
in: >
|
3
|
-
h3. False
|
4
|
-
|
5
|
-
|
6
|
-
!<i/blix-neg.gif(Shape of a cat.)!
|
7
|
-
|
8
|
-
|
9
|
-
_The cat Trady Blix. Frozen in emptiness. Immaculate whiskers rigid. Placid
|
10
|
-
eyes of lake. Tail of warm icicle. Sponsored by a Very Powerful Pause Button._
|
11
|
-
|
12
|
-
|
13
|
-
The darkness surrounding Blix can be called *negative space*. Hang on to that phrase.
|
14
|
-
Let it suggest that the emptiness has a negative connotation. In a similar way,
|
15
|
-
@nil@ has a slightly sour note that it whistles.
|
16
|
-
|
17
|
-
|
18
|
-
Generally speaking, everything in Ruby has a positive charge to it. This spark
|
19
|
-
flows through strings, numbers, regexps, all of it. Only two keywords wear a
|
20
|
-
shady cloak: @nil@ and @false@ draggin us down.
|
21
|
-
|
22
|
-
|
23
|
-
You can test that charge with an @if@ keyword. It looks very much like the
|
24
|
-
@do@ blocks we saw in the last chapter, in that both end with an @end@.
|
25
|
-
|
26
|
-
|
27
|
-
<pre>
|
28
|
-
if plastic_cup
|
29
|
-
print "Plastic cup is on the up 'n' up!"
|
30
|
-
end
|
31
|
-
</pre>
|
32
|
-
|
33
|
-
|
34
|
-
If @plastic_cup@ contains either @nil@ or @false@, you won't see anything print
|
35
|
-
to the screen. They're not on the @if@ guest list. So @if@ isn't going to run
|
36
|
-
any of the code it's protecting.
|
37
|
-
|
38
|
-
|
39
|
-
But @nil@ and @false@ need not walk away in shame. They may be of questionable
|
40
|
-
character, but @unless@ runs a smaller establishment that caters to the bedraggled.
|
41
|
-
The @unless@ keyword has a policy of only allowing those with a negative charge in.
|
42
|
-
Who are: @nil@ and @false@.
|
43
|
-
|
44
|
-
|
45
|
-
<pre>
|
46
|
-
unless plastic_cup
|
47
|
-
print "Plastic cup is on the down low."
|
48
|
-
end
|
49
|
-
</pre>
|
50
|
-
|
51
|
-
|
52
|
-
You can also use @if@ and @unless@ at the end of a single line of code, if that's
|
53
|
-
all that is being protected.
|
54
|
-
|
55
|
-
|
56
|
-
<pre>
|
57
|
-
print "Yeah, plastic cup is up again!" if plastic_cup
|
58
|
-
print "Hardly. It's down." unless plastic_cup
|
59
|
-
</pre>
|
60
|
-
|
61
|
-
|
62
|
-
Now that you've met @false@, I'm sure you can see what's on next.
|
63
|
-
|
64
|
-
out: "<h3>False</h3>\n\n\t<p style=\"float:left\"><img src=\"i/blix-neg.gif\" title=\"Shape of a cat.\" alt=\"Shape of a cat.\" /></p>\n\n\t<p><em>The cat Trady Blix. Frozen in emptiness. Immaculate whiskers rigid. Placid eyes of lake. Tail of warm icicle. Sponsored by a Very Powerful Pause Button.</em></p>\n\n\t<p>The darkness surrounding Blix can be called <strong>negative space</strong>. Hang on to that phrase. Let it suggest that the emptiness has a negative connotation. In a similar way, <code>nil</code> has a slightly sour note that it whistles.</p>\n\n\t<p>Generally speaking, everything in Ruby has a positive charge to it. This spark flows through strings, numbers, regexps, all of it. Only two keywords wear a shady cloak: <code>nil</code> and <code>false</code> draggin us down.</p>\n\n\t<p>You can test that charge with an <code>if</code> keyword. It looks very much like the <code>do</code> blocks we saw in the last chapter, in that both end with an <code>end</code>.</p>\n\n\n<pre>\n if plastic_cup\n print \"Plastic cup is on the up 'n' up!\" \n end\n</pre>\n\t<p>If <code>plastic_cup</code> contains either <code>nil</code> or <code>false</code>, you won’t see anything print to the screen. They’re not on the <code>if</code> guest list. So <code>if</code> isn’t going to run any of the code it’s protecting.</p>\n\n\t<p>But <code>nil</code> and <code>false</code> need not walk away in shame. They may be of questionable character, but <code>unless</code> runs a smaller establishment that caters to the bedraggled. The <code>unless</code> keyword has a policy of only allowing those with a negative charge in. Who are: <code>nil</code> and <code>false</code>.</p>\n\n\n<pre>\n unless plastic_cup\n print \"Plastic cup is on the down low.\" \n end\n</pre>\n\t<p>You can also use <code>if</code> and <code>unless</code> at the end of a single line of code, if that’s all that is being protected.</p>\n\n\n<pre>\n print \"Yeah, plastic cup is up again!\" if plastic_cup\n print \"Hardly. It's down.\" unless plastic_cup\n</pre>\n\t<p>Now that you’ve met <code>false</code>, I’m sure you can see what’s on next.</p>"
|
@@ -1,198 +0,0 @@
|
|
1
|
-
in: |
|
2
|
-
{background:#ddd}. |S|Target|Complete|App|Milestone|
|
3
|
-
|!/i/g.gif!|11/18/04|11/18/04|070|XML spec complete|
|
4
|
-
|!/i/g.gif!|11/29/04|11/29/04|011|XML spec complete (KH is on schedule)|
|
5
|
-
|!/i/g.gif!|11/29/04|11/29/04|051|XML spec complete (KH is on schedule)|
|
6
|
-
|!/i/g.gif!|11/29/04|11/29/04|081|XML spec complete (KH is on schedule)|
|
7
|
-
|!/i/g.gif!|11/19/04|11/22/04|070|Preprocessor complete|
|
8
|
-
|!/i/g.gif!|11/22/04|11/22/04|070|Dialog pass 1 builds an index file|
|
9
|
-
|!/i/g.gif!|11/24/04|11/24/04|070|Dialog pass 2 98% complete|
|
10
|
-
|!/i/g.gif!|11/30/04|11/30/04|070|Feature complete. Passes end-to-end smoke test.|
|
11
|
-
|!/i/g.gif!|11/30/04|11/30/04|011|Preprocessor updates complete|
|
12
|
-
|!/i/g.gif!|11/30/04|11/30/04|051|Preprocessor updates complete|
|
13
|
-
|!/i/g.gif!|11/30/04|11/29/04|081|Preprocessor updates complete|
|
14
|
-
|!/i/w.gif!|12/02/04|.|011|Dialog pass 1 and 2 complete (98+%)|
|
15
|
-
|!/i/w.gif!|12/02/04|.|051|Dialog pass 1 and 2 complete (98+%)|
|
16
|
-
|!/i/w.gif!|12/02/04|.|081|Dialog pass 1 and 2 complete (98+%)|
|
17
|
-
|!/i/w.gif!|12/03/04|.|011|Feature complete|
|
18
|
-
|!/i/w.gif!|12/03/04|.|051|Feature complete|
|
19
|
-
|!/i/w.gif!|12/03/04|.|081|Feature complete|
|
20
|
-
|!/i/w.gif!|12/10/04|.|011|Deployed to Napa test workstation. Passes smoke test.|
|
21
|
-
|!/i/w.gif!|12/10/04|.|051|Deployed to Napa test workstation. Passes smoke test.|
|
22
|
-
|!/i/w.gif!|12/10/04|.|081|Deployed to Napa test workstation. Passes smoke test.|
|
23
|
-
|!/i/w.gif!|12/10/04|.|070|Deployed to Napa test workstation. Passes smoke test.|
|
24
|
-
|!/i/w.gif!|12/17/04|.|011|System testing complete. Begin testing with live customer data.|
|
25
|
-
|!/i/w.gif!|12/17/04|.|051|System testing complete. Begin testing with live customer data.|
|
26
|
-
|!/i/w.gif!|12/17/04|.|081|System testing complete. Begin testing with live customer data.|
|
27
|
-
|!/i/w.gif!|12/17/04|.|070|System testing complete. Begin testing with live customer data.|
|
28
|
-
out: |-
|
29
|
-
<table>
|
30
|
-
<tr style="background:#ddd;">
|
31
|
-
<td>S</td>
|
32
|
-
<td>Target</td>
|
33
|
-
<td>Complete</td>
|
34
|
-
<td>App</td>
|
35
|
-
<td>Milestone</td>
|
36
|
-
</tr>
|
37
|
-
<tr>
|
38
|
-
<td><img src="/i/g.gif" alt="" /></td>
|
39
|
-
<td>11/18/04</td>
|
40
|
-
<td>11/18/04</td>
|
41
|
-
<td>070</td>
|
42
|
-
<td><span class="caps">XML</span> spec complete</td>
|
43
|
-
</tr>
|
44
|
-
<tr>
|
45
|
-
<td><img src="/i/g.gif" alt="" /></td>
|
46
|
-
<td>11/29/04</td>
|
47
|
-
<td>11/29/04</td>
|
48
|
-
<td>011</td>
|
49
|
-
<td><span class="caps">XML</span> spec complete (KH is on schedule)</td>
|
50
|
-
</tr>
|
51
|
-
<tr>
|
52
|
-
<td><img src="/i/g.gif" alt="" /></td>
|
53
|
-
<td>11/29/04</td>
|
54
|
-
<td>11/29/04</td>
|
55
|
-
<td>051</td>
|
56
|
-
<td><span class="caps">XML</span> spec complete (KH is on schedule)</td>
|
57
|
-
</tr>
|
58
|
-
<tr>
|
59
|
-
<td><img src="/i/g.gif" alt="" /></td>
|
60
|
-
<td>11/29/04</td>
|
61
|
-
<td>11/29/04</td>
|
62
|
-
<td>081</td>
|
63
|
-
<td><span class="caps">XML</span> spec complete (KH is on schedule)</td>
|
64
|
-
</tr>
|
65
|
-
<tr>
|
66
|
-
<td><img src="/i/g.gif" alt="" /></td>
|
67
|
-
<td>11/19/04</td>
|
68
|
-
<td>11/22/04</td>
|
69
|
-
<td>070</td>
|
70
|
-
<td>Preprocessor complete</td>
|
71
|
-
</tr>
|
72
|
-
<tr>
|
73
|
-
<td><img src="/i/g.gif" alt="" /></td>
|
74
|
-
<td>11/22/04</td>
|
75
|
-
<td>11/22/04</td>
|
76
|
-
<td>070</td>
|
77
|
-
<td>Dialog pass 1 builds an index file</td>
|
78
|
-
</tr>
|
79
|
-
<tr>
|
80
|
-
<td><img src="/i/g.gif" alt="" /></td>
|
81
|
-
<td>11/24/04</td>
|
82
|
-
<td>11/24/04</td>
|
83
|
-
<td>070</td>
|
84
|
-
<td>Dialog pass 2 98% complete</td>
|
85
|
-
</tr>
|
86
|
-
<tr>
|
87
|
-
<td><img src="/i/g.gif" alt="" /></td>
|
88
|
-
<td>11/30/04</td>
|
89
|
-
<td>11/30/04</td>
|
90
|
-
<td>070</td>
|
91
|
-
<td>Feature complete. Passes end-to-end smoke test.</td>
|
92
|
-
</tr>
|
93
|
-
<tr>
|
94
|
-
<td><img src="/i/g.gif" alt="" /></td>
|
95
|
-
<td>11/30/04</td>
|
96
|
-
<td>11/30/04</td>
|
97
|
-
<td>011</td>
|
98
|
-
<td>Preprocessor updates complete</td>
|
99
|
-
</tr>
|
100
|
-
<tr>
|
101
|
-
<td><img src="/i/g.gif" alt="" /></td>
|
102
|
-
<td>11/30/04</td>
|
103
|
-
<td>11/30/04</td>
|
104
|
-
<td>051</td>
|
105
|
-
<td>Preprocessor updates complete</td>
|
106
|
-
</tr>
|
107
|
-
<tr>
|
108
|
-
<td><img src="/i/g.gif" alt="" /></td>
|
109
|
-
<td>11/30/04</td>
|
110
|
-
<td>11/29/04</td>
|
111
|
-
<td>081</td>
|
112
|
-
<td>Preprocessor updates complete</td>
|
113
|
-
</tr>
|
114
|
-
<tr>
|
115
|
-
<td><img src="/i/w.gif" alt="" /></td>
|
116
|
-
<td>12/02/04</td>
|
117
|
-
<td>011</td>
|
118
|
-
<td>Dialog pass 1 and 2 complete (98+%)</td>
|
119
|
-
</tr>
|
120
|
-
<tr>
|
121
|
-
<td><img src="/i/w.gif" alt="" /></td>
|
122
|
-
<td>12/02/04</td>
|
123
|
-
<td>051</td>
|
124
|
-
<td>Dialog pass 1 and 2 complete (98+%)</td>
|
125
|
-
</tr>
|
126
|
-
<tr>
|
127
|
-
<td><img src="/i/w.gif" alt="" /></td>
|
128
|
-
<td>12/02/04</td>
|
129
|
-
<td>081</td>
|
130
|
-
<td>Dialog pass 1 and 2 complete (98+%)</td>
|
131
|
-
</tr>
|
132
|
-
<tr>
|
133
|
-
<td><img src="/i/w.gif" alt="" /></td>
|
134
|
-
<td>12/03/04</td>
|
135
|
-
<td>011</td>
|
136
|
-
<td>Feature complete</td>
|
137
|
-
</tr>
|
138
|
-
<tr>
|
139
|
-
<td><img src="/i/w.gif" alt="" /></td>
|
140
|
-
<td>12/03/04</td>
|
141
|
-
<td>051</td>
|
142
|
-
<td>Feature complete</td>
|
143
|
-
</tr>
|
144
|
-
<tr>
|
145
|
-
<td><img src="/i/w.gif" alt="" /></td>
|
146
|
-
<td>12/03/04</td>
|
147
|
-
<td>081</td>
|
148
|
-
<td>Feature complete</td>
|
149
|
-
</tr>
|
150
|
-
<tr>
|
151
|
-
<td><img src="/i/w.gif" alt="" /></td>
|
152
|
-
<td>12/10/04</td>
|
153
|
-
<td>011</td>
|
154
|
-
<td>Deployed to Napa test workstation. Passes smoke test.</td>
|
155
|
-
</tr>
|
156
|
-
<tr>
|
157
|
-
<td><img src="/i/w.gif" alt="" /></td>
|
158
|
-
<td>12/10/04</td>
|
159
|
-
<td>051</td>
|
160
|
-
<td>Deployed to Napa test workstation. Passes smoke test.</td>
|
161
|
-
</tr>
|
162
|
-
<tr>
|
163
|
-
<td><img src="/i/w.gif" alt="" /></td>
|
164
|
-
<td>12/10/04</td>
|
165
|
-
<td>081</td>
|
166
|
-
<td>Deployed to Napa test workstation. Passes smoke test.</td>
|
167
|
-
</tr>
|
168
|
-
<tr>
|
169
|
-
<td><img src="/i/w.gif" alt="" /></td>
|
170
|
-
<td>12/10/04</td>
|
171
|
-
<td>070</td>
|
172
|
-
<td>Deployed to Napa test workstation. Passes smoke test.</td>
|
173
|
-
</tr>
|
174
|
-
<tr>
|
175
|
-
<td><img src="/i/w.gif" alt="" /></td>
|
176
|
-
<td>12/17/04</td>
|
177
|
-
<td>011</td>
|
178
|
-
<td>System testing complete. Begin testing with live customer data.</td>
|
179
|
-
</tr>
|
180
|
-
<tr>
|
181
|
-
<td><img src="/i/w.gif" alt="" /></td>
|
182
|
-
<td>12/17/04</td>
|
183
|
-
<td>051</td>
|
184
|
-
<td>System testing complete. Begin testing with live customer data.</td>
|
185
|
-
</tr>
|
186
|
-
<tr>
|
187
|
-
<td><img src="/i/w.gif" alt="" /></td>
|
188
|
-
<td>12/17/04</td>
|
189
|
-
<td>081</td>
|
190
|
-
<td>System testing complete. Begin testing with live customer data.</td>
|
191
|
-
</tr>
|
192
|
-
<tr>
|
193
|
-
<td><img src="/i/w.gif" alt="" /></td>
|
194
|
-
<td>12/17/04</td>
|
195
|
-
<td>070</td>
|
196
|
-
<td>System testing complete. Begin testing with live customer data.</td>
|
197
|
-
</tr>
|
198
|
-
</table>
|