inertia_rails 1.2.0 → 1.2.1
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 +4 -4
- data/.github/workflows/push.yml +26 -0
- data/.gitignore +1 -0
- data/CHANGELOG.md +7 -0
- data/lib/inertia_rails/controller.rb +4 -2
- data/lib/inertia_rails/renderer.rb +1 -1
- data/lib/inertia_rails/version.rb +1 -1
- metadata +3 -3
- data/.travis.yml +0 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 85021602526f07e26abfe34c9fec6e2a6e7dfd30723c5a95691c5973a28960cc
|
|
4
|
+
data.tar.gz: 8e57db120b7b33f1205b06793baf7c6dfce435f006b70ab8b6f9a9a3b6d48921
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7f4c8715da18542911ef0dea66e97935b8c3322d28d497c655ef62b2372394f4c4eb392dbdafafd5212c0e6fb2e92eb8980e444223de84f888673e32057780a7
|
|
7
|
+
data.tar.gz: c23988c55e8ce4b454bfdfe77b8c7f6e31e0fa6fe0260aa11f73e8051f5e0673828ff4b91ce26184b85b85891698d0bfbd067433a9e0e062f95fe2a43a1ff4dd
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
name: Testing
|
|
2
|
+
|
|
3
|
+
on: [push]
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
test:
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
|
|
9
|
+
steps:
|
|
10
|
+
- uses: actions/checkout@v1
|
|
11
|
+
|
|
12
|
+
- name: Setup System
|
|
13
|
+
run: sudo apt-get install libsqlite3-dev
|
|
14
|
+
|
|
15
|
+
- name: Set up Ruby 2.6
|
|
16
|
+
uses: actions/setup-ruby@v1
|
|
17
|
+
with:
|
|
18
|
+
ruby-version: 2.6.x
|
|
19
|
+
|
|
20
|
+
- name: Install gems
|
|
21
|
+
run: |
|
|
22
|
+
gem install bundler
|
|
23
|
+
bundle install --jobs 4 --retry 3
|
|
24
|
+
|
|
25
|
+
- name: Run tests
|
|
26
|
+
run: bundle exec rake
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,13 @@ 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.2.1] - 2019-12-6
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
* Change page url to use path instead of url
|
|
12
|
+
* Moved Inertia Share logic to a before_action to ensure it runs on every request
|
|
13
|
+
|
|
7
14
|
## [1.2.0] - 2019-11-1
|
|
8
15
|
|
|
9
16
|
### Added
|
|
@@ -6,8 +6,10 @@ module InertiaRails
|
|
|
6
6
|
|
|
7
7
|
module ClassMethods
|
|
8
8
|
def inertia_share(**args, &block)
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
before_action do
|
|
10
|
+
InertiaRails.share(args) if args
|
|
11
|
+
InertiaRails.share_block(block) if block
|
|
12
|
+
end
|
|
11
13
|
end
|
|
12
14
|
end
|
|
13
15
|
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.
|
|
4
|
+
version: 1.2.1
|
|
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: 2019-
|
|
13
|
+
date: 2019-12-06 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: bundler
|
|
@@ -105,9 +105,9 @@ executables: []
|
|
|
105
105
|
extensions: []
|
|
106
106
|
extra_rdoc_files: []
|
|
107
107
|
files:
|
|
108
|
+
- ".github/workflows/push.yml"
|
|
108
109
|
- ".gitignore"
|
|
109
110
|
- ".rspec"
|
|
110
|
-
- ".travis.yml"
|
|
111
111
|
- CHANGELOG.md
|
|
112
112
|
- CODE_OF_CONDUCT.md
|
|
113
113
|
- Gemfile
|