bridgetown-routes 1.0.0.alpha7 → 1.0.0.alpha11

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: dcd02f991a4e93157657cdcc8a8bb8fbb5dd31b8f7362115c35b93eb4e0f4440
4
- data.tar.gz: 0ffd18f98b4a0b5d4e2fbd65cf539ad86c3d450351e5a9bc180501c4ca84877e
3
+ metadata.gz: 1afa75940aaab9ee8ab8c9925c4eed337658265ddabc5c792d9b14862cfc6896
4
+ data.tar.gz: f9e70183de13377514f87c92a0f8375abcfe67ec35aaf9c5f1b466417f2cdc87
5
5
  SHA512:
6
- metadata.gz: 1a337e4d65fa2c54b449c6a2838214891d646061929dceb3285f10184826fd25e67de6c1960f7f82d7ba6af5957677c707034555ffa04581f99d2c48404fe3db
7
- data.tar.gz: 39137b4297418ed2edec3ba8087449e4d0e8118787aa373ba7cf29bb04ae15be8f392ca718358388f3dc978a63c93cf0a9fc839938a963c52a011226714e9861
6
+ metadata.gz: d9575f62e73f218fbfb7fc90a03616a514b81af3cdf2d97812087e6cdb2d00d19bbce9f148674585b0c3dd28eaa0619567967146225ed5f716dcf02057dcfa42
7
+ data.tar.gz: 93be77538fb076310bfeb9693a6fbabaee353fef78ad983d56603d751a477cdb0d92b1350fce4647af41e34e044a42183713a739e3215e271c1802dbc4a2d942
@@ -37,8 +37,7 @@ module Bridgetown
37
37
  end
38
38
 
39
39
  code = <<~RUBY
40
- r = app.request
41
- add_route(#{file_slug.inspect}, #{code_postmatch.inspect}) do
40
+ add_route(#{file_slug.inspect}, #{code_postmatch.inspect}) do |r|
42
41
  #{code}
43
42
  end
44
43
  RUBY
@@ -23,7 +23,7 @@ module Bridgetown
23
23
  response.instance_variable_set(
24
24
  :@_route_file_code, route_block.instance_variable_get(:@_route_file_code)
25
25
  ) # could be nil
26
- app.instance_exec(&route_block)
26
+ app.instance_exec(r, &route_block)
27
27
  end
28
28
  end
29
29
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bridgetown-routes
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.alpha7
4
+ version: 1.0.0.alpha11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bridgetown Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-05 00:00:00.000000000 Z
11
+ date: 2021-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bridgetown-core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 1.0.0.alpha7
19
+ version: 1.0.0.alpha11
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 1.0.0.alpha7
26
+ version: 1.0.0.alpha11
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: roda-route_list
29
29
  requirement: !ruby/object:Gem::Requirement