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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d631fff970708970e8c666a81ad35a2c2ede9004
4
- data.tar.gz: 9f29d92c99ec739eb5dd4dc50107537aeca7bdf4
3
+ metadata.gz: e1eda70b6ab65458a84cba1faf7712793df3d0df
4
+ data.tar.gz: 31846637b74ac343bbdd2dc7b2896532a1e8d169
5
5
  SHA512:
6
- metadata.gz: 7066e24c44ef560cbc484c1ecff89de388b70796b9ce033e845bb9a49d61a1ffc1f4bc81f9c697210fa0092eea6e309f8d5ffe89ef60486e35e3390d7289a072
7
- data.tar.gz: f9aef1c1096177eb60b57a73dc19796ed933b3ec364c12023db956e2a7052a9481a98005ef640d190c784de3ebe06cff59f6dc55072bd13ea3fa7f362f4a3195
6
+ metadata.gz: 6fc9536afd4892240677d1981f47e10f7e3a3dd3b09521aedd4aeef9746f5e4d11c39504e610109409ac0d0cc642ce7dabd78a4618eddffdd26cdc707267c980
7
+ data.tar.gz: 3479f92980e62a5f3ade1fffa6b0bd88a96cf3c4f9cfb0f5114d520fcca5ee1cdcd190508cb8ca3a27a77601daca99c88915c9a53924fcb78a000b0986849a5e
@@ -1,3 +1,3 @@
1
1
  module Woyo
2
- SERVER_VERSION = "0.0.2"
2
+ SERVER_VERSION = "0.0.4"
3
3
  end
@@ -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 '.location#location_home .way#way_out'
101
- page.should have_selector '.location#location_home .way#way_out .name', text: 'Door'
102
- page.should have_selector '.location#location_home .way#way_out .description', text: 'A sturdy wooden door'
103
- page.should have_selector '.location#location_home .way#way_down'
104
- page.should have_selector '.location#location_home .way#way_down .name', text: 'Stairs'
105
- page.should have_selector '.location#location_home .way#way_down .description', text: 'Rickety stairs lead down'
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 '.location#location_home .way#way_out a#go_out'
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 '.location#location_home .way#way_out a#go_out'
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 '.location#location_garden .way#way_in a#go_in'
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 '.location#location_home .way#way_out a#go_out'
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 '.location#location_garden .way#way_down a#go_down'
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 '.location#location_cellar .way#way_up a#go_up'
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 '.location#location_home .way#way_down a#go_down'
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 '.location#location_cellar .way#way_out a#go_out'
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 '.location#location_garden .way#way_in a#go_in'
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
@@ -1,10 +1,14 @@
1
- %div.location{ :id => "location_#{@location.id}" }
2
- %h1.name= @location.name
3
- %p.description= @location.description
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
- - @location.ways.each do |id,way|
6
- %div.way{ :id => "way_#{id}" }
7
- %a{ :id => "go_#{id}", :href => "/go/#{id}" }
8
- %h3.name= way.name
9
- %p.description= way.description
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.2
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.2
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.2
96
+ version: 0.0.4
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: sinatra
99
99
  requirement: !ruby/object:Gem::Requirement