ubiquo 0.4.10 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/ubiquo/template.erb +3 -1
- data/test/fixtures/template.erb +4 -5
- data/ubiquo.gemspec +2 -2
- metadata +5 -5
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.5.0
|
data/lib/ubiquo/template.erb
CHANGED
@@ -14,6 +14,7 @@ rest_plugins = %w[
|
|
14
14
|
ubiquo_versions
|
15
15
|
ubiquo_guides
|
16
16
|
ubiquo_design
|
17
|
+
translate
|
17
18
|
]
|
18
19
|
|
19
20
|
choosen_plugin_set = "<%= @opts[:profile].to_s %>"
|
@@ -241,6 +242,7 @@ ActionController::Routing::Routes.draw do |map|
|
|
241
242
|
map.namespace :ubiquo do |ubiquo|
|
242
243
|
end
|
243
244
|
|
245
|
+
Translate::Routes.translation_ui(map) unless Rails.env.production?
|
244
246
|
# Ubiquo plugins routes. See routes.rb from each plugin path.
|
245
247
|
<% if @opts[:template] == :edge && @opts[:profile] == :complete %>
|
246
248
|
<%= "map.from_plugin :ubiquo_categories" %>
|
@@ -294,7 +296,7 @@ Rails::Initializer.run do |config|
|
|
294
296
|
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
295
297
|
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}')]
|
296
298
|
# config.i18n.default_locale = :de
|
297
|
-
config.i18n.load_path
|
299
|
+
config.i18n.load_path.unshift(Dir.glob(File.join("config", "locales", "**","*.{rb,yml}"))).flatten!
|
298
300
|
config.i18n.default_locale = :<%= @opts[:locale] %>
|
299
301
|
end
|
300
302
|
CODE
|
data/test/fixtures/template.erb
CHANGED
@@ -13,6 +13,7 @@ rest_plugins = %w[
|
|
13
13
|
ubiquo_activity
|
14
14
|
ubiquo_versions
|
15
15
|
ubiquo_guides
|
16
|
+
translate
|
16
17
|
]
|
17
18
|
|
18
19
|
choosen_plugin_set = "<%= @opts[:profile].to_s %>"
|
@@ -197,14 +198,12 @@ ActionController::Routing::Routes.draw do |map|
|
|
197
198
|
map.namespace :ubiquo do |ubiquo|
|
198
199
|
end
|
199
200
|
|
201
|
+
Translate::Routes.translation_ui(map) unless Rails.env.production?
|
200
202
|
# Ubiquo plugins routes. See routes.rb from each plugin path.
|
201
|
-
|
202
|
-
<% if @opts[:template] == :edge %>
|
203
|
+
<% if @opts[:template] == :edge && @opts[:profile] == :complete %>
|
203
204
|
<%= "map.from_plugin :ubiquo_categories" %>
|
204
205
|
<% end %>
|
205
|
-
|
206
|
-
<%= "map.from_plugin :ubiquo_design" %>
|
207
|
-
<% end %>
|
206
|
+
#{ubiquo_routes}
|
208
207
|
############# default routes
|
209
208
|
#map.connect ':controller/:action/:id'
|
210
209
|
#map.connect ':controller/:action/:id.:format'
|
data/ubiquo.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{ubiquo}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.5.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Albert Callarisa", "Bernat Foj", "Eric Garc\303\255a", "Felip Ladr\303\263n", "Antoni Reina", "Ramon Salvad\303\263", "Arnau S\303\241nchez"]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-07-19}
|
13
13
|
s.default_executable = %q{ubiquo}
|
14
14
|
s.description = %q{This gem provides a command-line interface to speed up the creation of ubiquo based apps.}
|
15
15
|
s.email = %q{rsalvado@gnuine.com}
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ubiquo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 11
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 5
|
9
|
+
- 0
|
10
|
+
version: 0.5.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Albert Callarisa
|
@@ -21,7 +21,7 @@ autorequire:
|
|
21
21
|
bindir: bin
|
22
22
|
cert_chain: []
|
23
23
|
|
24
|
-
date: 2011-
|
24
|
+
date: 2011-07-19 00:00:00 +02:00
|
25
25
|
default_executable: ubiquo
|
26
26
|
dependencies:
|
27
27
|
- !ruby/object:Gem::Dependency
|