-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from aca-labs/master
update to work with InfluxDB 1.5 and crystal 0.25.1
- Loading branch information
Showing
23 changed files
with
78 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
/doc/ | ||
/libs/ | ||
/.crystal/ | ||
/.shards/ | ||
doc | ||
lib | ||
.crystal | ||
.shards | ||
|
||
|
||
# Libraries don't need dependency lock | ||
# Dependencies will be locked in application that uses them | ||
/shard.lock | ||
shard.lock | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,3 @@ blah = influx.databases["blah"] | |
blah.select.from("many_series").each do |res| | ||
p res | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,8 @@ | ||
name: influxdb | ||
version: 0.1.1 | ||
version: 0.2.0 | ||
|
||
authors: | ||
- Jerome Gravel-Niquet <[email protected]> | ||
- Stephen von Takach <[email protected]> | ||
|
||
license: MIT | ||
|
||
development_dependencies: | ||
webmock: | ||
github: manastech/webmock.cr | ||
branch: master | ||
spec2: | ||
github: waterlink/spec2.cr | ||
version: ~> 0.7.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,4 +30,4 @@ describe InfluxDB::Databases do | |
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
require "../spec_helper" | ||
|
||
describe InfluxDB::Query do | ||
|
||
|
||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,38 @@ | ||
require "webmock" | ||
require "../src/influxdb" | ||
require "spec" | ||
|
||
WebMock.allow_net_connect = true | ||
|
||
Spec.before_each do | ||
db.drop | ||
dbs.create "test" | ||
end | ||
|
||
class Runtime | ||
@dbs : InfluxDB::Databases? | ||
@db : InfluxDB::Database? | ||
@db : InfluxDB::Database? | ||
|
||
def client | ||
@client ||= InfluxDB::Client.new | ||
end | ||
|
||
def client; @client ||= InfluxDB::Client.new; end | ||
def dbs; (@dbs ||= client.databases).not_nil!; end | ||
def db; (@db ||= dbs["test"]).not_nil!; end | ||
def dbs | ||
(@dbs ||= client.databases).not_nil! | ||
end | ||
|
||
def db | ||
(@db ||= dbs["test"]).not_nil! | ||
end | ||
|
||
INSTANCE = new | ||
end | ||
|
||
def client; Runtime::INSTANCE.client; end | ||
def dbs; Runtime::INSTANCE.dbs; end | ||
def db; Runtime::INSTANCE.db; end | ||
def client | ||
Runtime::INSTANCE.client | ||
end | ||
|
||
def dbs | ||
Runtime::INSTANCE.dbs | ||
end | ||
|
||
def db | ||
Runtime::INSTANCE.db | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
module InfluxDB | ||
class Client | ||
module Databases | ||
|
||
def databases | ||
InfluxDB::Databases.new(self) | ||
end | ||
|
||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ module InfluxDB | |
class Exception < ::Exception | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ module InfluxDB | |
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
module InfluxDB | ||
class Client | ||
module Users | ||
|
||
def users(db = "") | ||
InfluxDB::Users.new(self, db) | ||
end | ||
|
||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.