wally 0.0.16 → 0.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/example-features/{example-with-background.feature → generic/example-with-background.feature} +0 -0
- data/example-features/{example_with_tags.feature → generic/example_with_tags.feature} +0 -0
- data/example-features/{has-lots-of-tags.feature → generic/has-lots-of-tags.feature} +0 -0
- data/example-features/{multiple-scenarios.feature → generic/multiple-scenarios.feature} +0 -0
- data/example-features/too-many-wip-tags/too-many-wip-tags.feature +21 -0
- data/features/notifications.feature +9 -0
- data/features/step_definitions/browse_features_steps.rb +0 -4
- data/features/step_definitions/notifications_steps.rb +11 -0
- data/features/step_definitions/steps.rb +4 -0
- data/lib/wally/application.rb +1 -0
- data/lib/wally/version.rb +1 -1
- data/lib/wally/views/layout.haml +11 -6
- metadata +28 -23
data/example-features/{example-with-background.feature → generic/example-with-background.feature}
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,21 @@
|
|
1
|
+
Feature: Too many @wip tags
|
2
|
+
@wip
|
3
|
+
Scenario: Scenario 1
|
4
|
+
@wip
|
5
|
+
Scenario: Scenario 2
|
6
|
+
@wip
|
7
|
+
Scenario: Scenario 3
|
8
|
+
@wip
|
9
|
+
Scenario: Scenario 4
|
10
|
+
@wip
|
11
|
+
Scenario: Scenario 5
|
12
|
+
@wip
|
13
|
+
Scenario: Scenario 6
|
14
|
+
@wip
|
15
|
+
Scenario: Scenario 7
|
16
|
+
@wip
|
17
|
+
Scenario: Scenario 8
|
18
|
+
@wip
|
19
|
+
Scenario: Scenario 9
|
20
|
+
@wip
|
21
|
+
Scenario: Scenario 10
|
@@ -0,0 +1,9 @@
|
|
1
|
+
Feature: Notifications
|
2
|
+
In order to be great developers
|
3
|
+
As a developer
|
4
|
+
I want to be told off when I have too many bad tags
|
5
|
+
|
6
|
+
Scenario: Ten @wip tags
|
7
|
+
Given a feature file with 10 @wip tags
|
8
|
+
When I visit the home page
|
9
|
+
Then I should see a notification that says "You have 10 @wip tags"
|
@@ -0,0 +1,11 @@
|
|
1
|
+
Given /^a feature file with (\d+) @wip tags$/ do |wip_tag_count|
|
2
|
+
contents = "Feature: Feature 1\n"
|
3
|
+
1.upto(wip_tag_count.to_i) do |number|
|
4
|
+
contents += "@wip\nScenario: Scenario #{number}\n"
|
5
|
+
end
|
6
|
+
create_feature_file("sample1.feature", contents)
|
7
|
+
end
|
8
|
+
|
9
|
+
Then /^I should see a notification that says "([^"]*)"$/ do |text|
|
10
|
+
page.should have_content text
|
11
|
+
end
|
@@ -3,6 +3,10 @@ Given /^a feature file named "([^"]*)" with the contents:$/ do |filename, conten
|
|
3
3
|
create_feature_file(filename, @contents)
|
4
4
|
end
|
5
5
|
|
6
|
+
When /^I visit the home page$/ do
|
7
|
+
visit "/"
|
8
|
+
end
|
9
|
+
|
6
10
|
Then /^I should see a link to "([^"]*)" with the url "([^"]*)"$/ do |text, url|
|
7
11
|
page.should have_link text, :href => url
|
8
12
|
end
|
data/lib/wally/application.rb
CHANGED
data/lib/wally/version.rb
CHANGED
data/lib/wally/views/layout.haml
CHANGED
@@ -17,16 +17,21 @@
|
|
17
17
|
%input.btn{:type => "submit", :id => "search", :value => "Search"}
|
18
18
|
%div.container-fluid
|
19
19
|
%div.sidebar
|
20
|
-
- if @tag_count.any?
|
21
|
-
%h2 Tags
|
22
|
-
- @tag_count.each do |tag, count|
|
23
|
-
%span.label.notice
|
24
|
-
%a{:href => "/search?q=#{tag}"}
|
25
|
-
= "#{tag} (#{count})"
|
26
20
|
%h2
|
27
21
|
Features
|
28
22
|
%ul
|
29
23
|
- @features.each do |feature|
|
30
24
|
= haml :feature_link, {:locals => {:feature => feature}, :layout => false}
|
25
|
+
- if @tag_count.any?
|
26
|
+
%h2 Tags
|
27
|
+
%ul
|
28
|
+
- @tag_count.each do |tag, count|
|
29
|
+
%li
|
30
|
+
%a{:href => "/search?q=#{tag}"}
|
31
|
+
= "#{tag} (#{count})"
|
31
32
|
%div.content
|
33
|
+
- if @excessive_wip_tags
|
34
|
+
%div.alert-message.error
|
35
|
+
%p
|
36
|
+
= "You have #{@tag_count["@wip"]} @wip tags"
|
32
37
|
= yield
|
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.17
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-11-24 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sinatra
|
16
|
-
requirement: &
|
16
|
+
requirement: &70317088116700 !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: *70317088116700
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: haml
|
27
|
-
requirement: &
|
27
|
+
requirement: &70317088116180 !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: *70317088116180
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rdiscount
|
38
|
-
requirement: &
|
38
|
+
requirement: &70317088115600 !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: *70317088115600
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: gherkin
|
49
|
-
requirement: &
|
49
|
+
requirement: &70317088115020 !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: *70317088115020
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: komainu
|
60
|
-
requirement: &
|
60
|
+
requirement: &70317088114380 !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: *70317088114380
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: cucumber
|
71
|
-
requirement: &
|
71
|
+
requirement: &70317088113840 !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: *70317088113840
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: capybara
|
82
|
-
requirement: &
|
82
|
+
requirement: &70317088113300 !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: *70317088113300
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: rspec
|
93
|
-
requirement: &
|
93
|
+
requirement: &70317088112820 !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: *70317088112820
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: fakefs
|
104
|
-
requirement: &
|
104
|
+
requirement: &70317088112340 !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: *70317088112340
|
113
113
|
description: ''
|
114
114
|
email:
|
115
115
|
- andrew.vos@gmail.com
|
@@ -125,14 +125,17 @@ files:
|
|
125
125
|
- Rakefile
|
126
126
|
- bin/wally
|
127
127
|
- config.ru
|
128
|
-
- example-features/example-with-background.feature
|
129
|
-
- example-features/example_with_tags.feature
|
130
|
-
- example-features/has-lots-of-tags.feature
|
131
|
-
- example-features/multiple-scenarios.feature
|
128
|
+
- example-features/generic/example-with-background.feature
|
129
|
+
- example-features/generic/example_with_tags.feature
|
130
|
+
- example-features/generic/has-lots-of-tags.feature
|
131
|
+
- example-features/generic/multiple-scenarios.feature
|
132
|
+
- example-features/too-many-wip-tags/too-many-wip-tags.feature
|
132
133
|
- features/browse_features.feature
|
133
134
|
- features/list_tags.feature
|
135
|
+
- features/notifications.feature
|
134
136
|
- features/search_features.feature
|
135
137
|
- features/step_definitions/browse_features_steps.rb
|
138
|
+
- features/step_definitions/notifications_steps.rb
|
136
139
|
- features/step_definitions/search_features_steps.rb
|
137
140
|
- features/step_definitions/steps.rb
|
138
141
|
- features/support/env.rb
|
@@ -184,8 +187,10 @@ summary: ''
|
|
184
187
|
test_files:
|
185
188
|
- features/browse_features.feature
|
186
189
|
- features/list_tags.feature
|
190
|
+
- features/notifications.feature
|
187
191
|
- features/search_features.feature
|
188
192
|
- features/step_definitions/browse_features_steps.rb
|
193
|
+
- features/step_definitions/notifications_steps.rb
|
189
194
|
- features/step_definitions/search_features_steps.rb
|
190
195
|
- features/step_definitions/steps.rb
|
191
196
|
- features/support/env.rb
|