rollout-ui 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/lib/rollout/ui/version.rb +1 -1
- data/lib/rollout/ui/views/features/show.slim +55 -50
- data/rollout-ui.gemspec +2 -1
- metadata +30 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a1ec80944aa3ae6f4c7fc142dceb5b0f5f87d111a3a9cec771be3325d5996a8
|
4
|
+
data.tar.gz: df9d961f8306cdfd1bd377d6bb6629238c4e2f8ea901c796f27442f03bfa85c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 952b01c7614a32d8f2ecd7b94f54f02fe8b0483314c1861065c93400ffa7abd6bba639e47639a0ce084fc173ae3b002944ad21bce9bc504273a3cb7c6fa2785e
|
7
|
+
data.tar.gz: 59bcfcb7bbfa61c371b16e692f14afe9b30b7b50b2072eede8849d8c9267b3d54012e1fd8db79571c009b55523f8bc450d13b125e766e9b7ed835c7bf28fc5cb
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
3.1.0
|
data/lib/rollout/ui/version.rb
CHANGED
@@ -5,64 +5,69 @@ h2.font-semibold.text-xl.text-gray-500.pt-12
|
|
5
5
|
= @feature.name
|
6
6
|
|
7
7
|
.w-8.h-1.bg-gray-300.my-10
|
8
|
+
main.p-6.bg-gray-100.max-w-lg.w-full.text-sm.rounded-sm
|
9
|
+
form#updateFormSubmit action=feature_path(@feature.name) method='POST'
|
10
|
+
.mb-5
|
11
|
+
label.block.text-gray-500.mb-2(for='description') Description
|
12
|
+
input.appearance-none.border.rounded-sm.w-full.py-2.px-4.text-gray-600.leading-relaxed.bg-white(
|
13
|
+
name='description'
|
14
|
+
id='description'
|
15
|
+
value=@feature.data['description']
|
16
|
+
class='hover:border-gray-500'
|
17
|
+
)
|
8
18
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
id='
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
| (multi-select)
|
24
|
-
select.block.appearance-none.w-full.bg-white.border.border-gray-300.px-4.py-3.rounded-sm.leading-relaxed(name="groups[]" id='groups' multiple=true size=(@rollout.groups.count + 1))
|
25
|
-
option.py-1.px-1(value='' selected=(@feature.groups.count == 0))
|
26
|
-
= '(none)'
|
27
|
-
- @rollout.groups.each do |group|
|
28
|
-
option.py-1.px-1(
|
29
|
-
value=group
|
30
|
-
selected=@feature.groups.include?(group)
|
31
|
-
)
|
32
|
-
= group
|
33
|
-
|
34
|
-
.mb-5
|
35
|
-
label.block.text-gray-500.mb-2(for='percentage') Percentage
|
36
|
-
input.appearance-none.border.rounded-sm.w-full.py-2.px-4.text-gray-600.leading-relaxed.bg-white(
|
37
|
-
name='percentage'
|
38
|
-
id='percentage'
|
39
|
-
value=@feature.percentage
|
40
|
-
class='hover:border-gray-500'
|
41
|
-
type='number'
|
42
|
-
step='0.1'
|
43
|
-
)
|
44
|
-
|
45
|
-
.mb-5
|
46
|
-
label.block.text-gray-500.mb-2 Users
|
19
|
+
.mb-5
|
20
|
+
label.block.text-gray-500.mb-2(for='groups')
|
21
|
+
| Groups
|
22
|
+
span.ml-1.text-gray-400
|
23
|
+
| (multi-select)
|
24
|
+
select.block.appearance-none.w-full.bg-white.border.border-gray-300.px-4.py-3.rounded-sm.leading-relaxed(name="groups[]" id='groups' multiple=true size=(@rollout.groups.count + 1))
|
25
|
+
option.py-1.px-1(value='' selected=(@feature.groups.count == 0))
|
26
|
+
= '(none)'
|
27
|
+
- @rollout.groups.each do |group|
|
28
|
+
option.py-1.px-1(
|
29
|
+
value=group
|
30
|
+
selected=@feature.groups.include?(group)
|
31
|
+
)
|
32
|
+
= group
|
47
33
|
|
48
|
-
-
|
49
|
-
.
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
id='users'
|
55
|
-
value=@feature.users.join(', ')
|
34
|
+
.mb-5
|
35
|
+
label.block.text-gray-500.mb-2(for='percentage') Percentage
|
36
|
+
input.appearance-none.border.rounded-sm.w-full.py-2.px-4.text-gray-600.leading-relaxed.bg-white(
|
37
|
+
name='percentage'
|
38
|
+
id='percentage'
|
39
|
+
value=@feature.percentage
|
56
40
|
class='hover:border-gray-500'
|
57
|
-
|
41
|
+
type='number'
|
42
|
+
step='0.1'
|
58
43
|
)
|
59
|
-
|
44
|
+
|
45
|
+
.mb-5
|
46
|
+
label.block.text-gray-500.mb-2 Users
|
47
|
+
|
48
|
+
- if @feature.users.count > 150
|
49
|
+
.appearance-none.border.rounded-sm.w-full.py-2.px-4.text-gray-600.leading-relaxed.bg-gray-100
|
50
|
+
= @feature.users.count
|
51
|
+
- else
|
52
|
+
textarea.appearance-none.border.rounded-sm.w-full.py-2.px-4.text-gray-600.leading-relaxed.bg-white(
|
53
|
+
name='users'
|
54
|
+
id='users'
|
55
|
+
value=@feature.users.join(', ')
|
56
|
+
class='hover:border-gray-500'
|
57
|
+
rows='2'
|
58
|
+
)
|
59
|
+
= @feature.users.join(', ')
|
60
60
|
|
61
61
|
.flex.items-center.justify-end
|
62
62
|
form action=delete_feature_path(@feature.name) method='POST'
|
63
63
|
button.mr-5.text-gray-600(class='hover:underline' type='submit' onclick="return confirm('Are you sure you want to delete #{@feature.name}?')")
|
64
|
-
|
65
|
-
button.py-4.px-5.bg-gray-700.text-gray-200.rounded-sm.font-bold.leading-none.transition-colors.duration-200(
|
64
|
+
| Delete
|
65
|
+
button.py-4.px-5.bg-gray-700.text-gray-200.rounded-sm.font-bold.leading-none.transition-colors.duration-200(
|
66
|
+
type='submit'
|
67
|
+
class='hover:bg-gray-800'
|
68
|
+
form='updateFormSubmit'
|
69
|
+
)
|
70
|
+
| Update
|
66
71
|
|
67
72
|
- history_events = @rollout.respond_to?(:logging) ? @rollout.logging.events(@feature.name).reverse : []
|
68
73
|
|
data/rollout-ui.gemspec
CHANGED
@@ -25,12 +25,13 @@ Gem::Specification.new do |spec|
|
|
25
25
|
spec.add_dependency 'rollout', '~> 2.5'
|
26
26
|
spec.add_dependency 'sinatra', '~> 2.0'
|
27
27
|
spec.add_dependency 'sinatra-contrib', '~> 2.1'
|
28
|
-
spec.add_dependency 'slim', '
|
28
|
+
spec.add_dependency 'slim', ['>= 3.0', '< 5.0']
|
29
29
|
|
30
30
|
spec.add_development_dependency 'bundler', '>= 1.17'
|
31
31
|
spec.add_development_dependency 'rake', '~> 10.0'
|
32
32
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
33
33
|
spec.add_development_dependency 'rerun', '~> 0.13'
|
34
34
|
spec.add_development_dependency 'rack-test'
|
35
|
+
spec.add_development_dependency 'puma'
|
35
36
|
spec.add_development_dependency 'pry'
|
36
37
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rollout-ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- FetLife
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rollout
|
@@ -56,16 +56,22 @@ dependencies:
|
|
56
56
|
name: slim
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.0'
|
62
|
+
- - "<"
|
60
63
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
64
|
+
version: '5.0'
|
62
65
|
type: :runtime
|
63
66
|
prerelease: false
|
64
67
|
version_requirements: !ruby/object:Gem::Requirement
|
65
68
|
requirements:
|
66
|
-
- - "
|
69
|
+
- - ">="
|
67
70
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
71
|
+
version: '3.0'
|
72
|
+
- - "<"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '5.0'
|
69
75
|
- !ruby/object:Gem::Dependency
|
70
76
|
name: bundler
|
71
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -136,6 +142,20 @@ dependencies:
|
|
136
142
|
- - ">="
|
137
143
|
- !ruby/object:Gem::Version
|
138
144
|
version: '0'
|
145
|
+
- !ruby/object:Gem::Dependency
|
146
|
+
name: puma
|
147
|
+
requirement: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - ">="
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: '0'
|
152
|
+
type: :development
|
153
|
+
prerelease: false
|
154
|
+
version_requirements: !ruby/object:Gem::Requirement
|
155
|
+
requirements:
|
156
|
+
- - ">="
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: '0'
|
139
159
|
- !ruby/object:Gem::Dependency
|
140
160
|
name: pry
|
141
161
|
requirement: !ruby/object:Gem::Requirement
|
@@ -185,7 +205,7 @@ homepage: https://github.com/fetlife/rollout-ui
|
|
185
205
|
licenses:
|
186
206
|
- MIT
|
187
207
|
metadata: {}
|
188
|
-
post_install_message:
|
208
|
+
post_install_message:
|
189
209
|
rdoc_options: []
|
190
210
|
require_paths:
|
191
211
|
- lib
|
@@ -200,8 +220,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
200
220
|
- !ruby/object:Gem::Version
|
201
221
|
version: '0'
|
202
222
|
requirements: []
|
203
|
-
rubygems_version: 3.
|
204
|
-
signing_key:
|
223
|
+
rubygems_version: 3.3.3
|
224
|
+
signing_key:
|
205
225
|
specification_version: 4
|
206
226
|
summary: ''
|
207
227
|
test_files: []
|