cap_password_filter 1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/cap_password_filter.gemspec +17 -0
- data/lib/cap_password_filter.rb +1 -0
- data/lib/capistrano/logger.rb +14 -0
- metadata +82 -0
@@ -0,0 +1,17 @@
|
|
1
|
+
Gem::Specification.new do |s|
|
2
|
+
s.name = "cap_password_filter"
|
3
|
+
s.version = "1.0"
|
4
|
+
|
5
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
6
|
+
s.authors = ["Brian Samson"]
|
7
|
+
s.date = "2010-04-08"
|
8
|
+
s.description = "Replace inline http passwords (http://user:password@host) with 'xxx' in cap log output"
|
9
|
+
s.email = "brian@briansamson.com"
|
10
|
+
s.files = ["lib/capistrano/logger.rb", "lib/cap_password_filter.rb", "cap_password_filter.gemspec"]
|
11
|
+
s.homepage = "http://github.com/samsonasu/cap_password_filter"
|
12
|
+
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Capistrano_colors", "--main", "README.rdoc"]
|
13
|
+
s.require_paths = ["lib"]
|
14
|
+
s.summary = "Replace inline http passwords (http://user:password@host) with 'xxx' in cap log output"
|
15
|
+
s.add_dependency("capistrano", [">= 2.3.0"])
|
16
|
+
end
|
17
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
require File.dirname(__FILE__) + "/capistrano/logger"
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module Capistrano
|
2
|
+
class Logger
|
3
|
+
alias_method :unfiltered_log, :log
|
4
|
+
|
5
|
+
def log(level, message, line_prefix=nil) #:nodoc:
|
6
|
+
if (message =~ /https?:\/\/.*:(.*)(@)/)
|
7
|
+
message[message.index($1)...message.index($2)]="xxx"
|
8
|
+
end
|
9
|
+
unfiltered_log(level, message, line_prefix)
|
10
|
+
end
|
11
|
+
|
12
|
+
end
|
13
|
+
|
14
|
+
end
|
metadata
ADDED
@@ -0,0 +1,82 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: cap_password_filter
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 1
|
7
|
+
- 0
|
8
|
+
version: "1.0"
|
9
|
+
platform: ruby
|
10
|
+
authors:
|
11
|
+
- Brian Samson
|
12
|
+
autorequire:
|
13
|
+
bindir: bin
|
14
|
+
cert_chain: []
|
15
|
+
|
16
|
+
date: 2010-04-08 00:00:00 -07:00
|
17
|
+
default_executable:
|
18
|
+
dependencies:
|
19
|
+
- !ruby/object:Gem::Dependency
|
20
|
+
name: capistrano
|
21
|
+
prerelease: false
|
22
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
segments:
|
27
|
+
- 2
|
28
|
+
- 3
|
29
|
+
- 0
|
30
|
+
version: 2.3.0
|
31
|
+
type: :runtime
|
32
|
+
version_requirements: *id001
|
33
|
+
description: Replace inline http passwords (http://user:password@host) with 'xxx' in cap log output
|
34
|
+
email: brian@briansamson.com
|
35
|
+
executables: []
|
36
|
+
|
37
|
+
extensions: []
|
38
|
+
|
39
|
+
extra_rdoc_files: []
|
40
|
+
|
41
|
+
files:
|
42
|
+
- lib/capistrano/logger.rb
|
43
|
+
- lib/cap_password_filter.rb
|
44
|
+
- cap_password_filter.gemspec
|
45
|
+
has_rdoc: true
|
46
|
+
homepage: http://github.com/samsonasu/cap_password_filter
|
47
|
+
licenses: []
|
48
|
+
|
49
|
+
post_install_message:
|
50
|
+
rdoc_options:
|
51
|
+
- --line-numbers
|
52
|
+
- --inline-source
|
53
|
+
- --title
|
54
|
+
- Capistrano_colors
|
55
|
+
- --main
|
56
|
+
- README.rdoc
|
57
|
+
require_paths:
|
58
|
+
- lib
|
59
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
segments:
|
64
|
+
- 0
|
65
|
+
version: "0"
|
66
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
segments:
|
71
|
+
- 1
|
72
|
+
- 2
|
73
|
+
version: "1.2"
|
74
|
+
requirements: []
|
75
|
+
|
76
|
+
rubyforge_project:
|
77
|
+
rubygems_version: 1.3.6
|
78
|
+
signing_key:
|
79
|
+
specification_version: 3
|
80
|
+
summary: Replace inline http passwords (http://user:password@host) with 'xxx' in cap log output
|
81
|
+
test_files: []
|
82
|
+
|