polaris_view_helpers 1.1.6 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/polaris_view_helpers/helper.rb +7 -2
- data/lib/polaris_view_helpers/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: 93060aa05b8e9c5721237fd6e1799f1405ec8092b7503f050036cc05762fef83
|
4
|
+
data.tar.gz: f4e386bf1424f4bbed3f93a028c3d4f6efdc42af13ef7e96f811d15b755794c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3333c36e82810ef93ecd07a2dac1b00e9e675eed9f24984606625dcc62c6b4299f3663f37c42b2825f44bcf5621dd08e73aade92b0552794ff90e08e889fe7e2
|
7
|
+
data.tar.gz: 94ca7c146facc3fbf0682c199104b826af5e992706a1beb0350e6c21b8c13777fcadab1d8192b6f980e4baeacc36fcd24f5ae5d960940e821b96752719e38b77
|
@@ -1,8 +1,13 @@
|
|
1
1
|
module PolarisViewHelpers
|
2
2
|
module Helper
|
3
3
|
|
4
|
-
def polaris_css version = '5.
|
5
|
-
|
4
|
+
def polaris_css version = '7.5.0'
|
5
|
+
major_version = version.split('.').first.to_i
|
6
|
+
if major_version <= 6
|
7
|
+
%[<link rel="stylesheet" href="https://unpkg.com/@shopify/polaris@#{version}/dist/styles.css" />].html_safe
|
8
|
+
else
|
9
|
+
%[<link rel="stylesheet" href="https://unpkg.com/@shopify/polaris@#{version}/build/esm/styles.css" />].html_safe
|
10
|
+
end
|
6
11
|
end
|
7
12
|
|
8
13
|
def polaris_random_input_name
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: polaris_view_helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Green
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|