rollout-ui 0.5.2 → 0.6.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: 6a421eaee6e20132c013892d216de0ea3edbccbed00b712fdb397ec038289d67
4
- data.tar.gz: f48cfbc156ffd4ee4a16bf66dd66ab509d8cc842790c952ca70f211860e6c9b3
3
+ metadata.gz: a4e0b2f55a41b0c8311c046f8fa8568cfc7001c7d5e59ad880686244918d33d2
4
+ data.tar.gz: 07b7cf87b83e538d0ba502d8b57aa79a9f0327f32da9054a1ee728895610ba90
5
5
  SHA512:
6
- metadata.gz: 77f2ed7614eeefe496a559c6eeca1fa88307ef208c3e6854bece0b1b40f1fb02b23da9c9488e941ed8e467e6c765dd65a8461c8dfca8ad24512e1bb1b8bbd874
7
- data.tar.gz: 3b382d382de581dcacfb45601e395916c538a85dc8ea316e711eaf40c92128d0cac4b6e83b5a1980f109f05442c9da38211c4b32ba8fa8791725d97b278918db
6
+ metadata.gz: e1e157706c74a2d14c824e665f6689559d61cb8aef37652ba2554de414df0260c588b015917206b4cd7071aab6718b15bfe7b533cffd93f9c83b98a6f7350afe
7
+ data.tar.gz: 9ba68eca138d5090c9b3696cd036ddba211965f33c1ab28d5585696b79a641e84bef3f0a450cff3386f62157f9169f240358ff2cff790ee660d1434f57c65543
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.1.0
1
+ 3.3.0
@@ -108,5 +108,9 @@ module Rollout::UI
108
108
  percentage: feature.percentage
109
109
  }
110
110
  end
111
+
112
+ def sanitized_name(feature_name)
113
+ Rack::Utils.escape_html(feature_name)
114
+ end
111
115
  end
112
116
  end
@@ -1,5 +1,5 @@
1
1
  class Rollout
2
2
  module UI
3
- VERSION = "0.5.2"
3
+ VERSION = "0.6.0"
4
4
  end
5
5
  end
@@ -45,13 +45,13 @@ h2.font-semibold.text-xl.text-gray-500.pt-12.flex.items-center
45
45
  = time_ago(@rollout.logging.updated_at(feature_name))
46
46
  td.flex.items-center.py-2.justify-end.whitespace-no-wrap.pl-3
47
47
  form action=activate_percentage_feature_path(feature_name, 100) method='POST'
48
- button.p-3.bg-gray-100.ml-1.rounded-sm.font-bold.leading-none.transition-colors.duration-150(class='hover:bg-gray-200' type='submit' onclick="return confirm('Are you sure you want activate #{feature_name} to 100%?')")
48
+ button.p-3.bg-gray-100.ml-1.rounded-sm.font-bold.leading-none.transition-colors.duration-150(class='hover:bg-gray-200' type='submit' onclick="return confirm('Are you sure you want activate #{sanitized_name(feature_name)} to 100%?')")
49
49
  ' 100%
50
50
  form action=activate_percentage_feature_path(feature_name, 0) method='POST'
51
- button.p-3.bg-gray-100.ml-1.rounded-sm.font-bold.leading-none.transition-colors.duration-150(class='hover:bg-gray-200' type='submit' onclick="return confirm('Are you sure you want activate #{feature_name} to 0%?')")
51
+ button.p-3.bg-gray-100.ml-1.rounded-sm.font-bold.leading-none.transition-colors.duration-150(class='hover:bg-gray-200' type='submit' onclick="return confirm('Are you sure you want activate #{sanitized_name(feature_name)} to 0%?')")
52
52
  ' 0%
53
53
  form action=delete_feature_path(feature_name) method='POST'
54
- button.p-3.bg-gray-100.ml-1.rounded-sm.font-bold.leading-none.transition-colors.duration-150(class='hover:bg-gray-200' type='submit' onclick="return confirm('Are you sure you want to delete #{feature_name}?')")
54
+ button.p-3.bg-gray-100.ml-1.rounded-sm.font-bold.leading-none.transition-colors.duration-150(class='hover:bg-gray-200' type='submit' onclick="return confirm('Are you sure you want to delete #{sanitized_name(feature_name)}?')")
55
55
  ' Delete
56
56
 
57
57
  - global_history_events = @rollout.respond_to?(:logging) ? @rollout.logging.global_events.reverse : []
@@ -63,7 +63,7 @@ main.p-6.bg-gray-100.max-w-lg.w-full.text-sm.rounded-sm
63
63
 
64
64
  .flex.items-center.justify-end
65
65
  form action=delete_feature_path(@feature.name) method='POST'
66
- button.mr-5.text-gray-600(class='hover:underline' type='submit' onclick="return confirm('Are you sure you want to delete #{@feature.name}?')")
66
+ button.mr-5.text-gray-600(class='hover:underline' type='submit' onclick="return confirm('Are you sure you want to delete #{sanitized_name(@feature.name)}?')")
67
67
  | Delete
68
68
  button.py-4.px-5.bg-gray-700.text-gray-200.rounded-sm.font-bold.leading-none.transition-colors.duration-200(
69
69
  type='submit'
data/rollout-ui.gemspec CHANGED
@@ -22,16 +22,17 @@ Gem::Specification.new do |spec|
22
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
23
  spec.require_paths = ['lib']
24
24
 
25
- spec.add_dependency 'rollout', '~> 2.5'
26
- spec.add_dependency 'sinatra', '~> 2.0'
27
- spec.add_dependency 'sinatra-contrib', '~> 2.1'
28
- spec.add_dependency 'slim', ['>= 3.0', '< 5.0']
25
+ spec.add_dependency 'rollout', '~> 2.6'
26
+ spec.add_dependency 'sinatra', ['>= 2.0', '< 5.0']
27
+ spec.add_dependency 'sinatra-contrib', ['>= 2.0', '< 5.0']
28
+ spec.add_dependency 'slim', ['>= 3.0', '< 6.0']
29
29
 
30
30
  spec.add_development_dependency 'bundler', '>= 1.17'
31
- spec.add_development_dependency 'rake', '~> 10.0'
32
- spec.add_development_dependency 'rspec', '~> 3.0'
33
- spec.add_development_dependency 'rerun', '~> 0.13'
31
+ spec.add_development_dependency 'rake'
32
+ spec.add_development_dependency 'rspec', '~> 3.13'
33
+ spec.add_development_dependency 'rerun', '~> 0.14'
34
34
  spec.add_development_dependency 'rack-test'
35
+ spec.add_development_dependency 'rackup'
35
36
  spec.add_development_dependency 'puma'
36
37
  spec.add_development_dependency 'pry'
37
38
  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.5.2
4
+ version: 0.6.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: 2022-11-18 00:00:00.000000000 Z
11
+ date: 2024-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rollout
@@ -16,42 +16,54 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.5'
19
+ version: '2.6'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '2.5'
26
+ version: '2.6'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sinatra
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '2.0'
34
+ - - "<"
35
+ - !ruby/object:Gem::Version
36
+ version: '5.0'
34
37
  type: :runtime
35
38
  prerelease: false
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
38
- - - "~>"
41
+ - - ">="
39
42
  - !ruby/object:Gem::Version
40
43
  version: '2.0'
44
+ - - "<"
45
+ - !ruby/object:Gem::Version
46
+ version: '5.0'
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: sinatra-contrib
43
49
  requirement: !ruby/object:Gem::Requirement
44
50
  requirements:
45
- - - "~>"
51
+ - - ">="
46
52
  - !ruby/object:Gem::Version
47
- version: '2.1'
53
+ version: '2.0'
54
+ - - "<"
55
+ - !ruby/object:Gem::Version
56
+ version: '5.0'
48
57
  type: :runtime
49
58
  prerelease: false
50
59
  version_requirements: !ruby/object:Gem::Requirement
51
60
  requirements:
52
- - - "~>"
61
+ - - ">="
53
62
  - !ruby/object:Gem::Version
54
- version: '2.1'
63
+ version: '2.0'
64
+ - - "<"
65
+ - !ruby/object:Gem::Version
66
+ version: '5.0'
55
67
  - !ruby/object:Gem::Dependency
56
68
  name: slim
57
69
  requirement: !ruby/object:Gem::Requirement
@@ -61,7 +73,7 @@ dependencies:
61
73
  version: '3.0'
62
74
  - - "<"
63
75
  - !ruby/object:Gem::Version
64
- version: '5.0'
76
+ version: '6.0'
65
77
  type: :runtime
66
78
  prerelease: false
67
79
  version_requirements: !ruby/object:Gem::Requirement
@@ -71,7 +83,7 @@ dependencies:
71
83
  version: '3.0'
72
84
  - - "<"
73
85
  - !ruby/object:Gem::Version
74
- version: '5.0'
86
+ version: '6.0'
75
87
  - !ruby/object:Gem::Dependency
76
88
  name: bundler
77
89
  requirement: !ruby/object:Gem::Requirement
@@ -90,44 +102,44 @@ dependencies:
90
102
  name: rake
91
103
  requirement: !ruby/object:Gem::Requirement
92
104
  requirements:
93
- - - "~>"
105
+ - - ">="
94
106
  - !ruby/object:Gem::Version
95
- version: '10.0'
107
+ version: '0'
96
108
  type: :development
97
109
  prerelease: false
98
110
  version_requirements: !ruby/object:Gem::Requirement
99
111
  requirements:
100
- - - "~>"
112
+ - - ">="
101
113
  - !ruby/object:Gem::Version
102
- version: '10.0'
114
+ version: '0'
103
115
  - !ruby/object:Gem::Dependency
104
116
  name: rspec
105
117
  requirement: !ruby/object:Gem::Requirement
106
118
  requirements:
107
119
  - - "~>"
108
120
  - !ruby/object:Gem::Version
109
- version: '3.0'
121
+ version: '3.13'
110
122
  type: :development
111
123
  prerelease: false
112
124
  version_requirements: !ruby/object:Gem::Requirement
113
125
  requirements:
114
126
  - - "~>"
115
127
  - !ruby/object:Gem::Version
116
- version: '3.0'
128
+ version: '3.13'
117
129
  - !ruby/object:Gem::Dependency
118
130
  name: rerun
119
131
  requirement: !ruby/object:Gem::Requirement
120
132
  requirements:
121
133
  - - "~>"
122
134
  - !ruby/object:Gem::Version
123
- version: '0.13'
135
+ version: '0.14'
124
136
  type: :development
125
137
  prerelease: false
126
138
  version_requirements: !ruby/object:Gem::Requirement
127
139
  requirements:
128
140
  - - "~>"
129
141
  - !ruby/object:Gem::Version
130
- version: '0.13'
142
+ version: '0.14'
131
143
  - !ruby/object:Gem::Dependency
132
144
  name: rack-test
133
145
  requirement: !ruby/object:Gem::Requirement
@@ -142,6 +154,20 @@ dependencies:
142
154
  - - ">="
143
155
  - !ruby/object:Gem::Version
144
156
  version: '0'
157
+ - !ruby/object:Gem::Dependency
158
+ name: rackup
159
+ requirement: !ruby/object:Gem::Requirement
160
+ requirements:
161
+ - - ">="
162
+ - !ruby/object:Gem::Version
163
+ version: '0'
164
+ type: :development
165
+ prerelease: false
166
+ version_requirements: !ruby/object:Gem::Requirement
167
+ requirements:
168
+ - - ">="
169
+ - !ruby/object:Gem::Version
170
+ version: '0'
145
171
  - !ruby/object:Gem::Dependency
146
172
  name: puma
147
173
  requirement: !ruby/object:Gem::Requirement
@@ -205,7 +231,7 @@ homepage: https://github.com/fetlife/rollout-ui
205
231
  licenses:
206
232
  - MIT
207
233
  metadata: {}
208
- post_install_message:
234
+ post_install_message:
209
235
  rdoc_options: []
210
236
  require_paths:
211
237
  - lib
@@ -220,8 +246,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
220
246
  - !ruby/object:Gem::Version
221
247
  version: '0'
222
248
  requirements: []
223
- rubygems_version: 3.3.21
224
- signing_key:
249
+ rubygems_version: 3.5.3
250
+ signing_key:
225
251
  specification_version: 4
226
252
  summary: ''
227
253
  test_files: []