sail 3.5.0 → 3.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/app/assets/images/sail/reset.svg +1 -0
- data/app/assets/stylesheets/sail/settings.css +10 -3
- data/app/helpers/sail/application_helper.rb +4 -0
- data/app/views/sail/settings/_setting.html.erb +1 -1
- data/app/views/sail/settings/index.html.erb +1 -1
- data/lib/sail/engine.rb +1 -1
- data/lib/sail/instrumenter.rb +1 -1
- data/lib/sail/version.rb +1 -1
- metadata +13 -13
- data/app/assets/images/sail/refresh.svg +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8099f602b777299cf808179f65707d3ca0775ab984a1d2951d46b31a832919b
|
4
|
+
data.tar.gz: '059f2f1fa4c53ed9d51aa74f75043cb718f615b0c39a234cb01c8ae536c148db'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0db559a3d7269c2da637cede11cabb6a1af367cc146efc81a7d7361b93c25792787444d7e756945cda043bd42327496ced9fac31490371509529cb4f04fa8d3
|
7
|
+
data.tar.gz: 9cab8875585e0c1697cbbe4af5d6199767d820cab33dc1afedc678d6bd5efae820bcf6f6f12fc734cd6997d7de5670a33f5928d46de1262f420a4ed95cddc8f6
|
data/Rakefile
CHANGED
@@ -21,7 +21,7 @@ RSpec::Core::RakeTask.new(spec: "app:db:test:prepare")
|
|
21
21
|
task default: :spec
|
22
22
|
|
23
23
|
task all: :environment do
|
24
|
-
system("brakeman --no-pager && rake && rubocop
|
24
|
+
system("brakeman --no-pager && rake && rubocop -A")
|
25
25
|
end
|
26
26
|
|
27
27
|
system("cd ./spec/dummy; RAILS_ENV=test rails db:environment:set; cd ../..")
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="undo" class="svg-inline--fa fa-undo fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M212.333 224.333H12c-6.627 0-12-5.373-12-12V12C0 5.373 5.373 0 12 0h48c6.627 0 12 5.373 12 12v78.112C117.773 39.279 184.26 7.47 258.175 8.007c136.906.994 246.448 111.623 246.157 248.532C504.041 393.258 393.12 504 256.333 504c-64.089 0-122.496-24.313-166.51-64.215-5.099-4.622-5.334-12.554-.467-17.42l33.967-33.967c4.474-4.474 11.662-4.717 16.401-.525C170.76 415.336 211.58 432 256.333 432c97.268 0 176-78.716 176-176 0-97.267-78.716-176-176-176-58.496 0-110.28 28.476-142.274 72.333h98.274c6.627 0 12 5.373 12 12v48c0 6.627-5.373 12-12 12z"></path></svg>
|
@@ -22,6 +22,10 @@
|
|
22
22
|
padding: 0 15px 0 15px;
|
23
23
|
}
|
24
24
|
|
25
|
+
#settings-dashboard #settings-container.empty {
|
26
|
+
justify-content: center;
|
27
|
+
}
|
28
|
+
|
25
29
|
#settings-dashboard .card {
|
26
30
|
flex: 0 1 auto;
|
27
31
|
max-height: 220px;
|
@@ -299,9 +303,12 @@
|
|
299
303
|
}
|
300
304
|
|
301
305
|
#settings-dashboard .card .refresh-button.active img {
|
302
|
-
-webkit-animation:spin
|
303
|
-
-
|
304
|
-
animation:spin
|
306
|
+
-webkit-animation:spin 0.5s linear infinite;
|
307
|
+
-webkit-animation-direction: reverse;
|
308
|
+
-moz-animation:spin 0.5s linear infinite;
|
309
|
+
-moz-animation-direction: reverse;
|
310
|
+
animation:spin 0.5s linear infinite;
|
311
|
+
animation-direction: reverse;
|
305
312
|
}
|
306
313
|
|
307
314
|
.notice {
|
@@ -10,7 +10,7 @@
|
|
10
10
|
<div>
|
11
11
|
<%= form_tag(reset_setting_path(name: setting.name), method: :put, remote: true) do %>
|
12
12
|
<button class="refresh-button" title="<%= I18n.t("sail.refresh_tooltip") %>">
|
13
|
-
<%= image_tag("sail/
|
13
|
+
<%= image_tag("sail/reset.svg", alt: I18n.t("sail.refresh_tooltip")) %>
|
14
14
|
</button>
|
15
15
|
<% end %>
|
16
16
|
</div>
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<% cache @settings do %>
|
3
3
|
<%= render(partial: "search") %>
|
4
4
|
|
5
|
-
<div id="settings-container">
|
5
|
+
<div id="settings-container" class="<%= settings_container_class(@number_of_pages) %>">
|
6
6
|
<% if @number_of_pages > 0 %>
|
7
7
|
<%= render(partial: "setting", collection: @settings) %>
|
8
8
|
<% else %>
|
data/lib/sail/engine.rb
CHANGED
@@ -23,7 +23,7 @@ module Sail
|
|
23
23
|
config.middleware.use Rack::ETag
|
24
24
|
|
25
25
|
initializer "sail.assets.precompile" do |app|
|
26
|
-
app.config.assets.precompile += %w[sail/
|
26
|
+
app.config.assets.precompile += %w[sail/reset.svg sail/sort.svg sail/angle-left.svg
|
27
27
|
sail/angle-right.svg sail/link.svg sail/cog.svg sail/checkmark.svg
|
28
28
|
sail/error.svg sail/application.css sail/application.js]
|
29
29
|
end
|
data/lib/sail/instrumenter.rb
CHANGED
@@ -59,7 +59,7 @@ module Sail
|
|
59
59
|
def relative_usage_of(setting_name)
|
60
60
|
return 0.0 if @statistics[:settings].empty?
|
61
61
|
|
62
|
-
(100.0 * self[setting_name][:usages]) / @statistics[:settings].map { |_, entry| entry[:usages] }.
|
62
|
+
(100.0 * self[setting_name][:usages]) / @statistics[:settings].map { |_, entry| entry[:usages] }.sum
|
63
63
|
end
|
64
64
|
|
65
65
|
# increment_failure_of
|
data/lib/sail/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.5.
|
4
|
+
version: 3.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vinicius Stock
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fugit
|
@@ -123,7 +123,7 @@ dependencies:
|
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
126
|
+
name: rspec-rails
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - ">="
|
@@ -137,7 +137,7 @@ dependencies:
|
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
|
-
name: rspec-
|
140
|
+
name: rspec-retry
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - ">="
|
@@ -151,7 +151,7 @@ dependencies:
|
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '0'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
|
-
name:
|
154
|
+
name: rubocop
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
157
|
- - ">="
|
@@ -165,7 +165,7 @@ dependencies:
|
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '0'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
|
-
name: rubocop
|
168
|
+
name: rubocop-packaging
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
171
|
- - ">="
|
@@ -212,14 +212,14 @@ dependencies:
|
|
212
212
|
requirements:
|
213
213
|
- - "~>"
|
214
214
|
- !ruby/object:Gem::Version
|
215
|
-
version: 0.
|
215
|
+
version: 0.19.0
|
216
216
|
type: :development
|
217
217
|
prerelease: false
|
218
218
|
version_requirements: !ruby/object:Gem::Requirement
|
219
219
|
requirements:
|
220
220
|
- - "~>"
|
221
221
|
- !ruby/object:Gem::Version
|
222
|
-
version: 0.
|
222
|
+
version: 0.19.0
|
223
223
|
- !ruby/object:Gem::Dependency
|
224
224
|
name: sqlite3
|
225
225
|
requirement: !ruby/object:Gem::Requirement
|
@@ -266,7 +266,7 @@ files:
|
|
266
266
|
- app/assets/images/sail/cog.svg
|
267
267
|
- app/assets/images/sail/error.svg
|
268
268
|
- app/assets/images/sail/link.svg
|
269
|
-
- app/assets/images/sail/
|
269
|
+
- app/assets/images/sail/reset.svg
|
270
270
|
- app/assets/images/sail/sort.svg
|
271
271
|
- app/assets/javascripts/sail/application.js
|
272
272
|
- app/assets/javascripts/sail/settings.js
|
@@ -332,7 +332,7 @@ homepage: https://github.com/vinistock/sail
|
|
332
332
|
licenses:
|
333
333
|
- MIT
|
334
334
|
metadata: {}
|
335
|
-
post_install_message:
|
335
|
+
post_install_message:
|
336
336
|
rdoc_options: []
|
337
337
|
require_paths:
|
338
338
|
- lib
|
@@ -347,8 +347,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
347
347
|
- !ruby/object:Gem::Version
|
348
348
|
version: '0'
|
349
349
|
requirements: []
|
350
|
-
rubygems_version: 3.1.
|
351
|
-
signing_key:
|
350
|
+
rubygems_version: 3.1.4
|
351
|
+
signing_key:
|
352
352
|
specification_version: 4
|
353
353
|
summary: Sail is a lightweight Rails engine that brings an admin panel for managing
|
354
354
|
configuration settings on a live Rails app.
|
@@ -1 +0,0 @@
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M10 3v2a5 5 0 0 0-3.54 8.54l-1.41 1.41A7 7 0 0 1 10 3zm4.95 2.05A7 7 0 0 1 10 17v-2a5 5 0 0 0 3.54-8.54l1.41-1.41zM10 20l-4-4 4-4v8zm0-12V0l4 4-4 4z"/></svg>
|