puma-ngrok-tunnel 1.0.1 → 1.1.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: 9441eab1703e011567c51b87e31928c49b4148852efcd072567bccec0ab1b531
4
- data.tar.gz: abb76df3833f5a05fed45bb942c08c35794030bbaaea9acc61b4f4b56cfd2829
3
+ metadata.gz: ac74a1d531b909e92615cf08905c76fc5efac0d3544da64fbcd2bf5d13336a62
4
+ data.tar.gz: 6890b025c985efd314a110ae6e439397c3b755fc84f9be7863ca44705d903c5b
5
5
  SHA512:
6
- metadata.gz: e825ac406b5d1fbc7f4a5380844630de08dedc39ff5cc9291d6e873a826ec9e39e81c691b6a1dba704423bb6a77a69b5669150a7da195cbf0dad4d079019b046
7
- data.tar.gz: 2ad9c8421435c66dd5140edf45818e4a9b8a0d3df6aa1fb341510fa4498032b6c66db7b1d72c0630031b36b84aa7279bceaabb72e2ae9bfbe5b9af5c986f2944
6
+ metadata.gz: 91f6d5401a0b0735271399876d8fa70ddf1b8265b1f1590a20d0b94f32fbb034c3202733164e44f41b77bcbac857bce664fed5b031663288f42de7b66794968c
7
+ data.tar.gz: 946daa8b84bc3c4d3b9f00c25b1e093f03147bd314a767bf31eab5fdd2f16ce7f4c780f39d891fdca941fac2d75ee1e8472c64385b0c276beee315f6aae08028
@@ -0,0 +1,27 @@
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"
@@ -12,11 +12,11 @@ jobs:
12
12
  if: "!contains(github.event.head_commit.message, '[nodoc]')"
13
13
  steps:
14
14
  - uses: actions/checkout@master
15
- - name: Set up Ruby 2.6
15
+ - name: Set up Ruby 2.7
16
16
  uses: actions/setup-ruby@v1
17
17
  with:
18
- ruby-version: 2.6.x
19
- - uses: actions/cache@v1.1.2
18
+ ruby-version: 2.7.x
19
+ - uses: actions/cache@v2.1.2
20
20
  with:
21
21
  path: vendor/bundle
22
22
  key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
@@ -11,10 +11,10 @@ jobs:
11
11
 
12
12
  steps:
13
13
  - uses: actions/checkout@v2
14
- - name: Set up Ruby 2.6
14
+ - name: Set up Ruby 2.7
15
15
  uses: actions/setup-ruby@v1
16
16
  with:
17
- ruby-version: 2.6.x
17
+ ruby-version: 2.7.x
18
18
 
19
19
  - name: Publish to GPR
20
20
  run: |
@@ -0,0 +1,30 @@
1
+ name: RuboCop
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
+ jobs:
9
+ build:
10
+ runs-on: ubuntu-latest
11
+
12
+ steps:
13
+ - uses: actions/checkout@v2
14
+ - name: Set up Ruby 2.7
15
+ uses: ruby/setup-ruby@v1
16
+ with:
17
+ ruby-version: 2.7
18
+ - name: Cache gems
19
+ uses: actions/cache@v2.1.2
20
+ with:
21
+ path: vendor/bundle
22
+ key: ${{ runner.os }}-rubocop-${{ hashFiles('**/Gemfile.lock') }}
23
+ restore-keys: |
24
+ ${{ runner.os }}-rubocop-
25
+ - name: Install gems
26
+ run: |
27
+ bundle config path vendor/bundle
28
+ bundle install --jobs 4 --retry 3
29
+ - name: Run RuboCop
30
+ run: bundle exec rubocop --parallel
@@ -0,0 +1,22 @@
1
+ name: Typo CI
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
+ jobs:
9
+ spellcheck:
10
+ name: Typo CI (GitHub Action)
11
+ runs-on: ubuntu-latest
12
+ timeout-minutes: 4
13
+ if: "!contains(github.event.head_commit.message, '[ci skip]')"
14
+ steps:
15
+ - name: TypoCheck
16
+ uses: typoci/spellcheck-action@master
17
+ # with:
18
+ # A license can be purchased via:
19
+ # https://gumroad.com/l/MvvBE
20
+ # typo_ci_license_key: ${{ secrets.TYPO_CI_LICENSE_KEY }}
21
+ env:
22
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -0,0 +1,41 @@
1
+ ---
2
+ name: Testing
3
+
4
+ on:
5
+ push:
6
+ branches: [ master ]
7
+ pull_request:
8
+
9
+ jobs:
10
+ test:
11
+ strategy:
12
+ fail-fast: false
13
+ matrix:
14
+ ruby: [2.6, 2.7, head]
15
+ runs-on: ubuntu-latest
16
+ name: Test against Ruby ${{ matrix.ruby }}
17
+
18
+ steps:
19
+ - uses: actions/checkout@v2
20
+ - uses: ruby/setup-ruby@v1
21
+ with:
22
+ ruby-version: ${{ matrix.ruby }}
23
+ - name: Cache gems
24
+ uses: actions/cache@v2.1.2
25
+ with:
26
+ path: vendor/bundle
27
+ key: ${{ runner.os }}-ruby-${{ matrix.ruby }}-${{ hashFiles('**/Gemfile.lock') }}
28
+ restore-keys: |
29
+ ${{ runner.os }}-ruby-${{ matrix.ruby }}
30
+ - name: Install Gems
31
+ env:
32
+ RAILS_ENV: test
33
+ run: |
34
+ gem install bundler
35
+ bundle config path vendor/bundle
36
+ bundle install --jobs 4 --retry 3
37
+ - name: Run tests
38
+ env:
39
+ RAILS_ENV: test
40
+ run: |
41
+ bundle exec rake test
@@ -1,5 +1,7 @@
1
1
  ---
2
2
  AllCops:
3
+ TargetRubyVersion: 2.6
4
+ NewCops: enable
3
5
  Exclude:
4
6
  - db/schema.rb
5
7
  - 'node_modules/**/*'
@@ -15,3 +17,6 @@ Layout/LineLength:
15
17
 
16
18
  Style/ClassAndModuleChildren:
17
19
  EnforcedStyle: compact
20
+
21
+ Metrics/BlockLength:
22
+ Max: 35
@@ -2,7 +2,31 @@
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.0...HEAD)
5
+ [Full Changelog](https://github.com/MikeRogers0/puma-ngrok-tunnel/compare/v1.0.1...HEAD)
6
+
7
+ **Implemented enhancements:**
8
+
9
+ - Preparing for 1.1.0 release [\#34](https://github.com/MikeRogers0/puma-ngrok-tunnel/pull/34) ([MikeRogers0](https://github.com/MikeRogers0))
10
+
11
+ **Merged pull requests:**
12
+
13
+ - Revising setup notes to include mention of the app:template [\#35](https://github.com/MikeRogers0/puma-ngrok-tunnel/pull/35) ([MikeRogers0](https://github.com/MikeRogers0))
14
+ - Testing against multiple Ruby versions [\#33](https://github.com/MikeRogers0/puma-ngrok-tunnel/pull/33) ([MikeRogers0](https://github.com/MikeRogers0))
15
+ - Update rubocop requirement from ~\> 0.92 to ~\> 1.0 [\#32](https://github.com/MikeRogers0/puma-ngrok-tunnel/pull/32) ([dependabot[bot]](https://github.com/apps/dependabot))
16
+ - Adding funding\_uri & other metadata [\#31](https://github.com/MikeRogers0/puma-ngrok-tunnel/pull/31) ([MikeRogers0](https://github.com/MikeRogers0))
17
+ - Bump actions/cache from v2.1.1 to v2.1.2 [\#30](https://github.com/MikeRogers0/puma-ngrok-tunnel/pull/30) ([dependabot[bot]](https://github.com/apps/dependabot))
18
+ - Updating to Ruby 2.7 [\#29](https://github.com/MikeRogers0/puma-ngrok-tunnel/pull/29) ([MikeRogers0](https://github.com/MikeRogers0))
19
+ - Cleaning up unnecessary files [\#28](https://github.com/MikeRogers0/puma-ngrok-tunnel/pull/28) ([MikeRogers0](https://github.com/MikeRogers0))
20
+ - Ditching docker for local dev [\#27](https://github.com/MikeRogers0/puma-ngrok-tunnel/pull/27) ([MikeRogers0](https://github.com/MikeRogers0))
21
+ - Update simplecov requirement from ~\> 0.17.0 to ~\> 0.19.0 [\#26](https://github.com/MikeRogers0/puma-ngrok-tunnel/pull/26) ([dependabot[bot]](https://github.com/apps/dependabot))
22
+ - Update puma requirement from \>= 3, \< 5 to \>= 3, \< 6 [\#25](https://github.com/MikeRogers0/puma-ngrok-tunnel/pull/25) ([dependabot[bot]](https://github.com/apps/dependabot))
23
+ - Update actions/cache requirement to v2.1.1 [\#24](https://github.com/MikeRogers0/puma-ngrok-tunnel/pull/24) ([dependabot[bot]](https://github.com/apps/dependabot))
24
+ - Overhauling GitHub Actions [\#22](https://github.com/MikeRogers0/puma-ngrok-tunnel/pull/22) ([MikeRogers0](https://github.com/MikeRogers0))
25
+ - Updating funding on GitHub to mention me [\#21](https://github.com/MikeRogers0/puma-ngrok-tunnel/pull/21) ([MikeRogers0](https://github.com/MikeRogers0))
26
+
27
+ ## [v1.0.1](https://github.com/MikeRogers0/puma-ngrok-tunnel/tree/v1.0.1) (2020-05-11)
28
+
29
+ [Full Changelog](https://github.com/MikeRogers0/puma-ngrok-tunnel/compare/v1.0.0...v1.0.1)
6
30
 
7
31
  **Merged pull requests:**
8
32
 
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
+ [![Twitter Follow](https://img.shields.io/twitter/follow/MikeRogers0?label=Follow%20%40MikeRogers0%20For%20Updates&style=social)](https://twitter.com/MikeRogers0)
1
2
  [![Gem Version](https://badge.fury.io/rb/puma-ngrok-tunnel.svg)](https://badge.fury.io/rb/puma-ngrok-tunnel)
2
- [![Build Status](https://travis-ci.org/MikeRogers0/puma-ngrok-tunnel.svg?branch=master)](https://travis-ci.org/MikeRogers0/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)
3
5
  [![Codacy Badge](https://api.codacy.com/project/badge/Grade/90680257c9dd4613a36ec3ac890e3559)](https://www.codacy.com/app/MikeRogers0/puma-ngrok-tunnel?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=MikeRogers0/puma-ngrok-tunnel&amp;utm_campaign=Badge_Grade)
4
6
  [![Maintainability](https://api.codeclimate.com/v1/badges/c5710efd4dc1f90c7487/maintainability)](https://codeclimate.com/github/MikeRogers0/puma-ngrok-tunnel/maintainability)
5
7
 
@@ -18,14 +20,20 @@ I've setup a [sample Rails 6 app](https://github.com/MikeRogers0/puma-ngrok-tunn
18
20
 
19
21
  ## Installation
20
22
 
23
+ ### Adding ngrok package to your machine
24
+
21
25
  Make sure you have installed ngrok on your machine:
22
26
 
23
27
  ```bash
24
- brew tap caskroom/cask
25
- brew cask install ngrok
28
+ $ brew tap caskroom/cask
29
+ $ brew cask install ngrok
26
30
  ```
27
31
 
28
- Add this line to your application's Gemfile:
32
+ ### Adding the gem
33
+
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:
35
+
36
+ 1. Add this line to your application's `Gemfile`:
29
37
 
30
38
  ```ruby
31
39
  group :development do
@@ -33,18 +41,25 @@ group :development do
33
41
  end
34
42
  ```
35
43
 
36
- And then execute:
44
+ 2. And then execute:
37
45
 
38
46
  ```bash
39
- bundle
47
+ $ bundle
40
48
  ```
41
49
 
42
- Lastly in your `config/puma.rb` file, append the line:
50
+ 3. Append this line to your `config/puma.rb` file:
43
51
 
44
52
  ```ruby
45
53
  plugin :ngrok_tunnel if ENV.fetch('RAILS_ENV') { 'development' } == 'development'
46
54
  ```
47
55
 
56
+ 4. Lastly, update your `config/environments/development.rb` to include the line:
57
+
58
+ ```ruby
59
+ # puma-ngrok-tunnel: Allow connections from ngrok
60
+ config.hosts << /[a-z0-9.]+.ngrok.io/
61
+ ```
62
+
48
63
  ## Usage
49
64
 
50
65
  Read about how to configure puma to use this in [the Puma documentation](https://github.com/puma/puma#plugins).
@@ -110,14 +125,14 @@ If you seeing an error like:
110
125
  Open your `config/environments/development.rb` file add add:
111
126
 
112
127
  ```ruby
113
- # Whitelist ngrok connections to development enviroment.
128
+ # Safelist ngrok connections to development environment.
114
129
  config.hosts << /[a-z0-9]+\.ngrok\.io/
115
- # Whitelist Puma-Dev hostname.
130
+ # Safelist Puma-Dev hostname.
116
131
  config.hosts << 'samplerailsapp.test'
117
132
  config.hosts << /[a-z0-9]+\.samplerailsapp.test/
118
133
  ```
119
134
 
120
- This will whitelist the ngrok subdomain to access your rails host.
135
+ This will safe-list the ngrok subdomain to access your rails host.
121
136
 
122
137
  ## License
123
138
 
@@ -1,3 +1,3 @@
1
1
  module PumaNgrokTunnel
2
- VERSION = '1.0.1'
2
+ VERSION = '1.1.0'.freeze
3
3
  end
@@ -14,13 +14,11 @@ Puma::Plugin.create do
14
14
  private
15
15
 
16
16
  def ngrok_start!
17
- begin
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
21
- rescue Ngrok::Error => e
22
- puts '[puma-ngrok-tunnel] Unable to start tunnel (You might have another active connection): ' + e.to_s
23
- end
17
+ puts "[puma-ngrok-tunnel] Tunneling at: #{Ngrok::Tunnel.start(options)}"
18
+ rescue Ngrok::FetchUrlError => e
19
+ puts "[puma-ngrok-tunnel] Unable connect to ngrok server (You might be offline): #{e}"
20
+ rescue Ngrok::Error => e
21
+ puts "[puma-ngrok-tunnel] Unable to start tunnel (You might have another active connection): #{e}"
24
22
  end
25
23
 
26
24
  def ngrok_stop!
@@ -32,13 +30,13 @@ Puma::Plugin.create do
32
30
 
33
31
  def options
34
32
  @options ||= {
35
- addr: ENV.fetch('NGROK_ADDR') { nil } || ENV.fetch('PORT') { 3000 },
36
- authtoken: ENV.fetch('NGROK_AUTHTOKEN') { nil },
37
- host_header: ENV.fetch('NGROK_HOST_HEADER') { nil },
33
+ addr: ENV.fetch('NGROK_ADDR', nil) || ENV.fetch('PORT', 3000),
34
+ authtoken: ENV.fetch('NGROK_AUTHTOKEN', nil),
35
+ host_header: ENV.fetch('NGROK_HOST_HEADER', nil),
38
36
  config: ENV.fetch('NGROK_CONFIG') { File.join(ENV['HOME'], '.ngrok2', 'ngrok.yml') },
39
- subdomain: ENV.fetch('NGROK_SUBDOMAIN') { nil },
40
- region: ENV.fetch('NGROK_REGION') { nil },
41
- hostname: ENV.fetch('NGROK_HOSTNAME') { nil }
37
+ subdomain: ENV.fetch('NGROK_SUBDOMAIN', nil),
38
+ region: ENV.fetch('NGROK_REGION', nil),
39
+ hostname: ENV.fetch('NGROK_HOSTNAME', nil)
42
40
  }.reject { |_, value| value.nil? }
43
41
  end
44
42
  end
@@ -13,20 +13,30 @@ Gem::Specification.new do |spec|
13
13
  spec.homepage = 'https://github.com/mikerogers0/puma-ngrok-tunnel'
14
14
  spec.license = 'MIT'
15
15
 
16
+ spec.metadata = {
17
+ 'bug_tracker_uri' => "#{spec.homepage}/issues",
18
+ 'changelog_uri' => "#{spec.homepage}/blob/master/CHANGELOG.md",
19
+ 'documentation_uri' => spec.homepage,
20
+ 'homepage_uri' => spec.homepage,
21
+ 'source_code_uri' => spec.homepage,
22
+ 'funding_uri' => 'https://www.buymeacoffee.com/MikeRogers0'
23
+ }
24
+
16
25
  # Specify which files should be added to the gem when it is released.
17
26
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
18
27
  spec.files = Dir.chdir(File.expand_path(__dir__)) do
19
28
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
20
29
  end
21
30
  spec.require_paths = ['lib']
22
- spec.required_ruby_version = '>= 2.3'
31
+ spec.required_ruby_version = '>= 2.6'
23
32
 
24
33
  spec.add_runtime_dependency 'ngrok-tunnel', '~> 2.1', '>= 2.1.1'
25
- spec.add_runtime_dependency 'puma', '>= 3', '< 5'
34
+ spec.add_runtime_dependency 'puma', '>= 3', '< 6'
26
35
 
27
36
  spec.add_development_dependency 'bundler', '~> 2.0'
28
37
  spec.add_development_dependency 'minitest', '~> 5.0'
29
38
  spec.add_development_dependency 'rake', '~> 13.0'
30
- spec.add_development_dependency 'simplecov', '~> 0.17.0'
39
+ spec.add_development_dependency 'rubocop', '~> 1.0'
40
+ spec.add_development_dependency 'simplecov', '~> 0.19.0'
31
41
  spec.add_development_dependency 'yard', '~> 0.9.24'
32
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.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Rogers
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-11 00:00:00.000000000 Z
11
+ date: 2020-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ngrok-tunnel
@@ -39,7 +39,7 @@ dependencies:
39
39
  version: '3'
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
- version: '5'
42
+ version: '6'
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -49,7 +49,7 @@ dependencies:
49
49
  version: '3'
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
- version: '5'
52
+ version: '6'
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: bundler
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -92,20 +92,34 @@ dependencies:
92
92
  - - "~>"
93
93
  - !ruby/object:Gem::Version
94
94
  version: '13.0'
95
+ - !ruby/object:Gem::Dependency
96
+ name: rubocop
97
+ requirement: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - "~>"
100
+ - !ruby/object:Gem::Version
101
+ version: '1.0'
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - "~>"
107
+ - !ruby/object:Gem::Version
108
+ version: '1.0'
95
109
  - !ruby/object:Gem::Dependency
96
110
  name: simplecov
97
111
  requirement: !ruby/object:Gem::Requirement
98
112
  requirements:
99
113
  - - "~>"
100
114
  - !ruby/object:Gem::Version
101
- version: 0.17.0
115
+ version: 0.19.0
102
116
  type: :development
103
117
  prerelease: false
104
118
  version_requirements: !ruby/object:Gem::Requirement
105
119
  requirements:
106
120
  - - "~>"
107
121
  - !ruby/object:Gem::Version
108
- version: 0.17.0
122
+ version: 0.19.0
109
123
  - !ruby/object:Gem::Dependency
110
124
  name: yard
111
125
  requirement: !ruby/object:Gem::Requirement
@@ -127,36 +141,36 @@ executables: []
127
141
  extensions: []
128
142
  extra_rdoc_files: []
129
143
  files:
130
- - ".dockerignore"
131
- - ".env"
132
- - ".github/FUNDING.yml"
144
+ - ".github/dependabot.yml"
133
145
  - ".github/workflows/changelog.yml"
134
146
  - ".github/workflows/gempush.yml"
135
- - ".github/workflows/linters.yml"
136
- - ".github/workflows/rspec.yml"
147
+ - ".github/workflows/rubocop.yml"
148
+ - ".github/workflows/spelling.yml"
149
+ - ".github/workflows/test.yml"
137
150
  - ".gitignore"
138
151
  - ".rubocop.yml"
139
- - ".ruby-version"
140
- - ".travis.yml"
141
- - Aptfile
142
152
  - CHANGELOG.md
143
153
  - CODE_OF_CONDUCT.md
144
- - Dockerfile
145
154
  - Gemfile
146
155
  - LICENSE
147
156
  - README.md
148
157
  - Rakefile
149
158
  - bin/console
150
159
  - bin/setup
151
- - docker-compose.yml
152
160
  - lib/puma-ngrok-tunnel/version.rb
153
161
  - lib/puma/plugin/ngrok_tunnel.rb
154
162
  - puma-ngrok-tunnel.gemspec
155
163
  homepage: https://github.com/mikerogers0/puma-ngrok-tunnel
156
164
  licenses:
157
165
  - MIT
158
- metadata: {}
159
- post_install_message:
166
+ metadata:
167
+ bug_tracker_uri: https://github.com/mikerogers0/puma-ngrok-tunnel/issues
168
+ changelog_uri: https://github.com/mikerogers0/puma-ngrok-tunnel/blob/master/CHANGELOG.md
169
+ documentation_uri: https://github.com/mikerogers0/puma-ngrok-tunnel
170
+ homepage_uri: https://github.com/mikerogers0/puma-ngrok-tunnel
171
+ source_code_uri: https://github.com/mikerogers0/puma-ngrok-tunnel
172
+ funding_uri: https://www.buymeacoffee.com/MikeRogers0
173
+ post_install_message:
160
174
  rdoc_options: []
161
175
  require_paths:
162
176
  - lib
@@ -164,15 +178,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
164
178
  requirements:
165
179
  - - ">="
166
180
  - !ruby/object:Gem::Version
167
- version: '2.3'
181
+ version: '2.6'
168
182
  required_rubygems_version: !ruby/object:Gem::Requirement
169
183
  requirements:
170
184
  - - ">="
171
185
  - !ruby/object:Gem::Version
172
186
  version: '0'
173
187
  requirements: []
174
- rubygems_version: 3.0.3
175
- signing_key:
188
+ rubygems_version: 3.1.4
189
+ signing_key:
176
190
  specification_version: 4
177
191
  summary: Puma integration for starting a Ngrok Tunnel
178
192
  test_files: []
@@ -1,58 +0,0 @@
1
- .git
2
- .gitignore
3
- README.md
4
-
5
- #
6
- # OS X
7
- #
8
- .DS_Store
9
- .AppleDouble
10
- .LSOverride
11
- # Icon must end with two \r
12
- Icon
13
- # Thumbnails
14
- ._*
15
- # Files that might appear on external disk
16
- .Spotlight-V100
17
- .Trashes
18
- # Directories potentially created on remote AFP share
19
- .AppleDB
20
- .AppleDesktop
21
- Network Trash Folder
22
- Temporary Items
23
- .apdisk
24
-
25
- #
26
- # Rails
27
- #
28
- .env.sample
29
- *.rbc
30
- capybara-*.html
31
- log
32
- tmp
33
- db/*.sqlite3
34
- db/*.sqlite3-journal
35
- public/system
36
- public/assets
37
- public/packs
38
- public/packs-test
39
- node_modules
40
- yarn-error.log
41
- yarn-debug.log*
42
- .yarn-integrity
43
- external_dns.log
44
-
45
- coverage/
46
- spec/tmp
47
- **.orig
48
-
49
- .bundle
50
-
51
- .ruby-gemset
52
-
53
- .rvmrc
54
-
55
- # if using bower-rails ignore default bower_components path bower.json files
56
- vendor/assets/bower_components
57
- *.bowerrc
58
- bower.json
data/.env DELETED
@@ -1,3 +0,0 @@
1
- # Adhoc ENVs
2
- LANG=en_US.UTF-8
3
- EDITOR=vim
@@ -1,3 +0,0 @@
1
- # These are supported funding model platforms
2
-
3
- custom: ['https://mikerogers.io/']
@@ -1,58 +0,0 @@
1
- ---
2
- name: Linters
3
-
4
- on:
5
- pull_request:
6
- branches: [ master ]
7
-
8
- jobs:
9
- dotenv:
10
- runs-on: ubuntu-latest
11
- steps:
12
- - uses: actions/checkout@v1
13
- - name: dotenv-linter
14
- uses: wemake-services/dotenv-linter@0.1.5
15
- with:
16
- reporter: 'github-pr-review'
17
- options: '.env'
18
- env:
19
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20
- rubocop:
21
- runs-on: ubuntu-latest
22
- steps:
23
- - uses: actions/checkout@v1
24
- - name: Rubocop Linter Action
25
- uses: andrewmcodes/rubocop-linter-action@v3.1.0
26
- env:
27
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28
- languagetool:
29
- runs-on: ubuntu-latest
30
- steps:
31
- - uses: actions/checkout@v2
32
- - uses: reviewdog/action-languagetool@v1
33
- with:
34
- github_token: ${{ secrets.github_token }}
35
- # Change reviewdog reporter if you need [github-pr-check,github-check,github-pr-review].
36
- reporter: github-pr-review
37
- # Change reporter level if you need.
38
- level: info
39
- hadolint:
40
- runs-on: ubuntu-latest
41
- steps:
42
- - name: Check out code
43
- uses: actions/checkout@v1
44
- - name: hadolint
45
- uses: reviewdog/action-hadolint@v1
46
- with:
47
- github_token: ${{ secrets.github_token }}
48
- reporter: github-pr-review
49
- fasterer:
50
- runs-on: ubuntu-latest
51
- steps:
52
- - name: Check out code
53
- uses: actions/checkout@v1
54
- - name: fasterer
55
- uses: vk26/action-fasterer@v1
56
- with:
57
- github_token: ${{ secrets.github_token }}
58
- reporter: github-pr-review
@@ -1,40 +0,0 @@
1
- ---
2
- name: RSpec
3
-
4
- on:
5
- push:
6
- branches: [ master ]
7
- pull_request:
8
- branches: [ master ]
9
-
10
- jobs:
11
- build:
12
- runs-on: ubuntu-latest
13
-
14
- steps:
15
- - uses: actions/checkout@v1
16
-
17
- - name: Set up Ruby 2.6
18
- uses: ruby/setup-ruby@v1
19
- with:
20
- ruby-version: 2.6.6
21
-
22
- - uses: actions/cache@v1
23
- with:
24
- path: vendor/bundle
25
- key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
26
- restore-keys: |
27
- ${{ runner.os }}-gems-
28
-
29
- - name: Build
30
- env:
31
- RAILS_ENV: test
32
- run: |
33
- gem install bundler
34
- bundle config path vendor/bundle
35
- bundle install --jobs 4 --retry 3
36
- - name: Run tests
37
- env:
38
- RAILS_ENV: test
39
- run: |
40
- bundle exec rake test
@@ -1 +0,0 @@
1
- 2.6.6
@@ -1,21 +0,0 @@
1
- ---
2
- sudo: false
3
-
4
- language: ruby
5
-
6
- cache: bundler
7
-
8
- rvm:
9
- - 2.3.8
10
- - 2.4.7
11
- - 2.5.7
12
- - 2.6.6
13
- - ruby-head
14
-
15
- before_install:
16
- - gem install bundler -v 2.0.1
17
-
18
- script: "bundle exec rake test"
19
-
20
- notifications:
21
- email: false
data/Aptfile DELETED
File without changes
data/Dockerfile DELETED
@@ -1,45 +0,0 @@
1
- FROM ruby:2.6.6-alpine AS development
2
-
3
- LABEL maintainer="Mike Rogers <me@mikerogers.io>"
4
-
5
- # Install the Essentials
6
- ENV BUILD_DEPS="curl tar wget linux-headers bash" \
7
- DEV_DEPS="ruby-dev build-base postgresql-dev zlib-dev libxml2-dev libxslt-dev readline-dev tzdata git nodejs vim sqlite-dev"
8
-
9
- RUN apk add --update --upgrade $BUILD_DEPS $DEV_DEPS
10
-
11
- # Add the current apps files into docker image
12
- RUN mkdir -p /usr/src/app
13
- WORKDIR /usr/src/app
14
-
15
- # Install any extra dependencies via Aptfile
16
- COPY Aptfile /usr/src/app/Aptfile
17
- RUN apk add --update $(cat /usr/src/app/Aptfile | xargs)
18
-
19
- # Set up environment
20
- ENV PATH /usr/src/app/bin:$PATH
21
-
22
- # Add some helpers to reduce typing when inside the containers
23
- RUN echo 'alias bx="bundle exec"' >> ~/.bashrc
24
-
25
- # Set ruby version
26
- COPY .ruby-version /usr/src/app
27
-
28
- # Install latest bundler
29
- RUN gem update --system && gem install bundler:2.0.2
30
- RUN bundle config --global silence_root_warning 1 && echo -e 'gem: --no-document' >> /etc/gemrc
31
-
32
- RUN mkdir -p /usr/src/bundler
33
- RUN bundle config path /usr/src/bundler
34
-
35
- CMD ["bundle", "exec", "rake", "spec"]
36
-
37
- FROM development AS production
38
-
39
- # Install Ruby Gems
40
- COPY Gemfile /usr/src/app
41
- COPY Gemfile.lock /usr/src/app
42
- RUN bundle check || bundle install --jobs=$(nproc)
43
-
44
- # Copy the rest of the app
45
- COPY . /usr/src/app
@@ -1,20 +0,0 @@
1
- ---
2
- # Docker Compose 2.4 is for local development
3
- # https://www.heroku.com/podcasts/codeish/57-discussing-docker-containers-and-kubernetes-with-a-docker-captain - Source on that.
4
- version: '2.4'
5
-
6
- services:
7
- web:
8
- image: puma-ngrok-tunnel:latest
9
- build:
10
- context: .
11
- dockerfile: Dockerfile
12
- target: development
13
- env_file:
14
- - .env
15
- command: >
16
- bash -c "bundle check || bundle install &&
17
- bundle exec rake spec"
18
- volumes:
19
- - .:/usr/src/app
20
- - ~/.docker-data/ruby/2.6.6/bundler:/usr/src/bundler:delegated