raro_generator 0.1.1 → 0.2.1
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/lib/generators/rarocrud/crud/templates/crud.rb +6 -8
- data/lib/raro_generator/version.rb +1 -1
- metadata +4 -18
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 652c8e5fc2ef39c6406fa839c09e9b0149fd7b82
|
|
4
|
+
data.tar.gz: eba3b22fe30cd0e3f94d17b2c8d2c363444fb94f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a15ce8dc3ca351d613c46ee91512fa6d04c0a2e542ba892d99692c48b3af7680955a9f3b7e88031500fe873293764ce527bde821a7dd9ff92ad0c448c316d45d
|
|
7
|
+
data.tar.gz: fca5b8d2c5d3cd091075d4e0b209ee13c9fde3b5eedcb526b3ebb87729c93fc946a2dc5a8b88dc4fb9f14687aa93eff6c8f072d95fd58b3106fd9cd7d4969771
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
class <%=@model.name%>Crud < RaroCrud
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
link_superior "Novo <%=@model.name%>", id: "novo-button", icon: "plus", link: "new", can: Proc.new { Usuario.current.ability.can?(:create, <%=@model.name%>)}
|
|
3
|
+
link_superior nome: 'new', id: 'novo-button', icon: 'plus', link: 'new'
|
|
6
4
|
|
|
7
5
|
ordenar_por :created_at
|
|
8
6
|
itens_por_pagina 20
|
|
@@ -13,8 +11,8 @@ class <%=@model.name%>Crud < RaroCrud
|
|
|
13
11
|
@atributos.delete("updated_at")
|
|
14
12
|
@atributos.map!{|e| e.gsub(/_id/,"")}
|
|
15
13
|
%>
|
|
16
|
-
<%@atributos.each do |atributo| %>campo_tabela :<%=atributo.to_sym
|
|
17
|
-
<%@atributos.each do |atributo| %>campo_formulario :<%=atributo.to_sym
|
|
18
|
-
<%@atributos.each do |atributo| %>campo_visualizacao :<%=atributo.to_sym
|
|
19
|
-
<%@atributos.each do |atributo| %>campo_busca :<%=atributo.to_sym
|
|
20
|
-
end
|
|
14
|
+
<%@atributos.each do |atributo| %>campo_tabela :<%=atributo.to_sym%><%="\n"%> <%end%>
|
|
15
|
+
<%@atributos.each do |atributo| %>campo_formulario :<%=atributo.to_sym%><%="\n"%> <%end%>
|
|
16
|
+
<%@atributos.each do |atributo| %>campo_visualizacao :<%=atributo.to_sym%><%="\n"%> <%end%>
|
|
17
|
+
<%@atributos.each do |atributo| %>campo_busca :<%=atributo.to_sym%><%="\n"%> <%end%>
|
|
18
|
+
end
|
metadata
CHANGED
|
@@ -1,29 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: raro_generator
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Leonardo Herbert
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
12
|
-
dependencies:
|
|
13
|
-
- !ruby/object:Gem::Dependency
|
|
14
|
-
name: rails
|
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
|
16
|
-
requirements:
|
|
17
|
-
- - "~>"
|
|
18
|
-
- !ruby/object:Gem::Version
|
|
19
|
-
version: 4.2.1
|
|
20
|
-
type: :runtime
|
|
21
|
-
prerelease: false
|
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
-
requirements:
|
|
24
|
-
- - "~>"
|
|
25
|
-
- !ruby/object:Gem::Version
|
|
26
|
-
version: 4.2.1
|
|
11
|
+
date: 2017-06-09 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
27
13
|
description: RaroGenerator.
|
|
28
14
|
email:
|
|
29
15
|
- leonardo@rarolabs.com.br
|
|
@@ -629,7 +615,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
629
615
|
version: '0'
|
|
630
616
|
requirements: []
|
|
631
617
|
rubyforge_project:
|
|
632
|
-
rubygems_version: 2.
|
|
618
|
+
rubygems_version: 2.6.8
|
|
633
619
|
signing_key:
|
|
634
620
|
specification_version: 4
|
|
635
621
|
summary: RaroGenerator.
|