polaris_view_components 0.13.2 → 0.13.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/install/install.rb +1 -1
- data/lib/polaris/view_components/engine.rb +3 -0
- data/lib/polaris/view_components/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4cbe2969821b1e97f67438c8b85d8b3a2a1e349364749bceb7e07036e635340d
|
4
|
+
data.tar.gz: a2c0dc705e81c64131df2a9b67963d08b0f4ef7609eaba8539921b739c5266b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39d0334ca5d4cac8981bf046474a0bc86d399f2a74941edaf89624efd870724d2e9e7160abbb638093846017a7a6760bb3fdd41109ee85e31defae11aa749166
|
7
|
+
data.tar.gz: 2e330a644a4e71be69e5ecdc911c274162f8548f81e1d5d438b1a245c2506ecd78392a2f099f16dae235737f8bfee67d8f23cee42728268fd061be266a48c7b3
|
data/README.md
CHANGED
@@ -26,10 +26,10 @@ Render Polaris ViewComponents:
|
|
26
26
|
|
27
27
|
## Installation
|
28
28
|
|
29
|
-
Add to
|
29
|
+
Add `polaris_view_components` to your Gemfile:
|
30
30
|
|
31
|
-
```
|
32
|
-
|
31
|
+
```bash
|
32
|
+
bundle add polaris_view_components
|
33
33
|
```
|
34
34
|
|
35
35
|
Run installer:
|
data/lib/install/install.rb
CHANGED
@@ -30,7 +30,7 @@ if IMPORTMAP_BINSTUB.exist?
|
|
30
30
|
|
31
31
|
say "Pin polaris_view_components"
|
32
32
|
append_to_file IMPORTMAP_CONFIG_PATH do
|
33
|
-
|
33
|
+
%(pin "polaris-view-components", to: "polaris_view_components.js"\n)
|
34
34
|
end
|
35
35
|
else
|
36
36
|
package_json = File.read(Rails.root.join("package.json"))
|
@@ -36,7 +36,10 @@ module Polaris
|
|
36
36
|
|
37
37
|
initializer "polaris_view_components.helpers" do
|
38
38
|
ActiveSupport.on_load(:action_controller_base) do
|
39
|
+
require "polaris/view_helper"
|
39
40
|
helper Polaris::ViewHelper
|
41
|
+
|
42
|
+
require "polaris/url_helper"
|
40
43
|
helper Polaris::UrlHelper
|
41
44
|
end
|
42
45
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: polaris_view_components
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.13.
|
4
|
+
version: 0.13.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Gamble
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-04-
|
12
|
+
date: 2023-04-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|