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 +4 -4
- data/.gitignore +0 -0
- data/CODE_OF_CONDUCT.md +0 -0
- data/Gemfile +0 -0
- data/LICENSE.txt +0 -0
- data/README.md +0 -0
- data/Rakefile +0 -0
- data/app/assets/javascripts/zutils.js +0 -0
- data/app/assets/stylesheets/zutils.scss +0 -0
- data/app/views/shared/_action_links.html.erb +0 -0
- data/app/views/shared/_fields.html.erb +0 -0
- data/app/views/shared/_form.html.erb +0 -0
- data/app/views/shared/_index.html.erb +0 -0
- data/app/views/shared/_list.html.erb +0 -0
- data/app/views/shared/_modal.html.erb +0 -0
- data/app/views/shared/_show.html.erb +9 -0
- data/bin/console +0 -0
- data/bin/setup +0 -0
- data/lib/zutils/engine.rb +0 -0
- data/lib/zutils/version.rb +1 -1
- data/lib/zutils.rb +0 -0
- data/zutils.gemspec +0 -0
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4382383457fb32821df0bced0827ce12631363dd0c3ec495ca65cf45ee021992
|
|
4
|
+
data.tar.gz: 49f084b463c1d000b78bab90237cdfc14d0d61a031d0ee97685aa1225285f94e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
data/lib/zutils/version.rb
CHANGED
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.
|
|
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-
|
|
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
|
-
|
|
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
|