wally 0.0.18 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/wally/application.rb +1 -0
- data/lib/wally/public/skin.css +13 -3
- data/lib/wally/version.rb +1 -1
- data/lib/wally/views/feature.haml +8 -4
- data/lib/wally/views/index.haml +5 -0
- data/lib/wally/views/scenario.haml +6 -3
- data/lib/wally/views/search.haml +9 -3
- metadata +19 -19
data/lib/wally/application.rb
CHANGED
@@ -37,6 +37,7 @@ end
|
|
37
37
|
get '/features/:feature/scenario/:scenario/?' do |feature_id, scenario_id|
|
38
38
|
@features.each do |feature|
|
39
39
|
if feature["id"] == feature_id
|
40
|
+
@feature = feature
|
40
41
|
feature["elements"].each do |element|
|
41
42
|
if element["type"] == "background"
|
42
43
|
@background = element
|
data/lib/wally/public/skin.css
CHANGED
@@ -48,7 +48,7 @@ h1, h2, h3, h4, h5, h6 {
|
|
48
48
|
}
|
49
49
|
|
50
50
|
h2 {
|
51
|
-
padding-bottom:
|
51
|
+
padding-bottom: 9px;
|
52
52
|
}
|
53
53
|
|
54
54
|
input, textarea, select, .uneditable-input {
|
@@ -100,7 +100,14 @@ p {
|
|
100
100
|
.step-keyword:before {
|
101
101
|
color: #FF5382;
|
102
102
|
font-size: 15px;
|
103
|
-
|
103
|
+
}
|
104
|
+
|
105
|
+
.step-keyword {
|
106
|
+
color: #777;
|
107
|
+
font-style: italic;
|
108
|
+
min-width: 40px;
|
109
|
+
display: inline-block;
|
110
|
+
padding-left: 10px;
|
104
111
|
}
|
105
112
|
|
106
113
|
section.scenarios {
|
@@ -109,5 +116,8 @@ section.scenarios {
|
|
109
116
|
}
|
110
117
|
|
111
118
|
section.feature p:first-child {
|
112
|
-
white-space: pre-wrap
|
119
|
+
white-space: pre-wrap;
|
120
|
+
border-left: 1px solid #999;
|
121
|
+
padding-left: 10px;
|
122
|
+
margin-left: -10px;
|
113
123
|
}
|
data/lib/wally/version.rb
CHANGED
@@ -1,12 +1,16 @@
|
|
1
|
+
%h2
|
2
|
+
= @feature["name"]
|
1
3
|
- if @feature["path"]
|
2
|
-
%
|
3
|
-
|
4
|
-
|
5
|
-
|
4
|
+
%p
|
5
|
+
from
|
6
|
+
%em
|
7
|
+
= @feature["path"]
|
6
8
|
%section{:class=>"scenarios"}
|
7
9
|
%section{:class => 'feature'}
|
8
10
|
:markdown
|
9
11
|
#{@feature["description"]}
|
12
|
+
- if @feature["description"]
|
13
|
+
%h2 Scenarios
|
10
14
|
%ul
|
11
15
|
- get_sorted_scenarios(@feature).each do |scenario|
|
12
16
|
%li
|
data/lib/wally/views/index.haml
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
%h2
|
2
|
-
|
2
|
+
%a{"href" => '../'}
|
3
|
+
= @feature["name"]
|
4
|
+
%h2
|
5
|
+
= @scenario["name"]
|
3
6
|
- if @scenario["tags"]
|
4
7
|
= haml :tag_links, {:locals => {:tags => @scenario["tags"]}, :layout => false}
|
5
8
|
- if @background
|
@@ -18,11 +21,11 @@
|
|
18
21
|
= step["keyword"]
|
19
22
|
= escape_once(step["name"])
|
20
23
|
- else
|
21
|
-
%p{:class => '
|
24
|
+
%p{:class => 'alert-message error'}
|
22
25
|
= "Where's Wally? This scenario has no steps!?"
|
23
26
|
- if @scenario["examples"]
|
24
27
|
%h3 Examples:
|
25
|
-
%table
|
28
|
+
%table{:class => 'zebra-striped'}
|
26
29
|
- @scenario["examples"].first["rows"].each_with_index do |row, index|
|
27
30
|
%tr
|
28
31
|
- row["cells"].each do |cell|
|
data/lib/wally/views/search.haml
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
- if params[:q]
|
2
|
-
|
3
|
-
|
2
|
+
- if params[:q].length > 0
|
3
|
+
%h2
|
4
|
+
= "Search for '#{params[:q]}'"
|
4
5
|
- if @search_results.suggestion
|
5
6
|
%p
|
6
7
|
Did you mean
|
@@ -23,5 +24,10 @@
|
|
23
24
|
= search_result.scenario["name"]
|
24
25
|
- if search_result.scenario["tags"]
|
25
26
|
= haml :tag_links, {:locals => {:tags => search_result.scenario["tags"]}, :layout => false}
|
27
|
+
- if @search_results.items.length === 0
|
28
|
+
%p{:class => 'alert-message error'}
|
29
|
+
Where's Wally? This search returned no results.
|
30
|
+
|
26
31
|
- else
|
27
|
-
%p
|
32
|
+
%p{:class => 'alert-message error'}
|
33
|
+
Where's Wally? This search returned no results.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wally
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.19
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-11-27 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sinatra
|
16
|
-
requirement: &
|
16
|
+
requirement: &70094365711620 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70094365711620
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: haml
|
27
|
-
requirement: &
|
27
|
+
requirement: &70094365710840 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70094365710840
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rdiscount
|
38
|
-
requirement: &
|
38
|
+
requirement: &70094365709760 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70094365709760
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: gherkin
|
49
|
-
requirement: &
|
49
|
+
requirement: &70094365709200 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70094365709200
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: komainu
|
60
|
-
requirement: &
|
60
|
+
requirement: &70094365708440 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70094365708440
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: cucumber
|
71
|
-
requirement: &
|
71
|
+
requirement: &70094365706640 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70094365706640
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: capybara
|
82
|
-
requirement: &
|
82
|
+
requirement: &70094365699040 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: '0'
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *70094365699040
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: rspec
|
93
|
-
requirement: &
|
93
|
+
requirement: &70094365698380 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ! '>='
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
version: '0'
|
99
99
|
type: :development
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *70094365698380
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: fakefs
|
104
|
-
requirement: &
|
104
|
+
requirement: &70094365697780 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ! '>='
|
@@ -109,7 +109,7 @@ dependencies:
|
|
109
109
|
version: '0'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *70094365697780
|
113
113
|
description: ''
|
114
114
|
email:
|
115
115
|
- andrew.vos@gmail.com
|