padrino-core 0.15.0 → 0.15.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/padrino-core/logger.rb +11 -2
- data/lib/padrino-core/version.rb +1 -1
- data/padrino-core.gemspec +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: 34666b69f252023ab8f1a972e23b14c060e4219834ad088dd13f04987087c700
|
4
|
+
data.tar.gz: dec853c3b9402dec32d39470da681522cc65245bf4e838c10893cd9a30b40310
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e71c9a7c41a7ed7b28c9668424dd6757fed139b39ec4b481b1403328664ffd57446912665c90f66a60cc4ca6b36a483346ef6d83137c5fb395f5aae319764a7a
|
7
|
+
data.tar.gz: d7f454ef23ab20bfc18a4f041a8b7561ff6952da095549ff35919dcbb9395b0ab0a51e053af1d4bf533878c4c3ff0efcdc7408a8e6031795191a84510f3b4ed5
|
data/lib/padrino-core/logger.rb
CHANGED
@@ -22,19 +22,28 @@ module Padrino
|
|
22
22
|
# Set the padrino logger.
|
23
23
|
#
|
24
24
|
# @param [Object] value
|
25
|
-
# an object that respond to <<, write, puts, debug, warn etc..
|
25
|
+
# an object that respond to <<, write, puts, debug, warn, devel, etc..
|
26
26
|
#
|
27
27
|
# @return [Object]
|
28
28
|
# The given value.
|
29
29
|
#
|
30
30
|
# @example using ruby default logger
|
31
31
|
# require 'logger'
|
32
|
-
#
|
32
|
+
# new_logger = ::Logger.new(STDOUT)
|
33
|
+
# new_logger.extend(Padrino::Logger::Extensions)
|
34
|
+
# Padrino.logger = new_logger
|
33
35
|
#
|
34
36
|
# @example using ActiveSupport
|
35
37
|
# require 'active_support/buffered_logger'
|
36
38
|
# Padrino.logger = Buffered.new(STDOUT)
|
37
39
|
#
|
40
|
+
# @example using custom logger class
|
41
|
+
# require 'logger'
|
42
|
+
# class CustomLogger < ::Logger
|
43
|
+
# include Padrino::Logger::Extensions
|
44
|
+
# end
|
45
|
+
# Padrino.logger = CustomLogger.new(STDOUT)
|
46
|
+
#
|
38
47
|
def self.logger=(value)
|
39
48
|
Padrino::Logger.logger = value
|
40
49
|
end
|
data/lib/padrino-core/version.rb
CHANGED
data/padrino-core.gemspec
CHANGED
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: padrino-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.
|
4
|
+
version: 0.15.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Padrino Team
|
8
8
|
- Nathan Esquenazi
|
9
9
|
- Davide D'Agostino
|
10
10
|
- Arthur Chiu
|
11
|
-
autorequire:
|
11
|
+
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2021-04-25 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: padrino-support
|
@@ -19,14 +19,14 @@ dependencies:
|
|
19
19
|
requirements:
|
20
20
|
- - '='
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.15.
|
22
|
+
version: 0.15.1
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - '='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.15.
|
29
|
+
version: 0.15.1
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: sinatra
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -47,14 +47,14 @@ dependencies:
|
|
47
47
|
requirements:
|
48
48
|
- - "~>"
|
49
49
|
- !ruby/object:Gem::Version
|
50
|
-
version: '0
|
50
|
+
version: '1.0'
|
51
51
|
type: :runtime
|
52
52
|
prerelease: false
|
53
53
|
version_requirements: !ruby/object:Gem::Requirement
|
54
54
|
requirements:
|
55
55
|
- - "~>"
|
56
56
|
- !ruby/object:Gem::Version
|
57
|
-
version: '0
|
57
|
+
version: '1.0'
|
58
58
|
description: The Padrino core gem required for use of this framework
|
59
59
|
email: padrinorb@gmail.com
|
60
60
|
executables:
|
@@ -191,7 +191,7 @@ homepage: http://www.padrinorb.com
|
|
191
191
|
licenses:
|
192
192
|
- MIT
|
193
193
|
metadata: {}
|
194
|
-
post_install_message:
|
194
|
+
post_install_message:
|
195
195
|
rdoc_options:
|
196
196
|
- "--charset=UTF-8"
|
197
197
|
require_paths:
|
@@ -207,8 +207,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
207
207
|
- !ruby/object:Gem::Version
|
208
208
|
version: 1.3.6
|
209
209
|
requirements: []
|
210
|
-
rubygems_version: 3.0.
|
211
|
-
signing_key:
|
210
|
+
rubygems_version: 3.0.8
|
211
|
+
signing_key:
|
212
212
|
specification_version: 4
|
213
213
|
summary: The required Padrino core gem
|
214
214
|
test_files:
|