sail 3.3.0 → 3.4.0

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.
@@ -31,6 +31,8 @@
31
31
 
32
32
  <div class="clearfix"></div>
33
33
  <%= yield %>
34
+
35
+ <%= hidden_field_tag(:auto_search_enabled, Sail.configuration.enable_search_auto_submit) %>
34
36
  </div>
35
37
  </body>
36
38
  </html>
@@ -37,7 +37,10 @@
37
37
  ●●●
38
38
  <% end %>
39
39
 
40
- <%= link_to(@number_of_pages, settings_path(page: @number_of_pages - 1, monitor_mode: params[:monitor_mode], query: params[:query]), method: :get, class: params[:page].to_i == @number_of_pages - 1 ? "active" : "") %>
40
+ <% if @number_of_pages > 1 %>
41
+ <%= link_to(@number_of_pages, settings_path(page: @number_of_pages - 1, monitor_mode: params[:monitor_mode], query: params[:query]), method: :get, class: params[:page].to_i == @number_of_pages - 1 ? "active" : "") %>
42
+ <% end %>
43
+
41
44
  <%= link_to("", settings_path(page: [params[:page].to_i + 1, @number_of_pages - 1].min, monitor_mode: params[:monitor_mode], query: params[:query]), method: :get, id: "angle-right-link", title: I18n.t("sail.next_page")) %>
42
45
  </div>
43
46
  </div>
@@ -34,7 +34,7 @@ module Sail
34
34
  end
35
35
 
36
36
  def migration_version
37
- "[#{Rails::VERSION::MAJOR}.#{Rails::VERSION::MINOR}]" if Rails.version >= "5.0.0"
37
+ "[#{Rails::VERSION::MAJOR}.#{Rails::VERSION::MINOR}]"
38
38
  end
39
39
  end
40
40
  end
@@ -46,7 +46,7 @@ module Sail
46
46
  end
47
47
 
48
48
  def migration_version
49
- "[#{Rails::VERSION::MAJOR}.#{Rails::VERSION::MINOR}]" if Rails.version >= "5.0.0"
49
+ "[#{Rails::VERSION::MAJOR}.#{Rails::VERSION::MINOR}]"
50
50
  end
51
51
  end
52
52
  end
@@ -5,7 +5,6 @@ module Sail
5
5
  # Defines initializers and
6
6
  # after initialize hooks
7
7
  class Engine < ::Rails::Engine
8
- require "jquery-rails" if Rails::VERSION::MAJOR < 5
9
8
  require "sprockets/railtie"
10
9
  isolate_namespace Sail
11
10
 
@@ -25,7 +24,8 @@ module Sail
25
24
 
26
25
  initializer "sail.assets.precompile" do |app|
27
26
  app.config.assets.precompile += %w[sail/refresh.svg sail/sort.svg sail/angle-left.svg
28
- sail/angle-right.svg sail/link.svg sail/cog.svg]
27
+ sail/angle-right.svg sail/link.svg sail/cog.svg sail/application.css
28
+ sail/application.js]
29
29
  end
30
30
 
31
31
  initializer "sail" do
@@ -37,12 +37,6 @@ module Sail
37
37
  end
38
38
 
39
39
  config.after_initialize do
40
- if Rails::VERSION::MAJOR < 5
41
- warn(
42
- "DEPRECATION WARNING: Sail will no longer support Rails versions < 5"
43
- )
44
- end
45
-
46
40
  errors = [ActiveRecord::NoDatabaseError]
47
41
  errors << PG::ConnectionBad if defined?(PG)
48
42
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sail
4
- VERSION = "3.3.0"
4
+ VERSION = "3.4.0"
5
5
  end
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sail
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.0
4
+ version: 3.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vinicius Stock
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-28 00:00:00.000000000 Z
11
+ date: 2020-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: sassc-rails
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: fugit
29
15
  requirement: !ruby/object:Gem::Requirement
@@ -38,34 +24,20 @@ dependencies:
38
24
  - - ">="
39
25
  - !ruby/object:Gem::Version
40
26
  version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: jquery-rails
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
27
  - !ruby/object:Gem::Dependency
56
28
  name: rails
57
29
  requirement: !ruby/object:Gem::Requirement
58
30
  requirements:
59
31
  - - ">="
60
32
  - !ruby/object:Gem::Version
61
- version: '0'
33
+ version: 5.0.0
62
34
  type: :runtime
63
35
  prerelease: false
64
36
  version_requirements: !ruby/object:Gem::Requirement
65
37
  requirements:
66
38
  - - ">="
67
39
  - !ruby/object:Gem::Version
68
- version: '0'
40
+ version: 5.0.0
69
41
  - !ruby/object:Gem::Dependency
70
42
  name: brakeman
71
43
  requirement: !ruby/object:Gem::Requirement
@@ -136,20 +108,6 @@ dependencies:
136
108
  - - ">="
137
109
  - !ruby/object:Gem::Version
138
110
  version: '0'
139
- - !ruby/object:Gem::Dependency
140
- name: jquery-rails
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - ">="
144
- - !ruby/object:Gem::Version
145
- version: '0'
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - ">="
151
- - !ruby/object:Gem::Version
152
- version: '0'
153
111
  - !ruby/object:Gem::Dependency
154
112
  name: rack-mini-profiler
155
113
  requirement: !ruby/object:Gem::Requirement
@@ -254,14 +212,14 @@ dependencies:
254
212
  requirements:
255
213
  - - "~>"
256
214
  - !ruby/object:Gem::Version
257
- version: 0.17.0
215
+ version: 0.18.0
258
216
  type: :development
259
217
  prerelease: false
260
218
  version_requirements: !ruby/object:Gem::Requirement
261
219
  requirements:
262
220
  - - "~>"
263
221
  - !ruby/object:Gem::Version
264
- version: 0.17.0
222
+ version: 0.18.0
265
223
  - !ruby/object:Gem::Dependency
266
224
  name: sqlite3
267
225
  requirement: !ruby/object:Gem::Requirement
@@ -308,12 +266,10 @@ files:
308
266
  - app/assets/images/sail/link.svg
309
267
  - app/assets/images/sail/refresh.svg
310
268
  - app/assets/images/sail/sort.svg
311
- - app/assets/javascripts/sail/application.js.erb
312
- - app/assets/javascripts/settings.js.erb
313
- - app/assets/stylesheets/sail/_colors.scss
314
- - app/assets/stylesheets/sail/_shared.scss
315
- - app/assets/stylesheets/sail/application.scss
316
- - app/assets/stylesheets/sail/settings.scss
269
+ - app/assets/javascripts/sail/application.js
270
+ - app/assets/javascripts/sail/settings.js
271
+ - app/assets/stylesheets/sail/application.css.erb
272
+ - app/assets/stylesheets/sail/settings.css
317
273
  - app/controllers/sail/application_controller.rb
318
274
  - app/controllers/sail/profiles_controller.rb
319
275
  - app/controllers/sail/settings_controller.rb
@@ -374,16 +330,7 @@ homepage: https://github.com/vinistock/sail
374
330
  licenses:
375
331
  - MIT
376
332
  metadata: {}
377
- post_install_message: |
378
- **************************************************************************
379
- Sail 3.3.0!
380
-
381
- For major version upgrades, check the CHANGELOG and run the updater to
382
- create necessary migrations.
383
-
384
- * https://github.com/vinistock/sail/blob/master/CHANGELOG.md
385
- * rails g sail:update
386
- **************************************************************************
333
+ post_install_message:
387
334
  rdoc_options: []
388
335
  require_paths:
389
336
  - lib
@@ -391,14 +338,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
391
338
  requirements:
392
339
  - - ">="
393
340
  - !ruby/object:Gem::Version
394
- version: 2.3.0
341
+ version: 2.5.0
395
342
  required_rubygems_version: !ruby/object:Gem::Requirement
396
343
  requirements:
397
344
  - - ">="
398
345
  - !ruby/object:Gem::Version
399
346
  version: '0'
400
347
  requirements: []
401
- rubygems_version: 3.0.6
348
+ rubygems_version: 3.1.2
402
349
  signing_key:
403
350
  specification_version: 4
404
351
  summary: Sail is a lightweight Rails engine that brings an admin panel for managing
@@ -1,9 +0,0 @@
1
- $main_black: #0B0C10;
2
- $dark_green: #306B34;
3
- $light_green: #44AF69;
4
- $cerulean: #4484CE;
5
- $aluminium: #D9D9D9;
6
- $light_yellow: #F9CF00;
7
- $tangerine: #F19F4D;
8
- $lead: #003049;
9
- $bright_red: #E63946;
@@ -1,52 +0,0 @@
1
- @import "colors";
2
-
3
- .rounded {
4
- -webkit-border-radius: 5px;
5
- -moz-border-radius: 5px;
6
- border-radius: 5px;
7
- }
8
-
9
- .border-transition {
10
- -webkit-transition : border .25s ease-in;
11
- -moz-transition : border .25s ease-in;
12
- -o-transition : border .25s ease-in;
13
- transition : border .25s ease-in;
14
- outline: none;
15
-
16
- &:focus,
17
- &:hover {
18
- border-color: $tangerine;
19
- outline: none;
20
- }
21
- }
22
-
23
- .color-transition {
24
- -webkit-transition : color .25s ease-in;
25
- -moz-transition : color .25s ease-in;
26
- -o-transition : color .25s ease-in;
27
- transition : color .25s ease-in;
28
- color: white;
29
- text-decoration: none;
30
-
31
- &:visited {
32
- color: white;
33
- }
34
-
35
- &:hover {
36
- color: $tangerine;
37
- }
38
- }
39
-
40
- @-webkit-keyframes fadeIn {
41
- from { opacity: 0; }
42
- to { opacity: 1; }
43
- }
44
- @keyframes fadeIn {
45
- from { opacity: 0; }
46
- to { opacity: 1; }
47
- }
48
-
49
- .fade-in {
50
- -webkit-animation: fadeIn 0.5s;
51
- animation: fadeIn 0.5s;
52
- }
@@ -1,353 +0,0 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
- * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
10
- * files in this directory. Styles in this file should be added after the last require_* statement.
11
- * It is generally better to create a new file per style scope.
12
- *
13
- *= require_tree .
14
- *= require_self
15
- */
16
-
17
- @import "colors";
18
- @import "shared";
19
-
20
- * {
21
- font-family: 'Open Sans', sans-serif;
22
- -webkit-font-smoothing: antialiased;
23
- }
24
-
25
- .title {
26
- font-family: 'Montserrat', sans-serif;
27
- }
28
-
29
- html, body {
30
- height: 100vh;
31
- margin: 0;
32
- padding: 0;
33
- background-color: $cerulean;
34
- }
35
-
36
- .clearfix {
37
- clear: both;
38
- }
39
-
40
- .clear-xs {
41
- @media (max-width: 413px) {
42
- clear: both;
43
- margin-top: 8px;
44
- }
45
- }
46
-
47
- #nav-bar {
48
- background-color: $lead;
49
- box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15), 0 5px 12px rgba(0, 0, 0, 0.1);
50
-
51
- .home-link {
52
- @extend .color-transition;
53
-
54
- .title {
55
- margin: 0;
56
- text-align: center;
57
- font-size: 3rem;
58
- padding: .75rem 0;
59
- }
60
- }
61
-
62
- .nav-button {
63
- float: right;
64
- position: relative;
65
- bottom: 50px;
66
- font-size: 20px;
67
- outline: none;
68
- background: transparent;
69
- border: none;
70
- @extend .color-transition;
71
-
72
- &:hover {
73
- cursor: pointer;
74
- }
75
-
76
- @media (max-width: 991px) { display: none; }
77
- }
78
-
79
- #btn-guide {
80
- right: 70px;
81
- padding: 0;
82
- margin: 0;
83
- @media (min-width: 1200px) { right: 110px; }
84
- }
85
-
86
- #btn-monitor-mode,
87
- #btn-regular-mode {
88
- right: 80px;
89
- padding: 1px 7px 2px 7px;
90
-
91
- @media (min-width: 1200px) { right: 120px; }
92
- }
93
- }
94
-
95
- #pagination {
96
- text-align: center;
97
- margin-top: 2rem;
98
-
99
- a {
100
- color: $main_black;
101
- text-decoration: none;
102
- background-color: white;
103
- padding: 20px;
104
- @extend .rounded;
105
- box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
106
- font-weight: bold;
107
-
108
- &.active {
109
- background-color: $tangerine;
110
- color: white;
111
- }
112
- }
113
-
114
- .page-links {
115
- a {
116
- font-size: 1.2rem;
117
- margin: 0 2px 0 2px;
118
- }
119
-
120
- #angle-left-link {
121
- background: white image-url("sail/angle-left.svg") center no-repeat;
122
- margin-right: 6px;
123
- padding: 20px 24px 20px 24px;
124
- }
125
-
126
- #angle-right-link {
127
- background: white image-url("sail/angle-right.svg") center no-repeat;
128
- margin-left: 6px;
129
- padding: 20px 24px 20px 24px;
130
- }
131
- }
132
- }
133
-
134
- .modal {
135
- position: fixed;
136
- height: 70%;
137
- width: 70%;
138
- top: 15%;
139
- left: 15%;
140
- background-color: white;
141
- z-index: 1;
142
- box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
143
- @extend .rounded;
144
- @extend .fade-in;
145
- padding: 15px;
146
- overflow: scroll;
147
-
148
- @media (max-width: 1200px) {
149
- width: 90%;
150
- left: 3%;
151
- }
152
-
153
- @media (max-width: 767px) {
154
- width: 90%;
155
- left: 1%;
156
- }
157
- }
158
-
159
- #profiles-modal {
160
- @extend .modal;
161
- text-align: center;
162
-
163
- h1 {
164
- margin-left: 35px;
165
-
166
- #response-message {
167
- float: right;
168
- font-size: 18px;
169
- margin-right: 3px;
170
- position: relative;
171
- top: 5px;
172
- min-width: 50px;
173
- min-height: 20px;
174
- color: $dark_green;
175
- }
176
- }
177
-
178
- .profile-entry {
179
- padding: 10px;
180
- font-size: 20px;
181
- border-bottom: 2px solid transparent;
182
- margin-bottom: 15px;
183
- @extend .border-transition;
184
-
185
- .inline-form {
186
- float: right;
187
- }
188
-
189
- button {
190
- float: right;
191
- margin-left: 5px;
192
- padding: 10px;
193
- }
194
-
195
- .inline-form {
196
- @media (max-width: 767px) {
197
- margin-right: 3%;
198
- }
199
-
200
- &:first-child {
201
- @media (max-width: 767px) {
202
- clear: both;
203
- }
204
- }
205
- }
206
-
207
- .entry-name {
208
- position: relative;
209
- top: 10px;
210
-
211
- @media (max-width: 767px) {
212
- width: 90%;
213
- margin-bottom: 15px;
214
- }
215
-
216
- @media (max-width: 1199px) { float: left; }
217
- @media (min-width: 1200px) { margin-left: 250px; }
218
- }
219
-
220
- .active-indicator {
221
- float: left;
222
- position: relative;
223
- top: 7px;
224
-
225
- &.yellow {
226
- color: $light_yellow;
227
- }
228
-
229
- &.green {
230
- color: $light_green;
231
- }
232
- }
233
-
234
- .errors-indicator {
235
- float: left;
236
- position: relative;
237
- top: 9px;
238
- left: 15px;
239
- font-style: italic;
240
- color: darken($aluminium, 30%);
241
- }
242
- }
243
-
244
- #new-profile-input {
245
- height: 100%;
246
- border: none;
247
- font-size: 20px;
248
- width: 90%;
249
- position: relative;
250
- top: 10px;
251
- text-overflow: ellipsis;
252
-
253
- &:focus {
254
- outline: none;
255
- }
256
-
257
- @media (max-width: 1200px) { width: 88%; }
258
- @media (max-width: 767px) { width: 70%; }
259
- }
260
- }
261
-
262
- #guide-modal {
263
- @extend .modal;
264
-
265
- h1 {
266
- text-align: center;
267
- }
268
-
269
- details {
270
- padding: 15px;
271
-
272
- summary {
273
- font-size: 20px;
274
- outline: none;
275
- border-bottom: 1px solid transparent;
276
- @extend .border-transition;
277
-
278
- div {
279
- padding-bottom: 10px;
280
- }
281
-
282
- label {
283
- color: darken($aluminium, 30%);
284
- font-size: 18px;
285
- float: right;
286
- }
287
-
288
- img {
289
- display: none;
290
- }
291
-
292
- &::-webkit-details-marker {
293
- display: none;
294
- }
295
-
296
- &:hover {
297
- cursor: pointer;
298
- }
299
-
300
- &:focus {
301
- border-color: transparent;
302
- }
303
- }
304
-
305
- p, .items-container {
306
- text-align: center;
307
- font-size: 20px;
308
-
309
- ul {
310
- list-style-type: none;
311
-
312
- li {
313
- padding: 10px;
314
- }
315
- }
316
- }
317
- }
318
-
319
- details[open] {
320
- summary {
321
- border-bottom: 1px solid $tangerine;
322
-
323
- div {
324
- font-size: 28px;
325
- text-align: center;
326
- }
327
-
328
- label {
329
- display: none;
330
- }
331
-
332
- img {
333
- display: block;
334
- height: 20px;
335
- width: 20px;
336
- float: left;
337
- position: relative;
338
- top: 10px;
339
- }
340
- }
341
-
342
- p, p ~ * {
343
- @extend .fade-in;
344
- }
345
- }
346
- }
347
-
348
- hr {
349
- border: 0;
350
- height: 1px;
351
- border-top: 1px solid rgba(0, 0, 0, 0.1);
352
- border-bottom: 1px solid rgba(255, 255, 255, 0.3);
353
- }