right_develop 2.2.3 → 2.2.4
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.
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.2.
|
|
1
|
+
2.2.4
|
|
@@ -64,7 +64,7 @@ And [options] are selected from:
|
|
|
64
64
|
opt :force, 'Force overwrite of any existing recording',
|
|
65
65
|
:default => false
|
|
66
66
|
opt :throttle, 'Playback delay as a percentage of recorded response time',
|
|
67
|
-
:default =>
|
|
67
|
+
:default => 1
|
|
68
68
|
opt :debug, 'Enable verbose debug output',
|
|
69
69
|
:default => false
|
|
70
70
|
end
|
|
@@ -75,7 +75,7 @@ module RightDevelop::Testing::Recording
|
|
|
75
75
|
'fixtures_dir' => ::File.expand_path(FIXTURES_DIR_NAME, current_dir),
|
|
76
76
|
'log_level' => :info,
|
|
77
77
|
'log_dir' => ::File.expand_path(LOG_DIR_NAME, current_dir),
|
|
78
|
-
'throttle' =>
|
|
78
|
+
'throttle' => 1,
|
|
79
79
|
)
|
|
80
80
|
unless config_hash.kind_of?(::Hash)
|
|
81
81
|
raise ConfigError, 'config_hash must be a hash'
|
|
@@ -32,6 +32,15 @@ module RightDevelop::Testing::Server::MightApi
|
|
|
32
32
|
|
|
33
33
|
MAX_REDIRECTS = 10 # 500 after so many redirects
|
|
34
34
|
|
|
35
|
+
# Rack (and Skeletor) apps and some known AWS apps only accept dash and
|
|
36
|
+
# not underscore so ensure the default settings reflect the 80-20 rule.
|
|
37
|
+
DEFAULT_PROXY_SETTINGS = ::Mash.new(
|
|
38
|
+
header: ::Mash.new(
|
|
39
|
+
case: :capitalize,
|
|
40
|
+
separator: :dash
|
|
41
|
+
).freeze
|
|
42
|
+
).freeze
|
|
43
|
+
|
|
35
44
|
# exceptions
|
|
36
45
|
class MightError < StandardError; end
|
|
37
46
|
class MissingRoute < MightError; end
|
|
@@ -253,7 +262,7 @@ module RightDevelop::Testing::Server::MightApi
|
|
|
253
262
|
# @return [Mash] proxied headers
|
|
254
263
|
def proxy_headers(headers, route_data)
|
|
255
264
|
proxied = nil
|
|
256
|
-
if proxy_data = route_data[:proxy]
|
|
265
|
+
if proxy_data = route_data[:proxy] || DEFAULT_PROXY_SETTINGS
|
|
257
266
|
if header_data = proxy_data[:header]
|
|
258
267
|
to_separator = (header_data[:separator] == :underscore) ? '_' : '-'
|
|
259
268
|
from_separator = (to_separator == '-') ? '_' : '-'
|
data/right_develop.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{right_develop}
|
|
8
|
-
s.version = "2.2.
|
|
8
|
+
s.version = "2.2.4"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Tony Spataro"]
|
|
12
|
-
s.date = %q{2014-06-
|
|
12
|
+
s.date = %q{2014-06-05}
|
|
13
13
|
s.default_executable = %q{right_develop}
|
|
14
14
|
s.description = %q{A toolkit of development tools created by RightScale.}
|
|
15
15
|
s.email = %q{support@rightscale.com}
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: right_develop
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 15
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 2
|
|
8
8
|
- 2
|
|
9
|
-
-
|
|
10
|
-
version: 2.2.
|
|
9
|
+
- 4
|
|
10
|
+
version: 2.2.4
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Tony Spataro
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2014-06-
|
|
18
|
+
date: 2014-06-05 00:00:00 -07:00
|
|
19
19
|
default_executable: right_develop
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|