beautiful_scaffold 0.3.0.rc4 → 0.3.0.rc5
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.
data/CHANGELOG
CHANGED
data/README.rdoc
CHANGED
data/beautiful_scaffold.gemspec
CHANGED
|
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
|
3
3
|
|
|
4
4
|
Gem::Specification.new do |s|
|
|
5
5
|
s.name = "beautiful_scaffold"
|
|
6
|
-
s.version = "0.3.0.
|
|
6
|
+
s.version = "0.3.0.rc5"
|
|
7
7
|
s.platform = Gem::Platform::RUBY
|
|
8
8
|
s.summary = "Beautiful Scaffold generate fully customizable scaffold"
|
|
9
9
|
s.email = "claudel.sylvain@gmail.com"
|
|
@@ -85,9 +85,19 @@ class BeautifulLocaleGenerator < Rails::Generators::Base
|
|
|
85
85
|
'bs_attributes' => {},
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
88
|
+
begin
|
|
89
|
+
bs_caption = translate_string(name.downcase, model)
|
|
90
|
+
rescue
|
|
91
|
+
bs_caption = model
|
|
92
|
+
end
|
|
93
|
+
hi18n[name.downcase]['app']['models'][model]['bs_caption'] = bs_caption
|
|
94
|
+
begin
|
|
95
|
+
bs_caption_plural = translate_string(name.downcase, model.pluralize)
|
|
96
|
+
rescue
|
|
97
|
+
bs_caption_plural = model.pluralize
|
|
98
|
+
end
|
|
99
|
+
hi18n[name.downcase]['app']['models'][model]['bs_caption_plural'] = bs_caption_plural
|
|
100
|
+
hi18n[name.downcase]['app']['models'][model]['bs_attributes'] ||= {}
|
|
91
101
|
|
|
92
102
|
sorted_attr.each { |k|
|
|
93
103
|
if already_processed[name.downcase][k].nil? then
|
|
@@ -102,7 +112,6 @@ class BeautifulLocaleGenerator < Rails::Generators::Base
|
|
|
102
112
|
attr_translate = already_processed[name.downcase][k]
|
|
103
113
|
end
|
|
104
114
|
|
|
105
|
-
puts "====> #{k} / #{attr_translate} / #{hi18n[name.downcase]['app']['models'][model]}"
|
|
106
115
|
hi18n[name.downcase]['app']['models'][model]['bs_attributes'][k] = attr_translate
|
|
107
116
|
}
|
|
108
117
|
}
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: beautiful_scaffold
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.0.
|
|
4
|
+
version: 0.3.0.rc5
|
|
5
5
|
prerelease: 6
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-07-
|
|
12
|
+
date: 2013-07-15 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description: Beautiful Scaffold generate a complete scaffold (sort, export, paginate
|
|
15
15
|
and filter data) http://www.beautiful-scaffold.com
|