woyo-server 0.0.2 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/woyo/server/version.rb +1 -1
- data/spec/woyo/server/1_server_spec.rb +15 -15
- data/views/server/location.haml +12 -8
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1eda70b6ab65458a84cba1faf7712793df3d0df
|
4
|
+
data.tar.gz: 31846637b74ac343bbdd2dc7b2896532a1e8d169
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6fc9536afd4892240677d1981f47e10f7e3a3dd3b09521aedd4aeef9746f5e4d11c39504e610109409ac0d0cc642ce7dabd78a4618eddffdd26cdc707267c980
|
7
|
+
data.tar.gz: 3479f92980e62a5f3ade1fffa6b0bd88a96cf3c4f9cfb0f5114d520fcca5ee1cdcd190508cb8ca3a27a77601daca99c88915c9a53924fcb78a000b0986849a5e
|
data/lib/woyo/server/version.rb
CHANGED
@@ -97,18 +97,18 @@ describe Woyo::Server, :type => :feature do
|
|
97
97
|
page.should have_selector '.location#location_home'
|
98
98
|
page.should have_selector '.location#location_home .name', text: 'Home'
|
99
99
|
page.should have_selector '.location#location_home .description', text: 'Where the heart is.'
|
100
|
-
page.should have_selector '.
|
101
|
-
page.should have_selector '.
|
102
|
-
page.should have_selector '.
|
103
|
-
page.should have_selector '.
|
104
|
-
page.should have_selector '.
|
105
|
-
page.should have_selector '.
|
100
|
+
page.should have_selector '.way#way_out'
|
101
|
+
page.should have_selector '.way#way_out .name', text: 'Door'
|
102
|
+
page.should have_selector '.way#way_out .description', text: 'A sturdy wooden door'
|
103
|
+
page.should have_selector '.way#way_down'
|
104
|
+
page.should have_selector '.way#way_down .name', text: 'Stairs'
|
105
|
+
page.should have_selector '.way#way_down .description', text: 'Rickety stairs lead down'
|
106
106
|
end
|
107
107
|
|
108
108
|
it 'goes way to another location' do
|
109
109
|
Woyo::Server.set :world, @home_world
|
110
110
|
visit '/'
|
111
|
-
page.should have_selector '.
|
111
|
+
page.should have_selector '.way#way_out a#go_out'
|
112
112
|
click_on 'go_out'
|
113
113
|
page.should have_selector '.location#location_garden .name', text: 'Garden'
|
114
114
|
end
|
@@ -117,10 +117,10 @@ describe Woyo::Server, :type => :feature do
|
|
117
117
|
Woyo::Server.set :world, @home_world
|
118
118
|
visit '/'
|
119
119
|
page.should have_selector '.location#location_home .name', text: 'Home'
|
120
|
-
page.should have_selector '.
|
120
|
+
page.should have_selector '.way#way_out a#go_out'
|
121
121
|
click_on 'go_out'
|
122
122
|
page.should have_selector '.location#location_garden .name', text: 'Garden'
|
123
|
-
page.should have_selector '.
|
123
|
+
page.should have_selector '.way#way_in a#go_in'
|
124
124
|
click_on 'go_in'
|
125
125
|
page.should have_selector '.location#location_home .name', text: 'Home'
|
126
126
|
end
|
@@ -129,22 +129,22 @@ describe Woyo::Server, :type => :feature do
|
|
129
129
|
Woyo::Server.set :world, @home_world
|
130
130
|
visit '/'
|
131
131
|
page.should have_selector '.location#location_home .name', text: 'Home'
|
132
|
-
page.should have_selector '.
|
132
|
+
page.should have_selector '.way#way_out a#go_out'
|
133
133
|
click_on 'go_out'
|
134
134
|
page.should have_selector '.location#location_garden .name', text: 'Garden'
|
135
|
-
page.should have_selector '.
|
135
|
+
page.should have_selector '.way#way_down a#go_down'
|
136
136
|
click_on 'go_down'
|
137
137
|
page.should have_selector '.location#location_cellar .name', text: 'Cellar'
|
138
|
-
page.should have_selector '.
|
138
|
+
page.should have_selector '.way#way_up a#go_up'
|
139
139
|
click_on 'go_up'
|
140
140
|
page.should have_selector '.location#location_home .name', text: 'Home'
|
141
|
-
page.should have_selector '.
|
141
|
+
page.should have_selector '.way#way_down a#go_down'
|
142
142
|
click_on 'go_down'
|
143
143
|
page.should have_selector '.location#location_cellar .name', text: 'Cellar'
|
144
|
-
page.should have_selector '.
|
144
|
+
page.should have_selector '.way#way_out a#go_out'
|
145
145
|
click_on 'go_out'
|
146
146
|
page.should have_selector '.location#location_garden .name', text: 'Garden'
|
147
|
-
page.should have_selector '.
|
147
|
+
page.should have_selector '.way#way_in a#go_in'
|
148
148
|
click_on 'go_in'
|
149
149
|
page.should have_selector '.location#location_home .name', text: 'Home'
|
150
150
|
end
|
data/views/server/location.haml
CHANGED
@@ -1,10 +1,14 @@
|
|
1
|
-
%div.
|
2
|
-
%
|
3
|
-
|
1
|
+
%div.row
|
2
|
+
%div.large-12.columns
|
3
|
+
%div.location{ :id => "location_#{@location.id}" }
|
4
|
+
%h1.name= @location.name
|
5
|
+
%p.description= @location.description
|
4
6
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
- @location.ways.each do |id,way|
|
8
|
+
%div.row
|
9
|
+
%div.large-12.columns
|
10
|
+
%div.way{ :id => "way_#{id}" }
|
11
|
+
%a{ :id => "go_#{id}", :href => "/go/#{id}" }
|
12
|
+
%h3.name= way.name
|
13
|
+
%p.description= way.description
|
10
14
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: woyo-server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gerard Fowley
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - '='
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.0.
|
89
|
+
version: 0.0.4
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - '='
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.0.
|
96
|
+
version: 0.0.4
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: sinatra
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|