mrujs_rails 0.1.0.pre.beta.10 → 0.1.0.pre.beta.16

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: f89894954fa7d5649020d552ce828e8c71cf908ad16aeef3c9cd59f42c22f445
4
- data.tar.gz: 01e44f8fb9e9a0f4062ee9b88a84593d2b357a9e31f566d85285e4f372a021e1
3
+ metadata.gz: b23ad71e18cb8e0952208f2b6a10dab8b1b814d1b5cba39815da8f6bea1fb52a
4
+ data.tar.gz: 5b1173f9c287817b9465730a2ac061ca979131c2fb742c107bd86a9a7dc43d8e
5
5
  SHA512:
6
- metadata.gz: '068ea187c23009cf90309aeed642595fa19036cd179aa5b6bc4d618b6e0a29c16b3320f4ec5087d725ff5c018315ec7f0bf596ede274ef00db00848867952650'
7
- data.tar.gz: 8e774d74fd6a3c50ea21ae06e7115aba48d6245d3e0561856b607fd60fe211cee24721ed9bd0521bacf3046c4bb41b439a98a7ea6d923008fa281f3a2c82656d
6
+ metadata.gz: e00853b4cc33b9226fb741b59e41a51e1a35fb0846ff39cc45a9bda4497d79e777e1829a8eb009e8682688b19bbc5b0f16810d1015fcf055e94e0d866df82b23
7
+ data.tar.gz: 55e6cf87fe17c76c9a0ed9bff90408de97b351906a680669615e4df762f8704cc3b0ba6a588a757e65b18c32f6a5e4f80091ac17496fcf2a59fbea45bfed8404
data/lib/mrujs_rails.rb CHANGED
@@ -4,3 +4,4 @@ require "mrujs_rails/engine"
4
4
  module MrujsRails
5
5
  # Your code goes here...
6
6
  end
7
+
@@ -24,10 +24,10 @@ module MrujsRails
24
24
  action = action.to_s
25
25
  visit_action = action == "advance" ? action : "replace"
26
26
 
27
- response.content_type =
28
- response.headers["X-Xhr-Redirect"] = location
29
- response.headers["TURBOLINKS-REDIRECT-ACTION"] = visit_action
30
- response.headers["TURBOLINKS-REDIRECT-LOCATION"] = location
27
+ response.set_header("X-Xhr-Redirect", location)
28
+ response.set_header("TURBOLINKS-REDIRECT-ACTION", visit_action)
29
+ response.set_header("TURBOLINKS-REDIRECT-LOCATION", location)
30
+ response.content_type = Mime[:turbolinks]
31
31
  end
32
32
 
33
33
  def store_turbolinks_location_in_session(location)
@@ -35,9 +35,9 @@ module MrujsRails
35
35
  end
36
36
 
37
37
  def set_turbolinks_location_header_from_session
38
- if session && session[:_turbolinks_location]
39
- response.headers["Turbolinks-Location"] = session.delete(:_turbolinks_location)
40
- end
38
+ return unless session && session[:_turbolinks_location]
39
+
40
+ response.set_header("Turbolinks-Location", session.delete(:_turbolinks_location))
41
41
  end
42
42
  end
43
43
  end
@@ -1,3 +1,3 @@
1
1
  module MrujsRails
2
- VERSION = "0.1.0-beta.10"
2
+ VERSION = "0.1.0-beta.16"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mrujs_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.beta.10
4
+ version: 0.1.0.pre.beta.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - ParamagicDev
@@ -15,22 +15,22 @@ dependencies:
15
15
  name: rails
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - "~>"
19
- - !ruby/object:Gem::Version
20
- version: 6.1.3
21
18
  - - ">="
22
19
  - !ruby/object:Gem::Version
23
- version: 6.1.3.2
20
+ version: '5.2'
21
+ - - "<="
22
+ - !ruby/object:Gem::Version
23
+ version: '7'
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
27
27
  requirements:
28
- - - "~>"
29
- - !ruby/object:Gem::Version
30
- version: 6.1.3
31
28
  - - ">="
32
29
  - !ruby/object:Gem::Version
33
- version: 6.1.3.2
30
+ version: '5.2'
31
+ - - "<="
32
+ - !ruby/object:Gem::Version
33
+ version: '7'
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: standardrb
36
36
  requirement: !ruby/object:Gem::Requirement