hobo 1.3.0.pre19 → 1.3.0.pre20
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/CHANGES.txt +282 -234
- data/VERSION +1 -1
- data/lib/generators/hobo/admin_subsite/templates/controller.rb.erb +5 -5
- data/lib/generators/hobo/assets/templates/dryml-support.js +2 -2
- data/lib/generators/hobo/i18n/templates/hobo.it.yml +1 -1
- data/lib/generators/hobo/rapid/templates/hobo-rapid.js +64 -64
- data/lib/generators/hobo/rapid/templates/ie7-recalc.js +21 -21
- data/lib/generators/hobo/rapid/templates/lowpro.js +31 -31
- data/lib/generators/hobo/rapid/templates/reset.css +1 -1
- data/lib/generators/hobo/rapid/templates/themes/clean/public/stylesheets/clean.css +15 -15
- data/lib/generators/hobo/rapid/templates/themes/clean/public/stylesheets/rapid-ui.css +3 -3
- data/lib/generators/hobo/rapid/templates/themes/clean/views/clean.dryml +1 -1
- data/lib/generators/hobo/setup_wizard/setup_wizard_generator.rb +15 -14
- data/lib/generators/hobo/subsite/templates/controller.rb.erb +1 -1
- data/lib/generators/hobo/user_controller/templates/controller.rb.erb +2 -2
- data/lib/hobo.rb +1 -0
- data/lib/hobo/controller.rb +6 -6
- data/lib/hobo/controller/authentication_support.rb +1 -1
- data/lib/hobo/controller/model.rb +10 -10
- data/lib/hobo/controller/user.rb +6 -6
- data/lib/hobo/engine.rb +6 -0
- data/lib/hobo/extensions/action_view/translation_helper.rb +20 -0
- data/lib/hobo/extensions/active_model/translation.rb +1 -1
- data/lib/hobo/extensions/i18n.rb +16 -0
- data/lib/hobo/helper.rb +2 -2
- data/lib/hobo/helper/translations.rb +61 -80
- data/lib/hobo/model/lifecycles/lifecycle.rb +5 -1
- data/lib/hobo/model/lifecycles/transition.rb +1 -0
- data/lib/hobo/rapid/generators/rapid/cards.dryml.erb +2 -2
- data/lib/hobo/rapid/generators/rapid/forms.dryml.erb +2 -2
- data/lib/hobo/rapid/generators/rapid/pages.dryml.erb +7 -7
- data/lib/hobo/rapid/taglibs/rapid.dryml +1 -1
- data/lib/hobo/rapid/taglibs/rapid_core.dryml +8 -8
- data/lib/hobo/rapid/taglibs/rapid_document_tags.dryml +2 -2
- data/lib/hobo/rapid/taglibs/rapid_forms.dryml +9 -9
- data/lib/hobo/rapid/taglibs/rapid_generics.dryml +1 -1
- data/lib/hobo/rapid/taglibs/rapid_i18n.dryml +0 -17
- data/lib/hobo/rapid/taglibs/rapid_lifecycles.dryml +5 -5
- data/lib/hobo/rapid/taglibs/rapid_navigation.dryml +1 -1
- data/lib/hobo/rapid/taglibs/rapid_plus.dryml +6 -6
- data/lib/hobo/rapid/taglibs/rapid_user_pages.dryml +8 -8
- data/test/permissions/test_permissions.rb +103 -103
- metadata +15 -14
- data/lib/hobo/rapid/taglibs/rapid_translations.dryml +0 -36
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: -1637108442
|
5
5
|
prerelease: true
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 3
|
9
9
|
- 0
|
10
|
-
-
|
11
|
-
version: 1.3.0.
|
10
|
+
- pre20
|
11
|
+
version: 1.3.0.pre20
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Tom Locke
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-11-
|
19
|
+
date: 2010-11-22 00:00:00 -04:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -59,13 +59,13 @@ dependencies:
|
|
59
59
|
requirements:
|
60
60
|
- - "="
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
hash: -
|
62
|
+
hash: -1637108442
|
63
63
|
segments:
|
64
64
|
- 1
|
65
65
|
- 3
|
66
66
|
- 0
|
67
|
-
-
|
68
|
-
version: 1.3.0.
|
67
|
+
- pre20
|
68
|
+
version: 1.3.0.pre20
|
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: -1637108442
|
80
80
|
segments:
|
81
81
|
- 1
|
82
82
|
- 3
|
83
83
|
- 0
|
84
|
-
-
|
85
|
-
version: 1.3.0.
|
84
|
+
- pre20
|
85
|
+
version: 1.3.0.pre20
|
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: -1637108442
|
97
97
|
segments:
|
98
98
|
- 1
|
99
99
|
- 3
|
100
100
|
- 0
|
101
|
-
-
|
102
|
-
version: 1.3.0.
|
101
|
+
- pre20
|
102
|
+
version: 1.3.0.pre20
|
103
103
|
type: :runtime
|
104
104
|
version_requirements: *id005
|
105
105
|
- !ruby/object:Gem::Dependency
|
@@ -263,6 +263,7 @@ files:
|
|
263
263
|
- lib/hobo/extensions/action_controller/hobo_methods.rb
|
264
264
|
- lib/hobo/extensions/action_mailer/helper.rb
|
265
265
|
- lib/hobo/extensions/action_view/tag_helper.rb
|
266
|
+
- lib/hobo/extensions/action_view/translation_helper.rb
|
266
267
|
- lib/hobo/extensions/active_model/name.rb
|
267
268
|
- lib/hobo/extensions/active_model/translation.rb
|
268
269
|
- lib/hobo/extensions/active_record/association_collection.rb
|
@@ -274,6 +275,7 @@ files:
|
|
274
275
|
- lib/hobo/extensions/active_record/scopes.rb
|
275
276
|
- lib/hobo/extensions/array.rb
|
276
277
|
- lib/hobo/extensions/enumerable.rb
|
278
|
+
- lib/hobo/extensions/i18n.rb
|
277
279
|
- lib/hobo/helper.rb
|
278
280
|
- lib/hobo/helper/translations.rb
|
279
281
|
- lib/hobo/model.rb
|
@@ -310,7 +312,6 @@ files:
|
|
310
312
|
- lib/hobo/rapid/taglibs/rapid_plus.dryml
|
311
313
|
- lib/hobo/rapid/taglibs/rapid_summary.dryml
|
312
314
|
- lib/hobo/rapid/taglibs/rapid_support.dryml
|
313
|
-
- lib/hobo/rapid/taglibs/rapid_translations.dryml
|
314
315
|
- lib/hobo/rapid/taglibs/rapid_user_pages.dryml
|
315
316
|
- lib/hobo/routes.rb
|
316
317
|
- lib/hobo/undefined.rb
|
@@ -1,36 +0,0 @@
|
|
1
|
-
<!-- Rapid Translations contains the tags that assist with internationalization. -->
|
2
|
-
|
3
|
-
<!--
|
4
|
-
|
5
|
-
Uses RoR native I18n.translate.
|
6
|
-
|
7
|
-
Adds some conventions for easier hobo translation.
|
8
|
-
|
9
|
-
1. Assumes the first part of the key to be a model name (e.g.: users.index.title -> user)
|
10
|
-
2. Tries to translate the model by lookup for: (e.g.: user-> activerecord.models.user)
|
11
|
-
3. Adds a default fallback to the beginning of the fallback chain by replacing the first part of the key with "hobo" and using the translated model name as additional attribute. This allows us to have default translations (e.g.: hobo.index.title: "{{model}} Index")
|
12
|
-
|
13
|
-
Is also used as a tag in the dryml-view files. The syntax is:
|
14
|
-
|
15
|
-
<ht key="my.app">My Application</ht>
|
16
|
-
|
17
|
-
Will lookup the "my.app"-key for your locale and replaces the "My Application" content if found.
|
18
|
-
|
19
|
-
<ht key="my" app="Program">My Application</ht>
|
20
|
-
|
21
|
-
Will look up both the "my"- and "app"-key for your locale, and replaces the "My Application" with the "my"-key contents (interpolated using the "app"-key.
|
22
|
-
|
23
|
-
sample.no.yml-file:
|
24
|
-
|
25
|
-
"no":
|
26
|
-
my: "Mitt {{app}}"
|
27
|
-
|
28
|
-
The output should be: Mitt Program
|
29
|
-
|
30
|
-
Otherwise with features as the ht method, step 1, 2 and 3 above.
|
31
|
-
|
32
|
-
For more information, see the [manual](/manual/i18n)
|
33
|
-
-->
|
34
|
-
<def tag="ht">
|
35
|
-
<% # this tag is actually implemented in translations.rb. This file is for documentation only! -%>
|
36
|
-
</def>
|