puma-ngrok-tunnel 0.1.3 → 0.1.5

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: a7a0adcb24ba13839bd5b9b81e2ca4f5d3dbff38a0709b77979ee622734d3920
4
- data.tar.gz: a3d4d030755c8166aac1150dfeb6a01584b474943223c6c6571a710ea4e18f7f
3
+ metadata.gz: da05b0f54b76f5146ecc03c1f4e37cb7fda68dc208e019eb333c68c4acf1d75f
4
+ data.tar.gz: 79b6d96ba674be68fbe0de192e4ae42007fb63976e899ae28301e65d57f77a0d
5
5
  SHA512:
6
- metadata.gz: c3b128ff5c9f3592d6934f148ba5293ded844e6c19a98dc068165bacd0da2e90e27c788e9e72cf318587b5d6892c5da442e1435978852453d1d7494e7363a08f
7
- data.tar.gz: 8ba4e10c07f6436e2a68385b67476416e663128ea3f34d40eaccd448ce64aec6deec054922fb26774fc742eb47cbbe94ca3ef72b82f00f154c00b6067916e127
6
+ metadata.gz: 73a5163f3e1a4380c336085cc58ca18258a6bf0b665fe5ea8309a79da37e249ae85ad9b7601c55a17fcbe65dccc25ca710aeca0e9276827282745ea1400cd89a
7
+ data.tar.gz: d2f49d41b47aac19ad32d9638f2f4a0d38815a09c9992b5a9e2757894fc72e331fdd7be837e90fa9ea554186033062c412b9b3dea8d9cbc0995bd58eeedbc5d6
@@ -0,0 +1 @@
1
+ 2.6.5
@@ -1,7 +1,21 @@
1
1
  ---
2
2
  sudo: false
3
+
3
4
  language: ruby
5
+
4
6
  cache: bundler
7
+
5
8
  rvm:
6
- - 2.6.3
7
- before_install: gem install bundler -v 2.0.1
9
+ - 2.3.8
10
+ - 2.4.7
11
+ - 2.5.7
12
+ - 2.6.5
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
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.5
4
+
5
+ * [Update rake requirement from ~> 12.3 to ~> 13.0](https://github.com/MikeRogers0/puma-ngrok-tunnel/pull/8)
6
+ * [Adding ngrok error exception handler](https://github.com/MikeRogers0/puma-ngrok-tunnel/pull/9)
7
+ * [Adding boilerplate gem files](https://github.com/MikeRogers0/puma-ngrok-tunnel/pull/10)
8
+ * [Updating CI to test against latest patch versions of Ruby](https://github.com/MikeRogers0/puma-ngrok-tunnel/pull/11)
9
+
10
+ ## 0.1.4
11
+
12
+ * [Adding more ruby versions into travis CI](https://github.com/MikeRogers0/puma-ngrok-tunnel/pull/7)
13
+
3
14
  ## 0.1.3
4
15
 
5
16
  * [Update puma requirement from ~> 3.0 to >= 3, < 5](https://github.com/MikeRogers0/puma-ngrok-tunnel/pull/3)
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at me@mikerogers.io. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile CHANGED
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  source 'https://rubygems.org'
4
2
 
5
3
  # Specify your gem's dependencies in puma-heroku.gemspec
@@ -1,6 +1,6 @@
1
- The MIT License (MIT)
1
+ MIT License
2
2
 
3
- Copyright (c) 2016 Evan Phoenix
3
+ Copyright (c) 2019 Mike Rogers
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -9,13 +9,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
9
  copies of the Software, and to permit persons to whom the Software is
10
10
  furnished to do so, subject to the following conditions:
11
11
 
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
14
 
15
15
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
16
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
17
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/Rakefile CHANGED
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  require 'bundler/gem_tasks'
4
2
  require 'rake/testtask'
5
3
 
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require 'puma'
5
+ require 'puma/plugin'
6
+ require 'puma/plugin/ngrok_tunnel'
7
+ require 'puma-ngrok-tunnel/version'
8
+
9
+ # You can add fixtures and/or initialization code here to make experimenting
10
+ # with your gem easier. You can also use a different console, if you like.
11
+
12
+ # (If you use this, don't forget to add pry to your Gemfile!)
13
+ # require "pry"
14
+ # Pry.start
15
+
16
+ require "irb"
17
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  module PumaNgrokTunnel
4
- VERSION = '0.1.3'
2
+ VERSION = '0.1.5'
5
3
  end
@@ -1,4 +1,3 @@
1
- # frozen_string_literal: true
2
1
  require 'ngrok/tunnel'
3
2
 
4
3
  Puma::Plugin.create do
@@ -15,7 +14,11 @@ Puma::Plugin.create do
15
14
  private
16
15
 
17
16
  def ngrok_start!
18
- puts '[puma-ngrok-tunnel] Tunneling at: ' + Ngrok::Tunnel.start(options)
17
+ begin
18
+ puts '[puma-ngrok-tunnel] Tunneling at: ' + Ngrok::Tunnel.start(options)
19
+ rescue Ngrok::Error => e
20
+ puts '[puma-ngrok-tunnel] Unable to start tunnel: ' + e.to_s
21
+ end
19
22
  end
20
23
 
21
24
  def ngrok_stop!
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  lib = File.expand_path('lib', __dir__)
4
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
3
  require 'puma-ngrok-tunnel/version'
@@ -37,6 +35,6 @@ Gem::Specification.new do |spec|
37
35
 
38
36
  spec.add_development_dependency 'bundler', '~> 2.0'
39
37
  spec.add_development_dependency 'minitest', '~> 5.0'
40
- spec.add_development_dependency 'rake', '~> 12.3'
38
+ spec.add_development_dependency 'rake', '~> 13.0'
41
39
  spec.add_development_dependency 'simplecov', '~> 0.17.0'
42
40
  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.3
4
+ version: 0.1.5
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-07-04 00:00:00.000000000 Z
11
+ date: 2019-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ngrok-tunnel
@@ -84,14 +84,14 @@ dependencies:
84
84
  requirements:
85
85
  - - "~>"
86
86
  - !ruby/object:Gem::Version
87
- version: '12.3'
87
+ version: '13.0'
88
88
  type: :development
89
89
  prerelease: false
90
90
  version_requirements: !ruby/object:Gem::Requirement
91
91
  requirements:
92
92
  - - "~>"
93
93
  - !ruby/object:Gem::Version
94
- version: '12.3'
94
+ version: '13.0'
95
95
  - !ruby/object:Gem::Dependency
96
96
  name: simplecov
97
97
  requirement: !ruby/object:Gem::Requirement
@@ -115,12 +115,16 @@ extra_rdoc_files: []
115
115
  files:
116
116
  - ".gitignore"
117
117
  - ".rubocop.yml"
118
+ - ".ruby-version"
118
119
  - ".travis.yml"
119
120
  - CHANGELOG.md
121
+ - CODE_OF_CONDUCT.md
120
122
  - Gemfile
121
- - LICENSE.txt
123
+ - LICENSE
122
124
  - README.md
123
125
  - Rakefile
126
+ - bin/console
127
+ - bin/setup
124
128
  - lib/puma-ngrok-tunnel/version.rb
125
129
  - lib/puma/plugin/ngrok_tunnel.rb
126
130
  - puma-ngrok-tunnel.gemspec