sinatra-contrib 2.2.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sinatra/config_file.rb +5 -1
- data/lib/sinatra/contrib/version.rb +1 -1
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c39f2f87ea6fe310e1ee1ba3b6e59d358bba08e7c5262ac1c3b929a7f960913
|
4
|
+
data.tar.gz: d089938141342b810a03f360623a38361bdd9535031c385fa2d33202119de48e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b12a1e1e513525d3bed0845ce085099c2869a8518c65bf7a64fbb0dc1aa563a9f4b3eb459c0b54ff43e9eb9bc7953ad4e4d8f281c279a339fe2958ecde5815c
|
7
|
+
data.tar.gz: db98ec6a5d297b0fc553a021d02e1339c3561070e962e12685bbe7852c9268aeb43008841254dbd4a9a7e2c352b1d1d20a2651c3fc23507c7997bedc2de0eb7d
|
data/lib/sinatra/config_file.rb
CHANGED
@@ -124,7 +124,11 @@ module Sinatra
|
|
124
124
|
raise UnsupportedConfigType unless ['.yml', '.yaml', '.erb'].include?(File.extname(file))
|
125
125
|
logger.info "loading config file '#{file}'" if logging? && respond_to?(:logger)
|
126
126
|
document = ERB.new(IO.read(file)).result
|
127
|
-
yaml =
|
127
|
+
yaml = begin
|
128
|
+
YAML.load(document, aliases: true)
|
129
|
+
rescue ArgumentError
|
130
|
+
YAML.load(document)
|
131
|
+
end
|
128
132
|
config = config_for_env(yaml)
|
129
133
|
config.each_pair { |key, value| set(key, value) }
|
130
134
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sinatra-contrib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- https://github.com/sinatra/sinatra/graphs/contributors
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.2.
|
19
|
+
version: 2.2.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.2.
|
26
|
+
version: 2.2.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: mustermann
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 2.2.
|
61
|
+
version: 2.2.1
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 2.2.
|
68
|
+
version: 2.2.1
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: multi_json
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -402,7 +402,7 @@ metadata:
|
|
402
402
|
source_code_uri: https://github.com/sinatra/sinatra/tree/master/sinatra-contrib
|
403
403
|
homepage_uri: http://sinatrarb.com/contrib/
|
404
404
|
documentation_uri: https://www.rubydoc.info/gems/sinatra-contrib
|
405
|
-
post_install_message:
|
405
|
+
post_install_message:
|
406
406
|
rdoc_options: []
|
407
407
|
require_paths:
|
408
408
|
- lib
|
@@ -417,8 +417,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
417
417
|
- !ruby/object:Gem::Version
|
418
418
|
version: '0'
|
419
419
|
requirements: []
|
420
|
-
rubygems_version: 3.1
|
421
|
-
signing_key:
|
420
|
+
rubygems_version: 3.0.3.1
|
421
|
+
signing_key:
|
422
422
|
specification_version: 4
|
423
423
|
summary: Collection of useful Sinatra extensions
|
424
424
|
test_files: []
|