puma-ngrok-tunnel 1.1.0 → 1.2.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: ac74a1d531b909e92615cf08905c76fc5efac0d3544da64fbcd2bf5d13336a62
4
- data.tar.gz: 6890b025c985efd314a110ae6e439397c3b755fc84f9be7863ca44705d903c5b
3
+ metadata.gz: f8ede8c8d886ae833f1924251855f768f75ec7dba91b22a49e1f0215789987d9
4
+ data.tar.gz: 6fd2f639d545c7b6f68216c2192e291cab7ef3bde35d983204479326c622ae1d
5
5
  SHA512:
6
- metadata.gz: 91f6d5401a0b0735271399876d8fa70ddf1b8265b1f1590a20d0b94f32fbb034c3202733164e44f41b77bcbac857bce664fed5b031663288f42de7b66794968c
7
- data.tar.gz: 946daa8b84bc3c4d3b9f00c25b1e093f03147bd314a767bf31eab5fdd2f16ce7f4c780f39d891fdca941fac2d75ee1e8472c64385b0c276beee315f6aae08028
6
+ metadata.gz: 031dd82d856db5ae1b0d98e75b6150c9acbb434fe51f198e012105ff6938cbff665e7dc0c324be51f6a9b2c3596eb8d80c2a8b68a4062d2ab24485547ef696b4
7
+ data.tar.gz: 13f9996101c09802701f8342daef723d118497b45919166e2012efac27795b0009e5e1762ee0dcb6b435d8081cb1a10564dc3c24676e684151e3513e5a8e1b6d
@@ -1,6 +1,10 @@
1
+ # From: https://github.com/hopsoft/stimulus_reflex/blob/master/.github/workflows/changelog.yml
1
2
  name: Changelog
2
3
 
3
4
  on:
5
+ workflow_dispatch:
6
+ release:
7
+ types: [created]
4
8
  push:
5
9
  branches:
6
10
  - master
@@ -12,27 +16,27 @@ jobs:
12
16
  if: "!contains(github.event.head_commit.message, '[nodoc]')"
13
17
  steps:
14
18
  - uses: actions/checkout@master
15
- - name: Set up Ruby 2.7
16
- uses: actions/setup-ruby@v1
19
+ - name: Set up Ruby 3.0
20
+ uses: ruby/setup-ruby@v1
17
21
  with:
18
- ruby-version: 2.7.x
19
- - uses: actions/cache@v2.1.2
22
+ ruby-version: 3.0
23
+ - uses: actions/cache@v2
20
24
  with:
21
25
  path: vendor/bundle
22
- key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
26
+ key: ${{ runner.os }}-changelog-gem-${{ hashFiles('**/Gemfile.lock') }}
23
27
  restore-keys: |
24
- ${{ runner.os }}-gem-
28
+ ${{ runner.os }}-changelog-gem-
25
29
  - name: Create local changes
26
30
  run: |
27
- gem install github_changelog_generator
28
- github_changelog_generator -u MikeRogers0 -p puma-ngrok-tunnel --token ${{ secrets.GITHUB_TOKEN }} --exclude-labels duplicate,question,invalid,wontfix,nodoc
31
+ gem install github_changelog_generator -v "1.15.2"
32
+ github_changelog_generator -u ${{ github.repository_owner }} -p ${{ github.event.repository.name }} --token ${{ secrets.GITHUB_TOKEN }} --exclude-labels duplicate,question,invalid,wontfix,nodoc
29
33
  - name: Commit files
30
34
  run: |
31
35
  git config --local user.email "github-actions@example.com"
32
36
  git config --local user.name "GitHub Actions"
33
- git commit -m "[nodoc] update changelog" -a
37
+ git commit -am "[nodoc] Update Changelog" || echo "No changes to commit"
34
38
  - name: Push changes
35
39
  uses: ad-m/github-push-action@master
36
40
  with:
37
41
  github_token: ${{ secrets.GITHUB_TOKEN }}
38
-
42
+ branch: ${{ github.ref }}
@@ -11,19 +11,8 @@ jobs:
11
11
 
12
12
  steps:
13
13
  - uses: actions/checkout@v2
14
- - name: Set up Ruby 2.7
15
- uses: actions/setup-ruby@v1
14
+ - name: Publish to GitHub Packages
15
+ uses: jstastny/publish-gem-to-github@master
16
16
  with:
17
- ruby-version: 2.7.x
18
-
19
- - name: Publish to GPR
20
- run: |
21
- mkdir -p $HOME/.gem
22
- touch $HOME/.gem/credentials
23
- chmod 0600 $HOME/.gem/credentials
24
- printf -- "---\n:github: Bearer ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
25
- gem build *.gemspec
26
- gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
27
- env:
28
- GEM_HOST_API_KEY: ${{secrets.GPR_AUTH_TOKEN}}
29
- OWNER: MikeRogers0
17
+ token: ${{ secrets.GITHUB_TOKEN }}
18
+ owner: MikeRogers0
@@ -1,12 +1,13 @@
1
1
  name: RuboCop
2
2
 
3
+
3
4
  on:
4
5
  push:
5
- branches:
6
+ branches-ignore:
6
7
  - master
7
- pull_request:
8
+
8
9
  jobs:
9
- build:
10
+ rubocop:
10
11
  runs-on: ubuntu-latest
11
12
 
12
13
  steps:
@@ -16,7 +17,7 @@ jobs:
16
17
  with:
17
18
  ruby-version: 2.7
18
19
  - name: Cache gems
19
- uses: actions/cache@v2.1.2
20
+ uses: actions/cache@v2
20
21
  with:
21
22
  path: vendor/bundle
22
23
  key: ${{ runner.os }}-rubocop-${{ hashFiles('**/Gemfile.lock') }}
@@ -25,6 +26,6 @@ jobs:
25
26
  - name: Install gems
26
27
  run: |
27
28
  bundle config path vendor/bundle
28
- bundle install --jobs 4 --retry 3
29
+ gem install rubocop
29
30
  - name: Run RuboCop
30
- run: bundle exec rubocop --parallel
31
+ run: rubocop --parallel
@@ -21,7 +21,7 @@ jobs:
21
21
  with:
22
22
  ruby-version: ${{ matrix.ruby }}
23
23
  - name: Cache gems
24
- uses: actions/cache@v2.1.2
24
+ uses: actions/cache@v2
25
25
  with:
26
26
  path: vendor/bundle
27
27
  key: ${{ runner.os }}-ruby-${{ matrix.ruby }}-${{ hashFiles('**/Gemfile.lock') }}
data/.rubocop.yml CHANGED
@@ -1,4 +1,5 @@
1
- ---
1
+ inherit_from: .rubocop_todo.yml
2
+
2
3
  AllCops:
3
4
  TargetRubyVersion: 2.6
4
5
  NewCops: enable
@@ -10,13 +11,7 @@ AllCops:
10
11
  - 'bin/*'
11
12
 
12
13
  Style/FrozenStringLiteralComment:
13
- EnforcedStyle: never
14
-
15
- Layout/LineLength:
16
- Max: 120
14
+ Enabled: false
17
15
 
18
16
  Style/ClassAndModuleChildren:
19
17
  EnforcedStyle: compact
20
-
21
- Metrics/BlockLength:
22
- Max: 35
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,19 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2020-12-18 23:31:12 UTC using RuboCop version 1.6.1.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 1
10
+ # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
11
+ # IgnoredMethods: refine
12
+ Metrics/BlockLength:
13
+ Max: 31
14
+
15
+ # Offense count: 1
16
+ # Cop supports --auto-correct.
17
+ Style/CollectionCompact:
18
+ Exclude:
19
+ - 'lib/puma/plugin/ngrok_tunnel.rb'
data/CHANGELOG.md CHANGED
@@ -2,7 +2,27 @@
2
2
 
3
3
  ## [Unreleased](https://github.com/MikeRogers0/puma-ngrok-tunnel/tree/HEAD)
4
4
 
5
- [Full Changelog](https://github.com/MikeRogers0/puma-ngrok-tunnel/compare/v1.0.1...HEAD)
5
+ [Full Changelog](https://github.com/MikeRogers0/puma-ngrok-tunnel/compare/v1.1.0...HEAD)
6
+
7
+ **Merged pull requests:**
8
+
9
+ - Adding End Of Life notice [\#53](https://github.com/MikeRogers0/puma-ngrok-tunnel/pull/53) ([MikeRogers0](https://github.com/MikeRogers0))
10
+ - Locking changelog generator to 1.15.2 [\#52](https://github.com/MikeRogers0/puma-ngrok-tunnel/pull/52) ([MikeRogers0](https://github.com/MikeRogers0))
11
+ - Removing Dependabot [\#51](https://github.com/MikeRogers0/puma-ngrok-tunnel/pull/51) ([MikeRogers0](https://github.com/MikeRogers0))
12
+ - Update simplecov requirement from ~\> 0.20.0 to ~\> 0.21.2 [\#49](https://github.com/MikeRogers0/puma-ngrok-tunnel/pull/49) ([dependabot[bot]](https://github.com/apps/dependabot))
13
+ - Sample Repo has moved, so updating URL [\#46](https://github.com/MikeRogers0/puma-ngrok-tunnel/pull/46) ([MikeRogers0](https://github.com/MikeRogers0))
14
+ - Fix: Changelog generator pushes to master now [\#45](https://github.com/MikeRogers0/puma-ngrok-tunnel/pull/45) ([MikeRogers0](https://github.com/MikeRogers0))
15
+ - Being less specific in the version I track for GitHub Action [\#44](https://github.com/MikeRogers0/puma-ngrok-tunnel/pull/44) ([MikeRogers0](https://github.com/MikeRogers0))
16
+ - Bumping gems to latest [\#43](https://github.com/MikeRogers0/puma-ngrok-tunnel/pull/43) ([MikeRogers0](https://github.com/MikeRogers0))
17
+ - Using standalone rubocop in GitHub Action [\#40](https://github.com/MikeRogers0/puma-ngrok-tunnel/pull/40) ([MikeRogers0](https://github.com/MikeRogers0))
18
+ - Only use Dependabot to check for Ruby/GH Action updates [\#39](https://github.com/MikeRogers0/puma-ngrok-tunnel/pull/39) ([MikeRogers0](https://github.com/MikeRogers0))
19
+ - Updating manual setup instructions [\#38](https://github.com/MikeRogers0/puma-ngrok-tunnel/pull/38) ([MikeRogers0](https://github.com/MikeRogers0))
20
+ - GitHub package repo not pushing [\#37](https://github.com/MikeRogers0/puma-ngrok-tunnel/pull/37) ([MikeRogers0](https://github.com/MikeRogers0))
21
+ - Rebuild the Changelog when a release is made [\#36](https://github.com/MikeRogers0/puma-ngrok-tunnel/pull/36) ([MikeRogers0](https://github.com/MikeRogers0))
22
+
23
+ ## [v1.1.0](https://github.com/MikeRogers0/puma-ngrok-tunnel/tree/v1.1.0) (2020-10-22)
24
+
25
+ [Full Changelog](https://github.com/MikeRogers0/puma-ngrok-tunnel/compare/v1.0.1...v1.1.0)
6
26
 
7
27
  **Implemented enhancements:**
8
28
 
data/README.md CHANGED
@@ -1,22 +1,44 @@
1
- [![Twitter Follow](https://img.shields.io/twitter/follow/MikeRogers0?label=Follow%20%40MikeRogers0%20For%20Updates&style=social)](https://twitter.com/MikeRogers0)
2
- [![Gem Version](https://badge.fury.io/rb/puma-ngrok-tunnel.svg)](https://badge.fury.io/rb/puma-ngrok-tunnel)
3
- ![Testing](https://github.com/MikeRogers0/puma-ngrok-tunnel/workflows/Testing/badge.svg)
4
- ![RuboCop](https://github.com/MikeRogers0/puma-ngrok-tunnel/workflows/RuboCop/badge.svg)
5
- [![Codacy Badge](https://api.codacy.com/project/badge/Grade/90680257c9dd4613a36ec3ac890e3559)](https://www.codacy.com/app/MikeRogers0/puma-ngrok-tunnel?utm_source=github.com&utm_medium=referral&utm_content=MikeRogers0/puma-ngrok-tunnel&utm_campaign=Badge_Grade)
6
- [![Maintainability](https://api.codeclimate.com/v1/badges/c5710efd4dc1f90c7487/maintainability)](https://codeclimate.com/github/MikeRogers0/puma-ngrok-tunnel/maintainability)
1
+ <h1 align="center">
2
+ puma-ngrok-tunnel
3
+ </h1>
7
4
 
8
- # puma-ngrok-tunnel
5
+ <p align="center">
6
+ <a target="_blank" rel="noopener noreferrer" href="https://twitter.com/MikeRogers0">
7
+ <img src="https://img.shields.io/twitter/follow/MikeRogers0?label=Follow%20%40MikeRogers0%20For%20Updates&style=social" alt="Follow @MikeRogers on Twitter" style="max-width:100%;">
8
+ </a>
9
+ <a target="_blank" rel="noopener noreferrer" href="https://badge.fury.io/rb/puma-ngrok-tunnel">
10
+ <img src="https://badge.fury.io/rb/puma-ngrok-tunnel.svg" alt="Gem Version" style="max-width:100%;">
11
+ </a>
12
+ <a target="_blank" rel="noopener noreferrer" href="https://github.com/MikeRogers0/puma-ngrok-tunnel/workflows/Testing/badge.svg">
13
+ <img src="https://github.com/MikeRogers0/puma-ngrok-tunnel/workflows/Testing/badge.svg" alt="Tests Passing" style="max-width:100%;">
14
+ </a>
15
+ <a target="_blank" rel="noopener noreferrer" href="https://github.com/MikeRogers0/puma-ngrok-tunnel/workflows/RuboCop/badge.svg">
16
+ <img src="https://github.com/MikeRogers0/puma-ngrok-tunnel/workflows/RuboCop/badge.svg" alt="RuboCop Standards" style="max-width:100%;">
17
+ </a>
18
+ </p>
9
19
 
10
- ![image](https://user-images.githubusercontent.com/325384/57193363-1d2c4800-6f32-11e9-82a4-1efc54fac0ad.png)
11
20
 
12
- A plugin for puma that'll start a [ngrok tunnel](https://ngrok.com/) to your rails server when puma starts. Primary I built this to make the following a easier:
21
+ <p align="center">
22
+ A plugin for puma that'll start a <a href="https://ngrok.com/">ngrok tunnel</a> to your rails server when puma starts. Primary I built this to make the following a easier:
23
+ </p>
24
+
25
+ # Deprecation Notice
26
+
27
+ This gem is not longer actively maintained, I suggest using theses alternatives instead:
28
+
29
+ - [Overmind](https://github.com/DarthSim/overmind) or [Foreman](https://github.com/ddollar/foreman)
30
+ - [Docker ngrok](https://hub.docker.com/r/wernight/ngrok/)
31
+
32
+ # What it does
33
+
34
+ ![image](https://user-images.githubusercontent.com/325384/57193363-1d2c4800-6f32-11e9-82a4-1efc54fac0ad.png)
13
35
 
14
36
  * Working with apps that require Webhooks to be received by the app to work correctly
15
37
  * Demoing your local rails app to someone else
16
38
  * Working with [Puma-dev](https://github.com/puma/puma-dev/) so your apps feels as production-like as possible
17
39
  * Testing on mobile.
18
40
 
19
- I've setup a [sample Rails 6 app](https://github.com/MikeRogers0/puma-ngrok-tunnel-SampleRails6App) which demos an implementation of this gem.
41
+ I've setup a [sample Rails 6 app](https://github.com/MikeRogers0-YouTube/puma-ngrok-tunnel-SampleRails6App) which demos an implementation of this gem.
20
42
 
21
43
  ## Installation
22
44
 
@@ -31,7 +53,7 @@ $ brew cask install ngrok
31
53
 
32
54
  ### Adding the gem
33
55
 
34
- I've automated these steps into an `app:template` which can be found on [Rails Bytes](https://railsbytes.com/templates/xkjseg). However, if you'd like to install it manually following these steps:
56
+ I've automated these steps into an `app:template` which can be found on [Rails Bytes](https://railsbytes.com/templates/xkjseg). However, if you'd like to install it manually follow these steps:
35
57
 
36
58
  1. Add this line to your application's `Gemfile`:
37
59
 
@@ -1,3 +1,3 @@
1
1
  module PumaNgrokTunnel
2
- VERSION = '1.1.0'.freeze
2
+ VERSION = '1.2.0'.freeze
3
3
  end
@@ -37,6 +37,6 @@ Gem::Specification.new do |spec|
37
37
  spec.add_development_dependency 'minitest', '~> 5.0'
38
38
  spec.add_development_dependency 'rake', '~> 13.0'
39
39
  spec.add_development_dependency 'rubocop', '~> 1.0'
40
- spec.add_development_dependency 'simplecov', '~> 0.19.0'
40
+ spec.add_development_dependency 'simplecov', '~> 0.21.2'
41
41
  spec.add_development_dependency 'yard', '~> 0.9.24'
42
42
  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: 1.1.0
4
+ version: 1.2.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: 2020-10-22 00:00:00.000000000 Z
11
+ date: 2021-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ngrok-tunnel
@@ -112,14 +112,14 @@ dependencies:
112
112
  requirements:
113
113
  - - "~>"
114
114
  - !ruby/object:Gem::Version
115
- version: 0.19.0
115
+ version: 0.21.2
116
116
  type: :development
117
117
  prerelease: false
118
118
  version_requirements: !ruby/object:Gem::Requirement
119
119
  requirements:
120
120
  - - "~>"
121
121
  - !ruby/object:Gem::Version
122
- version: 0.19.0
122
+ version: 0.21.2
123
123
  - !ruby/object:Gem::Dependency
124
124
  name: yard
125
125
  requirement: !ruby/object:Gem::Requirement
@@ -141,7 +141,6 @@ executables: []
141
141
  extensions: []
142
142
  extra_rdoc_files: []
143
143
  files:
144
- - ".github/dependabot.yml"
145
144
  - ".github/workflows/changelog.yml"
146
145
  - ".github/workflows/gempush.yml"
147
146
  - ".github/workflows/rubocop.yml"
@@ -149,6 +148,7 @@ files:
149
148
  - ".github/workflows/test.yml"
150
149
  - ".gitignore"
151
150
  - ".rubocop.yml"
151
+ - ".rubocop_todo.yml"
152
152
  - CHANGELOG.md
153
153
  - CODE_OF_CONDUCT.md
154
154
  - Gemfile
@@ -185,7 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
185
  - !ruby/object:Gem::Version
186
186
  version: '0'
187
187
  requirements: []
188
- rubygems_version: 3.1.4
188
+ rubygems_version: 3.2.3
189
189
  signing_key:
190
190
  specification_version: 4
191
191
  summary: Puma integration for starting a Ngrok Tunnel
@@ -1,27 +0,0 @@
1
- version: 2
2
-
3
- updates:
4
-
5
- # Maintain dependencies for GitHub Actions
6
- - package-ecosystem: "github-actions"
7
- directory: "/"
8
- schedule:
9
- interval: "daily"
10
-
11
- # Maintain dependencies for npm
12
- - package-ecosystem: "npm"
13
- directory: "/"
14
- schedule:
15
- interval: "daily"
16
-
17
- # Maintain dependencies for Bundler
18
- - package-ecosystem: "bundler"
19
- directory: "/"
20
- schedule:
21
- interval: "daily"
22
-
23
- # Maintain dependencies for Docker
24
- - package-ecosystem: "docker"
25
- directory: "/"
26
- schedule:
27
- interval: "daily"