zutils 0.3.6 → 0.3.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c4304e3715cb35242494649757c5edea8d7915944aa10ec531bc63c793c34175
4
- data.tar.gz: f5dd10ece09f66c4a52395b757c54e98293a629e853dd7b5a3a4a4fbbdf4bbb1
3
+ metadata.gz: 4382383457fb32821df0bced0827ce12631363dd0c3ec495ca65cf45ee021992
4
+ data.tar.gz: 49f084b463c1d000b78bab90237cdfc14d0d61a031d0ee97685aa1225285f94e
5
5
  SHA512:
6
- metadata.gz: f2f6248b443f0e725a7e07d8db6ec7544f206e65bb1898218f4c51482385b134cdbf810dd434fc1f9a4191e2caff44182bfce834b78cf4e74ed6f0470b16b816
7
- data.tar.gz: b8462025006d183d8d238925589347970bd97eb16963e10d77e22e83c23ff2e16ef61fdcdea41462de726fd1834091f5945560d0526e06227e8ace8110226f11
6
+ metadata.gz: f8d5efabdba7f464fb1ca1b2401f9f5b14c1eb568629b7340fe23f6020b55266fb1286f79ca033ddcfce0ccc80d0bbcd25db881788c687ae55421cc45e9b42dd
7
+ data.tar.gz: 479490d733acb8a9182f07e82274c3cf2dd0ad2c4eb00e3e8d013d17a0716c2b3e175f1414fa3046f2f9f40b9fe1bb3290480df78207c557b5a343299dd6e328
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
File without changes
File without changes
@@ -5,6 +5,7 @@
5
5
  <% display_mode ||= 'table' %>
6
6
  <% hide_links ||= false %>
7
7
  <% hide_header ||= false %>
8
+ <% hide_table_header ||= false %>
8
9
 
9
10
  <% form_fields ||= (object.class.respond_to?('form_fields') ? object.class.form_fields : {}) %>
10
11
  <% form_ordered_fields ||= (form_fields.empty? ? object.class.column_names : form_fields.keys) %>
@@ -74,6 +75,14 @@
74
75
  <% end %>
75
76
  <% if display_mode == 'table' %>
76
77
  <table class="table table-bordered table-striped no-padding datatables">
78
+ <% unless hide_table_header %>
79
+ <thead>
80
+ <tr>
81
+ <th><%= t('field') %></th>
82
+ <th><%= t('value') %></th>
83
+ </tr>
84
+ </thead>
85
+ <% end %>
77
86
  <% (object.class.column_names - ['id', 'created_at', 'updated_at', 'deleted_at'] - excluded_columns).each do |column| %>
78
87
  <% unless /_currency$/ =~ column %>
79
88
  <tr>
data/bin/console CHANGED
File without changes
data/bin/setup 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.6"
2
+ VERSION = "0.3.7"
3
3
  end
data/lib/zutils.rb CHANGED
File without changes
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.6
4
+ version: 0.3.7
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-03-26 00:00:00.000000000 Z
11
+ date: 2019-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -99,8 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  - !ruby/object:Gem::Version
100
100
  version: '0'
101
101
  requirements: []
102
- rubyforge_project:
103
- rubygems_version: 2.7.7
102
+ rubygems_version: 3.0.3
104
103
  signing_key:
105
104
  specification_version: 4
106
105
  summary: Utilidades gerais para aplicações rails