h2ocube_rails_puma 0.0.2 → 0.0.3

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: 98ec9198bf2ea2ee0be0f117e131dbfef1a7fe07
4
- data.tar.gz: 05fa1a84bbdcb3ee5f295f39f2f7b35fd8c800d9
3
+ metadata.gz: b6718f4aaf149be968fae95ff1353fc3812a37ab
4
+ data.tar.gz: a04e1a83f3a15c51def70207815eb75d4e56fb11
5
5
  SHA512:
6
- metadata.gz: 517ce97b1ea9f041b379ea96817b0a1696e1559b5eb1cbc1c43a7179cd1f84fc2fffdb38c0391eb7a2673598fd1b8ea386b87119cead47644fe09997a6bf9bd0
7
- data.tar.gz: 3e7c23d429d2ab660ef980a227e9f58353901a4a56dbc8ebc1d5487ea648b0427a05e4744f9e0e065cd37446fd36a53b00c89b81bcf6932cc420136a62b3bf5e
6
+ metadata.gz: aad702f27855f811f7c4f649468b6c7a0e1b0d5dd8f9ca7e45eb0efec7a3b8f6a64cf42b58cf2d949889694bfea1c4f0382f67532e72953a7486cf4d468cc8e6
7
+ data.tar.gz: f07979a04a587ec243672f27677a5ba116027517f24478019cdbdc03429c161e2385e10a920d40697ea00ce00954c7642b67feb62fa980ae27cc04ba7707a1b9
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2013 H2ocube.com
1
+ Copyright (c) 2014 H2ocube.com
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -20,6 +20,9 @@ Or install it yourself as:
20
20
 
21
21
  ## Usage
22
22
 
23
+ # generate config/puma.rb
24
+ rails g h2ocube_rails_puma
25
+
23
26
  # Capfile
24
27
  require 'capistrano/puma'
25
28
 
@@ -28,6 +31,7 @@ Puma specific tasks for Capistrano v3:
28
31
  cap puma:start
29
32
  cap puma:stop
30
33
  cap puma:restart
34
+ cap puma:cold_restart
31
35
 
32
36
  # nginx.conf
33
37
  upstream app {
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'h2ocube_rails_puma'
7
- spec.version = '0.0.2'
7
+ spec.version = '0.0.3'
8
8
  spec.authors = ['Ben']
9
9
  spec.email = ['ben@zfben.com']
10
10
  spec.description = %q{Just a collection for development gems}
@@ -0,0 +1,9 @@
1
+ class H2ocubeRailsPumaGenerator < Rails::Generators::Base
2
+ source_root File.expand_path('../source', __FILE__)
3
+
4
+ desc 'Creates a puma.rb to your config/.'
5
+
6
+ def copy_puma_rb
7
+ template 'puma.rb.erb', 'config/puma.rb'
8
+ end
9
+ end
@@ -0,0 +1,7 @@
1
+ application_path = File.expand_path('../../', __FILE__)
2
+
3
+ stdout_redirect "#{application_path}/log/puma.stdout.log", "#{application_path}/log/puma.stderr.log"
4
+
5
+ threads 0,1
6
+ workers 1
7
+ preload_app!
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: h2ocube_rails_puma
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben
@@ -40,6 +40,8 @@ files:
40
40
  - h2ocube_rails_puma.gemspec
41
41
  - lib/capistrano/puma.rb
42
42
  - lib/capistrano/tasks/puma.cap
43
+ - lib/generators/h2ocube_rails_puma_generator.rb
44
+ - lib/generators/source/puma.rb.erb
43
45
  - lib/h2ocube_rails_puma.rb
44
46
  homepage: https://github.com/h2ocube/h2ocube_rails_puma
45
47
  licenses: