hobo 1.3.0.pre18 → 1.3.0.pre19
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/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.3.0.
|
1
|
+
1.3.0.pre19
|
@@ -188,8 +188,8 @@ EOI
|
|
188
188
|
$1
|
189
189
|
end
|
190
190
|
say "The Hobo supported locales are #{supported_locales * ' '} (please, contribute to more translations)"
|
191
|
-
locales = ask
|
192
|
-
unless locales == 'en'
|
191
|
+
locales = ask("Type the locales (space separated) you want to add to your application or <enter> for 'en':", 'en').split(/\s/)
|
192
|
+
unless locales.size == 1 && locales.first == 'en'
|
193
193
|
default_locale = ask "Do you want to set a default locale? Type the locale or <enter> to skip:"
|
194
194
|
end
|
195
195
|
else
|
@@ -200,8 +200,9 @@ EOI
|
|
200
200
|
default_locale.gsub!(/\:/, '')
|
201
201
|
environment "config.i18n.default_locale = #{default_locale.to_sym.inspect}"
|
202
202
|
end
|
203
|
-
|
204
|
-
|
203
|
+
ls = (locales - %w[en]).map {|l| ":#{l}" }
|
204
|
+
invoke 'hobo:i18n', locales
|
205
|
+
say( "NOTICE: You should manually install in 'config/locales' also the official Rails locale #{ls.size==1 ? 'file' : 'files'} for #{ls.to_sentence} that your application will use.", Color::YELLOW) unless ls.empty?
|
205
206
|
end
|
206
207
|
|
207
208
|
def git_repo
|
@@ -236,7 +236,7 @@ Provides a short hand way of displaying images in public/images
|
|
236
236
|
|
237
237
|
<!-- Renders a human readable name of a collection
|
238
238
|
|
239
|
-
|
239
|
+
Use this tag for en locale only. Use human-collection-name for i18n.
|
240
240
|
|
241
241
|
### Details
|
242
242
|
|
@@ -21,7 +21,7 @@
|
|
21
21
|
<unless test="&this.member_class.nil?">
|
22
22
|
<div class="empty-collection-message" style="#{'display:none' if !this.empty?}" param="default">
|
23
23
|
<ht key="#{this.member_class.name.tableize}.collection.empty_message">
|
24
|
-
No <
|
24
|
+
No <collection-name/> to display
|
25
25
|
</ht>
|
26
26
|
</div>
|
27
27
|
</unless>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hobo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: -
|
4
|
+
hash: -1637175954
|
5
5
|
prerelease: true
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 3
|
9
9
|
- 0
|
10
|
-
-
|
11
|
-
version: 1.3.0.
|
10
|
+
- pre19
|
11
|
+
version: 1.3.0.pre19
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Tom Locke
|
@@ -59,13 +59,13 @@ dependencies:
|
|
59
59
|
requirements:
|
60
60
|
- - "="
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
hash: -
|
62
|
+
hash: -1637175954
|
63
63
|
segments:
|
64
64
|
- 1
|
65
65
|
- 3
|
66
66
|
- 0
|
67
|
-
-
|
68
|
-
version: 1.3.0.
|
67
|
+
- pre19
|
68
|
+
version: 1.3.0.pre19
|
69
69
|
type: :runtime
|
70
70
|
version_requirements: *id003
|
71
71
|
- !ruby/object:Gem::Dependency
|
@@ -76,13 +76,13 @@ dependencies:
|
|
76
76
|
requirements:
|
77
77
|
- - "="
|
78
78
|
- !ruby/object:Gem::Version
|
79
|
-
hash: -
|
79
|
+
hash: -1637175954
|
80
80
|
segments:
|
81
81
|
- 1
|
82
82
|
- 3
|
83
83
|
- 0
|
84
|
-
-
|
85
|
-
version: 1.3.0.
|
84
|
+
- pre19
|
85
|
+
version: 1.3.0.pre19
|
86
86
|
type: :runtime
|
87
87
|
version_requirements: *id004
|
88
88
|
- !ruby/object:Gem::Dependency
|
@@ -93,13 +93,13 @@ dependencies:
|
|
93
93
|
requirements:
|
94
94
|
- - "="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
hash: -
|
96
|
+
hash: -1637175954
|
97
97
|
segments:
|
98
98
|
- 1
|
99
99
|
- 3
|
100
100
|
- 0
|
101
|
-
-
|
102
|
-
version: 1.3.0.
|
101
|
+
- pre19
|
102
|
+
version: 1.3.0.pre19
|
103
103
|
type: :runtime
|
104
104
|
version_requirements: *id005
|
105
105
|
- !ruby/object:Gem::Dependency
|