advanced_haml_scaffold_generator 2.0.0 → 2.1.0
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: da2ab79a54d6d1393e9546e9b3f3318b152d691a
|
|
4
|
+
data.tar.gz: 234e3112ce5d1c8d878d0d9b00e8f4eb094b2c08
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a89aba0100bb4d798d9cfacc60212e5212cf8c8b34f1d866bc8e70a58b0c794451e31bd8a28df3d19f05b91d90c7cb225577d955d83cf57b84b2a7c4264babc5
|
|
7
|
+
data.tar.gz: d72e79e518000869b3d549c80aea23256af7bc887f6ac652c04b7212b265017fb8ffb8a45a340adcb205d1a26da6a0d6a3a352fdd5b26b20d7236931105b7868
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.
|
|
1
|
+
2.1.0
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
-
# stub: advanced_haml_scaffold_generator 2.
|
|
5
|
+
# stub: advanced_haml_scaffold_generator 2.1.0 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = "advanced_haml_scaffold_generator"
|
|
9
|
-
s.version = "2.
|
|
9
|
+
s.version = "2.1.0"
|
|
10
10
|
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
12
12
|
s.require_paths = ["lib"]
|
|
13
13
|
s.authors = ["Dmitri Koulikoff"]
|
|
14
|
-
s.date = "2016-
|
|
14
|
+
s.date = "2016-09-16"
|
|
15
15
|
s.description = "Extention of the haml generator that generates templates with the use of i18n, cancan and WiceGrid, adds classes to buttons and uses :title helper"
|
|
16
16
|
s.email = "dima@koulikoff.ru"
|
|
17
17
|
s.extra_rdoc_files = [
|
|
@@ -4,9 +4,15 @@
|
|
|
4
4
|
|
|
5
5
|
.form-inputs
|
|
6
6
|
<%- attributes.each do |attribute| -%>
|
|
7
|
-
= f.<%= attribute.reference? ? :association : :input %> :<%= attribute.column_name %>
|
|
8
7
|
<% if attribute.password_digest? -%>
|
|
8
|
+
= f.input :password
|
|
9
9
|
= f.input :password_confirmation
|
|
10
|
+
<% else -%>
|
|
11
|
+
<% if attribute.reference? -%>
|
|
12
|
+
= f.association :<%= attribute.column_name.gsub(/_id$/, '') %>, prompt: t('.<%= attribute.column_name.gsub(/_id$/, '') %>', default: 'Choose')
|
|
13
|
+
<% else -%>
|
|
14
|
+
= f.input :<%= attribute.column_name %>
|
|
15
|
+
<% end -%>
|
|
10
16
|
<% end -%>
|
|
11
17
|
<%- end -%>
|
|
12
18
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: advanced_haml_scaffold_generator
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dmitri Koulikoff
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-09-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|