ood_appkit 2.1.4 → 2.2.1
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.
- checksums.yaml +4 -4
- data/lib/ood_appkit/log_formatter.rb +6 -1
- data/lib/ood_appkit/version.rb +1 -1
- metadata +4 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2098be84811abcbfea90f454ff0403fdee548727198aa5901c840e019ccbe240
|
4
|
+
data.tar.gz: 80a7a93683857d0f45622c9ceebd7c47f41a085422ff4d61aa8d5278edfdf305
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14083b9e2fad3ab77033729f7a104a485f2bf7c68638133e88e17f90210f24b9c5f6fa6358c52180009032222d53dce99614fa42fc918682ac60277bb19dd154
|
7
|
+
data.tar.gz: 3545be5c8309d72aeca48baff434ae004abe6038105454beadfdc57a3889fdd8b68b7aff3d4401b9c9135c47a6d619b2e13544ff0d64671bf2c93d53d097c693
|
@@ -1,13 +1,18 @@
|
|
1
|
+
require 'active_support/tagged_logging'
|
2
|
+
|
1
3
|
module OodAppkit
|
2
4
|
# format log messages with timestamp severity and app token e.g.:
|
3
5
|
#
|
4
6
|
# [2016-06-17 15:31:01 -0400 sys/dashboard] INFO GET...
|
5
7
|
#
|
6
8
|
class LogFormatter
|
9
|
+
|
10
|
+
include ActiveSupport::TaggedLogging::Formatter
|
11
|
+
|
7
12
|
def call(severity, timestamp, progname, msg)
|
8
13
|
severity_d = severity ? severity[0,5].rjust(5).upcase : "UNKNO"
|
9
14
|
timestamp_d = timestamp ? timestamp.localtime : Time.now.localtime
|
10
|
-
msg_d = (String === msg ? msg.strip.inspect : msg.inspect)
|
15
|
+
msg_d = (String === msg ? msg.encode("UTF-8", :invalid => :replace, :undef => :replace).strip.inspect : msg.inspect)
|
11
16
|
|
12
17
|
"[#{timestamp_d} #{progname}] #{severity_d} #{msg_d}\n"
|
13
18
|
end
|
data/lib/ood_appkit/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ood_appkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1
|
4
|
+
version: 2.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Franz
|
8
8
|
- Jeremy Nicklas
|
9
|
-
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rails
|
@@ -171,7 +170,6 @@ homepage: https://github.com/OSC/ood_appkit
|
|
171
170
|
licenses:
|
172
171
|
- MIT
|
173
172
|
metadata: {}
|
174
|
-
post_install_message:
|
175
173
|
rdoc_options: []
|
176
174
|
require_paths:
|
177
175
|
- lib
|
@@ -186,8 +184,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
186
184
|
- !ruby/object:Gem::Version
|
187
185
|
version: '0'
|
188
186
|
requirements: []
|
189
|
-
rubygems_version: 3.
|
190
|
-
signing_key:
|
187
|
+
rubygems_version: 3.6.7
|
191
188
|
specification_version: 4
|
192
189
|
summary: Open OnDemand gem to help build OOD apps and interface with other OOD apps.
|
193
190
|
test_files:
|
@@ -202,6 +199,7 @@ test_files:
|
|
202
199
|
- test/dummy/bin/bundle
|
203
200
|
- test/dummy/bin/rails
|
204
201
|
- test/dummy/bin/rake
|
202
|
+
- test/dummy/config.ru
|
205
203
|
- test/dummy/config/application.rb
|
206
204
|
- test/dummy/config/boot.rb
|
207
205
|
- test/dummy/config/database.yml
|
@@ -218,7 +216,6 @@ test_files:
|
|
218
216
|
- test/dummy/config/initializers/wrap_parameters.rb
|
219
217
|
- test/dummy/config/locales/en.yml
|
220
218
|
- test/dummy/config/routes.rb
|
221
|
-
- test/dummy/config.ru
|
222
219
|
- test/dummy/public/404.html
|
223
220
|
- test/dummy/public/422.html
|
224
221
|
- test/dummy/public/500.html
|