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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 100f47e88f615228950d6eafe1709cab9cee9c83
4
- data.tar.gz: 13151c654dfe10e5fc2df9f4ed2840a0f63765b5
3
+ metadata.gz: 81dd729b7d23eeb5904dfb46fdac86b950311735
4
+ data.tar.gz: 4f5a169aa25e7582c6840b0de7821b72542106c1
5
5
  SHA512:
6
- metadata.gz: 097138a3d13f04946e03d72e3cc8c1bbd86220a366c6b22db046189db88446b6522b3ec01dbb02a17510ac47c83a4df2ed331370901016a7e433175fcc0e1ab4
7
- data.tar.gz: 9b84bc12786c9c60e1a7d42a1fadbb89dfadcb80fb92e11cf61f9768bb3daf15b8ed01450347d13cce032e05f09be6ac26b8337c2f97ec5b9efae43b7bf2fd57
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
- using Luban::CLI::CoreRefinements
5
+ DefaultPort = 3000
6
+ DefaultVirtualHost = 'localhost'
7
+ DefaultWebServer = :puma
6
8
 
7
- module Parameters
8
- extend Luban::Deployment::Parameters::Base
9
+ parameter :port, default: DefaultPort
10
+ parameter :virtual_host, default: DefaultVirtualHost
11
+ parameter :web_server, default: DefaultWebServer
9
12
 
10
- DefaultPort = 3000
11
- DefaultVirtualHost = 'localhost'
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
@@ -4,7 +4,6 @@ module Luban
4
4
  class Rack
5
5
  class Configurator < Luban::Deployment::Application::Configurator
6
6
  include Paths
7
- include Parameters
8
7
  include WebServer
9
8
 
10
9
  def exclude_template?(template)
@@ -4,7 +4,6 @@ module Luban
4
4
  class Rack
5
5
  class Controller < Luban::Deployment::Application::Controller
6
6
  include Paths
7
- include Parameters
8
7
  include WebServer
9
8
 
10
9
  def restart_process(phased: false)
@@ -2,7 +2,7 @@ module Luban
2
2
  module Deployment
3
3
  module Applications
4
4
  class Rack
5
- VERSION = '0.2.13'
5
+ VERSION = '0.2.14'
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.9.8"
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.13
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-19 00:00:00.000000000 Z
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.8
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.8
26
+ version: 0.9.10
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement