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 +4 -4
- data/fluent-plugin-http_shadow.gemspec +2 -1
- data/lib/fluent/plugin/out_http_shadow.rb +2 -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: b53fa8b10186511eaf719ca67d3c0512fe1872ad
|
4
|
+
data.tar.gz: 7233c7e0d9ce2a9f12688ed04ff804b855350655
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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-
|
11
|
+
date: 2015-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|