guard-puma 0.7.0 → 0.8.1

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
  SHA256:
3
- metadata.gz: c4882d80d8bb73e013141fc821e88c95a5cf8cf2c2cb1597de1d266951dda350
4
- data.tar.gz: db041e9db3a6612ad08c77d10c40245675e41b4022366e36ac2a23b6390cc4a5
3
+ metadata.gz: a8c0c95376af755bc14c0d2a035404e68f1cf334b0e911c77c36f3c3a5a119b2
4
+ data.tar.gz: 0d237582d109553ed4988e994a82ab6545aa91542e26f750ed48c78568df354d
5
5
  SHA512:
6
- metadata.gz: 742d39e52c73797a1bfae1d5744a3744a0ee13672ca5c950aa610739614f6647db02153935e72b264c53719aac2a0d1b3992dc5bad5545c48b802c4c0868d94f
7
- data.tar.gz: f4e46ba7c2cfdbfb9726bcbf23099456efe4a22cc30b7424f27edaf21dc86a08bd7647e9a463ed99b9dfb302f341914054be89c0800f5c804cb487c42e522d73
6
+ metadata.gz: e349d16499844884daf7e5cb9a607b6858e823133f5cd098e80f0d366b402ac38c15a907fbf36da885d8192ce836ee40512ded9bd4abde62f7ece10b39e13717
7
+ data.tar.gz: 76684e7ff4f5d1900b953b18901025181a07338673bd574b1582f4ab6c9cbd11cc098adf06e87845b725c3dfa2c57016fc72ff21c52f71429fc8ff8cc93daa64
@@ -0,0 +1,28 @@
1
+ name: ci
2
+ on: [push, pull_request]
3
+ jobs:
4
+ test:
5
+ name: Ruby ${{ matrix.ruby }} with Puma ${{ matrix.puma_version }}
6
+ strategy:
7
+ matrix:
8
+ ruby:
9
+ - 3.1
10
+ - 3.0
11
+ - 2.7
12
+ - 2.6
13
+ - 2.5
14
+ puma_version:
15
+ - "~> 6.0"
16
+ - "~> 5.0"
17
+ - "~> 4.0"
18
+ runs-on: ubuntu-latest
19
+ steps:
20
+ - uses: actions/checkout@v2
21
+ - uses: ruby/setup-ruby@v1
22
+ env:
23
+ PUMA_VERSION: ${{ matrix.puma_version }}
24
+ with:
25
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
26
+ bundler: ${{ matrix.bundler || 2 }}
27
+ ruby-version: ${{ matrix.ruby }}
28
+ - run: bundle exec rake
data/CHANGES.md CHANGED
@@ -1,105 +1,114 @@
1
1
  # Changes
2
2
 
3
+ ## 0.8.1
4
+
5
+ - Fix sh command for directories with spaces on unix-based systems
6
+
7
+ ## 0.8.0
8
+
9
+ - Bump puma to 6.0
10
+
3
11
  ## 0.7.0
4
12
 
5
- * Add MIT license identifier in gemspec. Via #45
6
- * Remove support for MRI 2.2|3 and bump other versions
13
+ - Add MIT license identifier in gemspec. Via #45
14
+ - Remove support for MRI 2.2|3 and bump other versions
7
15
 
8
16
  ## 0.6.0
9
17
 
10
- * Bump puma to 4.0
18
+ - Bump puma to 4.0
11
19
 
12
20
  ## 0.5.2
13
21
 
14
- * Default config to `-` instead of `nil`. Fixes #38
22
+ - Default config to `-` instead of `nil`. Fixes #38
15
23
 
16
24
  ## 0.5.1
17
25
 
18
- * Detect and use `config/puma.rb` if present
26
+ - Detect and use `config/puma.rb` if present
19
27
 
20
28
  ## 0.5.0
21
29
 
22
- * Add `:pumactl` option
23
- * Add `:restart_timeout` option
24
- * Don't stop Puma if it was not started by Guard
25
- * Don't notify about start when no start
26
- * Improve `guard-compat` using (https://github.com/guard/guard-compat#migrating-your-api-calls)
27
- * Remove unused `pry` dependency
28
- * Update versions of dependencies
30
+ - Add `:pumactl` option
31
+ - Add `:restart_timeout` option
32
+ - Don't stop Puma if it was not started by Guard
33
+ - Don't notify about start when no start
34
+ - Improve `guard-compat` using
35
+ (https://github.com/guard/guard-compat#migrating-your-api-calls)
36
+ - Remove unused `pry` dependency
37
+ - Update versions of dependencies
29
38
 
30
39
  ## 0.4.1
31
40
 
32
- * Improve notifications. Via #30
41
+ - Improve notifications. Via #30
33
42
 
34
43
  ## 0.4.0
35
44
 
36
- * Support Windows with custom start command. Via #29
45
+ - Support Windows with custom start command. Via #29
37
46
 
38
47
  ## 0.3.6
39
48
 
40
- * Use a secure random token by default for the control token. Fixes #23
49
+ - Use a secure random token by default for the control token. Fixes #23
41
50
 
42
51
  ## 0.3.5
43
52
 
44
- * If puma crashed don't fail when trying to restart. Fixes #22
53
+ - If puma crashed don't fail when trying to restart. Fixes #22
45
54
 
46
55
  ## 0.3.4
47
56
 
48
- * Respect the environment when using a config file. Fixes #21
57
+ - Respect the environment when using a config file. Fixes #21
49
58
 
50
59
  ## 0.3.3
51
60
 
52
- * Update deps
53
- * Kill testing Ruby < 2.2.5
54
- * Fix control when using `--config`
61
+ - Update deps
62
+ - Kill testing Ruby < 2.2.5
63
+ - Fix control when using `--config`
55
64
 
56
65
  ## 0.3.2
57
66
 
58
- * Update Guardfile to support new options
59
- * Let --config take precedence over default options
67
+ - Update Guardfile to support new options
68
+ - Let --config take precedence over default options
60
69
 
61
70
  ## 0.3.1
62
71
 
63
- * Update RSpec to 3.1.0+
64
- * Fix Travis CI builds on Rubinius
72
+ - Update RSpec to 3.1.0+
73
+ - Fix Travis CI builds on Rubinius
65
74
 
66
75
  ## 0.3.0
67
76
 
68
- * Depend on rake 10.2+
69
- * Update Guard::Puma initialize method to accept only options hash
70
- * Depend on Guard 2.8+
71
- * Get environment from RACK_ENV by default
77
+ - Depend on rake 10.2+
78
+ - Update Guard::Puma initialize method to accept only options hash
79
+ - Depend on Guard 2.8+
80
+ - Get environment from RACK_ENV by default
72
81
 
73
82
  ## 0.2.5
74
83
 
75
- * Change rb-inotify and libnotify to be development dependencies
76
- * Update test Rubies
84
+ - Change rb-inotify and libnotify to be development dependencies
85
+ - Update test Rubies
77
86
 
78
87
  ## 0.2.4
79
88
 
80
- * Fix bug where runner not respecting environment set in Guard options
89
+ - Fix bug where runner not respecting environment set in Guard options
81
90
 
82
91
  ## 0.2.3
83
92
 
84
- * Add quiet flag to suppress output
93
+ - Add quiet flag to suppress output
85
94
 
86
95
  ## 0.2.2
87
96
 
88
- * Remove unused dependency on RestClient.
97
+ - Remove unused dependency on RestClient.
89
98
 
90
99
  ## 0.2.1
91
100
 
92
- * Fix restarting & halting inside the runner.
101
+ - Fix restarting & halting inside the runner.
93
102
 
94
103
  ## 0.2.0
95
104
 
96
- * Switched to puma's control server. pid file was too messy.
105
+ - Switched to puma's control server. pid file was too messy.
97
106
 
98
107
  ## 0.1.0
99
108
 
100
- * Fixed pid file path. Ready for general consumption.
109
+ - Fixed pid file path. Ready for general consumption.
101
110
 
102
111
  ## 0.0.x
103
112
 
104
- * Added all CLI options for Puma
105
- * Ported over [guard-rack](https://github.com/dblock/guard-rack)
113
+ - Added all CLI options for Puma
114
+ - Ported over [guard-rack](https://github.com/dblock/guard-rack)
data/README.md CHANGED
@@ -28,6 +28,14 @@ guard 'puma', :port => 4000 do
28
28
  end
29
29
  ```
30
30
 
31
+ Run `guard-puma` with `bundle exec guard`.
32
+
33
+ Note that if you're running `guard-puma` in Docker, you'll additionally need to pass the `-i` argument to your command in order to disable all terminal interactions, for example:
34
+
35
+ ```
36
+ CMD ["bundle", "exec", "guard", "-i"]
37
+ ```
38
+
31
39
  ## Options
32
40
 
33
41
  * `:port` is the port number to run on (default `4000`)
data/guard-puma.gemspec CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |gem|
16
16
  gem.version = Guard::PumaVersion::VERSION
17
17
  gem.add_dependency "guard", "~> 2.14"
18
18
  gem.add_dependency "guard-compat", "~> 1.2"
19
- gem.add_dependency "puma", ENV["PUMA_VERSION"] || [">= 4.0", "< 6"]
19
+ gem.add_dependency "puma", ENV["PUMA_VERSION"] || [">= 4.0", "< 7"]
20
20
  gem.add_development_dependency "rake", "~> 12"
21
21
  gem.add_development_dependency "rspec", "~> 3.7"
22
22
  gem.add_development_dependency "guard-rspec", "~> 4.7"
@@ -1,4 +1,5 @@
1
1
  require 'net/http'
2
+ require 'puma/detect'
2
3
  require 'puma/configuration'
3
4
 
4
5
  module Guard
@@ -120,7 +121,7 @@ module Guard
120
121
  end
121
122
 
122
123
  def nix_cmd(puma_cmd, background = false)
123
- %(sh -c 'cd #{Dir.pwd} && #{puma_cmd} #{'&' if background}')
124
+ %(sh -c 'cd "#{Dir.pwd}" && #{puma_cmd} #{'&' if background}')
124
125
  end
125
126
 
126
127
  def windows_cmd(puma_cmd, background = false)
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module PumaVersion
3
- VERSION = "0.7.0"
3
+ VERSION = '0.8.1'
4
4
  end
5
5
  end
@@ -50,7 +50,7 @@ describe Guard::PumaRunner do
50
50
  end
51
51
 
52
52
  let(:command) {
53
- %(sh -c 'cd #{Dir.pwd} && pumactl #{runner.cmd_opts} #{cmd} ')
53
+ %(sh -c 'cd "#{Dir.pwd}" && pumactl #{runner.cmd_opts} #{cmd} ')
54
54
  }
55
55
 
56
56
  it "#{cmd}s" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-puma
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jesse Cooke
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-26 00:00:00.000000000 Z
11
+ date: 2023-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: guard
@@ -47,7 +47,7 @@ dependencies:
47
47
  version: '4.0'
48
48
  - - "<"
49
49
  - !ruby/object:Gem::Version
50
- version: '6'
50
+ version: '7'
51
51
  type: :runtime
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
@@ -57,7 +57,7 @@ dependencies:
57
57
  version: '4.0'
58
58
  - - "<"
59
59
  - !ruby/object:Gem::Version
60
- version: '6'
60
+ version: '7'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: rake
63
63
  requirement: !ruby/object:Gem::Requirement
@@ -100,7 +100,7 @@ dependencies:
100
100
  - - "~>"
101
101
  - !ruby/object:Gem::Version
102
102
  version: '4.7'
103
- description:
103
+ description:
104
104
  email:
105
105
  - jesse@jc00ke.com
106
106
  executables: []
@@ -108,8 +108,8 @@ extensions: []
108
108
  extra_rdoc_files: []
109
109
  files:
110
110
  - ".editorconfig"
111
+ - ".github/workflows/ci.yml"
111
112
  - ".gitignore"
112
- - ".travis.yml"
113
113
  - CHANGES.md
114
114
  - Gemfile
115
115
  - Guardfile
@@ -128,7 +128,7 @@ homepage: https://github.com/jc00ke/guard-puma
128
128
  licenses:
129
129
  - MIT
130
130
  metadata: {}
131
- post_install_message:
131
+ post_install_message:
132
132
  rdoc_options: []
133
133
  require_paths:
134
134
  - lib
@@ -143,8 +143,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
143
  - !ruby/object:Gem::Version
144
144
  version: '0'
145
145
  requirements: []
146
- rubygems_version: 3.1.2
147
- signing_key:
146
+ rubygems_version: 3.3.7
147
+ signing_key:
148
148
  specification_version: 4
149
149
  summary: Restart puma when files change
150
150
  test_files:
data/.travis.yml DELETED
@@ -1,15 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.5.5
5
- - 2.6.3
6
- - 2.7.0-preview1
7
- - rbx
8
- - jruby-9.2.2.0
9
- env:
10
- - PUMA_VERSION="~> 5.0"
11
- - PUMA_VERSION="~> 4.0"
12
- matrix:
13
- allow_failures:
14
- - rvm: rbx
15
- - rvm: 2.7.0-preview1