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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8d6bfe11b84baea3e5eee35149ea6da29db7707e
4
- data.tar.gz: 9098f06556ee60b954f490ccd77a598c1a827000
3
+ metadata.gz: 652c8e5fc2ef39c6406fa839c09e9b0149fd7b82
4
+ data.tar.gz: eba3b22fe30cd0e3f94d17b2c8d2c363444fb94f
5
5
  SHA512:
6
- metadata.gz: e523a2e90c57a7c138efeb1e07877967bf28157d3b18051bfef8b55f431c260cd1299877dc60a2b489bd138e2e8dfa3e0aab2b72a9325d1376df3239159fd33f
7
- data.tar.gz: 12ef18c46d6f4b6034b178df86a55bc6a52ad668dc68b6b78b6ed177df068f3f98bdc4e402ccd7f9ec2be857d2c139c542a67eb5fa366d7419d4d79a3ec91618
6
+ metadata.gz: a15ce8dc3ca351d613c46ee91512fa6d04c0a2e542ba892d99692c48b3af7680955a9f3b7e88031500fe873293764ce527bde821a7dd9ff92ad0c448c316d45d
7
+ data.tar.gz: fca5b8d2c5d3cd091075d4e0b209ee13c9fde3b5eedcb526b3ebb87729c93fc946a2dc5a8b88dc4fb9f14687aa93eff6c8f072d95fd58b3106fd9cd7d4969771
@@ -1,8 +1,6 @@
1
1
  class <%=@model.name%>Crud < RaroCrud
2
2
 
3
- titulo "<%=@model.name.pluralize%>"
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%>, label: "<%=atributo.humanize%>"<%="\n"%> <%end%>
17
- <%@atributos.each do |atributo| %>campo_formulario :<%=atributo.to_sym%>, label: "<%=atributo.humanize%>"<%="\n"%> <%end%>
18
- <%@atributos.each do |atributo| %>campo_visualizacao :<%=atributo.to_sym%>, label: "<%=atributo.humanize%>"<%="\n"%> <%end%>
19
- <%@atributos.each do |atributo| %>campo_busca :<%=atributo.to_sym%>, label: "<%=atributo.humanize%>"<%="\n"%> <%end%>
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
@@ -1,3 +1,3 @@
1
1
  module RaroGenerator
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.1"
3
3
  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.1.1
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: 2016-12-20 00:00:00.000000000 Z
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.4.5.1
618
+ rubygems_version: 2.6.8
633
619
  signing_key:
634
620
  specification_version: 4
635
621
  summary: RaroGenerator.