hobo 0.8.7 → 0.8.8
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.txt +57 -0
- data/Manifest +135 -131
- data/Rakefile +3 -3
- data/hobo.gemspec +10 -10
- data/lib/active_record/viewhints_validations_interceptor.rb +9 -0
- data/lib/hobo.rb +1 -1
- data/lib/hobo/lifecycles.rb +2 -1
- data/lib/hobo/lifecycles/actions.rb +2 -2
- data/lib/hobo/lifecycles/lifecycle.rb +13 -2
- data/lib/hobo/model.rb +8 -1
- data/lib/hobo/model_controller.rb +22 -4
- data/lib/hobo/scopes/automatic_scopes.rb +3 -1
- data/lib/hobo/user_controller.rb +9 -1
- data/rails_generators/hobo_rapid/templates/hobo-rapid.js +1 -1
- data/rails_generators/hobo_rapid/templates/themes/clean/public/images/100-3B5F87-ACD3E6.png +0 -0
- data/rails_generators/hobo_rapid/templates/themes/clean/public/images/300-ACD3E6-fff.png +0 -0
- data/rails_generators/hobo_rapid/templates/themes/clean/public/images/50-ACD3E6-fff.png +0 -0
- data/rails_generators/hobo_rapid/templates/themes/clean/public/stylesheets/clean.css +4 -14
- data/rails_generators/hobo_user_model/templates/model.rb +1 -1
- data/taglibs/rapid_core.dryml +1 -1
- data/taglibs/rapid_editing.dryml +4 -1
- data/taglibs/rapid_forms.dryml +48 -23
- data/taglibs/rapid_lifecycles.dryml +1 -0
- data/taglibs/rapid_navigation.dryml +7 -5
- data/taglibs/rapid_plus.dryml +1 -1
- metadata +184 -179
data/CHANGES.txt
CHANGED
@@ -1,3 +1,60 @@
|
|
1
|
+
=== Hobo 0.8.8 ===
|
2
|
+
|
3
|
+
Hobo 0.8.8 comes with some slight changes to the colour scheme for the
|
4
|
+
"clean" theme. To apply these enhancements, you may need to run
|
5
|
+
`rake hobo:run_standard_generators`.
|
6
|
+
|
7
|
+
Significant bug fixes:
|
8
|
+
|
9
|
+
- [Bug 422](https://hobo.lighthouseapp.com/projects/8324/tickets/422): Because of it's switch to Rack, Rails 2.3 changed the interaction
|
10
|
+
between checkboxes and their accompanying hidden field. This caused
|
11
|
+
us to always return "false" for a checkbox, even if it was checked.
|
12
|
+
|
13
|
+
- [Bug 425](https://hobo.lighthouseapp.com/projects/8324/tickets/425): Hobo 0.8.6 removed support for the non-working
|
14
|
+
big_decimal. However, this shared some code with decimal, so we
|
15
|
+
removed a little bit too much code. This restores the missing
|
16
|
+
editor and input for the decimal type.
|
17
|
+
|
18
|
+
Minor bug fixes:
|
19
|
+
|
20
|
+
- [Bug 413](https://hobo.lighthouseapp.com/projects/8324/tickets/413): add target attribute to `<nav-item>` links
|
21
|
+
|
22
|
+
- [Bug 420](https://hobo.lighthouseapp.com/projects/8324/tickets/420): `acts_as_list` controls visible to Guest
|
23
|
+
|
24
|
+
- [Bug 446](https://hobo.lighthouseapp.com/projects/8324/tickets/446): `<transition-button>` not working
|
25
|
+
|
26
|
+
- Migration generator fix - would occasionally suggest a default
|
27
|
+
migration name that already exists
|
28
|
+
|
29
|
+
Minor enhancements:
|
30
|
+
|
31
|
+
- [Bug 434](https://hobo.lighthouseapp.com/projects/8324/tickets/434): allow String or Hash to be passed in a :redirect optione
|
32
|
+
|
33
|
+
- `key_timeout` option added to lifecycles
|
34
|
+
|
35
|
+
- [Bug 437](https://hobo.lighthouseapp.com/projects/8324/tickets/437): 'options' attribute added to `<check-many>`
|
36
|
+
|
37
|
+
- [Bug 424](https://hobo.lighthouseapp.com/projects/8324/tickets/424): 'limit' option added to `<select-one>`
|
38
|
+
|
39
|
+
- [Bug 440](https://hobo.lighthouseapp.com/projects/8324/tickets/440): support blank Time and DateTime inputs
|
40
|
+
|
41
|
+
- [Bug 423](https://hobo.lighthouseapp.com/projects/8324/tickets/423): default content for input-many
|
42
|
+
|
43
|
+
- [Bug 379](https://hobo.lighthouseapp.com/projects/8324/tickets/379): multiple warning messages on email validation
|
44
|
+
|
45
|
+
- [Bug 404](https://hobo.lighthouseapp.com/projects/8324/tickets/404): Extension to Hobo::Model class to check ViewHints for error
|
46
|
+
validations
|
47
|
+
|
48
|
+
- [Bug 415](https://hobo.lighthouseapp.com/projects/8324/tickets/415): Visiting sign-up page when logged in gives permission
|
49
|
+
denied
|
50
|
+
|
51
|
+
- Rapid navigation - added name attribute to `<nav-item>` to make it easier to select the current nav item in some cases (e.g. dynamic nav item text)
|
52
|
+
|
53
|
+
- Rapid forms -- added url attribute to `<remote-method-button>`
|
54
|
+
|
55
|
+
- HoboSupport - `Enumerable.build_hash` can now be used without a block to build a hash directly from a list of pairs
|
56
|
+
|
57
|
+
|
1
58
|
=== Hobo 0.8.7 ===
|
2
59
|
|
3
60
|
I forgot to refresh the Manifest, so this is a brown paper bag release.
|
data/Manifest
CHANGED
@@ -1,151 +1,155 @@
|
|
1
|
-
LICENSE.txt
|
2
|
-
README
|
3
|
-
rails_generators/hobo_model_controller/hobo_model_controller_generator.rb
|
4
|
-
rails_generators/hobo_model_controller/USAGE
|
5
|
-
rails_generators/hobo_model_controller/templates/functional_test.rb
|
6
|
-
rails_generators/hobo_model_controller/templates/helper.rb
|
7
|
-
rails_generators/hobo_model_controller/templates/controller.rb
|
8
|
-
rails_generators/hobo_user_model/USAGE
|
9
|
-
rails_generators/hobo_user_model/templates/forgot_password.erb
|
10
|
-
rails_generators/hobo_user_model/templates/fixtures.yml
|
11
|
-
rails_generators/hobo_user_model/templates/model.rb
|
12
|
-
rails_generators/hobo_user_model/templates/mailer.rb
|
13
|
-
rails_generators/hobo_user_model/templates/unit_test.rb
|
14
|
-
rails_generators/hobo_user_model/hobo_user_model_generator.rb
|
15
|
-
rails_generators/hobo_model/hobo_model_generator.rb
|
16
|
-
rails_generators/hobo_model/USAGE
|
17
|
-
rails_generators/hobo_model/templates/fixtures.yml
|
18
|
-
rails_generators/hobo_model/templates/model.rb
|
19
|
-
rails_generators/hobo_model/templates/hints.rb
|
20
|
-
rails_generators/hobo_model/templates/unit_test.rb
|
21
|
-
rails_generators/hobo_subsite/hobo_subsite_generator.rb
|
22
|
-
rails_generators/hobo_subsite/templates/site_taglib.dryml
|
23
|
-
rails_generators/hobo_subsite/templates/application.dryml
|
24
|
-
rails_generators/hobo_subsite/templates/controller.rb
|
25
|
-
rails_generators/hobo_rapid/hobo_rapid_generator.rb
|
26
|
-
rails_generators/hobo_rapid/templates/blank.gif
|
27
|
-
rails_generators/hobo_rapid/templates/ie7-recalc.js
|
28
|
-
rails_generators/hobo_rapid/templates/reset.css
|
29
|
-
rails_generators/hobo_rapid/templates/hobo-rapid.css
|
30
|
-
rails_generators/hobo_rapid/templates/themes/clean/views/clean.dryml
|
31
|
-
rails_generators/hobo_rapid/templates/themes/clean/public/stylesheets/clean.css
|
32
|
-
rails_generators/hobo_rapid/templates/themes/clean/public/stylesheets/rapid-ui.css
|
33
|
-
rails_generators/hobo_rapid/templates/themes/clean/public/images/fieldbg.gif
|
34
|
-
rails_generators/hobo_rapid/templates/themes/clean/public/images/spinner.gif
|
35
|
-
rails_generators/hobo_rapid/templates/themes/clean/public/images/small_close.png
|
36
|
-
rails_generators/hobo_rapid/templates/themes/clean/public/images/pencil.png
|
37
|
-
rails_generators/hobo_rapid/templates/IE7.js
|
38
|
-
rails_generators/hobo_rapid/templates/hobo-rapid.js
|
39
|
-
rails_generators/hobo_rapid/templates/lowpro.js
|
40
|
-
rails_generators/hobo/hobo_generator.rb
|
41
|
-
rails_generators/hobo/templates/application.css
|
42
|
-
rails_generators/hobo/templates/initializer.rb
|
43
|
-
rails_generators/hobo/templates/dryml-support.js
|
44
|
-
rails_generators/hobo/templates/application.dryml
|
45
|
-
rails_generators/hobo/templates/guest.rb
|
46
|
-
rails_generators/hobo_model_resource/templates/functional_test.rb
|
47
|
-
rails_generators/hobo_model_resource/templates/helper.rb
|
48
|
-
rails_generators/hobo_model_resource/templates/controller.rb
|
49
|
-
rails_generators/hobo_model_resource/hobo_model_resource_generator.rb
|
50
|
-
rails_generators/hobo_front_controller/hobo_front_controller_generator.rb
|
51
|
-
rails_generators/hobo_front_controller/USAGE
|
52
|
-
rails_generators/hobo_front_controller/templates/index.dryml
|
53
|
-
rails_generators/hobo_front_controller/templates/functional_test.rb
|
54
|
-
rails_generators/hobo_front_controller/templates/helper.rb
|
55
|
-
rails_generators/hobo_front_controller/templates/controller.rb
|
56
|
-
rails_generators/hobo_user_controller/hobo_user_controller_generator.rb
|
57
|
-
rails_generators/hobo_user_controller/USAGE
|
58
|
-
rails_generators/hobo_user_controller/templates/functional_test.rb
|
59
|
-
rails_generators/hobo_user_controller/templates/helper.rb
|
60
|
-
rails_generators/hobo_user_controller/templates/controller.rb
|
61
|
-
tasks/hobo_tasks.rake
|
62
|
-
tasks/environments.rake
|
63
|
-
Rakefile
|
64
|
-
init.rb
|
65
|
-
script/generate
|
66
|
-
script/destroy
|
67
|
-
bin/hobo
|
68
1
|
lib/hobo.rb
|
69
|
-
lib/hobo/lifecycles/
|
2
|
+
lib/hobo/lifecycles/state.rb
|
3
|
+
lib/hobo/lifecycles/transition.rb
|
70
4
|
lib/hobo/lifecycles/actions.rb
|
71
5
|
lib/hobo/lifecycles/creator.rb
|
72
|
-
lib/hobo/lifecycles/
|
73
|
-
lib/hobo/
|
74
|
-
lib/hobo/
|
75
|
-
lib/hobo/
|
6
|
+
lib/hobo/lifecycles/lifecycle.rb
|
7
|
+
lib/hobo/dryml/tag_parameters.rb
|
8
|
+
lib/hobo/dryml/template_environment.rb
|
9
|
+
lib/hobo/dryml/parser.rb
|
10
|
+
lib/hobo/dryml/template_handler.rb
|
11
|
+
lib/hobo/dryml/parser/source.rb
|
12
|
+
lib/hobo/dryml/parser/tree_parser.rb
|
13
|
+
lib/hobo/dryml/parser/attribute.rb
|
14
|
+
lib/hobo/dryml/parser/text.rb
|
15
|
+
lib/hobo/dryml/parser/base_parser.rb
|
16
|
+
lib/hobo/dryml/parser/document.rb
|
17
|
+
lib/hobo/dryml/parser/elements.rb
|
18
|
+
lib/hobo/dryml/parser/element.rb
|
19
|
+
lib/hobo/dryml/taglib.rb
|
20
|
+
lib/hobo/dryml/dryml_support_controller.rb
|
21
|
+
lib/hobo/dryml/dryml_builder.rb
|
22
|
+
lib/hobo/dryml/dryml_doc.rb
|
23
|
+
lib/hobo/dryml/part_context.rb
|
24
|
+
lib/hobo/dryml/template.rb
|
25
|
+
lib/hobo/dryml/dryml_generator.rb
|
26
|
+
lib/hobo/dryml/scoped_variables.rb
|
76
27
|
lib/hobo/permissions.rb
|
28
|
+
lib/hobo/guest.rb
|
29
|
+
lib/hobo/user_controller.rb
|
30
|
+
lib/hobo/rapid_helper.rb
|
31
|
+
lib/hobo/tasks/rails.rb
|
32
|
+
lib/hobo/permissions/associations.rb
|
77
33
|
lib/hobo/include_in_save.rb
|
78
|
-
lib/hobo/
|
79
|
-
lib/hobo/generator.rb
|
80
|
-
lib/hobo/model_controller.rb
|
81
|
-
lib/hobo/scopes/apply_scopes.rb
|
34
|
+
lib/hobo/hobo_helper.rb
|
82
35
|
lib/hobo/scopes/named_scope_extensions.rb
|
36
|
+
lib/hobo/scopes/apply_scopes.rb
|
83
37
|
lib/hobo/scopes/automatic_scopes.rb
|
84
38
|
lib/hobo/scopes/association_proxy_extensions.rb
|
85
|
-
lib/hobo/
|
86
|
-
lib/hobo/
|
87
|
-
lib/hobo/
|
88
|
-
lib/hobo/
|
39
|
+
lib/hobo/bundle.rb
|
40
|
+
lib/hobo/controller.rb
|
41
|
+
lib/hobo/find_for.rb
|
42
|
+
lib/hobo/lifecycles.rb
|
43
|
+
lib/hobo/undefined.rb
|
89
44
|
lib/hobo/user.rb
|
45
|
+
lib/hobo/dryml.rb
|
90
46
|
lib/hobo/undefined_access_error.rb
|
91
|
-
lib/hobo/user_controller.rb
|
92
|
-
lib/hobo/undefined.rb
|
93
|
-
lib/hobo/model.rb
|
94
47
|
lib/hobo/authentication_support.rb
|
95
|
-
lib/hobo/
|
48
|
+
lib/hobo/dev_controller.rb
|
49
|
+
lib/hobo/accessible_associations.rb
|
96
50
|
lib/hobo/scopes.rb
|
51
|
+
lib/hobo/view_hints.rb
|
52
|
+
lib/hobo/generator.rb
|
53
|
+
lib/hobo/static_tags
|
97
54
|
lib/hobo/model_router.rb
|
98
|
-
lib/hobo/
|
99
|
-
lib/hobo/
|
100
|
-
lib/hobo/dryml/part_context.rb
|
101
|
-
lib/hobo/dryml/template_handler.rb
|
102
|
-
lib/hobo/dryml/dryml_doc.rb
|
103
|
-
lib/hobo/dryml/dryml_builder.rb
|
104
|
-
lib/hobo/dryml/taglib.rb
|
105
|
-
lib/hobo/dryml/parser.rb
|
106
|
-
lib/hobo/dryml/dryml_support_controller.rb
|
107
|
-
lib/hobo/dryml/template.rb
|
108
|
-
lib/hobo/dryml/template_environment.rb
|
109
|
-
lib/hobo/dryml/scoped_variables.rb
|
110
|
-
lib/hobo/dryml/dryml_generator.rb
|
111
|
-
lib/hobo/dryml/parser/elements.rb
|
112
|
-
lib/hobo/dryml/parser/element.rb
|
113
|
-
lib/hobo/dryml/parser/attribute.rb
|
114
|
-
lib/hobo/dryml/parser/source.rb
|
115
|
-
lib/hobo/dryml/parser/base_parser.rb
|
116
|
-
lib/hobo/dryml/parser/document.rb
|
117
|
-
lib/hobo/dryml/parser/tree_parser.rb
|
118
|
-
lib/hobo/dryml/parser/text.rb
|
119
|
-
lib/hobo/dryml/tag_parameters.rb
|
120
|
-
lib/hobo/dryml.rb
|
121
|
-
lib/hobo/rapid_helper.rb
|
122
|
-
lib/hobo/guest.rb
|
123
|
-
lib/hobo/controller.rb
|
55
|
+
lib/hobo/model_controller.rb
|
56
|
+
lib/hobo/model.rb
|
124
57
|
lib/action_view_extensions/helpers/tag_helper.rb
|
58
|
+
lib/active_record/association_proxy.rb
|
125
59
|
lib/active_record/association_reflection.rb
|
126
60
|
lib/active_record/association_collection.rb
|
127
|
-
lib/active_record/
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
test/permissions/test_permissions.rb
|
136
|
-
test/permissions/models/schema.rb
|
137
|
-
test/permissions/models/models.rb
|
138
|
-
taglibs/rapid_generics.dryml
|
139
|
-
taglibs/rapid_editing.dryml
|
140
|
-
taglibs/rapid_pages.dryml
|
141
|
-
taglibs/rapid.dryml
|
142
|
-
taglibs/rapid_plus.dryml
|
61
|
+
lib/active_record/viewhints_validations_interceptor.rb
|
62
|
+
bin/hobo
|
63
|
+
Rakefile
|
64
|
+
tasks/hobo_tasks.rake
|
65
|
+
tasks/environments.rake
|
66
|
+
CHANGES.txt
|
67
|
+
taglibs/rapid_document_tags.dryml
|
68
|
+
taglibs/rapid_support.dryml
|
143
69
|
taglibs/rapid_navigation.dryml
|
70
|
+
taglibs/rapid_generics.dryml
|
71
|
+
taglibs/rapid_user_pages.dryml
|
144
72
|
taglibs/core.dryml
|
145
|
-
taglibs/rapid_forms.dryml
|
146
73
|
taglibs/rapid_lifecycles.dryml
|
147
|
-
taglibs/
|
74
|
+
taglibs/rapid.dryml
|
75
|
+
taglibs/rapid_editing.dryml
|
76
|
+
taglibs/rapid_pages.dryml
|
148
77
|
taglibs/rapid_core.dryml
|
149
|
-
taglibs/
|
150
|
-
taglibs/
|
151
|
-
|
78
|
+
taglibs/rapid_forms.dryml
|
79
|
+
taglibs/rapid_plus.dryml
|
80
|
+
rails_generators/hobo_user_controller/templates/functional_test.rb
|
81
|
+
rails_generators/hobo_user_controller/templates/helper.rb
|
82
|
+
rails_generators/hobo_user_controller/templates/controller.rb
|
83
|
+
rails_generators/hobo_user_controller/USAGE
|
84
|
+
rails_generators/hobo_user_controller/hobo_user_controller_generator.rb
|
85
|
+
rails_generators/hobo_rapid/templates/IE7.js
|
86
|
+
rails_generators/hobo_rapid/templates/reset.css
|
87
|
+
rails_generators/hobo_rapid/templates/blank.gif
|
88
|
+
rails_generators/hobo_rapid/templates/lowpro.js
|
89
|
+
rails_generators/hobo_rapid/templates/ie7-recalc.js
|
90
|
+
rails_generators/hobo_rapid/templates/hobo-rapid.js
|
91
|
+
rails_generators/hobo_rapid/templates/themes/clean/views/clean.dryml
|
92
|
+
rails_generators/hobo_rapid/templates/themes/clean/public/stylesheets/clean.css
|
93
|
+
rails_generators/hobo_rapid/templates/themes/clean/public/stylesheets/rapid-ui.css
|
94
|
+
rails_generators/hobo_rapid/templates/themes/clean/public/images/fieldbg.gif
|
95
|
+
rails_generators/hobo_rapid/templates/themes/clean/public/images/pencil.png
|
96
|
+
rails_generators/hobo_rapid/templates/themes/clean/public/images/50-ACD3E6-fff.png
|
97
|
+
rails_generators/hobo_rapid/templates/themes/clean/public/images/small_close.png
|
98
|
+
rails_generators/hobo_rapid/templates/themes/clean/public/images/100-3B5F87-ACD3E6.png
|
99
|
+
rails_generators/hobo_rapid/templates/themes/clean/public/images/300-ACD3E6-fff.png
|
100
|
+
rails_generators/hobo_rapid/templates/themes/clean/public/images/spinner.gif
|
101
|
+
rails_generators/hobo_rapid/templates/hobo-rapid.css
|
102
|
+
rails_generators/hobo_rapid/hobo_rapid_generator.rb
|
103
|
+
rails_generators/hobo/templates/dryml-support.js
|
104
|
+
rails_generators/hobo/templates/guest.rb
|
105
|
+
rails_generators/hobo/templates/application.dryml
|
106
|
+
rails_generators/hobo/templates/initializer.rb
|
107
|
+
rails_generators/hobo/templates/application.css
|
108
|
+
rails_generators/hobo/hobo_generator.rb
|
109
|
+
rails_generators/hobo_front_controller/hobo_front_controller_generator.rb
|
110
|
+
rails_generators/hobo_front_controller/templates/functional_test.rb
|
111
|
+
rails_generators/hobo_front_controller/templates/helper.rb
|
112
|
+
rails_generators/hobo_front_controller/templates/controller.rb
|
113
|
+
rails_generators/hobo_front_controller/templates/index.dryml
|
114
|
+
rails_generators/hobo_front_controller/USAGE
|
115
|
+
rails_generators/hobo_user_model/templates/mailer.rb
|
116
|
+
rails_generators/hobo_user_model/templates/fixtures.yml
|
117
|
+
rails_generators/hobo_user_model/templates/unit_test.rb
|
118
|
+
rails_generators/hobo_user_model/templates/forgot_password.erb
|
119
|
+
rails_generators/hobo_user_model/templates/model.rb
|
120
|
+
rails_generators/hobo_user_model/USAGE
|
121
|
+
rails_generators/hobo_user_model/hobo_user_model_generator.rb
|
122
|
+
rails_generators/hobo_model/templates/fixtures.yml
|
123
|
+
rails_generators/hobo_model/templates/unit_test.rb
|
124
|
+
rails_generators/hobo_model/templates/hints.rb
|
125
|
+
rails_generators/hobo_model/templates/model.rb
|
126
|
+
rails_generators/hobo_model/USAGE
|
127
|
+
rails_generators/hobo_model/hobo_model_generator.rb
|
128
|
+
rails_generators/hobo_model_controller/templates/functional_test.rb
|
129
|
+
rails_generators/hobo_model_controller/templates/helper.rb
|
130
|
+
rails_generators/hobo_model_controller/templates/controller.rb
|
131
|
+
rails_generators/hobo_model_controller/USAGE
|
132
|
+
rails_generators/hobo_model_controller/hobo_model_controller_generator.rb
|
133
|
+
rails_generators/hobo_model_resource/templates/functional_test.rb
|
134
|
+
rails_generators/hobo_model_resource/templates/helper.rb
|
135
|
+
rails_generators/hobo_model_resource/templates/controller.rb
|
136
|
+
rails_generators/hobo_model_resource/hobo_model_resource_generator.rb
|
137
|
+
rails_generators/hobo_subsite/templates/application.dryml
|
138
|
+
rails_generators/hobo_subsite/templates/controller.rb
|
139
|
+
rails_generators/hobo_subsite/templates/site_taglib.dryml
|
140
|
+
rails_generators/hobo_subsite/hobo_subsite_generator.rb
|
141
|
+
init.rb
|
142
|
+
LICENSE.txt
|
143
|
+
README
|
144
|
+
script/destroy
|
145
|
+
script/generate
|
146
|
+
dryml_generators/rapid/forms.dryml.erb
|
147
|
+
dryml_generators/rapid/pages.dryml.erb
|
148
|
+
dryml_generators/rapid/cards.dryml.erb
|
149
|
+
Manifest
|
150
|
+
test/permissions/models/models.rb
|
151
|
+
test/permissions/models/schema.rb
|
152
|
+
test/permissions/test_permissions.rb
|
153
|
+
test/generators/test_hobo_model_controller_generator.rb
|
154
|
+
test/generators/test_generator_helper.rb
|
155
|
+
test/generators/test_helper.rb
|
data/Rakefile
CHANGED
@@ -47,11 +47,11 @@ Echoe.new('hobo') do |p|
|
|
47
47
|
p.project = "hobo"
|
48
48
|
|
49
49
|
p.changelog = "CHANGES.txt"
|
50
|
-
p.version = "0.8.
|
50
|
+
p.version = "0.8.8"
|
51
51
|
|
52
52
|
p.dependencies = [
|
53
|
-
'hobosupport =0.8.
|
54
|
-
'hobofields =0.8.
|
53
|
+
'hobosupport =0.8.8',
|
54
|
+
'hobofields =0.8.8',
|
55
55
|
'rails >=2.2.2',
|
56
56
|
'mislav-will_paginate >=2.2.1']
|
57
57
|
|
data/hobo.gemspec
CHANGED
@@ -2,17 +2,17 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{hobo}
|
5
|
-
s.version = "0.8.
|
5
|
+
s.version = "0.8.8"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Tom Locke"]
|
9
|
-
s.date = %q{2009-
|
9
|
+
s.date = %q{2009-06-24}
|
10
10
|
s.default_executable = %q{hobo}
|
11
11
|
s.description = %q{The web app builder for Rails}
|
12
12
|
s.email = %q{tom@tomlocke.com}
|
13
13
|
s.executables = ["hobo"]
|
14
|
-
s.extra_rdoc_files = ["
|
15
|
-
s.files = ["
|
14
|
+
s.extra_rdoc_files = ["lib/hobo.rb", "lib/hobo/lifecycles/state.rb", "lib/hobo/lifecycles/transition.rb", "lib/hobo/lifecycles/actions.rb", "lib/hobo/lifecycles/creator.rb", "lib/hobo/lifecycles/lifecycle.rb", "lib/hobo/dryml/tag_parameters.rb", "lib/hobo/dryml/template_environment.rb", "lib/hobo/dryml/parser.rb", "lib/hobo/dryml/template_handler.rb", "lib/hobo/dryml/parser/source.rb", "lib/hobo/dryml/parser/tree_parser.rb", "lib/hobo/dryml/parser/attribute.rb", "lib/hobo/dryml/parser/text.rb", "lib/hobo/dryml/parser/base_parser.rb", "lib/hobo/dryml/parser/document.rb", "lib/hobo/dryml/parser/elements.rb", "lib/hobo/dryml/parser/element.rb", "lib/hobo/dryml/taglib.rb", "lib/hobo/dryml/dryml_support_controller.rb", "lib/hobo/dryml/dryml_builder.rb", "lib/hobo/dryml/dryml_doc.rb", "lib/hobo/dryml/part_context.rb", "lib/hobo/dryml/template.rb", "lib/hobo/dryml/dryml_generator.rb", "lib/hobo/dryml/scoped_variables.rb", "lib/hobo/permissions.rb", "lib/hobo/guest.rb", "lib/hobo/user_controller.rb", "lib/hobo/rapid_helper.rb", "lib/hobo/tasks/rails.rb", "lib/hobo/permissions/associations.rb", "lib/hobo/include_in_save.rb", "lib/hobo/hobo_helper.rb", "lib/hobo/scopes/named_scope_extensions.rb", "lib/hobo/scopes/apply_scopes.rb", "lib/hobo/scopes/automatic_scopes.rb", "lib/hobo/scopes/association_proxy_extensions.rb", "lib/hobo/bundle.rb", "lib/hobo/controller.rb", "lib/hobo/find_for.rb", "lib/hobo/lifecycles.rb", "lib/hobo/undefined.rb", "lib/hobo/user.rb", "lib/hobo/dryml.rb", "lib/hobo/undefined_access_error.rb", "lib/hobo/authentication_support.rb", "lib/hobo/dev_controller.rb", "lib/hobo/accessible_associations.rb", "lib/hobo/scopes.rb", "lib/hobo/view_hints.rb", "lib/hobo/generator.rb", "lib/hobo/static_tags", "lib/hobo/model_router.rb", "lib/hobo/model_controller.rb", "lib/hobo/model.rb", "lib/action_view_extensions/helpers/tag_helper.rb", "lib/active_record/association_proxy.rb", "lib/active_record/association_reflection.rb", "lib/active_record/association_collection.rb", "lib/active_record/viewhints_validations_interceptor.rb", "bin/hobo", "tasks/hobo_tasks.rake", "tasks/environments.rake", "LICENSE.txt", "README"]
|
15
|
+
s.files = ["lib/hobo.rb", "lib/hobo/lifecycles/state.rb", "lib/hobo/lifecycles/transition.rb", "lib/hobo/lifecycles/actions.rb", "lib/hobo/lifecycles/creator.rb", "lib/hobo/lifecycles/lifecycle.rb", "lib/hobo/dryml/tag_parameters.rb", "lib/hobo/dryml/template_environment.rb", "lib/hobo/dryml/parser.rb", "lib/hobo/dryml/template_handler.rb", "lib/hobo/dryml/parser/source.rb", "lib/hobo/dryml/parser/tree_parser.rb", "lib/hobo/dryml/parser/attribute.rb", "lib/hobo/dryml/parser/text.rb", "lib/hobo/dryml/parser/base_parser.rb", "lib/hobo/dryml/parser/document.rb", "lib/hobo/dryml/parser/elements.rb", "lib/hobo/dryml/parser/element.rb", "lib/hobo/dryml/taglib.rb", "lib/hobo/dryml/dryml_support_controller.rb", "lib/hobo/dryml/dryml_builder.rb", "lib/hobo/dryml/dryml_doc.rb", "lib/hobo/dryml/part_context.rb", "lib/hobo/dryml/template.rb", "lib/hobo/dryml/dryml_generator.rb", "lib/hobo/dryml/scoped_variables.rb", "lib/hobo/permissions.rb", "lib/hobo/guest.rb", "lib/hobo/user_controller.rb", "lib/hobo/rapid_helper.rb", "lib/hobo/tasks/rails.rb", "lib/hobo/permissions/associations.rb", "lib/hobo/include_in_save.rb", "lib/hobo/hobo_helper.rb", "lib/hobo/scopes/named_scope_extensions.rb", "lib/hobo/scopes/apply_scopes.rb", "lib/hobo/scopes/automatic_scopes.rb", "lib/hobo/scopes/association_proxy_extensions.rb", "lib/hobo/bundle.rb", "lib/hobo/controller.rb", "lib/hobo/find_for.rb", "lib/hobo/lifecycles.rb", "lib/hobo/undefined.rb", "lib/hobo/user.rb", "lib/hobo/dryml.rb", "lib/hobo/undefined_access_error.rb", "lib/hobo/authentication_support.rb", "lib/hobo/dev_controller.rb", "lib/hobo/accessible_associations.rb", "lib/hobo/scopes.rb", "lib/hobo/view_hints.rb", "lib/hobo/generator.rb", "lib/hobo/static_tags", "lib/hobo/model_router.rb", "lib/hobo/model_controller.rb", "lib/hobo/model.rb", "lib/action_view_extensions/helpers/tag_helper.rb", "lib/active_record/association_proxy.rb", "lib/active_record/association_reflection.rb", "lib/active_record/association_collection.rb", "lib/active_record/viewhints_validations_interceptor.rb", "bin/hobo", "Rakefile", "tasks/hobo_tasks.rake", "tasks/environments.rake", "CHANGES.txt", "taglibs/rapid_document_tags.dryml", "taglibs/rapid_support.dryml", "taglibs/rapid_navigation.dryml", "taglibs/rapid_generics.dryml", "taglibs/rapid_user_pages.dryml", "taglibs/core.dryml", "taglibs/rapid_lifecycles.dryml", "taglibs/rapid.dryml", "taglibs/rapid_editing.dryml", "taglibs/rapid_pages.dryml", "taglibs/rapid_core.dryml", "taglibs/rapid_forms.dryml", "taglibs/rapid_plus.dryml", "rails_generators/hobo_user_controller/templates/functional_test.rb", "rails_generators/hobo_user_controller/templates/helper.rb", "rails_generators/hobo_user_controller/templates/controller.rb", "rails_generators/hobo_user_controller/USAGE", "rails_generators/hobo_user_controller/hobo_user_controller_generator.rb", "rails_generators/hobo_rapid/templates/IE7.js", "rails_generators/hobo_rapid/templates/reset.css", "rails_generators/hobo_rapid/templates/blank.gif", "rails_generators/hobo_rapid/templates/lowpro.js", "rails_generators/hobo_rapid/templates/ie7-recalc.js", "rails_generators/hobo_rapid/templates/hobo-rapid.js", "rails_generators/hobo_rapid/templates/themes/clean/views/clean.dryml", "rails_generators/hobo_rapid/templates/themes/clean/public/stylesheets/clean.css", "rails_generators/hobo_rapid/templates/themes/clean/public/stylesheets/rapid-ui.css", "rails_generators/hobo_rapid/templates/themes/clean/public/images/fieldbg.gif", "rails_generators/hobo_rapid/templates/themes/clean/public/images/pencil.png", "rails_generators/hobo_rapid/templates/themes/clean/public/images/50-ACD3E6-fff.png", "rails_generators/hobo_rapid/templates/themes/clean/public/images/small_close.png", "rails_generators/hobo_rapid/templates/themes/clean/public/images/100-3B5F87-ACD3E6.png", "rails_generators/hobo_rapid/templates/themes/clean/public/images/300-ACD3E6-fff.png", "rails_generators/hobo_rapid/templates/themes/clean/public/images/spinner.gif", "rails_generators/hobo_rapid/templates/hobo-rapid.css", "rails_generators/hobo_rapid/hobo_rapid_generator.rb", "rails_generators/hobo/templates/dryml-support.js", "rails_generators/hobo/templates/guest.rb", "rails_generators/hobo/templates/application.dryml", "rails_generators/hobo/templates/initializer.rb", "rails_generators/hobo/templates/application.css", "rails_generators/hobo/hobo_generator.rb", "rails_generators/hobo_front_controller/hobo_front_controller_generator.rb", "rails_generators/hobo_front_controller/templates/functional_test.rb", "rails_generators/hobo_front_controller/templates/helper.rb", "rails_generators/hobo_front_controller/templates/controller.rb", "rails_generators/hobo_front_controller/templates/index.dryml", "rails_generators/hobo_front_controller/USAGE", "rails_generators/hobo_user_model/templates/mailer.rb", "rails_generators/hobo_user_model/templates/fixtures.yml", "rails_generators/hobo_user_model/templates/unit_test.rb", "rails_generators/hobo_user_model/templates/forgot_password.erb", "rails_generators/hobo_user_model/templates/model.rb", "rails_generators/hobo_user_model/USAGE", "rails_generators/hobo_user_model/hobo_user_model_generator.rb", "rails_generators/hobo_model/templates/fixtures.yml", "rails_generators/hobo_model/templates/unit_test.rb", "rails_generators/hobo_model/templates/hints.rb", "rails_generators/hobo_model/templates/model.rb", "rails_generators/hobo_model/USAGE", "rails_generators/hobo_model/hobo_model_generator.rb", "rails_generators/hobo_model_controller/templates/functional_test.rb", "rails_generators/hobo_model_controller/templates/helper.rb", "rails_generators/hobo_model_controller/templates/controller.rb", "rails_generators/hobo_model_controller/USAGE", "rails_generators/hobo_model_controller/hobo_model_controller_generator.rb", "rails_generators/hobo_model_resource/templates/functional_test.rb", "rails_generators/hobo_model_resource/templates/helper.rb", "rails_generators/hobo_model_resource/templates/controller.rb", "rails_generators/hobo_model_resource/hobo_model_resource_generator.rb", "rails_generators/hobo_subsite/templates/application.dryml", "rails_generators/hobo_subsite/templates/controller.rb", "rails_generators/hobo_subsite/templates/site_taglib.dryml", "rails_generators/hobo_subsite/hobo_subsite_generator.rb", "init.rb", "LICENSE.txt", "README", "script/destroy", "script/generate", "dryml_generators/rapid/forms.dryml.erb", "dryml_generators/rapid/pages.dryml.erb", "dryml_generators/rapid/cards.dryml.erb", "Manifest", "test/permissions/models/models.rb", "test/permissions/models/schema.rb", "test/permissions/test_permissions.rb", "test/generators/test_hobo_model_controller_generator.rb", "test/generators/test_generator_helper.rb", "test/generators/test_helper.rb", "hobo.gemspec"]
|
16
16
|
s.has_rdoc = true
|
17
17
|
s.homepage = %q{http://hobocentral.net/}
|
18
18
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Hobo", "--main", "README"]
|
@@ -27,19 +27,19 @@ Gem::Specification.new do |s|
|
|
27
27
|
s.specification_version = 2
|
28
28
|
|
29
29
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
30
|
-
s.add_runtime_dependency(%q<hobosupport>, ["= 0.8.
|
31
|
-
s.add_runtime_dependency(%q<hobofields>, ["= 0.8.
|
30
|
+
s.add_runtime_dependency(%q<hobosupport>, ["= 0.8.8"])
|
31
|
+
s.add_runtime_dependency(%q<hobofields>, ["= 0.8.8"])
|
32
32
|
s.add_runtime_dependency(%q<rails>, [">= 2.2.2"])
|
33
33
|
s.add_runtime_dependency(%q<mislav-will_paginate>, [">= 2.2.1"])
|
34
34
|
else
|
35
|
-
s.add_dependency(%q<hobosupport>, ["= 0.8.
|
36
|
-
s.add_dependency(%q<hobofields>, ["= 0.8.
|
35
|
+
s.add_dependency(%q<hobosupport>, ["= 0.8.8"])
|
36
|
+
s.add_dependency(%q<hobofields>, ["= 0.8.8"])
|
37
37
|
s.add_dependency(%q<rails>, [">= 2.2.2"])
|
38
38
|
s.add_dependency(%q<mislav-will_paginate>, [">= 2.2.1"])
|
39
39
|
end
|
40
40
|
else
|
41
|
-
s.add_dependency(%q<hobosupport>, ["= 0.8.
|
42
|
-
s.add_dependency(%q<hobofields>, ["= 0.8.
|
41
|
+
s.add_dependency(%q<hobosupport>, ["= 0.8.8"])
|
42
|
+
s.add_dependency(%q<hobofields>, ["= 0.8.8"])
|
43
43
|
s.add_dependency(%q<rails>, [">= 2.2.2"])
|
44
44
|
s.add_dependency(%q<mislav-will_paginate>, [">= 2.2.1"])
|
45
45
|
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
module Hobo
|
2
|
+
module ViewHintsValidationsInterceptor
|
3
|
+
def human_attribute_name(attribute_key_name, opt={})
|
4
|
+
view_hints_field_names = self.view_hints.field_names
|
5
|
+
view_hints_field_names.include?(attribute_key_name.to_sym) ?
|
6
|
+
view_hints_field_names[attribute_key_name.to_sym] : super
|
7
|
+
end
|
8
|
+
end
|
9
|
+
end
|
data/lib/hobo.rb
CHANGED
data/lib/hobo/lifecycles.rb
CHANGED
@@ -17,7 +17,8 @@ module Hobo
|
|
17
17
|
def self.lifecycle(*args, &block)
|
18
18
|
options = args.extract_options!
|
19
19
|
options = options.reverse_merge(:state_field => :state,
|
20
|
-
:key_timestamp_field => :key_timestamp
|
20
|
+
:key_timestamp_field => :key_timestamp,
|
21
|
+
:key_timeout => 999.years)
|
21
22
|
|
22
23
|
if defined? self::Lifecycle
|
23
24
|
lifecycle = self::Lifecycle
|
@@ -37,9 +37,9 @@ module Hobo
|
|
37
37
|
else
|
38
38
|
refl = record.class.reflections[who]
|
39
39
|
if refl && refl.macro == :has_many
|
40
|
-
send(who).include?(user)
|
40
|
+
record.send(who).include?(user)
|
41
41
|
elsif refl && refl.macro == :belongs_to
|
42
|
-
send("#{who}_is?", user)
|
42
|
+
record.send("#{who}_is?", user)
|
43
43
|
else
|
44
44
|
value = run_hook(record, who)
|
45
45
|
if value.is_a?(Class)
|