polaris_view_components 1.4.3 → 1.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/components/polaris/headless_button.rb +1 -1
- data/app/components/polaris/spinner_component.rb +1 -1
- data/app/components/polaris/text_field_component.rb +1 -1
- data/app/helpers/polaris/view_helper.rb +2 -2
- data/config/deploy.yml +37 -0
- data/lib/polaris/view_components/version.rb +1 -1
- metadata +18 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75f7125af9a191fdf20c32e483558ad7939ecfcaedbad1e20cb6e2f2ada98a5d
|
4
|
+
data.tar.gz: a6290a6c2e2d6a24bdea19fed5d02c25c9b117b21d7570eb6b1e72b4a51adc65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed4950d1ae1207e635fe6211288067bfce46836e9362bce7620fee80e0a1287901abd1d737f2f98a5af07f32bc557d3a38c740c34f1b9620604d866b07f65344
|
7
|
+
data.tar.gz: 5512a683d013b3a279d2d04b51740efb4067eabbc56aa7eed62910474852f2e12c219e7ab4fb93aa1c037440e555fa5f589eba4aa51595cfe3313132570953ce
|
@@ -87,7 +87,7 @@ module Polaris
|
|
87
87
|
"Polaris-Button--plain": plain,
|
88
88
|
"Polaris-Button--primary": primary,
|
89
89
|
"Polaris-Button--pressed": pressed,
|
90
|
-
"Polaris-Button--removeUnderline":
|
90
|
+
"Polaris-Button--removeUnderline": plain && monochrome && remove_underline
|
91
91
|
)
|
92
92
|
end
|
93
93
|
|
@@ -163,7 +163,7 @@ module Polaris
|
|
163
163
|
"Polaris-TextField__Input--suffixed": @suffix.present?
|
164
164
|
)
|
165
165
|
if @clear_errors_on_focus
|
166
|
-
prepend_option(opts[:data], :action, "
|
166
|
+
prepend_option(opts[:data], :action, "click->polaris-text-field#clearErrorMessages")
|
167
167
|
end
|
168
168
|
prepend_option(opts[:data], :action, "polaris-text-field#syncValue")
|
169
169
|
end
|
@@ -87,14 +87,14 @@ module Polaris
|
|
87
87
|
}.freeze
|
88
88
|
# standard:enable Layout/HashAlignment
|
89
89
|
POLARIS_HELPERS.each do |name, component|
|
90
|
-
define_method "polaris_#{name}" do |*args, **kwargs, &block|
|
90
|
+
define_method :"polaris_#{name}" do |*args, **kwargs, &block|
|
91
91
|
render component.constantize.new(*args, **kwargs), &block
|
92
92
|
end
|
93
93
|
end
|
94
94
|
|
95
95
|
POLARIS_TEXT_STYLES = %i[subdued strong positive negative code].freeze
|
96
96
|
POLARIS_TEXT_STYLES.each do |name|
|
97
|
-
define_method "polaris_text_#{name}" do |**kwargs, &block|
|
97
|
+
define_method :"polaris_text_#{name}" do |**kwargs, &block|
|
98
98
|
polaris_text_style(variation: name, **kwargs, &block)
|
99
99
|
end
|
100
100
|
end
|
data/config/deploy.yml
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
service: polaris_view_components
|
2
|
+
image: kirillplatonov/polaris_view_components
|
3
|
+
|
4
|
+
registry:
|
5
|
+
username: kirillplatonov
|
6
|
+
password:
|
7
|
+
- KAMAL_REGISTRY_PASSWORD
|
8
|
+
|
9
|
+
env:
|
10
|
+
secret:
|
11
|
+
- RAILS_MASTER_KEY
|
12
|
+
|
13
|
+
servers:
|
14
|
+
web:
|
15
|
+
hosts:
|
16
|
+
- 195.201.128.126
|
17
|
+
labels:
|
18
|
+
traefik.http.routers.polaris_view_components.entrypoints: websecure
|
19
|
+
traefik.http.routers.polaris_view_components.rule: "Host(`polarisviewcomponents.org`) || Host(`www.polarisviewcomponents.org`)"
|
20
|
+
traefik.http.routers.polaris_view_components.tls.certresolver: letsencrypt
|
21
|
+
|
22
|
+
traefik:
|
23
|
+
options:
|
24
|
+
publish:
|
25
|
+
- "443:443"
|
26
|
+
volume:
|
27
|
+
- "/letsencrypt/acme.json:/letsencrypt/acme.json"
|
28
|
+
args:
|
29
|
+
entryPoints.web.address: ":80"
|
30
|
+
entryPoints.websecure.address: ":443"
|
31
|
+
entryPoints.web.http.redirections.entryPoint.to: websecure # We want to force https
|
32
|
+
entryPoints.web.http.redirections.entryPoint.scheme: https
|
33
|
+
entryPoints.web.http.redirections.entrypoint.permanent: true
|
34
|
+
certificatesResolvers.letsencrypt.acme.email: "admin@polarisviewcomponents.org"
|
35
|
+
certificatesResolvers.letsencrypt.acme.storage: "/letsencrypt/acme.json" # Must match the path in `volume`
|
36
|
+
certificatesResolvers.letsencrypt.acme.httpchallenge: true
|
37
|
+
certificatesResolvers.letsencrypt.acme.httpchallenge.entrypoint: web
|
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: 1.4.
|
4
|
+
version: 1.4.4
|
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: 2024-
|
12
|
+
date: 2024-03-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -45,20 +45,6 @@ dependencies:
|
|
45
45
|
- - "<"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: 4.0.0
|
48
|
-
- !ruby/object:Gem::Dependency
|
49
|
-
name: capybara
|
50
|
-
requirement: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '3'
|
55
|
-
type: :development
|
56
|
-
prerelease: false
|
57
|
-
version_requirements: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '3'
|
62
48
|
- !ruby/object:Gem::Dependency
|
63
49
|
name: webdrivers
|
64
50
|
requirement: !ruby/object:Gem::Requirement
|
@@ -129,6 +115,20 @@ dependencies:
|
|
129
115
|
- - ">="
|
130
116
|
- !ruby/object:Gem::Version
|
131
117
|
version: '0'
|
118
|
+
- !ruby/object:Gem::Dependency
|
119
|
+
name: kamal
|
120
|
+
requirement: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
type: :development
|
126
|
+
prerelease: false
|
127
|
+
version_requirements: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
132
|
description:
|
133
133
|
email:
|
134
134
|
- dan@dangamble.co.uk
|
@@ -949,6 +949,7 @@ files:
|
|
949
949
|
- app/helpers/polaris/url_helper.rb
|
950
950
|
- app/helpers/polaris/view_helper.rb
|
951
951
|
- app/validators/type_validator.rb
|
952
|
+
- config/deploy.yml
|
952
953
|
- config/locales/en.yml
|
953
954
|
- lib/install/install.rb
|
954
955
|
- lib/polaris/view_components.rb
|
@@ -977,7 +978,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
977
978
|
- !ruby/object:Gem::Version
|
978
979
|
version: '0'
|
979
980
|
requirements: []
|
980
|
-
rubygems_version: 3.
|
981
|
+
rubygems_version: 3.5.6
|
981
982
|
signing_key:
|
982
983
|
specification_version: 4
|
983
984
|
summary: ViewComponents for Polaris Design System
|