author | Mahlon E. Smith <mahlon@martini.nu> |
Sat, 18 Dec 2010 00:56:09 -0800 | |
branch | vim-stuff |
changeset 19 | 763cef799c74 |
parent 10 | a8f9271a7cab |
child 21 | cd1f3381c1ed |
permissions | -rw-r--r-- |
2 | 1 |
*specky.txt* Last change: $Id$ |
2 |
||
3 |
VIM REFERENCE MANUAL by Mahlon E. Smith |
|
4 |
||
5 |
||
6 |
specky! |
|
7 |
||
8 |
A Plugin for testing Ruby code with RSpec -- and more *specky* |
|
9 |
============================================================================== |
|
10 |
CONTENTS *SpeckyContents* |
|
11 |
||
12 |
1) Intro........................................|SpeckyIntro| |
|
13 |
2) Functionality................................|SpeckyFunctionality| |
|
19
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
14 |
3) Enabling Specky..............................|SpeckyInstallation| |
2 | 15 |
4) Configuration................................|SpeckyOptions| |
3 | 16 |
4.1) Create text banners....................|g:speckyBannerKey| |
17 |
4.2) Cycling quote styles...................|g:speckyQuoteSwitcherKey| |
|
18 |
4.3) Display ruby documentation.............|g:speckyRunRdocKey| |
|
19 |
4.4) Toggle editing between spec and code...|g:speckySpecSwitcherKey| |
|
20 |
4.5) Run specs for the current buffer.......|g:speckyRunSpecKey| |
|
21 |
4.6) Modify the default spec command........|g:speckyRunSpecCmd| |
|
22 |
4.7) Modify the default rdoc command........|g:speckyRunRdocCmd| |
|
6 | 23 |
4.8) Alter new window behavior..............|g:speckyWindowType| |
19
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
24 |
4.9) Running older rspec (1.x) .............|g:speckySpecVersion| |
2 | 25 |
5) Author.......................................|SpeckyAuthor| |
26 |
6) License......................................|SpeckyLicense| |
|
27 |
||
28 |
||
29 |
||
30 |
============================================================================== |
|
31 |
1. INTRO *SpeckyIntro* |
|
32 |
||
33 |
Specky is primarily a small collection of functions to help make behavioral |
|
19
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
34 |
testing streamlined and easy when working with ruby and rspec. Specky |
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
35 |
supports rspec 2.x by default, and is backwards compatible with rspec 1.x. |
2 | 36 |
|
37 |
Specky secondarily includes a couple of conveniences to make your everyday |
|
38 |
programming tasks smooooth and pleasurable. |
|
39 |
||
40 |
||
41 |
============================================================================== |
|
42 |
2. FUNCTIONALITY *SpeckyFunctionality* |
|
43 |
||
44 |
Okay then, what does it do? |
|
45 |
||
5 | 46 |
By default? Nothing but syntax highlighting unless you are comfortable using |
47 |
the menus. I decided the easiest way to cherry pick the functionality that |
|
48 |
you'd like was to enable them via key bindings. By doing this, Specky won't |
|
49 |
make assumptions about your current environment, and won't stomp on anything |
|
50 |
you don't want it to. |
|
3 | 51 |
|
52 |
Specky won't do -anything- with your environment until you enable ~ |
|
53 |
the key bindings!! ~ |
|
2 | 54 |
|
55 |
After you've configured your bindings, here are some of the things you can |
|
56 |
now do with a single key stroke: |
|
57 |
> |
|
58 |
- Switch back and forth from code to testing spec |
|
59 |
||
60 |
- Run the spec, with results going to a new, syntax highlighted buffer |
|
61 |
||
62 |
- Jump quickly to spec failures and failure detail |
|
63 |
- 'e' and 'r' to move back and forth on each failed assertion, |
|
64 |
- 'E' to jump details for it. |
|
65 |
- '<C-e>' to "forget" the currently selected failed assertion |
|
66 |
- 'q' to close the spec output buffer. |
|
67 |
||
68 |
- View rdoc of the word under the cursor |
|
69 |
||
70 |
- Dynamically switch string types for the word under the cursor |
|
71 |
(double quoted, quoted, symbol) |
|
72 |
||
3 | 73 |
- Make lovely and quick comment banners for ruby code. |
2 | 74 |
|
5 | 75 |
Specky also includes a "snippets" file that can be used with the Snipmate |
76 |
plugin by Michael Sanders <msanders42+vim@gmail.com>. (Minimum version 0.74.) |
|
77 |
||
78 |
http://www.vim.org/scripts/script.php?script_id=2540 |
|
2 | 79 |
|
80 |
============================================================================== |
|
19
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
81 |
3. ENABLING-SPECKY *SpeckyInstallation* |
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
82 |
|
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
83 |
Getting Specky to work should be a fairly trivial process. Specky now |
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
84 |
uses a custom rspec formatter to function reliably, and it needs to know |
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
85 |
where that lives on your system. |
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
86 |
|
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
87 |
If you installed Specky from Vimball, it is likely found at: |
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
88 |
|
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
89 |
~/.vim/ruby/specky_formatter.rb ~ |
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
90 |
|
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
91 |
Otherwise, you'll need to locate it, and tell rspec to use it in one of two |
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
92 |
ways. |
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
93 |
|
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
94 |
1) Set the *g:speckyRunSpecCmd* variable explicitly: |
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
95 |
|
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
96 |
let g:speckyRunRdocCmd = "rspec -r ~/.vim/ruby/specky_formatter.rb -f SpeckyFormatter" ~ |
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
97 |
|
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
98 |
2) or, leave *g:speckyRunSpecCmd* at its default value, and instead use |
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
99 |
an '.rspec' settings file in the root directory of the the project |
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
100 |
you're working in. I find this method much more flexible -- the |
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
101 |
'.rspec' file can be carried with your project, and customized to |
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
102 |
include additional bits like custom $LOAD_PATH injections, etc. |
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
103 |
Here's what mine usually looks like: > |
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
104 |
|
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
105 |
-r loadpath |
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
106 |
-r ~/.vim/bundle/specky/ruby/specky_formatter |
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
107 |
-f SpeckyFormatter |
2 | 108 |
|
109 |
||
19
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
110 |
After that is taken care of, then just set up your keybindings in your |
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
111 |
.vimrc. Here's what my config looks like. > |
2 | 112 |
|
19
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
113 |
let g:speckyBannerKey = "<C-S>b" |
2 | 114 |
let g:speckyQuoteSwitcherKey = "<C-S>'" |
19
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
115 |
let g:speckyRunRdocKey = "<C-S>r" |
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
116 |
let g:speckySpecSwitcherKey = "<C-S>x" |
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
117 |
let g:speckyRunSpecKey = "<C-S>s" |
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
118 |
let g:speckyRunRdocCmd = "fri -L -f plain" |
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
119 |
let g:speckyWindowType = 2 |
2 | 120 |
|
19
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
121 |
With these bindings, all Specky commands start with <ctrl-s> ("s" for |
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
122 |
Specky!), followed by a mnemonic function to run: |
2 | 123 |
|
3 | 124 |
b ----> Banner creation ~ |
2 | 125 |
' ----> Quote cycling ~ |
126 |
r ----> run Rdoc ~ |
|
127 |
x ----> code and spec eXchange ~ |
|
19
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
128 |
s ----> run rSpec ~ |
2 | 129 |
|
130 |
Of course, <ctrl-s> is a "suspend" signal for most terminals, so these |
|
131 |
bindings are meant for a |gui| environment, such as gvim. Your mileage (and |
|
3 | 132 |
tastes) will doubtlessly vary. Do what you will. I won't judge you. |
2 | 133 |
|
134 |
||
135 |
============================================================================== |
|
136 |
4. CONFIGURATION-OPTIONS *SpeckyOptions* |
|
137 |
||
138 |
Here are all of the available configuration options. |
|
139 |
||
3 | 140 |
Please note that you must set binding variables: |
2 | 141 |
|
3 | 142 |
|g:speckyBannerKey| |
2 | 143 |
|g:speckyQuoteSwitcherKey| |
144 |
|g:speckyRunRdocKey| |
|
145 |
|g:speckySpecSwitcherKey| |
|
146 |
|g:speckyRunSpecKey| |
|
147 |
||
19
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
148 |
...in order to enable the respective Specky functionality. See |
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
149 |
|SpeckyInstallation| for details. Any other options are entirely optional. |
3 | 150 |
Put these into your |vimrc|, or wherever else you enjoy storing this kind of |
151 |
stuff. |
|
2 | 152 |
|
153 |
||
154 |
------------------------------------------------------------------------------ |
|
3 | 155 |
4.1 *g:speckyBannerKey* |
156 |
||
157 |
Setting this binding enables comment banner creation. |
|
158 |
||
159 |
This is purely a convenience routine, and a stylistic one at that. I prefer |
|
160 |
large advertising of what "area" of code you are in, along with other |
|
161 |
miscellaneous labels for humans to read. If this isn't how you roll, then by |
|
162 |
all means, don't enable this binding! :) |
|
163 |
||
164 |
As an example -- you can just type: |
|
165 |
||
166 |
instance methods ~ |
|
167 |
||
168 |
Then hit the keystroke. It will magically turn into: > |
|
169 |
||
170 |
######################################################################## |
|
171 |
### I N S T A N C E M E T H O D S |
|
172 |
######################################################################## |
|
173 |
||
174 |
With all those saved extra keystrokes this might provide you per banner over |
|
175 |
the years, your RSI-free hands will thank you. And the total time savings!! |
|
176 |
Oh man, what are you going to DO with all of that extra free time? |
|
177 |
The possibilities are staggering. |
|
178 |
||
179 |
||
180 |
------------------------------------------------------------------------------ |
|
181 |
4.2 *g:speckyQuoteSwitcherKey* |
|
2 | 182 |
|
183 |
Setting this binding enables quote "style switching". |
|
184 |
||
185 |
If you aren't in ruby mode, this just changes the word under the cursor |
|
186 |
back and forth from double quoting to single quoting. |
|
187 |
||
188 |
string -> "string" -> 'string' -> "string" ... ~ |
|
189 |
||
190 |
In ruby mode, symbols are also put into the rotation. |
|
191 |
||
192 |
"string" -> 'string' -> :string -> "string" ... ~ |
|
193 |
||
3 | 194 |
Note that quote cycling only works with a |word|. |
2 | 195 |
|
196 |
||
197 |
------------------------------------------------------------------------------ |
|
3 | 198 |
4.3 *g:speckyRunRdocKey* |
2 | 199 |
|
200 |
Setting this enables the display of rdoc documentation for the current |
|
201 |
word under the cursor. For lookups with multiple matches, you can continue |
|
202 |
using this binding to "drill down" to the desired documentation. |
|
203 |
||
204 |
||
205 |
------------------------------------------------------------------------------ |
|
3 | 206 |
4.4 *g:speckySpecSwitcherKey* |
2 | 207 |
|
208 |
Setting this enables spec to code switching, and visa versa. |
|
209 |
||
210 |
Switching uses path searching instead of reliance on directory structure in |
|
211 |
your project. The idea here is that you'd |:chdir| into your project |
|
212 |
directory. Spec files just need to end in '_spec.rb', which is a common |
|
213 |
convention. |
|
214 |
||
215 |
aRubyClass.rb ---> aRubyClass_spec.rb~ |
|
216 |
||
6 | 217 |
Because it leaves respective buffers open, you can essentially think of this |
218 |
as a quick toggle between code and tests. |
|
2 | 219 |
|
220 |
||
221 |
------------------------------------------------------------------------------ |
|
3 | 222 |
4.5 *g:speckyRunSpecKey* |
2 | 223 |
|
19
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
224 |
Setting this variable runs "rspec" on the current buffer. |
2 | 225 |
|
226 |
All output is sent to a syntax highlighted scratch buffer. This new window is |
|
227 |
re-used for each spec run. You can quickly "jump" to assertion failures and |
|
228 |
their associated details with the following keys: |
|
229 |
||
230 |
e and r ~ |
|
231 |
Move forward and backward through the failed assertions. |
|
232 |
||
233 |
E~ |
|
234 |
While on a failure line, jump to the details of the failure. |
|
235 |
||
236 |
<C-e> ~ |
|
237 |
"Forget" the last found failed assertion, and start over at the |
|
238 |
beginning of the list. (ie, the next 'e' keystroke will select |
|
239 |
error #1.) |
|
240 |
||
241 |
q ~ |
|
242 |
Closes the spec output buffer. |
|
243 |
||
244 |
||
245 |
Normally, you'd only want to perform this keystroke while in a spec file |
|
19
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
246 |
buffer. If Specky thinks you are in code, rather than a buffer (as indicated |
2 | 247 |
by the lack of a "_spec.rb" file naming convention) then it will attempt to |
248 |
switch to the spec before running the command. |
|
249 |
||
250 |
||
251 |
------------------------------------------------------------------------------ |
|
3 | 252 |
4.6 *g:speckyRunSpecCmd* |
2 | 253 |
|
254 |
This is the program, with flags, that the current file is sent to when |
|
255 |
executing the |g:speckyRunSpecKey| keybinding. |
|
256 |
||
257 |
A common addition is to include an "-r" flag for sucking in local libraries |
|
19
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
258 |
necessary for testing your project. In fact, this is required to use the |
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
259 |
rspec formatter supplied by Specky. See |SpeckyInstallation| for more info. |
2 | 260 |
|
261 |
Default: ~ |
|
19
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
262 |
rspec |
2 | 263 |
|
264 |
||
265 |
------------------------------------------------------------------------------ |
|
3 | 266 |
4.7 *g:speckyRunRdocCmd* |
2 | 267 |
|
268 |
If you prefer an rdoc display program other than "ri", you can set it |
|
6 | 269 |
with this variable. "fri -L -f plain" is always a nice choice, for example. |
2 | 270 |
|
271 |
Default: ~ |
|
272 |
ri |
|
273 |
||
274 |
||
275 |
------------------------------------------------------------------------------ |
|
6 | 276 |
4.8 *g:speckyWindowType* |
2 | 277 |
|
6 | 278 |
For both spec and rdoc commands, this variable controls the behavior of the |
279 |
newly generated window. |
|
2 | 280 |
|
6 | 281 |
Default: ~ |
282 |
0 |
|
283 |
||
284 |
0 ~ |
|
285 |
Create a new tabbed window |
|
286 |
1 ~ |
|
287 |
Split the current window horizontally |
|
288 |
2 ~ |
|
289 |
Split the current window vertically |
|
2 | 290 |
|
291 |
||
19
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
292 |
------------------------------------------------------------------------------ |
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
293 |
4.9 *g:speckySpecVersion* |
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
294 |
|
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
295 |
Specky should work out of the box with rspec 2.x. If you'd like to use rspec |
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
296 |
1.x instead, you can do so with the following Vim settings: > |
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
297 |
|
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
298 |
let g:speckySpecVersion = 1 |
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
299 |
let g:speckyRunRdocCmd = "spec -fs" |
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
300 |
|
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
301 |
If you have both rspec 1.x and 2.x installed at the same time, you need to |
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
302 |
be explicit with what version you are executing: > |
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
303 |
|
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
304 |
let g:speckyRunRdocCmd = "spec _1.3.0_ -fs" |
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
305 |
|
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
306 |
|
2 | 307 |
============================================================================== |
308 |
5. AUTHOR *SpeckyAuthor* |
|
309 |
||
310 |
||
311 |
Specky was written by Mahlon E. Smith. |
|
312 |
||
313 |
mahlon@martini.nu ~ |
|
314 |
http://www.martini.nu/ |
|
315 |
||
316 |
||
317 |
||
318 |
============================================================================== |
|
319 |
6. LICENSE *SpeckyLicense* |
|
320 |
||
321 |
||
322 |
Specky is distributed under the BSD license. |
|
323 |
http://www.opensource.org/licenses/bsd-license.php |
|
324 |
> |
|
19
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
325 |
Copyright (c) 2008-2010, Mahlon E. Smith <mahlon@martini.nu> |
2 | 326 |
All rights reserved. |
327 |
||
328 |
Redistribution and use in source and binary forms, with or without |
|
329 |
modification, are permitted provided that the following conditions are |
|
330 |
met: |
|
331 |
||
332 |
* Redistributions of source code must retain the above copyright |
|
333 |
notice, this list of conditions and the following disclaimer. |
|
334 |
||
335 |
* Redistributions in binary form must reproduce the above copyright |
|
336 |
notice, this list of conditions and the following disclaimer in the |
|
337 |
documentation and/or other materials provided with the distribution. |
|
338 |
||
339 |
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
|
340 |
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
|
341 |
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
|
342 |
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
|
343 |
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
|
344 |
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED |
|
345 |
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
|
346 |
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF |
|
347 |
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING |
|
348 |
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
|
349 |
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
350 |
||
351 |
||
352 |
||
353 |
vim: set noet nosta sw=4 ts=4 ft=help : |
|
19
763cef799c74
Specky: support rspec 2.x by default.
Mahlon E. Smith <mahlon@martini.nu>
parents:
10
diff
changeset
|
354 |