sinatra-contrib 2.2.0 → 2.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 56bc8589a21075194b76aa26daae7790568dddf0d3f4094ba980aee8319d70e4
4
- data.tar.gz: e5c414d4d897a18dbf4338e0f6dd034e4b0074091f44ad844cbbb76f1d85be33
3
+ metadata.gz: 7ba7ef6f0f5fee9112e6b1f78c5e48d21873bbc3db0c2fcc5ff4f1ccc8a21d6c
4
+ data.tar.gz: 7f218048c0fc36e57a2d19d2af954562e4a9f3ba5ef019deed7f982f277446fe
5
5
  SHA512:
6
- metadata.gz: 1cc49665d4b53a9e3c284f4d7a2ef8e3d92eea9dc7fbf01e427e4a23dff912b524cbe8548e363fb2a888a1f925a3a4a25c36c71cde7934b9cf652c338aa4a196
7
- data.tar.gz: ef656443050ea347f37a535524a6767b4fba9505ba6cdcde03a6a78042bb649278ae22e08e4c43192cf0c58fd1eaaa19a16b04a22b51b72a2a9712e553bd04af
6
+ metadata.gz: ed9eb2189b673e2cb8782cba86f510a625c6d9e7289cb10b806e8dd3a724bfd5fa4d8f63d4cd262ae2f5c891fd4d50e33a0606c7d80343ccf8005b81d634e094
7
+ data.tar.gz: 523be023a1ed31fd12b736a6d80441232cf8b4019d92556be080bf3dc116e213844bf91d73299dfbaf5e902a792c3f26e71eb98217968e90a2e4e09de1bf65b2
@@ -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 = YAML.load(document)
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
@@ -1,6 +1,6 @@
1
1
  module Sinatra
2
2
  module Contrib
3
- VERSION = '2.2.0'
3
+ VERSION = '2.2.2'
4
4
  end
5
5
  end
6
6
 
@@ -37,13 +37,13 @@ EOF
37
37
  s.required_ruby_version = '>= 2.3.0'
38
38
 
39
39
  s.add_dependency "sinatra", version
40
- s.add_dependency "mustermann", "~> 1.0"
40
+ s.add_dependency "mustermann", "~> 2.0"
41
41
  s.add_dependency "tilt", "~> 2.0"
42
42
  s.add_dependency "rack-protection", version
43
43
  s.add_dependency "multi_json"
44
44
 
45
45
  s.add_development_dependency "rspec", "~> 3.4"
46
- s.add_development_dependency "haml"
46
+ s.add_development_dependency "haml", "~> 5"
47
47
  s.add_development_dependency "erubi"
48
48
  s.add_development_dependency "erubis"
49
49
  s.add_development_dependency "slim"
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.0
4
+ version: 2.2.3
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-02-15 00:00:00.000000000 Z
11
+ date: 2022-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 2.2.0
19
+ version: 2.2.3
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.0
26
+ version: 2.2.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mustermann
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.0'
33
+ version: '2.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.0'
40
+ version: '2.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: tilt
43
43
  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.0
61
+ version: 2.2.3
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.0
68
+ version: 2.2.3
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: multi_json
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -98,16 +98,16 @@ dependencies:
98
98
  name: haml
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '0'
103
+ version: '5'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ">="
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '0'
110
+ version: '5'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: erubi
113
113
  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,9 @@ 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.2
421
- signing_key:
420
+ rubyforge_project:
421
+ rubygems_version: 2.7.6.3
422
+ signing_key:
422
423
  specification_version: 4
423
424
  summary: Collection of useful Sinatra extensions
424
425
  test_files: []