features 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of features might be problematic. Click here for more details.

Files changed (63) hide show
  1. data/Manifest +0 -59
  2. data/Rakefile +2 -2
  3. data/features.gemspec +2 -2
  4. metadata +1 -60
  5. data/website/README +0 -10
  6. data/website/Rakefile +0 -44
  7. data/website/config.yaml +0 -18
  8. data/website/deploy.rb +0 -29
  9. data/website/deploy/1251795725/features/browserfix.css +0 -7
  10. data/website/deploy/1251795725/features/default.css +0 -257
  11. data/website/deploy/1251795725/features/images/bodybg.gif +0 -0
  12. data/website/deploy/1251795725/features/images/header-bg.gif +0 -0
  13. data/website/deploy/1251795725/features/images/logo.png +0 -0
  14. data/website/deploy/1251795725/features/images/minus.png +0 -0
  15. data/website/deploy/1251795725/features/images/plus.png +0 -0
  16. data/website/deploy/1251795725/features/images/sidebarbg.gif +0 -0
  17. data/website/deploy/1251795725/features/index.html +0 -229
  18. data/website/deploy/1251796894/features/browserfix.css +0 -7
  19. data/website/deploy/1251796894/features/default.css +0 -257
  20. data/website/deploy/1251796894/features/images/bodybg.gif +0 -0
  21. data/website/deploy/1251796894/features/images/header-bg.gif +0 -0
  22. data/website/deploy/1251796894/features/images/logo.png +0 -0
  23. data/website/deploy/1251796894/features/images/minus.png +0 -0
  24. data/website/deploy/1251796894/features/images/output-screen-1.png +0 -0
  25. data/website/deploy/1251796894/features/images/plus.png +0 -0
  26. data/website/deploy/1251796894/features/images/sidebarbg.gif +0 -0
  27. data/website/deploy/1251796894/features/index.html +0 -229
  28. data/website/deploy/1251822430/features/browserfix.css +0 -7
  29. data/website/deploy/1251822430/features/default.css +0 -257
  30. data/website/deploy/1251822430/features/images/bodybg.gif +0 -0
  31. data/website/deploy/1251822430/features/images/header-bg.gif +0 -0
  32. data/website/deploy/1251822430/features/images/logo.png +0 -0
  33. data/website/deploy/1251822430/features/images/minus.png +0 -0
  34. data/website/deploy/1251822430/features/images/output-screen-1.png +0 -0
  35. data/website/deploy/1251822430/features/images/plus.png +0 -0
  36. data/website/deploy/1251822430/features/images/sidebarbg.gif +0 -0
  37. data/website/deploy/1251822430/features/index.html +0 -229
  38. data/website/ext/init.rb +0 -10
  39. data/website/out/browserfix.css +0 -7
  40. data/website/out/default.css +0 -257
  41. data/website/out/images/bodybg.gif +0 -0
  42. data/website/out/images/header-bg.gif +0 -0
  43. data/website/out/images/logo.png +0 -0
  44. data/website/out/images/minus.png +0 -0
  45. data/website/out/images/output-screen-1.png +0 -0
  46. data/website/out/images/plus.png +0 -0
  47. data/website/out/images/sidebarbg.gif +0 -0
  48. data/website/out/index.html +0 -229
  49. data/website/src/browserfix.css +0 -7
  50. data/website/src/default.css +0 -257
  51. data/website/src/default.template +0 -92
  52. data/website/src/images/bodybg.gif +0 -0
  53. data/website/src/images/deploy.rb +0 -29
  54. data/website/src/images/header-bg.gif +0 -0
  55. data/website/src/images/logo.png +0 -0
  56. data/website/src/images/minus.png +0 -0
  57. data/website/src/images/output-screen-1.png +0 -0
  58. data/website/src/images/plus.png +0 -0
  59. data/website/src/images/sidebarbg.gif +0 -0
  60. data/website/src/images/webgen.rb +0 -3
  61. data/website/src/index.page +0 -139
  62. data/website/webgen.cache +0 -0
  63. data/website/webgen.rb +0 -3
Binary file
Binary file
Binary file
@@ -1,229 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
4
- <head>
5
- <meta http-equiv="content-type" content="text/html; charset=utf-8" />
6
- <meta name="description" content="description goes here" />
7
- <meta name="keywords" content="keywords,goes,here" />
8
- <meta name="author" content="Your Name" />
9
- <meta name="generator" content="webgen - http://webgen.rubyforge.org" />
10
- <link rel="stylesheet" type="text/css" href="default.css" />
11
- <!--[if IE 6]>
12
- <link rel="stylesheet" href="browserfix.css" type="text/css" />
13
- <![endif]-->
14
- <title>Home</title>
15
- </head>
16
-
17
-
18
-
19
- <body>
20
- <a name="top"></a>
21
- <div id="page">
22
-
23
- <div id="page-inner">
24
- <div id="header">
25
- <div id="header-inner">
26
-
27
- <a href="index.html">
28
- <div id="logo">
29
- <div id="logo-inner">
30
- </div>
31
- </div>
32
- <div id="site-name">
33
- <div id="site-name-inner">
34
- <h1 id="site-name-inner-title">features</h1>
35
- <p id="site-name-inner-slogan">A Plain Text User Stories Parser Supporting native Programming Languages</p>
36
- </div>
37
- </div>
38
- </a>
39
-
40
- <div class="clearer">&nbsp;</div>
41
-
42
- <div id="tabs">
43
- <div id="tabs-inner">
44
-
45
- </div>
46
- <div class="clearer">&nbsp;</div>
47
- </div>
48
- <div class="clearer">&nbsp;</div>
49
- </div>
50
- </div>
51
-
52
-
53
-
54
- <div class="clearer">&nbsp;</div>
55
-
56
- <div id="main">
57
- <div id="main-inner">
58
-
59
- <div id="content">
60
- <div id="content-inner">
61
- <div id="content-container">
62
- <p>This is just the README. A real Website will follow.</p>
63
-
64
- <h1 id='features'>Features</h1>
65
-
66
- <p>A Plain Text User Stories Parser that supports native Programming Languages.</p>
67
-
68
- <h2 id='usage'>Usage</h2>
69
-
70
- <h3 id='ruby_on_rails'>Ruby on Rails</h3>
71
-
72
- <ol>
73
- <li>
74
- <p>Install features:</p>
75
-
76
- <pre><code>$ gem install features</code></pre>
77
- </li>
78
-
79
- <li>
80
- <p>Generate the supporting folders from your rails apps root folder:</p>
81
-
82
- <pre><code>$ script/generate features</code></pre>
83
- </li>
84
-
85
- <li>
86
- <p>Run the HelloWorld.feature: <br />* (OS X): There is a <code>run_features.rb</code> script that will open its results in Safari:</p>
87
-
88
- <pre><code> $ ruby test/features/run_features.rb</code></pre>
89
-
90
- <ul>
91
- <li>(Other OS): INSTRUCTIONS WILL FOLLOW SOON &#8230;</li>
92
- </ul>
93
- </li>
94
-
95
- <li>
96
- <p>Here is what the Html Output looks like:</p>
97
- </li>
98
- </ol>
99
- <img src='images/output-screen-1.png' width='400px' />
100
- <h3 id='objectivec'>Objective-C</h3>
101
-
102
- <ol>
103
- <li>
104
- <p>Install features:</p>
105
-
106
- <pre><code>$ sudo gem install </code></pre>
107
- </li>
108
-
109
- <li>
110
- <p>Download and install ObjectiveMatchy</p>
111
- </li>
112
-
113
- <li>
114
- <p>ObjectiveMatchy provides Xcode Project Templates that have a Feature Target. Create a new Xcode Project and choose one of the ObjectiveMatchy Templates.</p>
115
- </li>
116
- </ol>
117
-
118
- <p>4. &#8230;</p>
119
-
120
- <h3 id='more_languages_will_follow_'>More Languages will follow &#8230;</h3>
121
-
122
- <h2 id='how_it_works'>How it works</h2>
123
-
124
- <h3 id='features_parses_plaintext_user_story_files'>Features parses plain-text user story files</h3>
125
-
126
- <p>That files are made up of keywords (Feature:, Scenario:) <br />and step definitions (When I say &#8216;Hello, World!&#8217;):</p>
127
-
128
- <pre><code>Feature: Hello World
129
-
130
- Scenario: Say Hello World
131
- When I say &#39;Hello, World!&#39;</code></pre>
132
-
133
- <h3 id='next_a_testcase_file_will_be_generated'>Next, a TestCase File will be generated</h3>
134
-
135
- <p>Each Feature (User Story) will be generated as a TestCase. <br />Each Scenario as a test method. <br />The step definitions provide the test method implementations. <br />Regarding the above Feature, here is what the autogenerated testcases<br />will look like in the different languages:</p>
136
-
137
- <ul>
138
- <li>
139
- <p>Rails:</p>
140
-
141
- <pre><code>require &quot;/path/to/project/support/features_helper.rb&quot;
142
-
143
- class HelloWorldTest &lt; FeaturesTestCaseClass
144
- def test_SayHelloWorld
145
- when_I_say___(&quot;Hello, World!&quot;)
146
- end
147
- end</code></pre>
148
- </li>
149
-
150
- <li>
151
- <p>Objective C:</p>
152
-
153
- <pre><code> #import &quot;OMFeature.h&quot;
154
-
155
- @interface HelloWorldTest : OMFeature
156
- @end
157
-
158
- @implementation HelloWorldTest
159
- -(void) testSayHelloWorld
160
- {
161
- [self When_I_say___:@&quot;Hello, World!&quot;];
162
- }
163
- @end</code></pre>
164
- </li>
165
-
166
- <li>
167
- <p>Other Languages (Java, C#, C++, Python) will follow soon &#8230;</p>
168
- </li>
169
- </ul>
170
-
171
- <h3 id='provide_step_implementations'>Provide Step Implementations</h3>
172
-
173
- <p>Steps are instance method of the intermediate TestCase class (eg &#8216;FeaturesTestCaseClass&#8217; in Rails)<br />that inherits from the language specific TestCase class (eg &#8216;ActionController::IntegrationTest&#8217; in Rails) <br />and that itself is the parent of the generated TestCases. This way, all test method implementations (aka Scenarios) <br />will have access to the steps.</p>
174
-
175
- <h2 id='installation'>Installation</h2>
176
-
177
- <pre><code>gem install features</code></pre>
178
-
179
- <h2 id='contribution'>Contribution</h2>
180
-
181
- <ul>
182
- <li>Idea?, Feature Request?, Bug? -&gt; <a href='http://300.lighthouseapp.com/projects/36609-features/overview'>Lighthouse</a></li>
183
-
184
- <li>source -&gt; <a href='http://github.com/mhennemeyer/features'>GitHub</a></li>
185
-
186
- <li>talk? -&gt; <a href='http://groups.google.de/group/featuresgroup'>GoogleGroup</a></li>
187
- </ul>
188
-
189
- <h2 id='licence'>Licence</h2>
190
-
191
- <p>(The MIT License)</p>
192
-
193
- <p>Copyright (c) Matthias Hennemeyer</p>
194
-
195
- <p>Permission is hereby granted, free of charge, to any person obtaining <br />a copy of this software and associated documentation files (the <br />&#8216;Software&#8217;), to deal in the Software without restriction, including <br />without limitation the rights to use, copy, modify, merge, publish, <br />distribute, sublicense, and/or sell copies of the Software, and to <br />permit persons to whom the Software is furnished to do so, subject to <br />the following conditions:</p>
196
-
197
- <p>The above copyright notice and this permission notice shall be <br />included in all copies or substantial portions of the Software.</p>
198
-
199
- <p>THE SOFTWARE IS PROVIDED &#8216;AS IS&#8217;, WITHOUT WARRANTY OF ANY KIND, <br />EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF <br />MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. <br />IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY <br />CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, <br />TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE <br />SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</p>
200
- </div>
201
- </div>
202
- </div>
203
-
204
- <div id="sidebar">
205
- <div id="sidebar-inner">
206
- <ul><li class="webgen-menu-level1 webgen-menu-item-selected"><span>Home</span></li></ul>
207
- </div>
208
- </div>
209
-
210
- <div class="clearer">&nbsp;</div>
211
- </div>
212
- <div class="clearer">&nbsp;</div>
213
- </div>
214
-
215
- <div class="clearer">&nbsp;</div>
216
-
217
- </div>
218
-
219
- <div id="footer">
220
- <div id="footer-inner">
221
- &copy; 2009 Matthias Hennemeyer. All Rights Reserved.
222
- </div>
223
- </div>
224
-
225
- </div>
226
-
227
- </body>
228
- </html>
229
-
@@ -1,7 +0,0 @@
1
- /**************** IE fixes ****************/
2
-
3
- html
4
- {overflow:hidden;}
5
-
6
- body
7
- {height:100%; width:100%; overflow:auto;}
@@ -1,257 +0,0 @@
1
- /* reset */
2
- * {
3
- margin: 0;
4
- padding: 0;
5
- }
6
-
7
- /* No underlining */
8
- a {
9
- text-decoration: none;
10
- }
11
-
12
- a:hover {
13
- color: #CFF;
14
- }
15
-
16
- h1, h2, h3, h4, h5, h6 {
17
- -x-system-font: none;
18
- color: black;
19
- font-family: 'Trebuchet MS', Arial, Sans-serif;
20
- font-size: 1.3em;
21
- font-size-adjust: none;
22
- font-stretch: normal;
23
- font-style: normal;
24
- font-variant: normal;
25
- font-weight: bold;
26
- line-height: normal;
27
- }
28
-
29
- h1 {
30
- font-size: 1.8em;
31
- }
32
-
33
- h2 {
34
- font-size: 1.5em;
35
- }
36
-
37
- body {
38
- color: black;
39
- -x-system-font: none;
40
- font-family: Lucida Grande, Tahoma, 'Trebuchet MS', sans-serif;
41
- font-size: 1em;
42
- font-size-adjust: none;
43
- font-stretch: normal;
44
- font-style: normal;
45
- font-variant: normal;
46
- font-weight: normal;
47
- line-height: 1.5em;
48
- }
49
-
50
- p, h1, h2, h3 {
51
- margin: 0;
52
- padding: 5px 0;
53
- }
54
-
55
- ul, ol {
56
- margin: 10px 0;
57
- padding: 0 15px;
58
- }
59
-
60
- img {
61
- border: none;
62
- }
63
-
64
- .clearer {
65
- clear: both;
66
- height: 1px;
67
- }
68
-
69
-
70
- /* Header */
71
-
72
- #header {
73
- background: url("images/header-bg.gif");
74
- color: white;
75
- width: 100%;
76
- }
77
-
78
- #header-inner {
79
- padding-top: 10px;
80
- }
81
-
82
- #header a {
83
- color: white;
84
- }
85
-
86
- #logo {
87
- float: left;
88
- width: 15%;
89
- }
90
-
91
- #logo img {
92
- display: block;
93
- margin: 0 auto;
94
- }
95
-
96
- #site-name {
97
- float: right;
98
- width: 85%;
99
- }
100
-
101
- #site-name-inner-title {
102
- color: white;
103
- font-size: 36pt;
104
- padding-bottom: 0;
105
- }
106
-
107
- #site-name-inner-slogan{
108
- padding-top: 0;
109
- }
110
-
111
- /* Tabs */
112
-
113
- #tabs {
114
- color: white;
115
- float: left;
116
- margin-top: -1em;
117
- text-align: right;
118
- width: 70%;
119
- }
120
-
121
- #tabs a {
122
- color: white;
123
- font-size: 1.3em;
124
- }
125
-
126
- #tabs a:hover {
127
- color: #CFF;
128
- }
129
-
130
-
131
- #tabs ul {
132
- list-style-type: none;
133
- }
134
-
135
- #tabs li {
136
- display: inline;
137
- padding: 0.5em;
138
- }
139
-
140
- #tabs #current_tab a{
141
- color: red;
142
- font-size: 1.5em;
143
- }
144
-
145
- /* Main: Wraps sidebar and content*/
146
-
147
- #main {
148
- border-top: 3px solid #333;
149
- background: gray;
150
- margin: -1px auto 0 auto;
151
- }
152
-
153
- /* Right Sidebar*/
154
-
155
- #sidebar {
156
- background: gray;
157
- float: right;
158
- width: 30%;
159
- }
160
-
161
- #sidebar-inner {
162
- padding: 20px;
163
- }
164
-
165
- #menu {
166
- color: white;
167
- font-size: 1.1em;
168
- list-style-type: none;
169
- }
170
-
171
- #menu a {
172
- color: white;
173
- }
174
-
175
- #menu a:hover {
176
- color: #CFF;
177
- }
178
-
179
- #menu #current_page{
180
- color: red;
181
- font-size: 1.2em;
182
- list-style-type: none;
183
- }
184
-
185
- #menu #current_page a {
186
- color: red;
187
- }
188
-
189
- #menu #current_page a:hover {
190
- color: #CFF;
191
- }
192
-
193
- #menu #current_page .outline {
194
- list-style-type: none;
195
- font-size: 0.6em;
196
- color: black;
197
- }
198
-
199
- #menu #current_page .outline li a{
200
- color: black;
201
- }
202
- /* Content */
203
-
204
- #content {
205
- background: #EEE;
206
- float: left;
207
- width: 70%;
208
- }
209
-
210
- #content-inner {
211
- padding: 20px 40px 10px 40px;
212
- }
213
-
214
- #content h1 a {
215
- color: gray;
216
- font-size: 0.5em;
217
- }
218
-
219
- #content h2 a {
220
- color: gray;
221
- font-size: 0.5em;
222
- }
223
-
224
- #content h3 a {
225
- color: gray;
226
- font-size: 0.5em;
227
- }
228
-
229
- #content h4 a {
230
- color: gray;
231
- font-size: 0.5em;
232
- }
233
-
234
-
235
-
236
-
237
- /* Footer */
238
-
239
- #footer {
240
- background: url("images/header-bg.gif");
241
- border-top: 3px solid #333;
242
- border-bottom: 50px solid black;
243
- color: white;
244
- font-size: 1.3em;
245
- margin-top: -3px;
246
- text-align: center;
247
- width: 100%;
248
- }
249
-
250
- #footer a {
251
- color: white;
252
- }
253
-
254
-
255
- #footer-inner {
256
- padding: 20px;
257
- }