Merge branch 'master' of github.com:diaspora/diaspora
This commit is contained in:
commit
e4ac3afc3e
8 changed files with 2 additions and 17 deletions
|
|
@ -4,7 +4,6 @@
|
||||||
|
|
||||||
|
|
||||||
module ApplicationHelper
|
module ApplicationHelper
|
||||||
|
|
||||||
def current_aspect?(aspect)
|
def current_aspect?(aspect)
|
||||||
!@aspect.is_a?(Symbol) && @aspect.id == aspect.id
|
!@aspect.is_a?(Symbol) && @aspect.id == aspect.id
|
||||||
end
|
end
|
||||||
|
|
@ -68,5 +67,4 @@ module ApplicationHelper
|
||||||
def post_yield_tag(post)
|
def post_yield_tag(post)
|
||||||
(':' + post.id.to_s).to_sym
|
(':' + post.id.to_s).to_sym
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
|
|
||||||
|
|
||||||
module DashboardsHelper
|
module DashboardsHelper
|
||||||
|
|
||||||
def title_for_page
|
def title_for_page
|
||||||
'home'
|
'home'
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
|
|
||||||
|
|
||||||
module PhotosHelper
|
module PhotosHelper
|
||||||
|
|
||||||
def linked_scaled_photo(photo, album)
|
def linked_scaled_photo(photo, album)
|
||||||
link_to (image_tag photo.url(:scaled_full)), photo_path(album.next_photo(photo)), :rel => "prefetch"
|
link_to (image_tag photo.url(:scaled_full)), photo_path(album.next_photo(photo)), :rel => "prefetch"
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,6 @@ module PublicsHelper
|
||||||
subscriber ||= Subscriber.new(:url => opts[:callback], :topic => opts[:topic])
|
subscriber ||= Subscriber.new(:url => opts[:callback], :topic => opts[:topic])
|
||||||
|
|
||||||
if subscriber.save
|
if subscriber.save
|
||||||
|
|
||||||
if opts[:verify] == 'sync'
|
if opts[:verify] == 'sync'
|
||||||
204
|
204
|
||||||
elsif opts[:verify] == 'async'
|
elsif opts[:verify] == 'async'
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
|
|
||||||
|
|
||||||
module RequestsHelper
|
module RequestsHelper
|
||||||
|
|
||||||
def subscription_mode(profile)
|
def subscription_mode(profile)
|
||||||
if diaspora?(profile)
|
if diaspora?(profile)
|
||||||
:friend
|
:friend
|
||||||
|
|
@ -40,5 +39,4 @@ module RequestsHelper
|
||||||
end
|
end
|
||||||
{ action => person }
|
{ action => person }
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,4 @@ module SocketsHelper
|
||||||
|
|
||||||
action_hash.to_json
|
action_hash.to_json
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ class MessageHandler
|
||||||
http.callback { process; process}
|
http.callback { process; process}
|
||||||
when :get
|
when :get
|
||||||
http = EventMachine::HttpRequest.new(query.destination).get :timeout => TIMEOUT
|
http = EventMachine::HttpRequest.new(query.destination).get :timeout => TIMEOUT
|
||||||
http.callback {send_to_seed(query, http.response); process}
|
http.callback {process}
|
||||||
else
|
else
|
||||||
raise "message is not a type I know!"
|
raise "message is not a type I know!"
|
||||||
end
|
end
|
||||||
|
|
@ -47,10 +47,6 @@ class MessageHandler
|
||||||
} unless @queue.size == 0
|
} unless @queue.size == 0
|
||||||
end
|
end
|
||||||
|
|
||||||
def send_to_seed(message, http_response)
|
|
||||||
#DO SOMETHING!
|
|
||||||
end
|
|
||||||
|
|
||||||
def size
|
def size
|
||||||
@queue.size
|
@queue.size
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -123,7 +123,6 @@ describe MessageHandler do
|
||||||
request = FakeHttpRequest.new(:success)
|
request = FakeHttpRequest.new(:success)
|
||||||
request.should_receive(:get).exactly(1).times.and_return(request)
|
request.should_receive(:get).exactly(1).times.and_return(request)
|
||||||
request.should_receive(:post).exactly(1).times.and_return(request)
|
request.should_receive(:post).exactly(1).times.and_return(request)
|
||||||
@handler.should_receive(:send_to_seed).once
|
|
||||||
|
|
||||||
EventMachine::HttpRequest.stub!(:new).and_return(request)
|
EventMachine::HttpRequest.stub!(:new).and_return(request)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue