fluent-plugin-http_shadow 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b2bf86074d008d420732cff063ba4d60194f2821
4
- data.tar.gz: 6084d42dea51d2a209e896f0c57b6cffa0281dc7
3
+ metadata.gz: b53fa8b10186511eaf719ca67d3c0512fe1872ad
4
+ data.tar.gz: 7233c7e0d9ce2a9f12688ed04ff804b855350655
5
5
  SHA512:
6
- metadata.gz: 0c9943abae79ef3051bfc71327078ce5f02aebc8fa8d2cf1fbc84eeea960b0fc8c2458636dfcd6dd27d41420b9e0e3c00dcf45066441787d8bb81381d6b8cfb1
7
- data.tar.gz: d282840b1e1edb304e6e419c6070d20d3d1ee7afbcf3efd81e765cf6b2fc8e2fdad28331a3ad49d8b1a762f531239dd36cb2d87b0666318ead5244a4f9c6096b
6
+ metadata.gz: 5106be8646155b8a574b36e8abd91cf56f12e28f36ebd22809c897a421145aa519303ae73a7ba62ad285d63756a3a76b7f109a1efc549d3aac2165662a794fe4
7
+ data.tar.gz: c9325e85cd66ef50ae7de8394d3eed03e22043466ea9fe6c9cd55fb20cca452de780fd34ef00d0dc4988db8d060214b20e4dbe437fdae52f0ca8bb11d2b36683
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = "fluent-plugin-http_shadow"
5
- gem.version = "0.0.6"
5
+ gem.version = "0.0.7"
6
6
  gem.summary = %q{copy http request. use shadow proxy server.}
7
7
  gem.description = %q{copy http request. use shadow proxy server.}
8
8
  gem.license = "MIT"
@@ -17,6 +17,7 @@ Gem::Specification.new do |gem|
17
17
 
18
18
  gem.add_runtime_dependency "typhoeus"
19
19
  gem.add_runtime_dependency "addressable"
20
+ gem.add_runtime_dependency "string-scrub" if RUBY_VERSION.to_f < 2.1
20
21
  gem.add_development_dependency 'bundler', '~> 1.7.2'
21
22
  gem.add_development_dependency 'fluentd', '~> 0.10.58'
22
23
  gem.add_development_dependency 'pry', '~> 0.10.1'
@@ -7,6 +7,7 @@ module Fluent
7
7
  require 'erb'
8
8
  require 'typhoeus'
9
9
  require "addressable/uri"
10
+ require 'string/scrub' if RUBY_VERSION.to_f < 2.1
10
11
  end
11
12
 
12
13
  config_param :host, :string, :default => nil
@@ -121,7 +122,7 @@ module Fluent
121
122
  def replace_string(str)
122
123
  return nil if str.nil?
123
124
  @replace_hash.each do |k, v|
124
- str = str.gsub(k, v)
125
+ str = str.scrub.gsub(k, v)
125
126
  end
126
127
  str
127
128
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-http_shadow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiroshi Toyama
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-16 00:00:00.000000000 Z
11
+ date: 2015-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus