Skip to content

Instantly share code, notes, and snippets.

@clairvy
Created July 8, 2011 16:35
Show Gist options
  • Select an option

  • Save clairvy/1072210 to your computer and use it in GitHub Desktop.

Select an option

Save clairvy/1072210 to your computer and use it in GitHub Desktop.
diff --git a/public/stylesheets/sass/main.sass b/public/stylesheets/sass/main.sass
index 1bc4d8a..56f14e0 100644
--- a/public/stylesheets/sass/main.sass
+++ b/public/stylesheets/sass/main.sass
@@ -1,6 +1,6 @@
// variable
-!link-color = #e2041b
-!link-visited-color = #e597b2
+$link-color: #e2041b
+$link-visited-color: #e597b2
// layout
body
@@ -209,21 +209,21 @@ img.profile
// link
a
- :color !link-color
+ :color $link-color
:font-style normal
:text-decoration underline
a:link
- :color !link-color
+ :color $link-color
:font-style normal
:text-decoration underline
a:visited
- :color !link-visited-color
+ :color $link-visited-color
:text-decoration underline
a:hover
- :color !link-color
+ :color $link-color
:font-style normal
:text-decoration underline
diff --git a/websocket/client_side.rb b/websocket/client_side.rb
index 722475d..2ef34dd 100644
--- a/websocket/client_side.rb
+++ b/websocket/client_side.rb
@@ -23,7 +23,7 @@ class ClientSide
:port => @port) do |ws|
ws.onopen do
@logger.info "on open: #{ws.request.inspect}"
- dispatch(ws.request['Path'])do|event|
+ dispatch(ws.request['path'])do|event|
@clients[ws] = event.listen do|hash|
@logger.info "send #{hash.inspect}"
ws.send hash.to_json
@@ -33,7 +33,7 @@ class ClientSide
ws.onclose do
@logger.info "on close: #{ws.request.inspect}"
- dispatch(ws.request['Path'])do|event, query|
+ dispatch(ws.request['path'])do|event, query|
event.remove @clients[ws]
end
@clients.delete ws
@clairvy

clairvy commented Jul 8, 2011

Copy link
Copy Markdown
Author

sass のバージョンアップとかですかね?
下のはよくわからん.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment