fluent-plugin-storage-redis 0.0.2 → 0.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 074f3f6fa3a1834180b74c48438e385615397632
4
- data.tar.gz: 76f189408df28edff42ea1f14a380aa1757460db
3
+ metadata.gz: 51884bbb0e07a0252f7a22745b37b5321c59405e
4
+ data.tar.gz: 1491129c6380b40e24f8e15f53baba61bef3eb52
5
5
  SHA512:
6
- metadata.gz: 105cb3c0a5ae16f0f6cd3c167cb558d5f7faf236ee192b48f22a9fd89ab9d47ac64ef7f90b75db0dc71e435b4f060fba5ce5b8982cca0b7b9ee50e387f428d71
7
- data.tar.gz: f33f797bd7d3cad95feee2519badbde580a5fc6fa4f71066278b178d9f333a72eb5864360da50195ae4f90e6bbdfca51f15a8c4e2b11d33e55d47304cef265f6
6
+ metadata.gz: ee6cb8f56f90ff1786652b435465a43c1f401469c9e903549c03e6ec3baaaf550688d48476878f75fb7865efbc063eed914554d81826f620f8a1f6d236f7f0c3
7
+ data.tar.gz: a349388cc4249e36ec6876fe8d7327f18adfcc61307929560dd1202542466c406901acab495ca907c1408bc25c9895c61620baf9a0fb1c84e562f6d86cacd5eb
data/README.md CHANGED
@@ -25,7 +25,7 @@ Then fluent automatically loads the plugin installed.
25
25
  ## Configuration
26
26
 
27
27
  ```aconf
28
- <store>
28
+ <storage>
29
29
  @type redis
30
30
 
31
31
  path my_key # or conf.arg will be used as redis key
@@ -34,14 +34,14 @@ Then fluent automatically loads the plugin installed.
34
34
  db_number 0 # 0 is default
35
35
  # If requirepass is set, please specify this.
36
36
  # password hogefuga
37
- </match>
37
+ </storage>
38
38
  ```
39
39
 
40
40
  ## Development
41
41
 
42
42
  After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
43
43
 
44
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
44
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `fluent-plugin-storage-redis.gemspec`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
45
45
 
46
46
  ## Contributing
47
47
 
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "fluent-plugin-storage-redis"
7
- spec.version = "0.0.2"
7
+ spec.version = "0.0.3"
8
8
  spec.authors = ["Hiroshi Hatake"]
9
9
  spec.email = ["cosmo0920.oucc@gmail.com"]
10
10
 
@@ -11,6 +11,8 @@ module Fluent
11
11
  config_param :port, :integer, default: 6379
12
12
  config_param :db_number, :integer, default: 0
13
13
  config_param :password, :string, default: nil, secret: true
14
+ # Set persistent true by default
15
+ config_set_default :persistent, true
14
16
 
15
17
  attr_reader :store # for test
16
18
 
@@ -57,6 +59,10 @@ module Fluent
57
59
  true
58
60
  end
59
61
 
62
+ def persistent_always?
63
+ true
64
+ end
65
+
60
66
  def load
61
67
  begin
62
68
  json_string = @redis.get(@path)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-storage-redis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiroshi Hatake
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-02-14 00:00:00.000000000 Z
11
+ date: 2017-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler