eucalypt 0.3.4 → 0.3.5
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8eb746d923adcac06b4aa32dde5d5071924dbf30cd11e480e81d56d97de81b79
|
|
4
|
+
data.tar.gz: 1efd75b49e8b74db94b4b272afeba91cdda268a0f5e661f65a1eb579117a7d82
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a7e945e2f4c9d52b593c7cf4444f7bb3b00c27ad12f6dfc3d38bc1ccc5e7dcbc7e44d528fe8fba23fedc47d4ee7279c8165fefd13ecddeac51885028463be645
|
|
7
|
+
data.tar.gz: 9d3dc2aeaf568d90ff2f5ceebff6668a5ddfa0a64373ccb97f32f6da52b13af98b37db520ba798ab41bee23a2b27be33ee22b7050968c1e427ec1a4c788de018
|
data/README.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
<p align="center"><img width="75px" src="gfx/eucalypt.png"></p>
|
|
2
|
+
|
|
1
3
|
[](https://github.com/eucalypt-framework/eucalypt/blob/0c509a4e22fd97ec52b6f638af21de783f3aafc8/eucalypt.gemspec#L19)
|
|
2
4
|
[](https://rubygems.org/gems/eucalypt)
|
|
3
5
|
[](https://travis-ci.org/eucalypt-framework/eucalypt)
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* By default, every file in the /assets/stylesheets directory is required by `require_tree .` *
|
|
10
10
|
* However, you may remove the `require_tree .` directive and instead specify individual files. *
|
|
11
11
|
* *
|
|
12
|
-
* Any global styles can be included directly in this file
|
|
12
|
+
* Any global styles can be included directly in this file. *
|
|
13
13
|
* NOTE: Styles defined in this file will be overwritten by CSS written in other files. *
|
|
14
14
|
* -------------------------------------------------------------------------------------------- *
|
|
15
15
|
*= require_self
|
|
@@ -3,22 +3,23 @@ class ApplicationController < Sinatra::Base
|
|
|
3
3
|
set :logger, Lumberjack::Logger.new
|
|
4
4
|
helpers { def logger() settings.logger end }
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
%i[production test].each do |
|
|
8
|
-
configure
|
|
6
|
+
# General logging
|
|
7
|
+
%i[production test].each do |app_env|
|
|
8
|
+
configure app_env do
|
|
9
9
|
use Rack::CommonLogger, $stdout
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
time = Time.now.strftime("%Y-%m-%dT%H-%M-%S_%z")
|
|
12
|
+
log_path = Eucalypt.path 'log', time.sub(/_\+/, ?p).sub(/_\-/, ?m)
|
|
12
13
|
FileUtils.mkdir_p log_path
|
|
13
14
|
|
|
14
|
-
$stderr.reopen File.new(File.join(log_path, "#{
|
|
15
|
+
$stderr.reopen File.new(File.join(log_path, "#{app_env}.stderr.log"), 'a+')
|
|
15
16
|
$stderr.sync = true
|
|
16
|
-
$stdout.reopen File.new(File.join(log_path, "#{
|
|
17
|
+
$stdout.reopen File.new(File.join(log_path, "#{app_env}.stdout.log"), 'a+')
|
|
17
18
|
$stdout.sync = true
|
|
18
19
|
end
|
|
19
20
|
end
|
|
20
21
|
|
|
21
|
-
|
|
22
|
+
# ActiveRecord logging
|
|
22
23
|
ActiveRecord::Base.logger = Logger.new STDOUT
|
|
23
24
|
ActiveRecord::Migration.verbose = true # Set to false for quieter logging
|
|
24
25
|
end
|
data/lib/eucalypt/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: eucalypt
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Edwin Onuonga
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-12-
|
|
11
|
+
date: 2018-12-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|