mpp-rb 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 04e4e82ccc2c911599a59b725c6e57baf05244119b60fc53c8d04fe2973c55ec
4
- data.tar.gz: 298544b059706fa7de2b2845f93d3e7e061dd6c9a7cf2e27aae9a485418bf2ac
3
+ metadata.gz: e5d5c20207eb5f09b4f077cea8bdd1fb1f2acc15d12c5d00928cc7e8eddcf627
4
+ data.tar.gz: 1f080945c2a322985b47d184ccaf00b543931bcb6f4623c070175d03efab5cd8
5
5
  SHA512:
6
- metadata.gz: e387986b40d742b24fa10c2b6dc455d157ffa325b7bb33efe53b7ab2e2742cbf97840fbb663c652611bf7255c8ea46e6d525458e825529138f4e18437510c9d2
7
- data.tar.gz: 9879963916f463a68568bcb0b7e219d12402a4344db77d324ba877ded2e95bf2110826aa9cff7cb02328f1dbd9e3905b9a7c3d43787159c8bb568a371017a1e7
6
+ metadata.gz: 7044c78ebef4814fce755614c194a6723c39df930071762aab94e19e944bb241f33bfd554fdc18ed0ef5f7b3f9cdc9d219923ab4a9aac6278e94896069b2634c
7
+ data.tar.gz: d71d6869c20d1a569a0425cde39dd39938688735d0360db47fe82f80ac454f3d4ec015624f942c1bf1760c271e9297ca848300ac63d5d0366496b57a2475efc6
@@ -231,6 +231,8 @@ module Mpp
231
231
  sig { params(env: T.untyped).returns(T::Hash[String, String]) }
232
232
  def mppx_scope(env)
233
233
  scope = T.let({}, T::Hash[String, String])
234
+ http_method = env["REQUEST_METHOD"]
235
+ scope["method"] = http_method if http_method.is_a?(String) && !http_method.empty?
234
236
  route = env["action_dispatch.route_uri_pattern"] || env["sinatra.route"] || env["roda.route"]
235
237
  route = route.split(" ", 2).last if route.is_a?(String) && route.match?(/\A[A-Z]+\s+/)
236
238
  scope["route"] = route if route.is_a?(String) && !route.empty?
data/lib/mpp/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Mpp
5
- VERSION = "0.1.7"
5
+ VERSION = "0.1.8"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mpp-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe