right_support 2.8.39 → 2.8.40

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d8b3135cd245a496d6ae85106183fb09c844725a
4
+ data.tar.gz: 7e9567b1fa35dd9a21b1c13df96dacf1a383c29c
5
+ SHA512:
6
+ metadata.gz: 5ed8823861dbb858cbcae19916263102a201a5a1652cd39d767b1c4363ed7e7233f20726d833944f7ac6186c5118ef45c67b585dd73218567281a2ec45adcbb2
7
+ data.tar.gz: 2f7d7b7e0e658fbd9499f74a33812ccb38da99ec234779f80f82dd49543853ea4eb31398e7f3633f85ffab2d3df3a091e2f33cc0729eca116fbec55222785762
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.8.39
1
+ 2.8.40
@@ -35,17 +35,18 @@ module RightSupport::Rack
35
35
  # with Rack::Logger or another middleware that provides logging services.
36
36
  class RequestLogger
37
37
 
38
- # Initialize an instance of the middleware.
38
+ # Initialize an instance of the middleware, optionally providing a whitelist (:only) or
39
+ # a blacklist (:except) of path regexps to which request logging will apply.
39
40
  #
40
41
  # @param [Object] app inner application or middleware layer; must respond to #call
41
42
  #
42
43
  # @option options [Array] :only log for these path Regexps unless in debug mode
43
- # @option options [Array] :except log except for these path Regexps unless in debug mode
44
+ # @option options [Array] :except log except for these path Regexps unless in debug mode; this option is ignored if :only is provided
44
45
  # @option options [Array] :include_query_string log the contents of the query string
45
46
  def initialize(app, options = {})
46
47
  @app = app
47
- @only = options[:only]
48
- @except = options[:except]
48
+ @only = options[:only] || []
49
+ @except = options[:except] || []
49
50
  # by default we don't log the query string contents because it may have sensitive data.
50
51
  @include_query_string = options[:include_query_string] || false
51
52
  end
@@ -94,8 +95,8 @@ module RightSupport::Rack
94
95
  def logging_enabled?(logger, env)
95
96
  path = env["PATH_INFO"]
96
97
  env["HTTP_X_DEBUG"] || [Logger::DEBUG, :debug].include?(logger.level) ||
97
- @only && @only.any? { |o| o.is_a?(Regexp) ? (path =~ o) : (path == o) } ||
98
- @except && @except.none? { |e| e.is_a?(Regexp) ? (path =~ e) : (path == e) }
98
+ @only.any? { |o| o.is_a?(Regexp) ? (path =~ o) : (path == o) } ||
99
+ @except.none? { |e| e.is_a?(Regexp) ? (path =~ e) : (path == e) }
99
100
  end
100
101
 
101
102
  # Log beginning of request
@@ -2,14 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
+ # stub: right_support 2.8.40 ruby lib
5
6
 
6
7
  Gem::Specification.new do |s|
7
8
  s.name = "right_support"
8
- s.version = "2.8.39"
9
+ s.version = "2.8.40"
9
10
 
10
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib"]
11
13
  s.authors = ["Tony Spataro", "Sergey Sergyenko", "Ryan Williamson", "Lee Kirchhoff", "Alexey Karpik", "Scott Messier"]
12
- s.date = "2015-01-21"
14
+ s.date = "2015-02-02"
13
15
  s.description = "A toolkit of useful, reusable foundation code created by RightScale."
14
16
  s.email = "support@rightscale.com"
15
17
  s.extra_rdoc_files = [
@@ -146,12 +148,11 @@ Gem::Specification.new do |s|
146
148
  ]
147
149
  s.homepage = "https://github.com/rightscale/right_support"
148
150
  s.licenses = ["MIT"]
149
- s.require_paths = ["lib"]
150
- s.rubygems_version = "1.8.15"
151
+ s.rubygems_version = "2.2.2"
151
152
  s.summary = "Reusable foundation code."
152
153
 
153
154
  if s.respond_to? :specification_version then
154
- s.specification_version = 3
155
+ s.specification_version = 4
155
156
 
156
157
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
157
158
  s.add_development_dependency(%q<rake>, ["~> 10.0"])
metadata CHANGED
@@ -1,15 +1,9 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: right_support
3
- version: !ruby/object:Gem::Version
4
- hash: 97
5
- prerelease:
6
- segments:
7
- - 2
8
- - 8
9
- - 39
10
- version: 2.8.39
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.8.40
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Tony Spataro
14
8
  - Sergey Sergyenko
15
9
  - Ryan Williamson
@@ -19,95 +13,90 @@ authors:
19
13
  autorequire:
20
14
  bindir: bin
21
15
  cert_chain: []
22
-
23
- date: 2015-01-21 00:00:00 Z
24
- dependencies:
25
- - !ruby/object:Gem::Dependency
26
- prerelease: false
16
+ date: 2015-02-02 00:00:00.000000000 Z
17
+ dependencies:
18
+ - !ruby/object:Gem::Dependency
27
19
  name: rake
20
+ requirement: !ruby/object:Gem::Requirement
21
+ requirements:
22
+ - - "~>"
23
+ - !ruby/object:Gem::Version
24
+ version: '10.0'
28
25
  type: :development
29
- version_requirements: &id001 !ruby/object:Gem::Requirement
30
- none: false
31
- requirements:
32
- - - ~>
33
- - !ruby/object:Gem::Version
34
- hash: 35
35
- segments:
36
- - 10
37
- - 0
38
- version: "10.0"
39
- requirement: *id001
40
- - !ruby/object:Gem::Dependency
41
26
  prerelease: false
27
+ version_requirements: !ruby/object:Gem::Requirement
28
+ requirements:
29
+ - - "~>"
30
+ - !ruby/object:Gem::Version
31
+ version: '10.0'
32
+ - !ruby/object:Gem::Dependency
42
33
  name: jeweler
34
+ requirement: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - "~>"
37
+ - !ruby/object:Gem::Version
38
+ version: '2.0'
43
39
  type: :development
44
- version_requirements: &id002 !ruby/object:Gem::Requirement
45
- none: false
46
- requirements:
47
- - - ~>
48
- - !ruby/object:Gem::Version
49
- hash: 3
50
- segments:
51
- - 2
52
- - 0
53
- version: "2.0"
54
- requirement: *id002
55
- - !ruby/object:Gem::Dependency
56
40
  prerelease: false
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ requirements:
43
+ - - "~>"
44
+ - !ruby/object:Gem::Version
45
+ version: '2.0'
46
+ - !ruby/object:Gem::Dependency
57
47
  name: ruby-debug
58
- type: :development
59
- version_requirements: &id003 !ruby/object:Gem::Requirement
60
- none: false
61
- requirements:
48
+ requirement: !ruby/object:Gem::Requirement
49
+ requirements:
62
50
  - - ">="
63
- - !ruby/object:Gem::Version
64
- hash: 3
65
- segments:
66
- - 0
67
- version: "0"
68
- requirement: *id003
69
- - !ruby/object:Gem::Dependency
51
+ - !ruby/object:Gem::Version
52
+ version: '0'
53
+ type: :development
70
54
  prerelease: false
55
+ version_requirements: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ - !ruby/object:Gem::Dependency
71
61
  name: pry
72
- type: :development
73
- version_requirements: &id004 !ruby/object:Gem::Requirement
74
- none: false
75
- requirements:
62
+ requirement: !ruby/object:Gem::Requirement
63
+ requirements:
76
64
  - - ">="
77
- - !ruby/object:Gem::Version
78
- hash: 3
79
- segments:
80
- - 0
81
- version: "0"
82
- requirement: *id004
83
- - !ruby/object:Gem::Dependency
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
67
+ type: :development
84
68
  prerelease: false
69
+ version_requirements: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: '0'
74
+ - !ruby/object:Gem::Dependency
85
75
  name: pry-byebug
76
+ requirement: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ version: '0'
86
81
  type: :development
87
- version_requirements: &id005 !ruby/object:Gem::Requirement
88
- none: false
89
- requirements:
82
+ prerelease: false
83
+ version_requirements: !ruby/object:Gem::Requirement
84
+ requirements:
90
85
  - - ">="
91
- - !ruby/object:Gem::Version
92
- hash: 3
93
- segments:
94
- - 0
95
- version: "0"
96
- requirement: *id005
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
97
88
  description: A toolkit of useful, reusable foundation code created by RightScale.
98
89
  email: support@rightscale.com
99
90
  executables: []
100
-
101
91
  extensions: []
102
-
103
- extra_rdoc_files:
92
+ extra_rdoc_files:
104
93
  - LICENSE
105
94
  - README.md
106
- files:
107
- - .coveralls.yml
108
- - .rspec
109
- - .simplecov
110
- - .travis.yml
95
+ files:
96
+ - ".coveralls.yml"
97
+ - ".rspec"
98
+ - ".simplecov"
99
+ - ".travis.yml"
111
100
  - CHANGELOG.rdoc
112
101
  - Gemfile
113
102
  - Gemfile.lock
@@ -231,37 +220,27 @@ files:
231
220
  - spec/validation/openssl_spec.rb
232
221
  - spec/validation/ssh_spec.rb
233
222
  homepage: https://github.com/rightscale/right_support
234
- licenses:
223
+ licenses:
235
224
  - MIT
225
+ metadata: {}
236
226
  post_install_message:
237
227
  rdoc_options: []
238
-
239
- require_paths:
228
+ require_paths:
240
229
  - lib
241
- required_ruby_version: !ruby/object:Gem::Requirement
242
- none: false
243
- requirements:
230
+ required_ruby_version: !ruby/object:Gem::Requirement
231
+ requirements:
244
232
  - - ">="
245
- - !ruby/object:Gem::Version
246
- hash: 3
247
- segments:
248
- - 0
249
- version: "0"
250
- required_rubygems_version: !ruby/object:Gem::Requirement
251
- none: false
252
- requirements:
233
+ - !ruby/object:Gem::Version
234
+ version: '0'
235
+ required_rubygems_version: !ruby/object:Gem::Requirement
236
+ requirements:
253
237
  - - ">="
254
- - !ruby/object:Gem::Version
255
- hash: 3
256
- segments:
257
- - 0
258
- version: "0"
238
+ - !ruby/object:Gem::Version
239
+ version: '0'
259
240
  requirements: []
260
-
261
241
  rubyforge_project:
262
- rubygems_version: 1.8.15
242
+ rubygems_version: 2.2.2
263
243
  signing_key:
264
- specification_version: 3
244
+ specification_version: 4
265
245
  summary: Reusable foundation code.
266
246
  test_files: []
267
-