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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 61d82658795a2c139e0a018965d52c9a0118a3957934e2dbca082b234514bc29
4
- data.tar.gz: bb6c3ef83b150b284cd380c69955812d1d9aece3a1554813cf95ae668276f2ea
3
+ metadata.gz: 93060aa05b8e9c5721237fd6e1799f1405ec8092b7503f050036cc05762fef83
4
+ data.tar.gz: f4e386bf1424f4bbed3f93a028c3d4f6efdc42af13ef7e96f811d15b755794c9
5
5
  SHA512:
6
- metadata.gz: 77f1b4beab7f09c7484dd112067c768e59fab31d5bcd0cab42cb4e46db9304fea511a358da58a5221b31b2cdadfa1ab938db88dd0370ce23115c16047a82f538
7
- data.tar.gz: 1d8c5c3aca4c82ee45f6c7bc14a2820b89273920dd5545af5048d54f7a56e35fcef2b42c3ffb9f6e22efcccb7cefbf36eb8583a3438b574ad5d5b3f22b76b6c2
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.12.0'
5
- %[<link rel="stylesheet" href="https://unpkg.com/@shopify/polaris@#{version}/dist/styles.css" />].html_safe
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
@@ -1,3 +1,3 @@
1
1
  module PolarisViewHelpers
2
- VERSION = "1.1.6"
2
+ VERSION = "1.2.0"
3
3
  end
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.1.6
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: 2021-10-15 00:00:00.000000000 Z
11
+ date: 2022-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails