Skip to content

Commit 846325e

Browse files
committed
GET for /last_push + Version bump
1 parent 462ba77 commit 846325e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ruby-2.2.2
1+
ruby-2.3.0

example.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
client = Databox::Client.new()
1111

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

1616
pp client.last_push(3)

lib/databox/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,6 @@ def insert_all(rows=[])
6666
end
6767

6868
def last_push(n=1)
69-
raw_push "/lastpushes/#{n}"
69+
handle self.class.get("/lastpushes/#{n}")
7070
end
7171
end

lib/databox/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Databox
2-
VERSION = '0.2.1'
2+
VERSION = '0.2.2'
33
end

0 commit comments

Comments
 (0)