zutils 0.1.1 → 0.1.2

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: f97ac1320ca3f2331d17d65cbb012db734c8a42822f9431ddcf86db0d71a6000
4
- data.tar.gz: 75ca0953bd87862a390937181eb09560ccb273e09ac93493afc0b904dff29a10
3
+ metadata.gz: a84d686582748295669bb5830b58cc288c8f2d49f60766411631418762096215
4
+ data.tar.gz: 0c30009b666d29da85c8b6bf112113328f100d67434d03f8ded1978654708208
5
5
  SHA512:
6
- metadata.gz: decf68bf35209e125e8f4fa82a1165f1c68a8855f28d60734d4c6c4684934c2c9db893c2732a976bca19d31a061119d7039eb756edec3dbcf2e8f03ddcce224f
7
- data.tar.gz: 29a85c090629aa2e9f30e5528135c50d85e8639cd3657e406bc4c23e8ed0cdbde03559314448737fff877f5b97401d16dbbd4d2d69ff07ea14f820124d7669e6
6
+ metadata.gz: cd3b6d08c8c0d3530b1bd676b1f4005e01c66f02a0fa92bc90378883d54ee521a600e04743ad445b10f38607e18ba7832c149e7a42895d308770bd9951c637da
7
+ data.tar.gz: d16d39ffaaa633989aea79dbb7820619e8f535c93bfb6886ef82920749842a9f16b7d457121e92d787b4582974b1801262962de1c7c6d0f8ac0bed015c005ef7
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
@@ -3,12 +3,13 @@
3
3
  <% nested_resource ||= false %>
4
4
  <% parent_resource ||= false %>
5
5
  <% back_link ||= false %>
6
+ <% box_class ||= 'primary' %>
6
7
 
7
8
  <% form_size_fields ||= (object.class.respond_to?('form_size_fields') ? object.class.form_size_fields : {}) %>
8
9
  <% form_ordered_fields ||= (object.class.respond_to?('form_ordered_fields') ? object.class.form_ordered_fields : object.class.column_names) %>
9
10
 
10
11
  <%= simple_form_for(nested_resource ? [parent_resource, object] : object) do |f| %>
11
- <div class="box box-primary">
12
+ <div class="box box-<%= box_class %>">
12
13
  <div class="box-header with-border">
13
14
  <h3 class="box-title">
14
15
  Dados do <%=t object.class.model_name.human %>
@@ -3,8 +3,9 @@
3
3
  <% sort_fields ||= [] %>
4
4
  <% nested_resource ||= false %>
5
5
  <% excluded_columns ||= [] %>
6
+ <% box_class ||= 'primary' %>
6
7
 
7
- <div class='box box-primary'>
8
+ <div class='box box-<%= box_class %>'>
8
9
  <div class="box-header with-border">
9
10
  <h3 class="box-title">
10
11
  <%=t Kernel.const_get(controller_name.singularize.camelize).model_name.human.pluralize %>
File without changes
@@ -1,8 +1,9 @@
1
1
  <% excluded_columns ||= [] %>
2
2
  <% nested_resource ||= false %>
3
3
  <% relationships ||= {} %>
4
+ <% box_class ||= 'primary' %>
4
5
 
5
- <div class="box box-primary">
6
+ <div class="box box-<%= box_class %>">
6
7
  <div class="box-header with-border">
7
8
  <h3 class="box-title"><%=t object.class.model_name.human %></h3>
8
9
  <% if can? :edit, object %> <!--verificando se o usuario esta logado-->
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.1.1"
2
+ VERSION = "0.1.2"
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.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricardo Viana
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-11-07 00:00:00.000000000 Z
11
+ date: 2018-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails