zutils 0.3.0 → 0.3.1

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: 1d42c0ca73acc3b60f21f106ccfb6804837fd6c0e6b258d40a4af40368eeeeb5
4
- data.tar.gz: deeceb71569ee50e98da90961156861495dcc00ed980b5203e11702b9ca71d1b
3
+ metadata.gz: 7deae7337e3bcdc69bc5b2f3363fa3ffed5e7939b50f81e78c9c0f9235816c1e
4
+ data.tar.gz: 2aeb8c4bc7c9774bb454a78ec6a1e7ed92c937a48a01e695cba5658f56a22301
5
5
  SHA512:
6
- metadata.gz: fc216d04eea9dd9998e4097f6559235e1d51ca68fcefd991e24a189b669b839cd9bd8da399b5caa11d6603ce367dead9af8697baddd312e0c1a0a418a20140bf
7
- data.tar.gz: 99e17283c693805e48c7d907d9dffda992475b257a1600bed2c0861d107364d9e94bef11ff83ff6fa25a0bdb57fc124b817096a4dfd584ead750d952c91bea23
6
+ metadata.gz: 8e0c3b901a154c60b7ff95da458b71fabaaf66b61b5ce28fd0063d464c6fb6b439bac4044c40a6d007a3ff39c1313e530d87c76ba6af6487454acf6a19f9114a
7
+ data.tar.gz: eb442b3332eb67e97900eca9465b1bc564f965d43b46e4968571a3d5dca545ab4743d25f7b4fa15e455d27d2e9556d9f33d8e38dd92225ecf832f6603d89b4e0
data/.gitignore CHANGED
File without changes
data/CODE_OF_CONDUCT.md CHANGED
File without changes
data/Gemfile CHANGED
File without changes
data/LICENSE.txt CHANGED
File without changes
data/README.md CHANGED
File without changes
data/Rakefile CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -6,34 +6,33 @@
6
6
  <% sort_fields ||= [] %>
7
7
  <% sort_all ||= false %>
8
8
 
9
+ <% unless list.empty? %>
9
10
  <table class="table table-striped datatables">
10
11
  <thead>
11
12
  <tr>
12
- <% unless list.empty? %>
13
- <% (list.first.class.column_names - exceptions - excluded_columns + additional_columns).each do |column| %>
14
- <% if sort_all || sort_fields.include?(column) %>
15
- <% if /_id$/ =~ column %>
16
- <th><%= sort_link(@q, column, list.first.class.human_attribute_name(column.split("_id")[0])) %></th>
17
- <% elsif /_cents$/ =~ column %>
18
- <th><%= sort_link(@q, column, list.first.class.human_attribute_name(column.split("_cents")[0])) %></th>
19
- <% elsif /_currency$/ =~ column %>
20
- <% else %>
21
- <th><%= sort_link(@q, column, list.first.class.human_attribute_name(column)) %></th>
22
- <% end %>
13
+ <% (list.first.class.column_names - exceptions - excluded_columns + additional_columns).each do |column| %>
14
+ <% if sort_all || sort_fields.include?(column) %>
15
+ <% if /_id$/ =~ column %>
16
+ <th><%= sort_link(@q, column, list.first.class.human_attribute_name(column.split("_id")[0])) %></th>
17
+ <% elsif /_cents$/ =~ column %>
18
+ <th><%= sort_link(@q, column, list.first.class.human_attribute_name(column.split("_cents")[0])) %></th>
19
+ <% elsif /_currency$/ =~ column %>
23
20
  <% else %>
24
- <% if /_id$/ =~ column %>
25
- <th><%= list.first.class.human_attribute_name(column.split("_id")[0]) %></th>
26
- <% elsif /_cents$/ =~ column %>
27
- <th><%= list.first.class.human_attribute_name(column.split("_cents")[0]) %></th>
28
- <% elsif /_currency$/ =~ column %>
29
- <% else %>
30
- <th><%= list.first.class.human_attribute_name(column) %></th>
31
- <% end %>
21
+ <th><%= sort_link(@q, column, list.first.class.human_attribute_name(column)) %></th>
22
+ <% end %>
23
+ <% else %>
24
+ <% if /_id$/ =~ column %>
25
+ <th><%= list.first.class.human_attribute_name(column.split("_id")[0]) %></th>
26
+ <% elsif /_cents$/ =~ column %>
27
+ <th><%= list.first.class.human_attribute_name(column.split("_cents")[0]) %></th>
28
+ <% elsif /_currency$/ =~ column %>
29
+ <% else %>
30
+ <th><%= list.first.class.human_attribute_name(column) %></th>
32
31
  <% end %>
33
32
  <% end %>
34
- <% unless hide_actions %>
35
- <th>Ações</th>
36
- <% end %>
33
+ <% end %>
34
+ <% unless hide_actions %>
35
+ <th>Ações</th>
37
36
  <% end %>
38
37
  </tr>
39
38
  </thead>
@@ -68,3 +67,4 @@
68
67
  <% end %>
69
68
  </tbody>
70
69
  </table>
70
+ <% end %>
File without changes
File without changes
data/bin/console CHANGED
File without changes
data/bin/setup CHANGED
File without changes
data/lib/zutils.rb CHANGED
File without changes
data/lib/zutils/engine.rb CHANGED
File without changes
@@ -1,3 +1,3 @@
1
1
  module Zutils
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
data/zutils.gemspec CHANGED
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zutils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricardo Viana
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-02-18 00:00:00.000000000 Z
11
+ date: 2019-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails