Skip to content

Commit

Permalink
GET for /last_push + Version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
otobrglez committed Jan 24, 2016
1 parent 462ba77 commit 846325e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ruby-2.2.2
ruby-2.3.0
2 changes: 1 addition & 1 deletion example.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
client = Databox::Client.new()

3.times do |t|
client.push("example.ruby", t*100, (DateTime.now - t).strftime('%Y-%m-%d'))
client.push(key: "example.ruby", value: t*100, date:(DateTime.now - t).strftime('%Y-%m-%d'))
end

pp client.last_push(3)
Expand Down
2 changes: 1 addition & 1 deletion lib/databox/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ def insert_all(rows=[])
end

def last_push(n=1)
raw_push "/lastpushes/#{n}"
handle self.class.get("/lastpushes/#{n}")
end
end
2 changes: 1 addition & 1 deletion lib/databox/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Databox
VERSION = '0.2.1'
VERSION = '0.2.2'
end

0 comments on commit 846325e

Please sign in to comment.