Skip to content

Commit

Permalink
test for ruby 2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
godfat committed Dec 25, 2014
1 parent 34ab739 commit cdfe866
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

language: ruby
rvm:
- 1.9
- 2.0
- 2.1
- 2.2
- rbx-2
- jruby

Expand Down
4 changes: 2 additions & 2 deletions lib/rest-firebase.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,14 @@ def onmessage event=nil, data=nil, sock=nil
end
end

def request env, app=app
def request env, a=app
check_auth
query = env[REQUEST_QUERY].inject({}) do |q, (k, v)|
q[k] = Json.encode(v)
q
end
super(env.merge(REQUEST_PATH => "#{env[REQUEST_PATH]}.json",
REQUEST_QUERY => query), app)
REQUEST_QUERY => query), a)
end

def generate_auth opts={}
Expand Down
2 changes: 1 addition & 1 deletion rest-core

0 comments on commit cdfe866

Please sign in to comment.