luban-rack 0.2.4 → 0.2.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
  SHA1:
3
- metadata.gz: d2b94d24a261808588fca9aac2dd5995346a2d3a
4
- data.tar.gz: 41457a67d742b626ddda831c496385d11a4632cd
3
+ metadata.gz: b3810feaae645b48a468ad39daadf3e7004570dc
4
+ data.tar.gz: 37ddf036e17fff8f1abbf36c88af4f8ebce84df9
5
5
  SHA512:
6
- metadata.gz: 72ed31acaee4770d592211e2fc5fd198ae496097459a1805e60f4d1359907d7e87930f9cf19134cc2774495092d13289acbb13d39c0e3b379f32fe8faac48eff
7
- data.tar.gz: 39823dae4458b068cedaa2f92f22f9d29ff30af0b2d6c3f3574721a36c1fc38194f6c8cb2fe0b9fd0c5a3de8b353239a3d8322ac254760fe31bf980defbddb4e
6
+ metadata.gz: b5fc088b15c6b1569f498c2e0e62e20ba396b0de19187f23d61816f3e4861df060173eb55f9537910d9014bb37550da2a954e8545be481e3e6df6cb3bb329457
7
+ data.tar.gz: 13fcbd3f8fb022da6d94350bea985d1b31f31777028ab11dfd567e9c91c540289cf8768a2f3d8f554ed19a33f88bdc6737f889a272858d9620c3692b2d0a43e1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Change log
2
2
 
3
+ ## Version 0.2.5 (Sept 01, 2016)
4
+
5
+ Minor enhancements:
6
+ * Added bundle exec to the shell command prefix if gemfile is found
7
+ * Bump up gem dependency of Luban to version 0.7.11
8
+ * Minor code cleanup
9
+
3
10
  ## Version 0.2.4 (Aug 30, 2016)
4
11
 
5
12
  Minor enhancements:
@@ -38,14 +38,6 @@ module Luban
38
38
  def public_files_path
39
39
  @public_files_path ||= release_path.join('public')
40
40
  end
41
-
42
- def ruby_bin_path
43
- @ruby_bin_path ||= package_bin_path('ruby')
44
- end
45
-
46
- def bundle_executable
47
- @bundle_executable ||= ruby_bin_path.join('bundle')
48
- end
49
41
  end
50
42
  end
51
43
  end
@@ -2,7 +2,7 @@ module Luban
2
2
  module Deployment
3
3
  module Applications
4
4
  class Rack
5
- VERSION = '0.2.4'
5
+ VERSION = '0.2.5'
6
6
  end
7
7
  end
8
8
  end
@@ -19,6 +19,14 @@ module Luban
19
19
 
20
20
  def current_web_server; web_server[:name]; end
21
21
 
22
+ def shell_command_prefix
23
+ @shell_command_prefix ||= if has_gemfile?
24
+ super << "#{bundle_executable} exec"
25
+ else
26
+ super
27
+ end
28
+ end
29
+
22
30
  protected
23
31
 
24
32
  def init
@@ -57,7 +57,7 @@ module Luban
57
57
  end
58
58
 
59
59
  def puma_command
60
- @puma_command ||= "#{bundle_executable} exec pumactl -F #{control_file_path}"
60
+ @puma_command ||= "pumactl -F #{control_file_path}"
61
61
  end
62
62
 
63
63
  def start_command
@@ -114,7 +114,7 @@ module Luban
114
114
  def unix_socket?; @unix_socket; end
115
115
 
116
116
  def thin_command
117
- @thin_command ||= "#{bundle_executable} exec thin -C #{control_file_path}"
117
+ @thin_command ||= "thin -C #{control_file_path}"
118
118
  end
119
119
 
120
120
  def start_command
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.7.5"
23
+ spec.add_dependency 'luban', ">= 0.7.11"
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
4
+ version: 0.2.5
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-08-30 00:00:00.000000000 Z
11
+ date: 2016-09-01 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.7.5
19
+ version: 0.7.11
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.7.5
26
+ version: 0.7.11
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement