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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: da05b0f54b76f5146ecc03c1f4e37cb7fda68dc208e019eb333c68c4acf1d75f
4
- data.tar.gz: 79b6d96ba674be68fbe0de192e4ae42007fb63976e899ae28301e65d57f77a0d
3
+ metadata.gz: 8bf1ca4135fa76700d3c81c3f486e495fef14ff9f6f85d40ee89399bbb4bbcda
4
+ data.tar.gz: ed789863a818f7236bb2ae878d1e92af33dbdcee57bfeb2ef8e6ae88c204fc70
5
5
  SHA512:
6
- metadata.gz: 73a5163f3e1a4380c336085cc58ca18258a6bf0b665fe5ea8309a79da37e249ae85ad9b7601c55a17fcbe65dccc25ca710aeca0e9276827282745ea1400cd89a
7
- data.tar.gz: d2f49d41b47aac19ad32d9638f2f4a0d38815a09c9992b5a9e2757894fc72e331fdd7be837e90fa9ea554186033062c412b9b3dea8d9cbc0995bd58eeedbc5d6
6
+ metadata.gz: c8b762cec1da5d1ec66cdeae19efb39ea13f9f2eee45ff55f520830ef1d4ed08791f6f333c6955aa3624b860a32bb0de3987a187f3899e597947b074d405bad8
7
+ data.tar.gz: fcb4e3b7003d07e9267f83917164e99435a5d4405bd1ba8d93ae69513efe24593d65e92b6a1ea95b97cf4ceeb48816f73c9633846e5846a8e1e3b19f83143628
@@ -0,0 +1,3 @@
1
+ # These are supported funding model platforms
2
+
3
+ custom: ['https://mikerogers.io/']
@@ -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
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module PumaNgrokTunnel
2
- VERSION = '0.1.5'
2
+ VERSION = '1.0.0'
3
3
  end
@@ -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
 
@@ -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.1.5
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: 2019-10-02 00:00:00.000000000 Z
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: