jets 2.3.10 → 2.3.11

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: 113dee497dcfb7d5b41e7ee72733b54a8ecf6206d7ed191fba733dbc0272d1f4
4
- data.tar.gz: 267adf8d786e3ae605fc503cacca24f92138e73c66a196e96620877e1ac23e08
3
+ metadata.gz: beb54ab2c1991990d3be85c4e2d94f72c1f73b0e12f5a8044d379c6159709227
4
+ data.tar.gz: 49c29bf31948637c8a7eb32996dfa6abfb05bf9cc01b225a870b4eb101b03ebc
5
5
  SHA512:
6
- metadata.gz: 9f8e82be9eca4fa28753b710c82ca0a05e89dc291580062baf4fd1467619838f35888f9d037248004fe4b64c4cec792d63bca930396ff64ae61c7c28e6f4d683
7
- data.tar.gz: 3a7c9e23423b42b1f7dc9bf06b964827b6e8557f930c30ce483d9f659e66588d0cc4a81a6aa656fb0464d2aee426e02bd817675d9c546401fb3335233801838e
6
+ metadata.gz: 42b38a1514b00fb9cf3ddaecb38aee24d684ce8cee488d165632cc583ed01fa12b74501f0ec6391c2353d495f13a8fca85670c514915295af28c7e9cfe0059f9
7
+ data.tar.gz: ae08ef47dd5c96e0017d6a04151d63993dc686203c74f19cf84638822d9c3bbb7b3054e333d152bdd01942f87d6126d63c3a77d79aae7e300ed97c8ea29cd328
@@ -3,6 +3,9 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project *loosely tries* to adhere to [Semantic Versioning](http://semver.org/).
5
5
 
6
+ ## [2.3.11]
7
+ - #419 Added forward slash before script_name env variable, so that correct path get generated. As it happens Rails
8
+
6
9
  ## [2.3.10]
7
10
  - #418 Setting `ENV["SCRIPT_NAME"]` same as mount_at value.
8
11
 
@@ -44,9 +44,9 @@ private
44
44
  # remap path info
45
45
  mount_at = mount_at(path)
46
46
  path_info = env["PATH_INFO"]
47
+ env["SCRIPT_NAME"] = script_name(mount_at)
47
48
  env["PATH_INFO"] = path_info.sub(mount_at,'')
48
49
  env["ORIGINAL_PATH_INFO"] = path_info
49
- env["SCRIPT_NAME"] = mount_at
50
50
  env
51
51
  end
52
52
 
@@ -54,4 +54,10 @@ private
54
54
  def mount_at(path)
55
55
  path.gsub(/\*.*/,'')
56
56
  end
57
+
58
+ # Adding forward slash to script name, to generate proper path.
59
+ # First remove all the occurance of forward slash at the begining and then add one.
60
+ def script_name(path)
61
+ '/' + path.gsub(/^\/*/,'')
62
+ end
57
63
  end
@@ -1,3 +1,3 @@
1
1
  module Jets
2
- VERSION = "2.3.10"
2
+ VERSION = "2.3.11"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jets
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.10
4
+ version: 2.3.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-12-29 00:00:00.000000000 Z
11
+ date: 2020-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionmailer