luban-rack 0.2.13 → 0.2.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/luban/deployment/applications/rack/base.rb +8 -29
- data/lib/luban/deployment/applications/rack/configurator.rb +0 -1
- data/lib/luban/deployment/applications/rack/controller.rb +0 -1
- data/lib/luban/deployment/applications/rack/version.rb +1 -1
- data/luban-rack.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81dd729b7d23eeb5904dfb46fdac86b950311735
|
4
|
+
data.tar.gz: 4f5a169aa25e7582c6840b0de7821b72542106c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 671e899ef14c56f22933283f33a4201ef6ea9fb3acd7ee685772e3bc29b851bc18692019f31ca465533f7a4419e4ab9d9292dfabd8af87673bc44cc64f93864f
|
7
|
+
data.tar.gz: 04939a9b36fce410ceb33dfc641641f9a01ab681765853063d23bf3b4ff01685923f0beb5744cdaa75bc31f57aba9c204aa15416f5bb2b90af9372878687792d
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Change log
|
2
2
|
|
3
|
+
## Version 0.2.14 (Oct 23, 2016)
|
4
|
+
|
5
|
+
Minor enhancements:
|
6
|
+
* Cleaned up the design and implementation of Rack app parameters in a deployment project
|
7
|
+
* As a result, bump up gem dependency on Luban to version 0.9.10
|
8
|
+
|
3
9
|
## Version 0.2.13 (Oct 19, 2016)
|
4
10
|
|
5
11
|
Minor enhancements:
|
@@ -2,43 +2,22 @@ module Luban
|
|
2
2
|
module Deployment
|
3
3
|
module Applications
|
4
4
|
class Rack < Luban::Deployment::Application
|
5
|
-
|
5
|
+
DefaultPort = 3000
|
6
|
+
DefaultVirtualHost = 'localhost'
|
7
|
+
DefaultWebServer = :puma
|
6
8
|
|
7
|
-
|
8
|
-
|
9
|
+
parameter :port, default: DefaultPort
|
10
|
+
parameter :virtual_host, default: DefaultVirtualHost
|
11
|
+
parameter :web_server, default: DefaultWebServer
|
9
12
|
|
10
|
-
|
11
|
-
|
12
|
-
DefaultWebServer = :puma
|
13
|
-
|
14
|
-
parameter :port
|
15
|
-
parameter :virtual_host
|
16
|
-
parameter :web_server
|
17
|
-
|
18
|
-
def power_by(server, **opts)
|
19
|
-
web_server name: server, opts: opts
|
20
|
-
end
|
21
|
-
|
22
|
-
protected
|
23
|
-
|
24
|
-
def set_default_rack_parameters
|
25
|
-
set_default :port, DefaultPort
|
26
|
-
set_default :virtual_host, DefaultVirtualHost
|
27
|
-
set_default :web_server, name: DefaultWebServer, opts: {}
|
28
|
-
end
|
13
|
+
def power_by(server, **opts)
|
14
|
+
web_server name: server, opts: opts
|
29
15
|
end
|
30
16
|
|
31
|
-
include Parameters
|
32
|
-
|
33
17
|
application_action "phased_restart_process", dispatch_to: :controller
|
34
18
|
|
35
19
|
protected
|
36
20
|
|
37
|
-
def set_default_application_parameters
|
38
|
-
super
|
39
|
-
set_default_rack_parameters
|
40
|
-
end
|
41
|
-
|
42
21
|
def include_default_templates_path
|
43
22
|
default_templates_paths.unshift(base_templates_path(__FILE__).join(web_server[:name].to_s))
|
44
23
|
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.9.
|
23
|
+
spec.add_dependency 'luban', ">= 0.9.10"
|
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.
|
4
|
+
version: 0.2.14
|
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-10-
|
11
|
+
date: 2016-10-23 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.9.
|
19
|
+
version: 0.9.10
|
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.9.
|
26
|
+
version: 0.9.10
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|