inertia_rails 1.2.2 → 1.3.0

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: 0536ef39b6fe79eef541a105295cd99516701bc54feb5d0b1e323d58e28da62e
4
- data.tar.gz: 219c6c1b1109edca4282233e94b2b429827f1c88da172d90084c8d02b0c5ef74
3
+ metadata.gz: 684a3d8e7aa84b71947e75e79b991c9321a1b7dc86b57b3fae25cc1845518d03
4
+ data.tar.gz: 82d04030486998787f63d998a58ee4b6c3720c2e3424e9b76d937bb26a438f33
5
5
  SHA512:
6
- metadata.gz: 13fab1b82e088b1917748c5d2547c59723680a253e9268b9f29753afac8b83df89fe952cc4125ad0ccfea8ec2c6b848a901207596fcbb94ee7563c09c7a5d91b
7
- data.tar.gz: 024b161f76d4cced631537f3454092b53cf5ee48e72723a6825a9aa20bdf2ad59eaeeef72537d1971889ebac8652e6b29c8a9ed9bcd4123b11736814a39d08cf
6
+ metadata.gz: d9fd1e10102a1ab46234b855308c5d7dcb1cf04e956b972760a741b609de9e473a6a56815580ec1c059cc1f13c1b7d65950ca73d707599e5a5e28c6905000f82
7
+ data.tar.gz: e6fe87e5459eaa6e4309d165b665170ea4bcda4f7d3b4ce8c52ac7a9424d116d1672f2c2033c6ba927edaf9b40dcb5b9c6b84c5eeff64545c89a6ca48fddab93
data/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [1.3.0] - 2020-01-28
8
+
9
+ ### Added
10
+
11
+ * Added request.inertia? method
12
+
7
13
  ## [1.2.2] - 2020-01-21
8
14
 
9
15
  ### Fixed
@@ -1,3 +1,3 @@
1
1
  module InertiaRails
2
- VERSION = "1.2.2"
2
+ VERSION = "1.3.0"
3
3
  end
data/lib/inertia_rails.rb CHANGED
@@ -3,6 +3,7 @@ require 'inertia_rails/engine'
3
3
 
4
4
  require 'patches/debug_exceptions'
5
5
  require 'patches/better_errors'
6
+ require 'patches/request'
6
7
 
7
8
  ActionController::Renderers.add :inertia do |component, options|
8
9
  InertiaRails::Renderer.new(
@@ -0,0 +1,5 @@
1
+ ActionDispatch::Request.class_eval do
2
+ def inertia?
3
+ key? 'HTTP_X_INERTIA'
4
+ end
5
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inertia_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Knoles
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2020-01-22 00:00:00.000000000 Z
13
+ date: 2020-01-29 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
@@ -132,6 +132,7 @@ files:
132
132
  - lib/patches/debug_exceptions/patch-4-2.rb
133
133
  - lib/patches/debug_exceptions/patch-5-0.rb
134
134
  - lib/patches/debug_exceptions/patch-5-1.rb
135
+ - lib/patches/request.rb
135
136
  homepage: https://github.com/inertiajs/inertia-rails/
136
137
  licenses:
137
138
  - MIT