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 +4 -4
- data/.github/workflows/ci.yml +28 -0
- data/CHANGES.md +47 -38
- data/README.md +8 -0
- data/guard-puma.gemspec +1 -1
- data/lib/guard/puma/runner.rb +2 -1
- data/lib/guard/puma/version.rb +1 -1
- data/spec/lib/guard/puma/runner_spec.rb +1 -1
- metadata +10 -10
- data/.travis.yml +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8c0c95376af755bc14c0d2a035404e68f1cf334b0e911c77c36f3c3a5a119b2
|
4
|
+
data.tar.gz: 0d237582d109553ed4988e994a82ab6545aa91542e26f750ed48c78568df354d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
6
|
-
|
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
|
-
|
18
|
+
- Bump puma to 4.0
|
11
19
|
|
12
20
|
## 0.5.2
|
13
21
|
|
14
|
-
|
22
|
+
- Default config to `-` instead of `nil`. Fixes #38
|
15
23
|
|
16
24
|
## 0.5.1
|
17
25
|
|
18
|
-
|
26
|
+
- Detect and use `config/puma.rb` if present
|
19
27
|
|
20
28
|
## 0.5.0
|
21
29
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
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
|
-
|
41
|
+
- Improve notifications. Via #30
|
33
42
|
|
34
43
|
## 0.4.0
|
35
44
|
|
36
|
-
|
45
|
+
- Support Windows with custom start command. Via #29
|
37
46
|
|
38
47
|
## 0.3.6
|
39
48
|
|
40
|
-
|
49
|
+
- Use a secure random token by default for the control token. Fixes #23
|
41
50
|
|
42
51
|
## 0.3.5
|
43
52
|
|
44
|
-
|
53
|
+
- If puma crashed don't fail when trying to restart. Fixes #22
|
45
54
|
|
46
55
|
## 0.3.4
|
47
56
|
|
48
|
-
|
57
|
+
- Respect the environment when using a config file. Fixes #21
|
49
58
|
|
50
59
|
## 0.3.3
|
51
60
|
|
52
|
-
|
53
|
-
|
54
|
-
|
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
|
-
|
59
|
-
|
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
|
-
|
64
|
-
|
72
|
+
- Update RSpec to 3.1.0+
|
73
|
+
- Fix Travis CI builds on Rubinius
|
65
74
|
|
66
75
|
## 0.3.0
|
67
76
|
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
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
|
-
|
76
|
-
|
84
|
+
- Change rb-inotify and libnotify to be development dependencies
|
85
|
+
- Update test Rubies
|
77
86
|
|
78
87
|
## 0.2.4
|
79
88
|
|
80
|
-
|
89
|
+
- Fix bug where runner not respecting environment set in Guard options
|
81
90
|
|
82
91
|
## 0.2.3
|
83
92
|
|
84
|
-
|
93
|
+
- Add quiet flag to suppress output
|
85
94
|
|
86
95
|
## 0.2.2
|
87
96
|
|
88
|
-
|
97
|
+
- Remove unused dependency on RestClient.
|
89
98
|
|
90
99
|
## 0.2.1
|
91
100
|
|
92
|
-
|
101
|
+
- Fix restarting & halting inside the runner.
|
93
102
|
|
94
103
|
## 0.2.0
|
95
104
|
|
96
|
-
|
105
|
+
- Switched to puma's control server. pid file was too messy.
|
97
106
|
|
98
107
|
## 0.1.0
|
99
108
|
|
100
|
-
|
109
|
+
- Fixed pid file path. Ready for general consumption.
|
101
110
|
|
102
111
|
## 0.0.x
|
103
112
|
|
104
|
-
|
105
|
-
|
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", "<
|
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"
|
data/lib/guard/puma/runner.rb
CHANGED
@@ -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)
|
data/lib/guard/puma/version.rb
CHANGED
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.
|
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:
|
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: '
|
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: '
|
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.
|
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