advanced_haml_scaffold_generator 2.1.0 → 2.2.0
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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c183d1b7dc02ae5fb0e30275c880b3f0c8699ef7bd4f88f315db5b80a36dc31b
|
4
|
+
data.tar.gz: 1bd387d662d538146b99cf4a5b7a171e1889515c543a03956268ae6bdc48ed8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ad5d8f632ef082f715893417362f37fbdb2526873b0f814172e967e246fbb6747d8faf148bbdfee54398d560f158b0eaef32c6fcd5b25bcf8f65ec134bdb49a
|
7
|
+
data.tar.gz: d7ddee7f274b4890686101f10d1343dba4fe2678a88a787631989a5dea9e4a7281f2b06341f58fb7ade5a51cf021eda4ad021f81c7454b171c650117a2d75db4
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.2.0
|
@@ -2,18 +2,18 @@
|
|
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.2.0 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
|
-
s.name = "advanced_haml_scaffold_generator"
|
9
|
-
s.version = "2.
|
8
|
+
s.name = "advanced_haml_scaffold_generator".freeze
|
9
|
+
s.version = "2.2.0"
|
10
10
|
|
11
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
|
-
s.require_paths = ["lib"]
|
13
|
-
s.authors = ["Dmitri Koulikoff"]
|
14
|
-
s.date = "
|
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
|
-
s.email = "dima@koulikoff.ru"
|
11
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
|
+
s.require_paths = ["lib".freeze]
|
13
|
+
s.authors = ["Dmitri Koulikoff".freeze]
|
14
|
+
s.date = "2019-12-11"
|
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".freeze
|
16
|
+
s.email = "dima@koulikoff.ru".freeze
|
17
17
|
s.extra_rdoc_files = [
|
18
18
|
"LICENSE.txt",
|
19
19
|
"README.rdoc"
|
@@ -39,33 +39,33 @@ Gem::Specification.new do |s|
|
|
39
39
|
"spec/advanced_haml_scaffold_generator_spec.rb",
|
40
40
|
"spec/spec_helper.rb"
|
41
41
|
]
|
42
|
-
s.homepage = "http://github.com/dima4p/advanced_haml_scaffold_generator"
|
43
|
-
s.licenses = ["MIT"]
|
44
|
-
s.rubygems_version = "
|
45
|
-
s.summary = "Extention of the haml generator that is aware of i18n and so forth"
|
42
|
+
s.homepage = "http://github.com/dima4p/advanced_haml_scaffold_generator".freeze
|
43
|
+
s.licenses = ["MIT".freeze]
|
44
|
+
s.rubygems_version = "3.0.3".freeze
|
45
|
+
s.summary = "Extention of the haml generator that is aware of i18n and so forth".freeze
|
46
46
|
|
47
47
|
if s.respond_to? :specification_version then
|
48
48
|
s.specification_version = 4
|
49
49
|
|
50
50
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
51
|
-
s.add_development_dependency(%q<rspec
|
52
|
-
s.add_development_dependency(%q<rdoc
|
53
|
-
s.add_development_dependency(%q<bundler
|
54
|
-
s.add_development_dependency(%q<jeweler
|
55
|
-
s.add_development_dependency(%q<simplecov
|
51
|
+
s.add_development_dependency(%q<rspec>.freeze, ["~> 3.1"])
|
52
|
+
s.add_development_dependency(%q<rdoc>.freeze, ["~> 4.1"])
|
53
|
+
s.add_development_dependency(%q<bundler>.freeze, ["~> 1.6"])
|
54
|
+
s.add_development_dependency(%q<jeweler>.freeze, ["~> 2.0"])
|
55
|
+
s.add_development_dependency(%q<simplecov>.freeze, ["~> 0.0"])
|
56
56
|
else
|
57
|
-
s.add_dependency(%q<rspec
|
58
|
-
s.add_dependency(%q<rdoc
|
59
|
-
s.add_dependency(%q<bundler
|
60
|
-
s.add_dependency(%q<jeweler
|
61
|
-
s.add_dependency(%q<simplecov
|
57
|
+
s.add_dependency(%q<rspec>.freeze, ["~> 3.1"])
|
58
|
+
s.add_dependency(%q<rdoc>.freeze, ["~> 4.1"])
|
59
|
+
s.add_dependency(%q<bundler>.freeze, ["~> 1.6"])
|
60
|
+
s.add_dependency(%q<jeweler>.freeze, ["~> 2.0"])
|
61
|
+
s.add_dependency(%q<simplecov>.freeze, ["~> 0.0"])
|
62
62
|
end
|
63
63
|
else
|
64
|
-
s.add_dependency(%q<rspec
|
65
|
-
s.add_dependency(%q<rdoc
|
66
|
-
s.add_dependency(%q<bundler
|
67
|
-
s.add_dependency(%q<jeweler
|
68
|
-
s.add_dependency(%q<simplecov
|
64
|
+
s.add_dependency(%q<rspec>.freeze, ["~> 3.1"])
|
65
|
+
s.add_dependency(%q<rdoc>.freeze, ["~> 4.1"])
|
66
|
+
s.add_dependency(%q<bundler>.freeze, ["~> 1.6"])
|
67
|
+
s.add_dependency(%q<jeweler>.freeze, ["~> 2.0"])
|
68
|
+
s.add_dependency(%q<simplecov>.freeze, ["~> 0.0"])
|
69
69
|
end
|
70
70
|
end
|
71
71
|
|
@@ -14,11 +14,11 @@
|
|
14
14
|
<% for attribute in attributes.reject(&:password_digest?) -%>
|
15
15
|
<% if attribute.reference? -%>
|
16
16
|
- g.column name: <%= class_name %>.human_attribute_name(:<%= attribute.name %>),
|
17
|
-
attribute: '<%= attribute.name %>_id' do |<%= singular_table_name %>|
|
17
|
+
class: '<%= attribute.name %>', attribute: '<%= attribute.name %>_id' do |<%= singular_table_name %>|
|
18
18
|
- <%= singular_table_name %>.<%= attribute.name %>.try :name
|
19
19
|
<% else -%>
|
20
20
|
- g.column name: <%= class_name %>.human_attribute_name(:<%= attribute.name %>),
|
21
|
-
attribute: '<%= attribute.name %>' do |<%= singular_table_name %>|
|
21
|
+
class: '<%= attribute.name %>', attribute: '<%= attribute.name %>' do |<%= singular_table_name %>|
|
22
22
|
- <%= singular_table_name %>.<%= attribute.name %>
|
23
23
|
<% end -%>
|
24
24
|
<% end -%>
|
@@ -58,9 +58,9 @@
|
|
58
58
|
%tr{class: cycle(:odd, :even)}
|
59
59
|
<% for attribute in attributes.reject(&:password_digest?) -%>
|
60
60
|
<% if attribute.reference? -%>
|
61
|
-
%td
|
61
|
+
%td.<%= attribute.name %>= <%= singular_table_name %>.<%= attribute.name %>.try :name
|
62
62
|
<% else -%>
|
63
|
-
%td
|
63
|
+
%td.<%= attribute.name %>= <%= singular_table_name %>.<%= attribute.name %>
|
64
64
|
<% end -%>
|
65
65
|
<% end -%>
|
66
66
|
<% if options[:cancan] -%>
|
@@ -15,8 +15,8 @@
|
|
15
15
|
<% for attribute in attributes.reject(&:password_digest?) -%>
|
16
16
|
%dt= <%= class_name %>.human_attribute_name :<%= attribute.name %>
|
17
17
|
<% if attribute.reference? -%>
|
18
|
-
%dd
|
18
|
+
%dd.<%= attribute.name %>= @<%= singular_table_name %>.<%= attribute.name %>.try :name
|
19
19
|
<% else -%>
|
20
|
-
%dd
|
20
|
+
%dd.<%= attribute.name %>= @<%= singular_table_name %>.<%= attribute.name %>
|
21
21
|
<% end -%>
|
22
22
|
<% end -%>
|
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.2.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:
|
11
|
+
date: 2019-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -127,8 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
127
127
|
- !ruby/object:Gem::Version
|
128
128
|
version: '0'
|
129
129
|
requirements: []
|
130
|
-
|
131
|
-
rubygems_version: 2.5.1
|
130
|
+
rubygems_version: 3.0.3
|
132
131
|
signing_key:
|
133
132
|
specification_version: 4
|
134
133
|
summary: Extention of the haml generator that is aware of i18n and so forth
|