influxdb_setup 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +9 -1
- data/CHANGELOG.md +3 -0
- data/lib/influxdb_setup/create_retention_policy.rb +3 -1
- data/lib/influxdb_setup/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a66d18ae09fc31e9ffa8a50b37b8e3af9f0daab5
|
4
|
+
data.tar.gz: 0eef62d09f5300a134ee5b113771fbb4bbf903c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 442c13dbc98d745d8ed691f44f3f2a870417691c861fca55045f2bb06cbaa63b45ca70917034b4410931b7232522e8a8d13b637c9ec63dc616b8417609838097
|
7
|
+
data.tar.gz: 7e1d9034d3c6927eefea7b47b1e669fe0bf56df03224e2b2bb2dfd4fddb13a5f114b67b5e2afca6d2d61e11f19dfad0586352bddc86d5e3affe5d2c2772a70e2
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,9 @@ CHANGELOG inspiration from http://keepachangelog.com/.
|
|
5
5
|
|
6
6
|
## Unreleased
|
7
7
|
|
8
|
+
## [1.1.1] - August 22, 2016
|
9
|
+
* Fix bug in CreateRetentionPolicy when no policies configured in YAML.
|
10
|
+
|
8
11
|
## [1.1.0] - August 8, 2016
|
9
12
|
* Support configuration of retention policies
|
10
13
|
* Support specifying config file instead of using the default one
|
@@ -1,8 +1,10 @@
|
|
1
1
|
module InfluxdbSetup
|
2
2
|
class CreateRetentionPolicy < Command
|
3
3
|
def call
|
4
|
-
db = @config.db_name
|
5
4
|
retention_policies = @config.retention_policies
|
5
|
+
return if retention_policies.nil?
|
6
|
+
|
7
|
+
db = @config.db_name
|
6
8
|
|
7
9
|
root = @config.build_client
|
8
10
|
rcs = root.list_retention_policies(db).map { |row| row["name"] }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: influxdb_setup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Donald Plummer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: influxdb
|