guard-puma 0.6.0 → 0.8.0

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: bb7b25e8b2a3d7a8e2bf32a3ba16e97c2e6fa880d5b486fcd8567e9a0c9c8e85
4
- data.tar.gz: d217ef1e0296375ebd30516937205af4bd7f6860bc281034e524c723821c2e63
3
+ metadata.gz: 3a1d847cbaeea25542c7fb7886e959f27eee88f23ad4218f1034310d196e2c55
4
+ data.tar.gz: 8106c9d374e602f484743acc6863305a0ab50b19d36dee245d2b4f2cb58e97b3
5
5
  SHA512:
6
- metadata.gz: 5eeec085615216a3db814d9e7476d651a08423e7d042e301c4a9b7ebcfd6fb3a924f633648183ac1aed2d16aac2e99f5558581c273160daf052660ef604e9183
7
- data.tar.gz: e60811f4a1d6b67119d64a1ef184bc1216e698a444b86bef4bc53aa9e1ba5efc13024de7fa208f778e46de8e7356a51274cbbdcb11c41e3389bd26e60e650a49
6
+ metadata.gz: eaa82652cb439b97aca96fc755aab145c46728f24f0fe9fe91a49530f71a4b10c3c545b902989be71c60bb2530419b0286394537e867acd71bb3f5a8d4f9b8fe
7
+ data.tar.gz: 3e8a9c1af7776ff691d7a53287ad3d385f0934cc0e172c78548dd7c2dcf0c0a20c908b78c92e8f39f2f08f8e86925611d3b920aea3cf573515648fc224db9f11
@@ -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,5 +1,14 @@
1
1
  # Changes
2
2
 
3
+ ## 0.8.0
4
+
5
+ * Bump puma to 6.0
6
+
7
+ ## 0.7.0
8
+
9
+ * Add MIT license identifier in gemspec. Via #45
10
+ * Remove support for MRI 2.2|3 and bump other versions
11
+
3
12
  ## 0.6.0
4
13
 
5
14
  * Bump puma to 4.0
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
@@ -6,6 +6,7 @@ Gem::Specification.new do |gem|
6
6
  gem.email = ["jesse@jc00ke.com"]
7
7
  gem.summary = %q{Restart puma when files change }
8
8
  gem.homepage = "https://github.com/jc00ke/guard-puma"
9
+ gem.license = "MIT"
9
10
 
10
11
  gem.files = `git ls-files`.split($\)
11
12
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
@@ -15,7 +16,7 @@ Gem::Specification.new do |gem|
15
16
  gem.version = Guard::PumaVersion::VERSION
16
17
  gem.add_dependency "guard", "~> 2.14"
17
18
  gem.add_dependency "guard-compat", "~> 1.2"
18
- gem.add_dependency "puma", "~> 4.0"
19
+ gem.add_dependency "puma", ENV["PUMA_VERSION"] || [">= 4.0", "< 7"]
19
20
  gem.add_development_dependency "rake", "~> 12"
20
21
  gem.add_development_dependency "rspec", "~> 3.7"
21
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
@@ -78,7 +79,7 @@ module Guard
78
79
  }.freeze,
79
80
  false => {
80
81
  config: '--config',
81
- control_url: '--control'
82
+ control_url: '--control-url',
82
83
  }.freeze
83
84
  }.freeze
84
85
 
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module PumaVersion
3
- VERSION = "0.6.0"
3
+ VERSION = "0.8.0"
4
4
  end
5
5
  end
@@ -18,7 +18,7 @@ describe Guard::PumaRunner do
18
18
  runner = described_class.new(options.merge(control_token: "abc"))
19
19
  expect(runner.cmd_opts).to include("--config - ")
20
20
  expect(runner.cmd_opts).to include("--control-token abc")
21
- expect(runner.cmd_opts).to include("--control tcp://localhost:9293")
21
+ expect(runner.cmd_opts).to include("--control-url tcp://localhost:9293")
22
22
  expect(runner.cmd_opts).to include("--port 4000")
23
23
  expect(runner.cmd_opts).to include("--environment development")
24
24
  expect(runner.cmd_opts).to include("--quiet")
@@ -132,7 +132,7 @@ describe Guard::PumaRunner do
132
132
  it "assumes options are set in config" do
133
133
  expect(runner.cmd_opts).to match("--config #{path}")
134
134
  expect(runner.cmd_opts).to match(/--control-token [0-9a-f]{10,}/)
135
- expect(runner.cmd_opts).to match("--control tcp")
135
+ expect(runner.cmd_opts).to match("--control-url tcp")
136
136
  expect(runner.cmd_opts).to match("--environment #{environment}")
137
137
  end
138
138
  end
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.6.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jesse Cooke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-11 00:00:00.000000000 Z
11
+ date: 2022-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: guard
@@ -42,16 +42,22 @@ dependencies:
42
42
  name: puma
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '4.0'
48
+ - - "<"
49
+ - !ruby/object:Gem::Version
50
+ version: '7'
48
51
  type: :runtime
49
52
  prerelease: false
50
53
  version_requirements: !ruby/object:Gem::Requirement
51
54
  requirements:
52
- - - "~>"
55
+ - - ">="
53
56
  - !ruby/object:Gem::Version
54
57
  version: '4.0'
58
+ - - "<"
59
+ - !ruby/object:Gem::Version
60
+ version: '7'
55
61
  - !ruby/object:Gem::Dependency
56
62
  name: rake
57
63
  requirement: !ruby/object:Gem::Requirement
@@ -102,8 +108,8 @@ extensions: []
102
108
  extra_rdoc_files: []
103
109
  files:
104
110
  - ".editorconfig"
111
+ - ".github/workflows/ci.yml"
105
112
  - ".gitignore"
106
- - ".travis.yml"
107
113
  - CHANGES.md
108
114
  - Gemfile
109
115
  - Guardfile
@@ -119,7 +125,8 @@ files:
119
125
  - spec/lib/guard/puma_spec.rb
120
126
  - spec/spec_helper.rb
121
127
  homepage: https://github.com/jc00ke/guard-puma
122
- licenses: []
128
+ licenses:
129
+ - MIT
123
130
  metadata: {}
124
131
  post_install_message:
125
132
  rdoc_options: []
@@ -136,8 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
143
  - !ruby/object:Gem::Version
137
144
  version: '0'
138
145
  requirements: []
139
- rubyforge_project:
140
- rubygems_version: 2.7.6
146
+ rubygems_version: 3.3.7
141
147
  signing_key:
142
148
  specification_version: 4
143
149
  summary: Restart puma when files change
data/.travis.yml DELETED
@@ -1,10 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.2.5
5
- - 2.3.1
6
- - rbx
7
- - jruby-9.1.5.0
8
- matrix:
9
- allow_failures:
10
- - rvm: rbx