luban-rack 0.2.11 → 0.2.12

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
  SHA1:
3
- metadata.gz: 85468c0771e19641f0e46e4858561f9155e0edd6
4
- data.tar.gz: f93cc00206c02669715852df0b5b88c7bf560e98
3
+ metadata.gz: 3b38c30077ba5bf9bc5067eac5dae29947d18f7c
4
+ data.tar.gz: 8fd79c6a76f324f47a9d4836a8ca79cf84b87e16
5
5
  SHA512:
6
- metadata.gz: 11c2483ce679d7c46867f1ab68631cd27f8e43a825e741335448ca91b606bd10aecca9500ada49e713c5f9b11b297710f5052614da0982898fb489cf637c5412
7
- data.tar.gz: 60f622437af839eeded8e5d2239cc0191e97fbb766e88e56005b97f8b8510a05969f235e671ec4f334c6e749701dfd4960e0daea7da5df0100e44258cae315cf
6
+ metadata.gz: 388fe7f67863878304657b7eac04587c565efb910dd66e579d70b79d0b4de7f8e6fb9f7006131ae8d78eb736d59d80a456bad44d6bf1eeedd42a2931fc83470d
7
+ data.tar.gz: 33c405f04ac770230f3b9c9209e805d1ef44f05c107a785702e495d059d2211ab5b7ce76adf68b4d59a263262eff6ced49cdc60945ce2bec09b92aa7d56a14c7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Change log
2
2
 
3
+ ## Version 0.2.12 (Oct 12, 2016)
4
+
5
+ Minor enhancements:
6
+ * Updated logrotate configuration
7
+ * Deprecated logrotate related paths because logrotate is managed in Uber
8
+ * As a result, bump up gem dependency of Luban to version 0.9.0
9
+
10
+ Bug fixes:
11
+ * Checked excluded templates from super in Configurator
12
+
3
13
  ## Version 0.2.11 (Sept 28, 2016)
4
14
 
5
15
  Minor enhancements:
@@ -8,7 +8,7 @@ module Luban
8
8
  include WebServer
9
9
 
10
10
  def exclude_template?(template)
11
- web_servers_unused.any? { |w| template =~ /^#{w}\./ }
11
+ super or web_servers_unused.any? { |w| template =~ /^#{w}\./ }
12
12
  end
13
13
 
14
14
  protected
@@ -19,10 +19,6 @@ module Luban
19
19
  @control_file_extname ||= "rb"
20
20
  end
21
21
 
22
- def logrotate_file_name
23
- @logrotate_file_name ||= "#{current_web_server}.logrotate"
24
- end
25
-
26
22
  def socket_file_path
27
23
  @socket_file_path ||= sockets_path.join(socket_file_name)
28
24
  end
@@ -1,12 +1,16 @@
1
1
  # Logrotate configuration for Puma
2
2
 
3
3
  <%= log_path.join('puma*.log') %> {
4
- daily
4
+ hourly
5
+ maxsize 5M
6
+ maxage 14
7
+ rotate <%= 14 * 24 * (60 / 10) %>
5
8
  missingok
6
- rotate 14
7
9
  compress
10
+ compresscmd <%= `which gzip`.chomp %>
8
11
  dateext
9
- notifempty
12
+ dateformat -%Y%m%d-%H%M%S
13
+ olddir archived_logs
10
14
  sharedscripts
11
15
  postrotate
12
16
  [ ! -f <%= pid_file_path %> ] || kill -HUP $(cat <%= pid_file_path %>) 2>/dev/null || true
@@ -1,12 +1,16 @@
1
1
  # Thin logrotate configuration
2
2
 
3
3
  <%= log_path.join('thin.*.log') %> {
4
- daily
4
+ hourly
5
+ maxsize 5M
6
+ maxage 14
7
+ rotate <%= 14 * 24 * (60 / 10) %>
5
8
  missingok
6
- rotate 14
7
9
  compress
10
+ compresscmd <%= `which gzip`.chomp %>
8
11
  dateext
9
- notifempty
12
+ dateformat -%Y%m%d-%H%M%S
13
+ olddir archived_logs
10
14
  sharedscripts
11
15
  postrotate
12
16
  pgrep -f "<%= process_pattern %>" >/dev/null 2>&1 || pkill -USR1 -f "<%= process_pattern %>" >/dev/null 2>&1 || true
@@ -2,7 +2,7 @@ module Luban
2
2
  module Deployment
3
3
  module Applications
4
4
  class Rack
5
- VERSION = '0.2.11'
5
+ VERSION = '0.2.12'
6
6
  end
7
7
  end
8
8
  end
data/luban-rack.gemspec CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.require_paths = ["lib"]
21
21
 
22
22
  spec.required_ruby_version = ">= 2.1.0"
23
- spec.add_dependency 'luban', ">= 0.8.8"
23
+ spec.add_dependency 'luban', ">= 0.9.0"
24
24
 
25
25
  spec.add_development_dependency "bundler", "~> 1.12"
26
26
  spec.add_development_dependency "rake", "~> 10.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: luban-rack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.11
4
+ version: 0.2.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rubyist Chi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-27 00:00:00.000000000 Z
11
+ date: 2016-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: luban
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.8.8
19
+ version: 0.9.0
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: 0.8.8
26
+ version: 0.9.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  version: '0'
124
124
  requirements: []
125
125
  rubyforge_project:
126
- rubygems_version: 2.5.1
126
+ rubygems_version: 2.6.7
127
127
  signing_key:
128
128
  specification_version: 4
129
129
  summary: Rack support for Luban