puma-ngrok-tunnel 0.1.5 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/FUNDING.yml +3 -0
- data/.github/workflows/gempush.yml +30 -0
- data/CHANGELOG.md +8 -0
- data/lib/puma-ngrok-tunnel/version.rb +1 -1
- data/lib/puma/plugin/ngrok_tunnel.rb +3 -1
- data/puma-ngrok-tunnel.gemspec +1 -9
- metadata +19 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8bf1ca4135fa76700d3c81c3f486e495fef14ff9f6f85d40ee89399bbb4bbcda
|
4
|
+
data.tar.gz: ed789863a818f7236bb2ae878d1e92af33dbdcee57bfeb2ef8e6ae88c204fc70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8b762cec1da5d1ec66cdeae19efb39ea13f9f2eee45ff55f520830ef1d4ed08791f6f333c6955aa3624b860a32bb0de3987a187f3899e597947b074d405bad8
|
7
|
+
data.tar.gz: fcb4e3b7003d07e9267f83917164e99435a5d4405bd1ba8d93ae69513efe24593d65e92b6a1ea95b97cf4ceeb48816f73c9633846e5846a8e1e3b19f83143628
|
data/.github/FUNDING.yml
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
name: Build & Publish Ruby Gem
|
2
|
+
|
3
|
+
on:
|
4
|
+
create:
|
5
|
+
tags:
|
6
|
+
- v*
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
build:
|
10
|
+
name: Build + Publish
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
|
13
|
+
steps:
|
14
|
+
- uses: actions/checkout@v2
|
15
|
+
- name: Set up Ruby 2.6
|
16
|
+
uses: actions/setup-ruby@v1
|
17
|
+
with:
|
18
|
+
ruby-version: 2.6.x
|
19
|
+
|
20
|
+
- name: Publish to GPR
|
21
|
+
run: |
|
22
|
+
mkdir -p $HOME/.gem
|
23
|
+
touch $HOME/.gem/credentials
|
24
|
+
chmod 0600 $HOME/.gem/credentials
|
25
|
+
printf -- "---\n:github: Bearer ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
26
|
+
gem build *.gemspec
|
27
|
+
gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
|
28
|
+
env:
|
29
|
+
GEM_HOST_API_KEY: ${{secrets.GPR_AUTH_TOKEN}}
|
30
|
+
OWNER: MikeRogers0
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 1.0.1 (In Development)
|
4
|
+
|
5
|
+
* Any new changes should be added to here :)
|
6
|
+
|
7
|
+
## 1.0.0
|
8
|
+
|
9
|
+
* [Handling offline exception when connecting to Ngrok](https://github.com/MikeRogers0/puma-ngrok-tunnel/pull/13)
|
10
|
+
|
3
11
|
## 0.1.5
|
4
12
|
|
5
13
|
* [Update rake requirement from ~> 12.3 to ~> 13.0](https://github.com/MikeRogers0/puma-ngrok-tunnel/pull/8)
|
@@ -16,8 +16,10 @@ Puma::Plugin.create do
|
|
16
16
|
def ngrok_start!
|
17
17
|
begin
|
18
18
|
puts '[puma-ngrok-tunnel] Tunneling at: ' + Ngrok::Tunnel.start(options)
|
19
|
+
rescue Ngrok::FetchUrlError => e
|
20
|
+
puts '[puma-ngrok-tunnel] Unable connect to ngrok server (You might be offline): ' + e.to_s
|
19
21
|
rescue Ngrok::Error => e
|
20
|
-
puts '[puma-ngrok-tunnel] Unable to start tunnel: ' + e.to_s
|
22
|
+
puts '[puma-ngrok-tunnel] Unable to start tunnel (You might have another active connection): ' + e.to_s
|
21
23
|
end
|
22
24
|
end
|
23
25
|
|
data/puma-ngrok-tunnel.gemspec
CHANGED
@@ -13,15 +13,6 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.homepage = 'https://github.com/mikerogers0/puma-ngrok-tunnel'
|
14
14
|
spec.license = 'MIT'
|
15
15
|
|
16
|
-
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
17
|
-
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
18
|
-
if spec.respond_to?(:metadata)
|
19
|
-
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
20
|
-
else
|
21
|
-
raise 'RubyGems 2.0 or newer is required to protect against ' \
|
22
|
-
'public gem pushes.'
|
23
|
-
end
|
24
|
-
|
25
16
|
# Specify which files should be added to the gem when it is released.
|
26
17
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
27
18
|
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
@@ -37,4 +28,5 @@ Gem::Specification.new do |spec|
|
|
37
28
|
spec.add_development_dependency 'minitest', '~> 5.0'
|
38
29
|
spec.add_development_dependency 'rake', '~> 13.0'
|
39
30
|
spec.add_development_dependency 'simplecov', '~> 0.17.0'
|
31
|
+
spec.add_development_dependency 'yard', '~> 0.9.24'
|
40
32
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puma-ngrok-tunnel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Rogers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ngrok-tunnel
|
@@ -106,6 +106,20 @@ dependencies:
|
|
106
106
|
- - "~>"
|
107
107
|
- !ruby/object:Gem::Version
|
108
108
|
version: 0.17.0
|
109
|
+
- !ruby/object:Gem::Dependency
|
110
|
+
name: yard
|
111
|
+
requirement: !ruby/object:Gem::Requirement
|
112
|
+
requirements:
|
113
|
+
- - "~>"
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
version: 0.9.24
|
116
|
+
type: :development
|
117
|
+
prerelease: false
|
118
|
+
version_requirements: !ruby/object:Gem::Requirement
|
119
|
+
requirements:
|
120
|
+
- - "~>"
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: 0.9.24
|
109
123
|
description: A Puma plugin that opens a ngrok tunnel after the rails server starts
|
110
124
|
email:
|
111
125
|
- me@mikerogers.io
|
@@ -113,6 +127,8 @@ executables: []
|
|
113
127
|
extensions: []
|
114
128
|
extra_rdoc_files: []
|
115
129
|
files:
|
130
|
+
- ".github/FUNDING.yml"
|
131
|
+
- ".github/workflows/gempush.yml"
|
116
132
|
- ".gitignore"
|
117
133
|
- ".rubocop.yml"
|
118
134
|
- ".ruby-version"
|
@@ -131,8 +147,7 @@ files:
|
|
131
147
|
homepage: https://github.com/mikerogers0/puma-ngrok-tunnel
|
132
148
|
licenses:
|
133
149
|
- MIT
|
134
|
-
metadata:
|
135
|
-
allowed_push_host: https://rubygems.org
|
150
|
+
metadata: {}
|
136
151
|
post_install_message:
|
137
152
|
rdoc_options: []
|
138
153
|
require_paths:
|