rango 0.0.3
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 +8 -0
- data/LICENSE +20 -0
- data/README.textile +18 -0
- data/bin/rango +30 -0
- data/doc/head/Array.html +114 -0
- data/doc/head/AttributeMixin.html +613 -0
- data/doc/head/Class.html +102 -0
- data/doc/head/ColoredString.html +476 -0
- data/doc/head/Hash.html +643 -0
- data/doc/head/Kernel.html +641 -0
- data/doc/head/Object.html +140 -0
- data/doc/head/ObjectSpace.html +103 -0
- data/doc/head/Path.html +2499 -0
- data/doc/head/Range.html +109 -0
- data/doc/head/Rango.html +397 -0
- data/doc/head/Rango/ApplicationMixin.html +396 -0
- data/doc/head/Rango/Bundling.html +23 -0
- data/doc/head/Rango/Bundling/RequireStrategy.html +283 -0
- data/doc/head/Rango/Bundling/Strategy.html +703 -0
- data/doc/head/Rango/CallableStrategy.html +300 -0
- data/doc/head/Rango/Chainable.html +181 -0
- data/doc/head/Rango/Configurable.html +199 -0
- data/doc/head/Rango/Controller.html +962 -0
- data/doc/head/Rango/ControllerMixin.html +860 -0
- data/doc/head/Rango/ControllerStrategy.html +264 -0
- data/doc/head/Rango/DependencyStrategy.html +116 -0
- data/doc/head/Rango/Dispatcher.html +305 -0
- data/doc/head/Rango/Form.html +162 -0
- data/doc/head/Rango/GemDependencyStrategy.html +210 -0
- data/doc/head/Rango/Generator.html +93 -0
- data/doc/head/Rango/GenericViews.html +128 -0
- data/doc/head/Rango/GitDependencyStrategy.html +224 -0
- data/doc/head/Rango/GithubDependencyStrategy.html +118 -0
- data/doc/head/Rango/Handler.html +474 -0
- data/doc/head/Rango/Helpers.html +1271 -0
- data/doc/head/Rango/Hookable.html +202 -0
- data/doc/head/Rango/ImportMixin.html +755 -0
- data/doc/head/Rango/Logger.html +920 -0
- data/doc/head/Rango/ModelForm.html +42 -0
- data/doc/head/Rango/Project.html +516 -0
- data/doc/head/Rango/RenderMixin.html +23 -0
- data/doc/head/Rango/Request.html +1177 -0
- data/doc/head/Rango/Route.html +751 -0
- data/doc/head/Rango/Router.html +42 -0
- data/doc/head/Rango/Router/Dispatcher.html +311 -0
- data/doc/head/Rango/RouterStrategy.html +258 -0
- data/doc/head/Rango/Session.html +23 -0
- data/doc/head/Rango/Settings.html +23 -0
- data/doc/head/Rango/Settings/Erubis.html +23 -0
- data/doc/head/Rango/Settings/Framework.html +198 -0
- data/doc/head/Rango/Settings/Haml.html +23 -0
- data/doc/head/Rango/SimpleTemplate.html +187 -0
- data/doc/head/Rango/StrategyMixin.html +261 -0
- data/doc/head/Rango/Tasks.html +251 -0
- data/doc/head/Rango/Template.html +95 -0
- data/doc/head/Rango/Template/Adapter.html +90 -0
- data/doc/head/Rango/Templates.html +116 -0
- data/doc/head/Rango/Templates/Adapter.html +128 -0
- data/doc/head/Rango/Templates/Template.html +636 -0
- data/doc/head/Rango/Templates/TemplateHelpers.html +328 -0
- data/doc/head/RangoThor.html +205 -0
- data/doc/head/String.html +163 -0
- data/doc/head/TimeDSL.html +612 -0
- data/doc/head/all-methods.html +2012 -0
- data/doc/head/all-namespaces.html +114 -0
- data/doc/head/app.js +18 -0
- data/doc/head/index.html +18 -0
- data/doc/head/jquery.js +11 -0
- data/doc/head/readme.html +34 -0
- data/doc/head/style.css +68 -0
- data/doc/head/syntax_highlight.css +21 -0
- data/doc/versions/0.0.1/Rango.html +1025 -0
- data/doc/versions/0.0.1/Rango/CallableStrategy.html +166 -0
- data/doc/versions/0.0.1/Rango/ControllerStrategy.html +180 -0
- data/doc/versions/0.0.1/Rango/Route.html +340 -0
- data/doc/versions/0.0.1/Rango/Router.html +502 -0
- data/doc/versions/0.0.1/Rango/RouterStrategy.html +94 -0
- data/doc/versions/0.0.1/Rango/Template.html +28 -0
- data/doc/versions/0.0.1/Rango/Template/Adapter.html +90 -0
- data/doc/versions/0.0.1/all-methods.html +228 -0
- data/doc/versions/0.0.1/all-namespaces.html +36 -0
- data/doc/versions/0.0.1/app.js +18 -0
- data/doc/versions/0.0.1/index.html +18 -0
- data/doc/versions/0.0.1/jquery.js +11 -0
- data/doc/versions/0.0.1/readme.html +137 -0
- data/doc/versions/0.0.1/style.css +68 -0
- data/doc/versions/0.0.1/syntax_highlight.css +21 -0
- data/lib/rango.rb +25 -0
- data/lib/rango/boot.rb +54 -0
- data/lib/rango/bundling/dependency.rb +65 -0
- data/lib/rango/bundling/strategies/copy.rb +36 -0
- data/lib/rango/bundling/strategies/gem.rb +55 -0
- data/lib/rango/bundling/strategies/git.rb +71 -0
- data/lib/rango/bundling/strategies/hg.rb +9 -0
- data/lib/rango/bundling/strategy.rb +85 -0
- data/lib/rango/cli/generator.rb +15 -0
- data/lib/rango/cli/project.rb +87 -0
- data/lib/rango/cli/simple_template.rb +47 -0
- data/lib/rango/contrib/pagination.rb +15 -0
- data/lib/rango/contrib/pagination/README.textile +21 -0
- data/lib/rango/contrib/pagination/TODO +3 -0
- data/lib/rango/contrib/pagination/_pagination.html.haml +39 -0
- data/lib/rango/contrib/pagination/adapters/datamapper.rb +22 -0
- data/lib/rango/contrib/pagination/helpers.rb +12 -0
- data/lib/rango/contrib/pagination/page.rb +107 -0
- data/lib/rango/contrib/pagination/strategies.rb +49 -0
- data/lib/rango/contrib/syndication.rb +1 -0
- data/lib/rango/exceptions.rb +269 -0
- data/lib/rango/ext.rb +14 -0
- data/lib/rango/ext/attribute.rb +140 -0
- data/lib/rango/ext/class.rb +99 -0
- data/lib/rango/ext/colored_string.rb +105 -0
- data/lib/rango/ext/core_ext.rb +52 -0
- data/lib/rango/ext/hash.rb +21 -0
- data/lib/rango/ext/kernel.rb +74 -0
- data/lib/rango/ext/object_space.rb +11 -0
- data/lib/rango/ext/path.rb +222 -0
- data/lib/rango/ext/random.rb +22 -0
- data/lib/rango/ext/string.rb +16 -0
- data/lib/rango/ext/thor.rb +32 -0
- data/lib/rango/ext/time_dsl.rb +63 -0
- data/lib/rango/ext/try.rb +30 -0
- data/lib/rango/forms/form.rb +29 -0
- data/lib/rango/generic_views/static.rb +7 -0
- data/lib/rango/helpers.rb +24 -0
- data/lib/rango/helpers/README +179 -0
- data/lib/rango/helpers/assets.rb +29 -0
- data/lib/rango/helpers/general.rb +41 -0
- data/lib/rango/helpers/merb-helpers.rb +40 -0
- data/lib/rango/helpers/merb-helpers/core_ext.rb +58 -0
- data/lib/rango/helpers/merb-helpers/core_ext/numeric.rb +388 -0
- data/lib/rango/helpers/merb-helpers/date_time_formatting.rb +158 -0
- data/lib/rango/helpers/merb-helpers/date_time_helpers.rb +191 -0
- data/lib/rango/helpers/merb-helpers/form/builder.rb +447 -0
- data/lib/rango/helpers/merb-helpers/form/helpers.rb +451 -0
- data/lib/rango/helpers/merb-helpers/form_helpers.rb +19 -0
- data/lib/rango/helpers/merb-helpers/tag_helpers.rb +63 -0
- data/lib/rango/helpers/merb-helpers/text_helpers.rb +63 -0
- data/lib/rango/helpers/merb-helpers/time_dsl.rb +61 -0
- data/lib/rango/helpers/spec/core_ext_spec.rb +21 -0
- data/lib/rango/helpers/spec/fixture/app/controllers/application.rb +4 -0
- data/lib/rango/helpers/spec/fixture/app/controllers/bound_check_box.rb +2 -0
- data/lib/rango/helpers/spec/fixture/app/controllers/bound_file_field.rb +2 -0
- data/lib/rango/helpers/spec/fixture/app/controllers/bound_hidden_field.rb +2 -0
- data/lib/rango/helpers/spec/fixture/app/controllers/bound_option_tag.rb +2 -0
- data/lib/rango/helpers/spec/fixture/app/controllers/bound_password_field.rb +2 -0
- data/lib/rango/helpers/spec/fixture/app/controllers/bound_radio_button.rb +2 -0
- data/lib/rango/helpers/spec/fixture/app/controllers/bound_radio_group.rb +2 -0
- data/lib/rango/helpers/spec/fixture/app/controllers/bound_select.rb +2 -0
- data/lib/rango/helpers/spec/fixture/app/controllers/bound_text_area.rb +2 -0
- data/lib/rango/helpers/spec/fixture/app/controllers/bound_text_field.rb +2 -0
- data/lib/rango/helpers/spec/fixture/app/controllers/button.rb +2 -0
- data/lib/rango/helpers/spec/fixture/app/controllers/check_box.rb +2 -0
- data/lib/rango/helpers/spec/fixture/app/controllers/custom_builder.rb +2 -0
- data/lib/rango/helpers/spec/fixture/app/controllers/delete_button.rb +2 -0
- data/lib/rango/helpers/spec/fixture/app/controllers/exceptions.rb +25 -0
- data/lib/rango/helpers/spec/fixture/app/controllers/field_set.rb +2 -0
- data/lib/rango/helpers/spec/fixture/app/controllers/fields_for.rb +3 -0
- data/lib/rango/helpers/spec/fixture/app/controllers/file_field.rb +2 -0
- data/lib/rango/helpers/spec/fixture/app/controllers/foo.rb +23 -0
- data/lib/rango/helpers/spec/fixture/app/controllers/form.rb +2 -0
- data/lib/rango/helpers/spec/fixture/app/controllers/form_for.rb +2 -0
- data/lib/rango/helpers/spec/fixture/app/controllers/hacker.rb +2 -0
- data/lib/rango/helpers/spec/fixture/app/controllers/hidden_field.rb +2 -0
- data/lib/rango/helpers/spec/fixture/app/controllers/label.rb +3 -0
- data/lib/rango/helpers/spec/fixture/app/controllers/numeric_ext.rb +3 -0
- data/lib/rango/helpers/spec/fixture/app/controllers/option_tag.rb +2 -0
- data/lib/rango/helpers/spec/fixture/app/controllers/password_field.rb +2 -0
- data/lib/rango/helpers/spec/fixture/app/controllers/radio_button.rb +2 -0
- data/lib/rango/helpers/spec/fixture/app/controllers/radio_group.rb +2 -0
- data/lib/rango/helpers/spec/fixture/app/controllers/relative_date.rb +2 -0
- data/lib/rango/helpers/spec/fixture/app/controllers/relative_date_span.rb +2 -0
- data/lib/rango/helpers/spec/fixture/app/controllers/select.rb +2 -0
- data/lib/rango/helpers/spec/fixture/app/controllers/specs_controller.rb +11 -0
- data/lib/rango/helpers/spec/fixture/app/controllers/submit.rb +2 -0
- data/lib/rango/helpers/spec/fixture/app/controllers/tag_helper.rb +21 -0
- data/lib/rango/helpers/spec/fixture/app/controllers/text_area.rb +2 -0
- data/lib/rango/helpers/spec/fixture/app/controllers/text_field.rb +3 -0
- data/lib/rango/helpers/spec/fixture/app/helpers/global_helpers.rb +8 -0
- data/lib/rango/helpers/spec/fixture/app/models/fake_dm_model.rb +25 -0
- data/lib/rango/helpers/spec/fixture/app/models/first_generic_fake_model.rb +57 -0
- data/lib/rango/helpers/spec/fixture/app/models/hacker_generic_model.rb +5 -0
- data/lib/rango/helpers/spec/fixture/app/models/second_generic_fake_model.rb +18 -0
- data/lib/rango/helpers/spec/fixture/app/models/third_generic_fake_model.rb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/bound_check_box_specs/basic.html.erb +4 -0
- data/lib/rango/helpers/spec/fixture/app/views/bound_check_box_specs/basic_unchecked.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/bound_check_box_specs/checked.html.erb +4 -0
- data/lib/rango/helpers/spec/fixture/app/views/bound_check_box_specs/errors.html.erb +4 -0
- data/lib/rango/helpers/spec/fixture/app/views/bound_check_box_specs/label.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/bound_check_box_specs/on_and_off.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/bound_check_box_specs/raise_value_error.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/bound_file_field_specs/additional_attributes.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/bound_file_field_specs/takes_string.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/bound_file_field_specs/with_label.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/bound_hidden_field_specs/basic.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/bound_hidden_field_specs/errors.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/bound_hidden_field_specs/hidden_error.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/bound_hidden_field_specs/label.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/bound_option_tag_specs/grouped.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/bound_option_tag_specs/nested.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/bound_option_tag_specs/text_and_value.html.erb +4 -0
- data/lib/rango/helpers/spec/fixture/app/views/bound_password_field_specs/attributes.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/bound_password_field_specs/basic.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/bound_password_field_specs/label.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/bound_radio_button_specs/basic.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/bound_radio_group_specs/basic.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/bound_radio_group_specs/hashes.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/bound_radio_group_specs/mixed.html.erb +4 -0
- data/lib/rango/helpers/spec/fixture/app/views/bound_radio_group_specs/override_id.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/bound_select_specs/basic.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/bound_select_specs/blank.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/bound_select_specs/label.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/bound_select_specs/multiple.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/bound_select_specs/prompt.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/bound_select_specs/with_options.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/bound_select_specs/with_options_with_blank.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/bound_text_area_specs/basic.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/bound_text_area_specs/label.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/bound_text_field_specs/basic.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/button_specs/button_with_label.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/button_specs/button_with_values.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/button_specs/disabled_button.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/check_box_specs/basic.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/check_box_specs/boolean.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/check_box_specs/disabled.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/check_box_specs/label.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/check_box_specs/on_off_is_boolean.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/check_box_specs/raise_unless_both_on_and_off.html.erb +2 -0
- data/lib/rango/helpers/spec/fixture/app/views/check_box_specs/raises_error_if_not_boolean.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/check_box_specs/raises_error_if_on_off_and_boolean_false.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/check_box_specs/simple.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/check_box_specs/to_string.html.erb +8 -0
- data/lib/rango/helpers/spec/fixture/app/views/check_box_specs/unchecked.html.erb +2 -0
- data/lib/rango/helpers/spec/fixture/app/views/custom_builder_specs/everything.html.erb +10 -0
- data/lib/rango/helpers/spec/fixture/app/views/delete_button_specs/delete_with_explicit_url.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/delete_button_specs/delete_with_extra_params.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/delete_button_specs/delete_with_label.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/delete_button_specs/simple_delete.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/exeptions/client_error.html.erb +37 -0
- data/lib/rango/helpers/spec/fixture/app/views/exeptions/internal_server_error.html.erb +216 -0
- data/lib/rango/helpers/spec/fixture/app/views/exeptions/not_acceptable.html.erb +38 -0
- data/lib/rango/helpers/spec/fixture/app/views/exeptions/not_found.html.erb +40 -0
- data/lib/rango/helpers/spec/fixture/app/views/fields_for_specs/basic.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/fields_for_specs/midstream.html.erb +7 -0
- data/lib/rango/helpers/spec/fixture/app/views/fields_for_specs/nil.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/fieldset_specs/legend.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/file_field_specs/disabled.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/file_field_specs/makes_multipart.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/file_field_specs/with_label.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/file_field_specs/with_values.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/foo/bar.html.erb +0 -0
- data/lib/rango/helpers/spec/fixture/app/views/form_for_specs/basic.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/form_specs/create_a_form.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/form_specs/create_a_multipart_form.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/form_specs/fake_delete_if_set.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/form_specs/fake_put_if_set.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/form_specs/get_if_set.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/form_specs/post_by_default.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/form_specs/resourceful_form.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/hacker/file_field.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/hacker/hidden_field.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/hacker/option_tag.html.erb +4 -0
- data/lib/rango/helpers/spec/fixture/app/views/hacker/password_field.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/hacker/radio_button.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/hacker/radio_group.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/hacker/text_area.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/hacker/text_field.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/hidden_field_specs/basic.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/hidden_field_specs/disabled.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/hidden_field_specs/label.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/label_specs/basic.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/label_specs/basic_with_attributes.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/label_specs/basic_with_class.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/layout/application.html.erb +11 -0
- data/lib/rango/helpers/spec/fixture/app/views/numeric_ext_specs/minutes_to_hours.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/numeric_ext_specs/to_concurrency_default.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/numeric_ext_specs/two_digits.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/option_tag_specs/array.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/option_tag_specs/clean.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/option_tag_specs/collection.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/option_tag_specs/multiple_selects.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/option_tag_specs/no_extra_attributes.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/option_tag_specs/optgroups.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/option_tag_specs/selected.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/option_tag_specs/with_blank.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/option_tag_specs/with_prompt.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/password_field_specs/basic.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/password_field_specs/disabled.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/radio_button_specs/basic.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/radio_button_specs/checked.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/radio_button_specs/disabled.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/radio_button_specs/label.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/radio_button_specs/unchecked.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/radio_group_specs/attributes.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/radio_group_specs/basic.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/radio_group_specs/checked.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/radio_group_specs/hash.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/radio_group_specs/specific_attributes.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/relative_date_span_specs/date_span_on_same_day.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/relative_date_span_specs/date_span_on_same_day_on_different_year.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/relative_date_specs/relative_date_with_year.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/relative_date_specs/relative_date_without_year.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/relative_date_specs/relative_today.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/relative_date_specs/relative_tomorrow.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/relative_date_specs/relative_yesterday.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/select_specs/basic.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/select_specs/blank.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/select_specs/multiple.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/select_specs/selected.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/submit_specs/disabled_submit.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/submit_specs/submit_with_label.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/submit_specs/submit_with_values.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/tag_helper/nested_tags.html.erb +5 -0
- data/lib/rango/helpers/spec/fixture/app/views/tag_helper/tag_with_attributes.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/tag_helper/tag_with_content.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/tag_helper/tag_with_content_in_the_block.html.erb +3 -0
- data/lib/rango/helpers/spec/fixture/app/views/text_area_specs/basic.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/text_area_specs/disabled.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/text_area_specs/label.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/text_area_specs/nil.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/text_field_specs/basic.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/text_field_specs/class.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/text_field_specs/disabled.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/text_field_specs/label.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/app/views/text_field_specs/symbolized_name.html.erb +1 -0
- data/lib/rango/helpers/spec/fixture/config/environments/development.rb +6 -0
- data/lib/rango/helpers/spec/fixture/config/environments/production.rb +5 -0
- data/lib/rango/helpers/spec/fixture/config/environments/test.rb +6 -0
- data/lib/rango/helpers/spec/fixture/config/init.rb +46 -0
- data/lib/rango/helpers/spec/fixture/config/rack.rb +11 -0
- data/lib/rango/helpers/spec/fixture/config/router.rb +38 -0
- data/lib/rango/helpers/spec/fixture/public/images/merb.jpg +0 -0
- data/lib/rango/helpers/spec/fixture/public/merb.fcgi +4 -0
- data/lib/rango/helpers/spec/fixture/public/stylesheets/master.css +119 -0
- data/lib/rango/helpers/spec/merb_helpers_config_spec.rb +84 -0
- data/lib/rango/helpers/spec/merb_helpers_date_time_spec.rb +270 -0
- data/lib/rango/helpers/spec/merb_helpers_form_spec.rb +1371 -0
- data/lib/rango/helpers/spec/merb_helpers_tag_helper_spec.rb +42 -0
- data/lib/rango/helpers/spec/merb_helpers_text_spec.rb +69 -0
- data/lib/rango/helpers/spec/numeric_extlib_spec.rb +137 -0
- data/lib/rango/helpers/spec/ordinalize_spec.rb +53 -0
- data/lib/rango/helpers/spec/spec_helper.rb +160 -0
- data/lib/rango/helpers/spec/time_dsl_spec.rb +45 -0
- data/lib/rango/helpers/syntax.rb +28 -0
- data/lib/rango/loggers/fireruby.rb +1 -0
- data/lib/rango/loggers/logger.rb +100 -0
- data/lib/rango/mixins/application.rb +25 -0
- data/lib/rango/mixins/configurable.rb +20 -0
- data/lib/rango/mixins/controller.rb +113 -0
- data/lib/rango/mixins/import.rb +89 -0
- data/lib/rango/mixins/strategy.rb +28 -0
- data/lib/rango/mvc/controller.rb +139 -0
- data/lib/rango/mvc/strategies.rb +6 -0
- data/lib/rango/orm/adapters/datamapper/fields.rb +3 -0
- data/lib/rango/orm/adapters/datamapper/setup.rb +16 -0
- data/lib/rango/orm/adapters/datamapper/support.rb +15 -0
- data/lib/rango/orm/adapters/datamapper/tasks.thor +41 -0
- data/lib/rango/orm/adapters/datamapper/types/unicode_string.rb +15 -0
- data/lib/rango/project.rb +28 -0
- data/lib/rango/rack/dispatcher.rb +61 -0
- data/lib/rango/rack/middlewares/emails.rb +7 -0
- data/lib/rango/rack/middlewares/encoding.rb +25 -0
- data/lib/rango/rack/middlewares/static.rb +49 -0
- data/lib/rango/rack/request.rb +166 -0
- data/lib/rango/rango.rb +75 -0
- data/lib/rango/router/adapters/basic.rb +21 -0
- data/lib/rango/router/adapters/rack-router.rb +18 -0
- data/lib/rango/router/dispatcher.rb +29 -0
- data/lib/rango/router/specification.txt +16 -0
- data/lib/rango/settings.rb +87 -0
- data/lib/rango/settings/erubis.rb +13 -0
- data/lib/rango/settings/framework.rb +85 -0
- data/lib/rango/settings/haml.rb +35 -0
- data/lib/rango/support/cucumber/steps/given_steps.rb +5 -0
- data/lib/rango/support/cucumber/steps/then_steps.rb +41 -0
- data/lib/rango/support/cucumber/steps/when_steps.rb +54 -0
- data/lib/rango/tasks/bundle.thor +28 -0
- data/lib/rango/tasks/stats.thor +0 -0
- data/lib/rango/templates/adapter.rb +19 -0
- data/lib/rango/templates/adapters/erb.rb +45 -0
- data/lib/rango/templates/adapters/erubis.rb +60 -0
- data/lib/rango/templates/adapters/haml.rb +17 -0
- data/lib/rango/templates/template.rb +123 -0
- data/rango.gemspec +35 -0
- data/spec/factories.rb +21 -0
- data/spec/rango/auth/core/authenticated_helper_spec.rb +0 -0
- data/spec/rango/auth/core/authentication_spec.rb +0 -0
- data/spec/rango/auth/core/callbacks_spec.rb +0 -0
- data/spec/rango/auth/core/errors_spec.rb +0 -0
- data/spec/rango/auth/core/responses_spec.rb +0 -0
- data/spec/rango/auth/core/session_mixin_spec.rb +0 -0
- data/spec/rango/auth/core/spec/helpers/authentication_helper_spec_spec.rb +0 -0
- data/spec/rango/auth/core/spec/merb-auth-core/activation_fixture_spec.rb +0 -0
- data/spec/rango/auth/core/spec/merb-auth-core/authentication_spec_spec.rb +0 -0
- data/spec/rango/auth/core/spec/merb-auth-core/callbacks_spec_spec.rb +0 -0
- data/spec/rango/auth/core/spec/merb-auth-core/customizations_spec_spec.rb +0 -0
- data/spec/rango/auth/core/spec/merb-auth-core/errors_spec_spec.rb +0 -0
- data/spec/rango/auth/core/spec/merb-auth-core/failed_login_spec_spec.rb +0 -0
- data/spec/rango/auth/core/spec/merb-auth-core/merb-auth-core_spec_spec.rb +0 -0
- data/spec/rango/auth/core/spec/merb-auth-core/router_helper_spec_spec.rb +0 -0
- data/spec/rango/auth/core/spec/merb-auth-core/strategy_spec_spec.rb +0 -0
- data/spec/rango/auth/core/spec/spec_helper_spec.rb +0 -0
- data/spec/rango/auth/core/strategy_spec.rb +0 -0
- data/spec/rango/auth/core_spec.rb +0 -0
- data/spec/rango/auth/more/mixins/redirect_back_spec.rb +0 -0
- data/spec/rango/auth/more/mixins/salted_user/ar_salted_user_spec.rb +0 -0
- data/spec/rango/auth/more/mixins/salted_user/dm_salted_user_spec.rb +0 -0
- data/spec/rango/auth/more/mixins/salted_user/relaxdb_salted_user_spec.rb +0 -0
- data/spec/rango/auth/more/mixins/salted_user/sq_salted_user_spec.rb +0 -0
- data/spec/rango/auth/more/mixins/salted_user_spec.rb +0 -0
- data/spec/rango/auth/more/spec/merb-auth-more_spec_spec.rb +0 -0
- data/spec/rango/auth/more/spec/mixins/redirect_back_spec_spec.rb +0 -0
- data/spec/rango/auth/more/spec/mixins/salted_user_spec_spec.rb +0 -0
- data/spec/rango/auth/more/spec/spec_helper_spec.rb +0 -0
- data/spec/rango/auth/more/strategies/abstract_password_spec.rb +0 -0
- data/spec/rango/auth/more/strategies/basic/basic_auth_spec.rb +0 -0
- data/spec/rango/auth/more/strategies/basic/openid_spec.rb +0 -0
- data/spec/rango/auth/more/strategies/basic/password_form_spec.rb +0 -0
- data/spec/rango/auth/more_spec.rb +0 -0
- data/spec/rango/auth/slice/exceptions_spec.rb +0 -0
- data/spec/rango/auth/slice/merb-auth-slice-password_spec.rb +0 -0
- data/spec/rango/auth/slice/sessions_spec.rb +0 -0
- data/spec/rango/auth/slice/spec_helper_spec.rb +0 -0
- data/spec/rango/auth/slice/xsessions_spec.rb +0 -0
- data/spec/rango/boot_spec.rb +19 -0
- data/spec/rango/bundling/dependency_spec.rb +0 -0
- data/spec/rango/bundling/strategies_spec.rb +0 -0
- data/spec/rango/cli/project_spec.rb +0 -0
- data/spec/rango/contrib/pagination/adapters/dm_spec.rb +0 -0
- data/spec/rango/contrib/pagination/helpers_spec.rb +0 -0
- data/spec/rango/contrib/pagination/page_spec.rb +94 -0
- data/spec/rango/contrib/pagination/strategies_spec.rb +0 -0
- data/spec/rango/contrib/pagination_spec.rb +0 -0
- data/spec/rango/contrib/syndication_spec.rb +0 -0
- data/spec/rango/exceptions_spec.rb +0 -0
- data/spec/rango/ext/attribute_spec.rb +0 -0
- data/spec/rango/ext/colored_string_spec.rb +0 -0
- data/spec/rango/ext/core_ext_spec.rb +0 -0
- data/spec/rango/ext/kernel_spec.rb +0 -0
- data/spec/rango/ext/path_spec.rb +0 -0
- data/spec/rango/ext/string_spec.rb +0 -0
- data/spec/rango/ext/thor_spec.rb +0 -0
- data/spec/rango/ext/time_dsl_spec.rb +0 -0
- data/spec/rango/ext_spec.rb +0 -0
- data/spec/rango/forms/form_spec.rb +0 -0
- data/spec/rango/generators_spec.rb +0 -0
- data/spec/rango/generic_views/static_spec.rb +0 -0
- data/spec/rango/helpers/assets_spec.rb +0 -0
- data/spec/rango/helpers/general_spec.rb +0 -0
- data/spec/rango/helpers/merb-helpers/core_ext/numeric_spec.rb +0 -0
- data/spec/rango/helpers/merb-helpers/core_ext_spec.rb +0 -0
- data/spec/rango/helpers/merb-helpers/date_time_formatting_spec.rb +0 -0
- data/spec/rango/helpers/merb-helpers/date_time_helpers_spec.rb +0 -0
- data/spec/rango/helpers/merb-helpers/form/builder_spec.rb +0 -0
- data/spec/rango/helpers/merb-helpers/form/helpers_spec.rb +0 -0
- data/spec/rango/helpers/merb-helpers/form_helpers_spec.rb +0 -0
- data/spec/rango/helpers/merb-helpers/tag_helpers_spec.rb +0 -0
- data/spec/rango/helpers/merb-helpers/text_helpers_spec.rb +0 -0
- data/spec/rango/helpers/merb-helpers/time_dsl_spec.rb +0 -0
- data/spec/rango/helpers/merb-helpers_spec.rb +0 -0
- data/spec/rango/helpers/spec/core_ext_spec_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/app/controllers/application_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/app/controllers/bound_check_box_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/app/controllers/bound_file_field_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/app/controllers/bound_hidden_field_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/app/controllers/bound_option_tag_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/app/controllers/bound_password_field_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/app/controllers/bound_radio_button_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/app/controllers/bound_radio_group_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/app/controllers/bound_select_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/app/controllers/bound_text_area_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/app/controllers/bound_text_field_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/app/controllers/button_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/app/controllers/check_box_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/app/controllers/custom_builder_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/app/controllers/delete_button_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/app/controllers/exceptions_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/app/controllers/field_set_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/app/controllers/fields_for_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/app/controllers/file_field_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/app/controllers/foo_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/app/controllers/form_for_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/app/controllers/form_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/app/controllers/hacker_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/app/controllers/hidden_field_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/app/controllers/label_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/app/controllers/numeric_ext_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/app/controllers/option_tag_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/app/controllers/password_field_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/app/controllers/radio_button_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/app/controllers/radio_group_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/app/controllers/relative_date_span_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/app/controllers/relative_date_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/app/controllers/select_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/app/controllers/specs_controller_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/app/controllers/submit_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/app/controllers/tag_helper_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/app/controllers/text_area_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/app/controllers/text_field_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/app/helpers/global_helpers_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/app/models/fake_dm_model_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/app/models/first_generic_fake_model_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/app/models/hacker_generic_model_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/app/models/second_generic_fake_model_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/app/models/third_generic_fake_model_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/config/environments/development_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/config/environments/production_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/config/environments/test_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/config/init_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/config/rack_spec.rb +0 -0
- data/spec/rango/helpers/spec/fixture/config/router_spec.rb +0 -0
- data/spec/rango/helpers/spec/merb_helpers_config_spec_spec.rb +0 -0
- data/spec/rango/helpers/spec/merb_helpers_date_time_spec_spec.rb +0 -0
- data/spec/rango/helpers/spec/merb_helpers_form_spec_spec.rb +0 -0
- data/spec/rango/helpers/spec/merb_helpers_tag_helper_spec_spec.rb +0 -0
- data/spec/rango/helpers/spec/merb_helpers_text_spec_spec.rb +0 -0
- data/spec/rango/helpers/spec/numeric_extlib_spec_spec.rb +0 -0
- data/spec/rango/helpers/spec/ordinalize_spec_spec.rb +0 -0
- data/spec/rango/helpers/spec/spec_helper_spec.rb +0 -0
- data/spec/rango/helpers/spec/time_dsl_spec_spec.rb +0 -0
- data/spec/rango/helpers/syntax_spec.rb +0 -0
- data/spec/rango/helpers_spec.rb +0 -0
- data/spec/rango/loggers/fireruby_spec.rb +0 -0
- data/spec/rango/loggers/logger_spec.rb +0 -0
- data/spec/rango/mixins/application_spec.rb +0 -0
- data/spec/rango/mixins/controller_spec.rb +0 -0
- data/spec/rango/mixins/import_spec.rb +0 -0
- data/spec/rango/mvc/controller_spec.rb +24 -0
- data/spec/rango/mvc/strategies_spec.rb +0 -0
- data/spec/rango/orm/adapters/dm/fields_spec.rb +0 -0
- data/spec/rango/orm/adapters/dm/setup_spec.rb +0 -0
- data/spec/rango/project_spec.rb +46 -0
- data/spec/rango/rack/dispatcher_spec.rb +0 -0
- data/spec/rango/rack/middlewares/emails_spec.rb +0 -0
- data/spec/rango/rack/middlewares/static_spec.rb +0 -0
- data/spec/rango/rack/request_spec.rb +18 -0
- data/spec/rango/rango_spec.rb +0 -0
- data/spec/rango/router/route_spec.rb +0 -0
- data/spec/rango/router/router_spec.rb +0 -0
- data/spec/rango/router/strategies_spec.rb +0 -0
- data/spec/rango/settings_spec.rb +26 -0
- data/spec/rango/spec/cucumber_spec.rb +0 -0
- data/spec/rango/spec/rspec_spec.rb +0 -0
- data/spec/rango/templates/adapter_spec.rb +0 -0
- data/spec/rango/templates/adapters/erb_spec.rb +0 -0
- data/spec/rango/templates/adapters/erubis_spec.rb +0 -0
- data/spec/rango/templates/adapters/haml_spec.rb +0 -0
- data/spec/rango/templates/template_spec.rb +0 -0
- data/spec/rango_spec.rb +37 -0
- data/spec/spec.opts +5 -0
- data/spec/spec_helper.rb +7 -0
- data/spec/stubs/flat.rb +0 -0
- data/stubs/app/content/init.rb.rbt +6 -0
- data/stubs/app/content/models.rb.rbt +9 -0
- data/stubs/app/content/views.rb.rbt +10 -0
- data/stubs/app/preprocess.rb +13 -0
- data/stubs/bigapp/content/init.rb +0 -0
- data/stubs/bigapp/content/views/application.rb +0 -0
- data/stubs/bigapp/preprocess.rb +5 -0
- data/stubs/features/content/env.rb +36 -0
- data/stubs/flat/content/flat.ru.rbt +19 -0
- data/stubs/flat/preprocess.rb +5 -0
- data/stubs/project/content/TODO +0 -0
- data/stubs/project/content/Thorfile +12 -0
- data/stubs/project/content/config.ru +34 -0
- data/stubs/project/content/init.rb +14 -0
- data/stubs/project/content/settings.rb.rbt +10 -0
- data/stubs/project/content/settings_local.rb.rbt +6 -0
- data/stubs/project/content/templates/base.html.haml.rbt +29 -0
- data/stubs/project/preprocess.rb +5 -0
- data/stubs/pupu/preprocess.rb +5 -0
- data/stubs/stub/content/metadata.yml +2 -0
- data/stubs/stub/content/postprocess.rb +7 -0
- data/stubs/stub/content/preprocess.rb +5 -0
- data/stubs/stub/preprocess.rb +5 -0
- data/support/Rango.tmbundle/Commands/Documentation for current word.tmCommand +22 -0
- data/support/Rango.tmbundle/Commands/Got to import.tmCommand +23 -0
- data/support/Rango.tmbundle/Commands/Rango console.tmCommand +22 -0
- data/support/Rango.tmbundle/Commands/Rango server.tmCommand +22 -0
- data/support/Rango.tmbundle/Commands/Read documentation.tmCommand +22 -0
- data/support/Rango.tmbundle/Snippets/Method with yardoc.tmSnippet +20 -0
- data/support/Rango.tmbundle/Snippets/Project_configure.tmSnippet +18 -0
- data/support/Rango.tmbundle/Snippets/Project_import.tmSnippet +16 -0
- data/support/Rango.tmbundle/Snippets/Project_logger_debug.tmSnippet +16 -0
- data/support/Rango.tmbundle/Snippets/Project_logger_error.tmSnippet +16 -0
- data/support/Rango.tmbundle/Snippets/Project_logger_fatal.tmSnippet +16 -0
- data/support/Rango.tmbundle/Snippets/Project_logger_inspect.tmSnippet +16 -0
- data/support/Rango.tmbundle/Snippets/Project_logger_warn.tmSnippet +16 -0
- data/support/Rango.tmbundle/Snippets/Rango_dependency.tmSnippet +16 -0
- data/support/Rango.tmbundle/Snippets/Rango_import.tmSnippet +16 -0
- data/support/Rango.tmbundle/Snippets/Rango_logger_debug.tmSnippet +16 -0
- data/support/Rango.tmbundle/Snippets/Rango_logger_error.tmSnippet +16 -0
- data/support/Rango.tmbundle/Snippets/Rango_logger_fatal.tmSnippet +16 -0
- data/support/Rango.tmbundle/Snippets/Rango_logger_inspect.tmSnippet +16 -0
- data/support/Rango.tmbundle/Snippets/Rango_logger_warn.tmSnippet +16 -0
- data/support/Rango.tmbundle/Snippets/controller.tmSnippet +28 -0
- data/support/Rango.tmbundle/Snippets/doc.tmSnippet +20 -0
- data/support/Rango.tmbundle/Snippets/match.tmSnippet +16 -0
- data/support/Rango.tmbundle/Snippets/thor task.tmSnippet +19 -0
- data/support/Rango.tmbundle/info.plist +37 -0
- data/support/hooks/commit-msg +13 -0
- data/support/hooks/post-commit +4 -0
- data/support/hooks/pre-commit +4 -0
- data/support/hooks/pre-rebase +169 -0
- data/support/hooks/prepare-commit-msg +36 -0
- data/tasks/hooks.thor +26 -0
- data/tasks/package.thor +49 -0
- data/tasks/release.thor +72 -0
- data/tasks/repair.thor +75 -0
- data/tasks/spec.thor +39 -0
- data/tasks/stats.thor +66 -0
- data/tasks/yardoc.thor +16 -0
- data/templates/errors/404.html.erb +52 -0
- data/templates/errors/406.html.erb +1 -0
- data/templates/errors/500.html.erb +48 -0
- metadata +866 -0
|
@@ -0,0 +1,1271 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
3
|
+
<html>
|
|
4
|
+
<head>
|
|
5
|
+
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
|
6
|
+
<link rel="stylesheet" href="../style.css" type="text/css" charset="utf-8" />
|
|
7
|
+
<link rel="stylesheet" href="../syntax_highlight.css" type="text/css" charset="utf-8" />
|
|
8
|
+
|
|
9
|
+
<script src="../jquery.js" type="text/javascript" charset="utf-8"></script>
|
|
10
|
+
<script src="../app.js" type="text/javascript" charset="utf-8"></script>
|
|
11
|
+
<title>Module: Rango::Helpers</title>
|
|
12
|
+
</head>
|
|
13
|
+
<body>
|
|
14
|
+
<div id="content">
|
|
15
|
+
<div class="section module Rango_Helpers">
|
|
16
|
+
<h1 class="title">Module: Rango::Helpers</h1>
|
|
17
|
+
<div class="section constants">
|
|
18
|
+
|
|
19
|
+
</div> <div class="section visibilitygroup public">
|
|
20
|
+
<h1>Public Visibility</h1>
|
|
21
|
+
<div class="section methodsummary class public">
|
|
22
|
+
<h1>Public Class Method Summary</h1>
|
|
23
|
+
<table class="summary">
|
|
24
|
+
|
|
25
|
+
<tr>
|
|
26
|
+
<th class="signature">
|
|
27
|
+
<span class='name'><a href="#load-class_method" title="load">load</a></span><span class='args'></span>
|
|
28
|
+
<span class='block'></span>
|
|
29
|
+
|
|
30
|
+
</th>
|
|
31
|
+
<td class="docstring">
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
</td>
|
|
35
|
+
</tr>
|
|
36
|
+
|
|
37
|
+
<tr>
|
|
38
|
+
<th class="signature">
|
|
39
|
+
<span class='name'><a href="#load_helpers-class_method" title="load_helpers">load_helpers</a></span><span class='args'>(helpers = @@helpers_files)</span>
|
|
40
|
+
<span class='block'></span>
|
|
41
|
+
|
|
42
|
+
</th>
|
|
43
|
+
<td class="docstring">
|
|
44
|
+
<p>
|
|
45
|
+
Load only specific helpers instead of loading all the helpers.
|
|
46
|
+
</p>
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
</td>
|
|
50
|
+
</tr>
|
|
51
|
+
|
|
52
|
+
</table>
|
|
53
|
+
</div>
|
|
54
|
+
<div class="section methodsummary instance public">
|
|
55
|
+
<h1>Public Instance Method Summary</h1>
|
|
56
|
+
<table class="summary">
|
|
57
|
+
|
|
58
|
+
<tr>
|
|
59
|
+
<th class="signature">
|
|
60
|
+
<span class='name'><a href="#copyright-instance_method" title="#copyright">#copyright</a></span><span class='args'>(from)</span>
|
|
61
|
+
<span class='block'></span>
|
|
62
|
+
|
|
63
|
+
</th>
|
|
64
|
+
<td class="docstring">
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
</td>
|
|
68
|
+
</tr>
|
|
69
|
+
|
|
70
|
+
<tr>
|
|
71
|
+
<th class="signature">
|
|
72
|
+
<span class='name'><a href="#error_messages_for-instance_method" title="#error_messages_for">#error_messages_for</a></span><span class='args'>(model_instance)</span>
|
|
73
|
+
<span class='block'></span>
|
|
74
|
+
|
|
75
|
+
</th>
|
|
76
|
+
<td class="docstring">
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
</td>
|
|
80
|
+
</tr>
|
|
81
|
+
|
|
82
|
+
<tr>
|
|
83
|
+
<th class="signature">
|
|
84
|
+
<span class='name'><a href="#javascript-instance_method" title="#javascript">#javascript</a></span><span class='args'>(basename)</span>
|
|
85
|
+
<span class='block'></span>
|
|
86
|
+
|
|
87
|
+
</th>
|
|
88
|
+
<td class="docstring">
|
|
89
|
+
<p>
|
|
90
|
+
stolen from pupu (but it’s OK, it’s my code).
|
|
91
|
+
</p>
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
</td>
|
|
95
|
+
</tr>
|
|
96
|
+
|
|
97
|
+
<tr>
|
|
98
|
+
<th class="signature">
|
|
99
|
+
<span class='name'><a href="#javascripts-instance_method" title="#javascripts">#javascripts</a></span><span class='args'>(*names)</span>
|
|
100
|
+
<span class='block'></span>
|
|
101
|
+
|
|
102
|
+
</th>
|
|
103
|
+
<td class="docstring">
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
</td>
|
|
107
|
+
</tr>
|
|
108
|
+
|
|
109
|
+
<tr>
|
|
110
|
+
<th class="signature">
|
|
111
|
+
<span class='name'><a href="#link_item-instance_method" title="#link_item">#link_item</a></span><span class='args'>(name, url)</span>
|
|
112
|
+
<span class='block'></span>
|
|
113
|
+
|
|
114
|
+
</th>
|
|
115
|
+
<td class="docstring">
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
</td>
|
|
119
|
+
</tr>
|
|
120
|
+
|
|
121
|
+
<tr>
|
|
122
|
+
<th class="signature">
|
|
123
|
+
<span class='name'><a href="#link_to-instance_method" title="#link_to">#link_to</a></span><span class='args'>(name, url, options = Hash.new)</span>
|
|
124
|
+
<span class='block'></span>
|
|
125
|
+
|
|
126
|
+
</th>
|
|
127
|
+
<td class="docstring">
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
</td>
|
|
131
|
+
</tr>
|
|
132
|
+
|
|
133
|
+
<tr>
|
|
134
|
+
<th class="signature">
|
|
135
|
+
<span class='name'><a href="#mail_to-instance_method" title="#mail_to">#mail_to</a></span><span class='args'>(mail, text = mail)</span>
|
|
136
|
+
<span class='block'></span>
|
|
137
|
+
|
|
138
|
+
</th>
|
|
139
|
+
<td class="docstring">
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
</td>
|
|
143
|
+
</tr>
|
|
144
|
+
|
|
145
|
+
<tr>
|
|
146
|
+
<th class="signature">
|
|
147
|
+
<span class='name'><a href="#markdown-instance_method" title="#markdown">#markdown</a></span><span class='args'>(text)</span>
|
|
148
|
+
<span class='block'></span>
|
|
149
|
+
|
|
150
|
+
</th>
|
|
151
|
+
<td class="docstring">
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
</td>
|
|
155
|
+
</tr>
|
|
156
|
+
|
|
157
|
+
<tr>
|
|
158
|
+
<th class="signature">
|
|
159
|
+
<span class='name'><a href="#maruku-instance_method" title="#maruku">#maruku</a></span><span class='args'>(text, options = Hash.new)</span>
|
|
160
|
+
<span class='block'></span>
|
|
161
|
+
|
|
162
|
+
</th>
|
|
163
|
+
<td class="docstring">
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
</td>
|
|
167
|
+
</tr>
|
|
168
|
+
|
|
169
|
+
<tr>
|
|
170
|
+
<th class="signature">
|
|
171
|
+
<span class='name'><a href="#stylesheet-instance_method" title="#stylesheet">#stylesheet</a></span><span class='args'>(basename, attrs = Hash.new)</span>
|
|
172
|
+
<span class='block'></span>
|
|
173
|
+
|
|
174
|
+
</th>
|
|
175
|
+
<td class="docstring">
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
</td>
|
|
179
|
+
</tr>
|
|
180
|
+
|
|
181
|
+
<tr>
|
|
182
|
+
<th class="signature">
|
|
183
|
+
<span class='name'><a href="#stylesheets-instance_method" title="#stylesheets">#stylesheets</a></span><span class='args'>(*names)</span>
|
|
184
|
+
<span class='block'></span>
|
|
185
|
+
|
|
186
|
+
</th>
|
|
187
|
+
<td class="docstring">
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
</td>
|
|
191
|
+
</tr>
|
|
192
|
+
|
|
193
|
+
<tr>
|
|
194
|
+
<th class="signature">
|
|
195
|
+
<span class='name'><a href="#syntax-instance_method" title="#syntax">#syntax</a></span><span class='args'>(text, options = Hash.new)</span>
|
|
196
|
+
<span class='block'></span>
|
|
197
|
+
|
|
198
|
+
</th>
|
|
199
|
+
<td class="docstring">
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
</td>
|
|
203
|
+
</tr>
|
|
204
|
+
|
|
205
|
+
<tr>
|
|
206
|
+
<th class="signature">
|
|
207
|
+
<span class='name'><a href="#textile-instance_method" title="#textile">#textile</a></span><span class='args'>(text)</span>
|
|
208
|
+
<span class='block'></span>
|
|
209
|
+
|
|
210
|
+
</th>
|
|
211
|
+
<td class="docstring">
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
</td>
|
|
215
|
+
</tr>
|
|
216
|
+
|
|
217
|
+
</table>
|
|
218
|
+
</div>
|
|
219
|
+
<div class="section methoddetails class public">
|
|
220
|
+
<h1>Public Class Method Details</h1>
|
|
221
|
+
|
|
222
|
+
<div class="method">
|
|
223
|
+
<div class="method_header">
|
|
224
|
+
<h3>load</h3>
|
|
225
|
+
</div><div id="load-class_method" class="section method">
|
|
226
|
+
<div class="details_title">
|
|
227
|
+
<div class='section methodsignature'>
|
|
228
|
+
<tt class='def'>
|
|
229
|
+
<span class='visibility'>public</span>
|
|
230
|
+
<span class='return_types'></span>
|
|
231
|
+
<span class='name'>load</span><span class='args'></span>
|
|
232
|
+
<span class='block'></span>
|
|
233
|
+
</tt>
|
|
234
|
+
</div>
|
|
235
|
+
|
|
236
|
+
</div><div class="section source">
|
|
237
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
|
238
|
+
<div class="source_code">
|
|
239
|
+
<table>
|
|
240
|
+
<tr>
|
|
241
|
+
<td>
|
|
242
|
+
<pre class="lines">
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
10
|
|
246
|
+
11
|
|
247
|
+
12
|
|
248
|
+
13
|
|
249
|
+
14
|
|
250
|
+
15
|
|
251
|
+
16
|
|
252
|
+
17
|
|
253
|
+
18
|
|
254
|
+
19
|
|
255
|
+
20
|
|
256
|
+
21
|
|
257
|
+
22
|
|
258
|
+
23
|
|
259
|
+
24
|
|
260
|
+
25
|
|
261
|
+
26
|
|
262
|
+
27
|
|
263
|
+
28
|
|
264
|
+
29</pre>
|
|
265
|
+
</td>
|
|
266
|
+
<td>
|
|
267
|
+
<pre class="code"><span class="info file"># File 'lib/rango/helpers/merb-helpers.rb', line 10</span>
|
|
268
|
+
|
|
269
|
+
<span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='load identifier id'>load</span>
|
|
270
|
+
<span class='require identifier id'>require</span> <span class='@@helpers_dir ivar id'>@@helpers_dir</span> <span class='plus op'>+</span> <span class='string val'>'/time_dsl'</span>
|
|
271
|
+
<span class='require identifier id'>require</span> <span class='@@helpers_dir ivar id'>@@helpers_dir</span> <span class='plus op'>+</span> <span class='string val'>'/core_ext'</span>
|
|
272
|
+
<span class='require identifier id'>require</span> <span class='@@helpers_dir ivar id'>@@helpers_dir</span> <span class='plus op'>+</span> <span class='string val'>'/core_ext/numeric'</span>
|
|
273
|
+
|
|
274
|
+
<span class='comment val'># if Rango::Plugins.config[:merb_helpers]</span>
|
|
275
|
+
<span class='comment val'># config = Rango::Plugins.config[:merb_helpers]</span>
|
|
276
|
+
<span class='comment val'>#</span>
|
|
277
|
+
<span class='comment val'># if config[:include] && !config[:include].empty?</span>
|
|
278
|
+
<span class='comment val'># load_helpers(config[:include])</span>
|
|
279
|
+
<span class='comment val'># else</span>
|
|
280
|
+
<span class='comment val'># # This is in case someone defines an entry in the config,</span>
|
|
281
|
+
<span class='comment val'># # but doesn't put in a with or without option</span>
|
|
282
|
+
<span class='comment val'># load_helpers</span>
|
|
283
|
+
<span class='comment val'># end</span>
|
|
284
|
+
<span class='comment val'>#</span>
|
|
285
|
+
<span class='comment val'># else</span>
|
|
286
|
+
<span class='load_helpers identifier id'>load_helpers</span>
|
|
287
|
+
<span class='comment val'># end</span>
|
|
288
|
+
<span class='end end kw'>end</span>
|
|
289
|
+
</pre>
|
|
290
|
+
</td>
|
|
291
|
+
</tr>
|
|
292
|
+
</table>
|
|
293
|
+
</div>
|
|
294
|
+
</div>
|
|
295
|
+
</div>
|
|
296
|
+
</div>
|
|
297
|
+
|
|
298
|
+
<div class="method">
|
|
299
|
+
<div class="method_header">
|
|
300
|
+
<h3>load_helpers</h3>
|
|
301
|
+
</div><div id="load_helpers-class_method" class="section method">
|
|
302
|
+
<div class="details_title">
|
|
303
|
+
<div class='section methodsignature'>
|
|
304
|
+
<tt class='def'>
|
|
305
|
+
<span class='visibility'>public</span>
|
|
306
|
+
<span class='return_types'></span>
|
|
307
|
+
<span class='name'>load_helpers</span><span class='args'>(helpers = @@helpers_files)</span>
|
|
308
|
+
<span class='block'></span>
|
|
309
|
+
</tt>
|
|
310
|
+
</div>
|
|
311
|
+
|
|
312
|
+
</div><div class="section docstring">
|
|
313
|
+
<p>
|
|
314
|
+
Load only specific helpers instead of loading all the helpers
|
|
315
|
+
</p>
|
|
316
|
+
|
|
317
|
+
</div><div class="section source">
|
|
318
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
|
319
|
+
<div class="source_code">
|
|
320
|
+
<table>
|
|
321
|
+
<tr>
|
|
322
|
+
<td>
|
|
323
|
+
<pre class="lines">
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
32
|
|
327
|
+
33
|
|
328
|
+
34</pre>
|
|
329
|
+
</td>
|
|
330
|
+
<td>
|
|
331
|
+
<pre class="code"><span class="info file"># File 'lib/rango/helpers/merb-helpers.rb', line 32</span>
|
|
332
|
+
|
|
333
|
+
<span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='load_helpers identifier id'>load_helpers</span><span class='lparen token'>(</span><span class='helpers identifier id'>helpers</span> <span class='assign token'>=</span> <span class='@@helpers_files ivar id'>@@helpers_files</span><span class='rparen token'>)</span>
|
|
334
|
+
<span class='helpers identifier id'>helpers</span><span class='dot token'>.</span><span class='each identifier id'>each</span> <span class='lbrace token'>{</span><span class='bitor op'>|</span><span class='helper identifier id'>helper</span><span class='bitor op'>|</span> <span class='Kernel constant id'>Kernel</span><span class='dot token'>.</span><span class='load identifier id'>load</span><span class='lparen token'>(</span><span class='File constant id'>File</span><span class='dot token'>.</span><span class='join identifier id'>join</span><span class='lparen token'>(</span><span class='@@helpers_dir ivar id'>@@helpers_dir</span><span class='comma token'>,</span> <span class='dstring node'>"#{helper}.rb"</span><span class='rparen token'>)</span> <span class='rparen token'>)</span><span class='rbrace token'>}</span> <span class='comment val'># using load here allows specs to work</span>
|
|
335
|
+
<span class='end end kw'>end</span>
|
|
336
|
+
</pre>
|
|
337
|
+
</td>
|
|
338
|
+
</tr>
|
|
339
|
+
</table>
|
|
340
|
+
</div>
|
|
341
|
+
</div>
|
|
342
|
+
</div>
|
|
343
|
+
</div>
|
|
344
|
+
|
|
345
|
+
</div><div class="section methoddetails instance public">
|
|
346
|
+
<h1>Public Instance Method Details</h1>
|
|
347
|
+
|
|
348
|
+
<div class="method">
|
|
349
|
+
<div class="method_header">
|
|
350
|
+
<h3>copyright</h3>
|
|
351
|
+
</div><div id="copyright-instance_method" class="section method">
|
|
352
|
+
<div class="details_title">
|
|
353
|
+
<div class='section methodsignature'>
|
|
354
|
+
<tt class='def'>
|
|
355
|
+
<span class='visibility'>public</span>
|
|
356
|
+
<span class='return_types'></span>
|
|
357
|
+
<span class='name'>copyright</span><span class='args'>(from)</span>
|
|
358
|
+
<span class='block'></span>
|
|
359
|
+
</tt>
|
|
360
|
+
</div>
|
|
361
|
+
|
|
362
|
+
</div><div class="section tags">
|
|
363
|
+
<h2>Meta Tags</h2>
|
|
364
|
+
<div class="param">
|
|
365
|
+
<h3>Parameters:</h3>
|
|
366
|
+
<dl>
|
|
367
|
+
|
|
368
|
+
</dl>
|
|
369
|
+
</div><div class="since">
|
|
370
|
+
<h3>Since:</h3>
|
|
371
|
+
<dl>
|
|
372
|
+
|
|
373
|
+
<dt>
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
</dt>
|
|
378
|
+
<dd>
|
|
379
|
+
<span class='desc'><p>
|
|
380
|
+
0.0.1
|
|
381
|
+
</p>
|
|
382
|
+
</span>
|
|
383
|
+
</dd>
|
|
384
|
+
|
|
385
|
+
</dl>
|
|
386
|
+
</div>
|
|
387
|
+
|
|
388
|
+
</div><div class="section source">
|
|
389
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
|
390
|
+
<div class="source_code">
|
|
391
|
+
<table>
|
|
392
|
+
<tr>
|
|
393
|
+
<td>
|
|
394
|
+
<pre class="lines">
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
7
|
|
398
|
+
8
|
|
399
|
+
9
|
|
400
|
+
10</pre>
|
|
401
|
+
</td>
|
|
402
|
+
<td>
|
|
403
|
+
<pre class="code"><span class="info file"># File 'lib/rango/helpers/general.rb', line 7</span>
|
|
404
|
+
|
|
405
|
+
<span class='def def kw'>def</span> <span class='copyright identifier id'>copyright</span><span class='lparen token'>(</span><span class='from identifier id'>from</span><span class='rparen token'>)</span>
|
|
406
|
+
<span class='now identifier id'>now</span> <span class='assign token'>=</span> <span class='Time constant id'>Time</span><span class='dot token'>.</span><span class='now identifier id'>now</span><span class='dot token'>.</span><span class='year identifier id'>year</span>
|
|
407
|
+
<span class='now identifier id'>now</span><span class='dot token'>.</span><span class='eql? fid id'>eql?</span><span class='lparen token'>(</span><span class='from identifier id'>from</span><span class='rparen token'>)</span> <span class='question op'>?</span> <span class='now identifier id'>now</span> <span class='colon op'>:</span> <span class='dstring node'>"#{from} - #{now}"</span>
|
|
408
|
+
<span class='end end kw'>end</span>
|
|
409
|
+
</pre>
|
|
410
|
+
</td>
|
|
411
|
+
</tr>
|
|
412
|
+
</table>
|
|
413
|
+
</div>
|
|
414
|
+
</div>
|
|
415
|
+
</div>
|
|
416
|
+
</div>
|
|
417
|
+
|
|
418
|
+
<div class="method">
|
|
419
|
+
<div class="method_header">
|
|
420
|
+
<h3>error_messages_for</h3>
|
|
421
|
+
</div><div id="error_messages_for-instance_method" class="section method">
|
|
422
|
+
<div class="details_title">
|
|
423
|
+
<div class='section methodsignature'>
|
|
424
|
+
<tt class='def'>
|
|
425
|
+
<span class='visibility'>public</span>
|
|
426
|
+
<span class='return_types'></span>
|
|
427
|
+
<span class='name'>error_messages_for</span><span class='args'>(model_instance)</span>
|
|
428
|
+
<span class='block'></span>
|
|
429
|
+
</tt>
|
|
430
|
+
</div>
|
|
431
|
+
|
|
432
|
+
</div><div class="section tags">
|
|
433
|
+
<h2>Meta Tags</h2>
|
|
434
|
+
<div class="param">
|
|
435
|
+
<h3>Parameters:</h3>
|
|
436
|
+
<dl>
|
|
437
|
+
|
|
438
|
+
</dl>
|
|
439
|
+
</div><div class="since">
|
|
440
|
+
<h3>Since:</h3>
|
|
441
|
+
<dl>
|
|
442
|
+
|
|
443
|
+
<dt>
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
</dt>
|
|
448
|
+
<dd>
|
|
449
|
+
<span class='desc'><p>
|
|
450
|
+
0.0.2
|
|
451
|
+
</p>
|
|
452
|
+
</span>
|
|
453
|
+
</dd>
|
|
454
|
+
|
|
455
|
+
</dl>
|
|
456
|
+
</div>
|
|
457
|
+
|
|
458
|
+
</div><div class="section source">
|
|
459
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
|
460
|
+
<div class="source_code">
|
|
461
|
+
<table>
|
|
462
|
+
<tr>
|
|
463
|
+
<td>
|
|
464
|
+
<pre class="lines">
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
34
|
|
468
|
+
35
|
|
469
|
+
36
|
|
470
|
+
37
|
|
471
|
+
38
|
|
472
|
+
39</pre>
|
|
473
|
+
</td>
|
|
474
|
+
<td>
|
|
475
|
+
<pre class="code"><span class="info file"># File 'lib/rango/helpers/general.rb', line 34</span>
|
|
476
|
+
|
|
477
|
+
<span class='def def kw'>def</span> <span class='error_messages_for identifier id'>error_messages_for</span><span class='lparen token'>(</span><span class='model_instance identifier id'>model_instance</span><span class='rparen token'>)</span>
|
|
478
|
+
<span class='tag identifier id'>tag</span> <span class='symbol val'>:ul</span> <span class='do do kw'>do</span>
|
|
479
|
+
<span class='messages identifier id'>messages</span> <span class='assign token'>=</span> <span class='model_instance identifier id'>model_instance</span><span class='dot token'>.</span><span class='errors identifier id'>errors</span><span class='dot token'>.</span><span class='full_messages identifier id'>full_messages</span>
|
|
480
|
+
<span class='messages identifier id'>messages</span><span class='dot token'>.</span><span class='map identifier id'>map</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='message identifier id'>message</span><span class='bitor op'>|</span> <span class='tag identifier id'>tag</span> <span class='symbol val'>:li</span><span class='comma token'>,</span> <span class='message identifier id'>message</span> <span class='rbrace token'>}</span>
|
|
481
|
+
<span class='end end kw'>end</span>
|
|
482
|
+
<span class='end end kw'>end</span>
|
|
483
|
+
</pre>
|
|
484
|
+
</td>
|
|
485
|
+
</tr>
|
|
486
|
+
</table>
|
|
487
|
+
</div>
|
|
488
|
+
</div>
|
|
489
|
+
</div>
|
|
490
|
+
</div>
|
|
491
|
+
|
|
492
|
+
<div class="method">
|
|
493
|
+
<div class="method_header">
|
|
494
|
+
<h3>javascript</h3>
|
|
495
|
+
</div><div id="javascript-instance_method" class="section method">
|
|
496
|
+
<div class="details_title">
|
|
497
|
+
<div class='section methodsignature'>
|
|
498
|
+
<tt class='def'>
|
|
499
|
+
<span class='visibility'>public</span>
|
|
500
|
+
<span class='return_types'></span>
|
|
501
|
+
<span class='name'>javascript</span><span class='args'>(basename)</span>
|
|
502
|
+
<span class='block'></span>
|
|
503
|
+
</tt>
|
|
504
|
+
</div>
|
|
505
|
+
|
|
506
|
+
</div><div class="section docstring">
|
|
507
|
+
<p>
|
|
508
|
+
stolen from pupu (but it’s OK, it’s my code)
|
|
509
|
+
</p>
|
|
510
|
+
|
|
511
|
+
</div><div class="section tags">
|
|
512
|
+
<h2>Meta Tags</h2>
|
|
513
|
+
<div class="param">
|
|
514
|
+
<h3>Parameters:</h3>
|
|
515
|
+
<dl>
|
|
516
|
+
|
|
517
|
+
</dl>
|
|
518
|
+
</div><div class="since">
|
|
519
|
+
<h3>Since:</h3>
|
|
520
|
+
<dl>
|
|
521
|
+
|
|
522
|
+
<dt>
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
</dt>
|
|
527
|
+
<dd>
|
|
528
|
+
<span class='desc'><p>
|
|
529
|
+
0.0.2
|
|
530
|
+
</p>
|
|
531
|
+
</span>
|
|
532
|
+
</dd>
|
|
533
|
+
|
|
534
|
+
</dl>
|
|
535
|
+
</div>
|
|
536
|
+
|
|
537
|
+
</div><div class="section source">
|
|
538
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
|
539
|
+
<div class="source_code">
|
|
540
|
+
<table>
|
|
541
|
+
<tr>
|
|
542
|
+
<td>
|
|
543
|
+
<pre class="lines">
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
7
|
|
547
|
+
8
|
|
548
|
+
9
|
|
549
|
+
10</pre>
|
|
550
|
+
</td>
|
|
551
|
+
<td>
|
|
552
|
+
<pre class="code"><span class="info file"># File 'lib/rango/helpers/assets.rb', line 7</span>
|
|
553
|
+
|
|
554
|
+
<span class='def def kw'>def</span> <span class='javascript identifier id'>javascript</span><span class='lparen token'>(</span><span class='basename identifier id'>basename</span><span class='rparen token'>)</span>
|
|
555
|
+
<span class='path identifier id'>path</span> <span class='assign token'>=</span> <span class='Path constant id'>Path</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='File constant id'>File</span><span class='dot token'>.</span><span class='join identifier id'>join</span><span class='lparen token'>(</span><span class='Project constant id'>Project</span><span class='dot token'>.</span><span class='settings identifier id'>settings</span><span class='dot token'>.</span><span class='media_root identifier id'>media_root</span><span class='comma token'>,</span> <span class='string val'>"javascripts"</span><span class='comma token'>,</span> <span class='dstring node'>"#{basename}.js"</span><span class='rparen token'>)</span><span class='rparen token'>)</span>
|
|
556
|
+
<span class='tag identifier id'>tag</span> <span class='symbol val'>:script</span><span class='comma token'>,</span> <span class='src identifier id'>src</span><span class='colon op'>:</span> <span class='path identifier id'>path</span><span class='dot token'>.</span><span class='url identifier id'>url</span><span class='comma token'>,</span> <span class='type identifier id'>type</span><span class='colon op'>:</span> <span class='string val'>"text/javascript"</span>
|
|
557
|
+
<span class='end end kw'>end</span>
|
|
558
|
+
</pre>
|
|
559
|
+
</td>
|
|
560
|
+
</tr>
|
|
561
|
+
</table>
|
|
562
|
+
</div>
|
|
563
|
+
</div>
|
|
564
|
+
</div>
|
|
565
|
+
</div>
|
|
566
|
+
|
|
567
|
+
<div class="method">
|
|
568
|
+
<div class="method_header">
|
|
569
|
+
<h3>javascripts</h3>
|
|
570
|
+
</div><div id="javascripts-instance_method" class="section method">
|
|
571
|
+
<div class="details_title">
|
|
572
|
+
<div class='section methodsignature'>
|
|
573
|
+
<tt class='def'>
|
|
574
|
+
<span class='visibility'>public</span>
|
|
575
|
+
<span class='return_types'></span>
|
|
576
|
+
<span class='name'>javascripts</span><span class='args'>(*names)</span>
|
|
577
|
+
<span class='block'></span>
|
|
578
|
+
</tt>
|
|
579
|
+
</div>
|
|
580
|
+
|
|
581
|
+
</div><div class="section tags">
|
|
582
|
+
<h2>Meta Tags</h2>
|
|
583
|
+
<div class="param">
|
|
584
|
+
<h3>Parameters:</h3>
|
|
585
|
+
<dl>
|
|
586
|
+
|
|
587
|
+
</dl>
|
|
588
|
+
</div><div class="since">
|
|
589
|
+
<h3>Since:</h3>
|
|
590
|
+
<dl>
|
|
591
|
+
|
|
592
|
+
<dt>
|
|
593
|
+
|
|
594
|
+
|
|
595
|
+
|
|
596
|
+
</dt>
|
|
597
|
+
<dd>
|
|
598
|
+
<span class='desc'><p>
|
|
599
|
+
0.0.2
|
|
600
|
+
</p>
|
|
601
|
+
</span>
|
|
602
|
+
</dd>
|
|
603
|
+
|
|
604
|
+
</dl>
|
|
605
|
+
</div>
|
|
606
|
+
|
|
607
|
+
</div><div class="section source">
|
|
608
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
|
609
|
+
<div class="source_code">
|
|
610
|
+
<table>
|
|
611
|
+
<tr>
|
|
612
|
+
<td>
|
|
613
|
+
<pre class="lines">
|
|
614
|
+
|
|
615
|
+
|
|
616
|
+
20
|
|
617
|
+
21
|
|
618
|
+
22</pre>
|
|
619
|
+
</td>
|
|
620
|
+
<td>
|
|
621
|
+
<pre class="code"><span class="info file"># File 'lib/rango/helpers/assets.rb', line 20</span>
|
|
622
|
+
|
|
623
|
+
<span class='def def kw'>def</span> <span class='javascripts identifier id'>javascripts</span><span class='lparen token'>(</span><span class='mult op'>*</span><span class='names identifier id'>names</span><span class='rparen token'>)</span>
|
|
624
|
+
<span class='names identifier id'>names</span><span class='dot token'>.</span><span class='map identifier id'>map</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='name identifier id'>name</span><span class='bitor op'>|</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='javascript identifier id'>javascript</span><span class='lparen token'>(</span><span class='name identifier id'>name</span><span class='rparen token'>)</span> <span class='rbrace token'>}</span><span class='dot token'>.</span><span class='join identifier id'>join</span><span class='lparen token'>(</span><span class='string val'>"\n"</span><span class='rparen token'>)</span>
|
|
625
|
+
<span class='end end kw'>end</span>
|
|
626
|
+
</pre>
|
|
627
|
+
</td>
|
|
628
|
+
</tr>
|
|
629
|
+
</table>
|
|
630
|
+
</div>
|
|
631
|
+
</div>
|
|
632
|
+
</div>
|
|
633
|
+
</div>
|
|
634
|
+
|
|
635
|
+
<div class="method">
|
|
636
|
+
<div class="method_header">
|
|
637
|
+
<h3>link_item</h3>
|
|
638
|
+
</div><div id="link_item-instance_method" class="section method">
|
|
639
|
+
<div class="details_title">
|
|
640
|
+
<div class='section methodsignature'>
|
|
641
|
+
<tt class='def'>
|
|
642
|
+
<span class='visibility'>public</span>
|
|
643
|
+
<span class='return_types'></span>
|
|
644
|
+
<span class='name'>link_item</span><span class='args'>(name, url)</span>
|
|
645
|
+
<span class='block'></span>
|
|
646
|
+
</tt>
|
|
647
|
+
</div>
|
|
648
|
+
|
|
649
|
+
</div><div class="section tags">
|
|
650
|
+
<h2>Meta Tags</h2>
|
|
651
|
+
<div class="param">
|
|
652
|
+
<h3>Parameters:</h3>
|
|
653
|
+
<dl>
|
|
654
|
+
|
|
655
|
+
</dl>
|
|
656
|
+
</div><div class="since">
|
|
657
|
+
<h3>Since:</h3>
|
|
658
|
+
<dl>
|
|
659
|
+
|
|
660
|
+
<dt>
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
|
|
664
|
+
</dt>
|
|
665
|
+
<dd>
|
|
666
|
+
<span class='desc'><p>
|
|
667
|
+
0.0.2
|
|
668
|
+
</p>
|
|
669
|
+
</span>
|
|
670
|
+
</dd>
|
|
671
|
+
|
|
672
|
+
</dl>
|
|
673
|
+
</div>
|
|
674
|
+
|
|
675
|
+
</div><div class="section source">
|
|
676
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
|
677
|
+
<div class="source_code">
|
|
678
|
+
<table>
|
|
679
|
+
<tr>
|
|
680
|
+
<td>
|
|
681
|
+
<pre class="lines">
|
|
682
|
+
|
|
683
|
+
|
|
684
|
+
19
|
|
685
|
+
20
|
|
686
|
+
21</pre>
|
|
687
|
+
</td>
|
|
688
|
+
<td>
|
|
689
|
+
<pre class="code"><span class="info file"># File 'lib/rango/helpers/general.rb', line 19</span>
|
|
690
|
+
|
|
691
|
+
<span class='def def kw'>def</span> <span class='link_item identifier id'>link_item</span><span class='lparen token'>(</span><span class='name identifier id'>name</span><span class='comma token'>,</span> <span class='url identifier id'>url</span><span class='rparen token'>)</span>
|
|
692
|
+
<span class='tag identifier id'>tag</span> <span class='symbol val'>:li</span><span class='comma token'>,</span> <span class='link_to identifier id'>link_to</span><span class='lparen token'>(</span><span class='name identifier id'>name</span><span class='comma token'>,</span> <span class='url identifier id'>url</span><span class='rparen token'>)</span>
|
|
693
|
+
<span class='end end kw'>end</span>
|
|
694
|
+
</pre>
|
|
695
|
+
</td>
|
|
696
|
+
</tr>
|
|
697
|
+
</table>
|
|
698
|
+
</div>
|
|
699
|
+
</div>
|
|
700
|
+
</div>
|
|
701
|
+
</div>
|
|
702
|
+
|
|
703
|
+
<div class="method">
|
|
704
|
+
<div class="method_header">
|
|
705
|
+
<h3>link_to</h3>
|
|
706
|
+
</div><div id="link_to-instance_method" class="section method">
|
|
707
|
+
<div class="details_title">
|
|
708
|
+
<div class='section methodsignature'>
|
|
709
|
+
<tt class='def'>
|
|
710
|
+
<span class='visibility'>public</span>
|
|
711
|
+
<span class='return_types'></span>
|
|
712
|
+
<span class='name'>link_to</span><span class='args'>(name, url, options = Hash.new)</span>
|
|
713
|
+
<span class='block'></span>
|
|
714
|
+
</tt>
|
|
715
|
+
</div>
|
|
716
|
+
|
|
717
|
+
</div><div class="section tags">
|
|
718
|
+
<h2>Meta Tags</h2>
|
|
719
|
+
<div class="param">
|
|
720
|
+
<h3>Parameters:</h3>
|
|
721
|
+
<dl>
|
|
722
|
+
|
|
723
|
+
</dl>
|
|
724
|
+
</div><div class="since">
|
|
725
|
+
<h3>Since:</h3>
|
|
726
|
+
<dl>
|
|
727
|
+
|
|
728
|
+
<dt>
|
|
729
|
+
|
|
730
|
+
|
|
731
|
+
|
|
732
|
+
</dt>
|
|
733
|
+
<dd>
|
|
734
|
+
<span class='desc'><p>
|
|
735
|
+
0.0.2
|
|
736
|
+
</p>
|
|
737
|
+
</span>
|
|
738
|
+
</dd>
|
|
739
|
+
|
|
740
|
+
</dl>
|
|
741
|
+
</div>
|
|
742
|
+
|
|
743
|
+
</div><div class="section source">
|
|
744
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
|
745
|
+
<div class="source_code">
|
|
746
|
+
<table>
|
|
747
|
+
<tr>
|
|
748
|
+
<td>
|
|
749
|
+
<pre class="lines">
|
|
750
|
+
|
|
751
|
+
|
|
752
|
+
13
|
|
753
|
+
14
|
|
754
|
+
15
|
|
755
|
+
16</pre>
|
|
756
|
+
</td>
|
|
757
|
+
<td>
|
|
758
|
+
<pre class="code"><span class="info file"># File 'lib/rango/helpers/general.rb', line 13</span>
|
|
759
|
+
|
|
760
|
+
<span class='def def kw'>def</span> <span class='link_to identifier id'>link_to</span><span class='lparen token'>(</span><span class='name identifier id'>name</span><span class='comma token'>,</span> <span class='url identifier id'>url</span><span class='comma token'>,</span> <span class='options identifier id'>options</span> <span class='assign token'>=</span> <span class='Hash constant id'>Hash</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='rparen token'>)</span>
|
|
761
|
+
<span class='default identifier id'>default</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='href identifier id'>href</span><span class='colon op'>:</span> <span class='URI constant id'>URI</span><span class='dot token'>.</span><span class='escape identifier id'>escape</span><span class='lparen token'>(</span><span class='url identifier id'>url</span><span class='rparen token'>)</span><span class='comma token'>,</span> <span class='title identifier id'>title</span><span class='colon op'>:</span> <span class='name identifier id'>name</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span><span class='dot token'>.</span><span class='gsub identifier id'>gsub</span><span class='lparen token'>(</span><span class='regexp val'>/'/</span><span class='comma token'>,</span> <span class='string val'>'&apos;'</span><span class='rparen token'>)</span><span class='rbrace token'>}</span>
|
|
762
|
+
<span class='tag identifier id'>tag</span> <span class='symbol val'>:a</span><span class='comma token'>,</span> <span class='name identifier id'>name</span><span class='comma token'>,</span> <span class='default identifier id'>default</span><span class='dot token'>.</span><span class='merge identifier id'>merge</span><span class='lparen token'>(</span><span class='options identifier id'>options</span><span class='rparen token'>)</span>
|
|
763
|
+
<span class='end end kw'>end</span>
|
|
764
|
+
</pre>
|
|
765
|
+
</td>
|
|
766
|
+
</tr>
|
|
767
|
+
</table>
|
|
768
|
+
</div>
|
|
769
|
+
</div>
|
|
770
|
+
</div>
|
|
771
|
+
</div>
|
|
772
|
+
|
|
773
|
+
<div class="method">
|
|
774
|
+
<div class="method_header">
|
|
775
|
+
<h3>mail_to</h3>
|
|
776
|
+
</div><div id="mail_to-instance_method" class="section method">
|
|
777
|
+
<div class="details_title">
|
|
778
|
+
<div class='section methodsignature'>
|
|
779
|
+
<tt class='def'>
|
|
780
|
+
<span class='visibility'>public</span>
|
|
781
|
+
<span class='return_types'></span>
|
|
782
|
+
<span class='name'>mail_to</span><span class='args'>(mail, text = mail)</span>
|
|
783
|
+
<span class='block'></span>
|
|
784
|
+
</tt>
|
|
785
|
+
</div>
|
|
786
|
+
|
|
787
|
+
</div><div class="section tags">
|
|
788
|
+
<h2>Meta Tags</h2>
|
|
789
|
+
<div class="param">
|
|
790
|
+
<h3>Parameters:</h3>
|
|
791
|
+
<dl>
|
|
792
|
+
|
|
793
|
+
</dl>
|
|
794
|
+
</div><div class="since">
|
|
795
|
+
<h3>Since:</h3>
|
|
796
|
+
<dl>
|
|
797
|
+
|
|
798
|
+
<dt>
|
|
799
|
+
|
|
800
|
+
|
|
801
|
+
|
|
802
|
+
</dt>
|
|
803
|
+
<dd>
|
|
804
|
+
<span class='desc'><p>
|
|
805
|
+
0.0.2 mail_to “joe@example.com” => “<a href=’<a
|
|
806
|
+
href="mailto:joe@example.com'>joe@example.com</a">joe@example.com'>joe@example.com</a</a>>”
|
|
807
|
+
mail_to “joe@example.com”, “Title” => “<a
|
|
808
|
+
href=’<a
|
|
809
|
+
href="mailto:joe@example.com'>Title</a">joe@example.com'>Title</a</a>>“
|
|
810
|
+
</p>
|
|
811
|
+
</span>
|
|
812
|
+
</dd>
|
|
813
|
+
|
|
814
|
+
</dl>
|
|
815
|
+
</div>
|
|
816
|
+
|
|
817
|
+
</div><div class="section source">
|
|
818
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
|
819
|
+
<div class="source_code">
|
|
820
|
+
<table>
|
|
821
|
+
<tr>
|
|
822
|
+
<td>
|
|
823
|
+
<pre class="lines">
|
|
824
|
+
|
|
825
|
+
|
|
826
|
+
28
|
|
827
|
+
29
|
|
828
|
+
30
|
|
829
|
+
31</pre>
|
|
830
|
+
</td>
|
|
831
|
+
<td>
|
|
832
|
+
<pre class="code"><span class="info file"># File 'lib/rango/helpers/general.rb', line 28</span>
|
|
833
|
+
|
|
834
|
+
<span class='def def kw'>def</span> <span class='mail_to identifier id'>mail_to</span><span class='lparen token'>(</span><span class='mail identifier id'>mail</span><span class='comma token'>,</span> <span class='text identifier id'>text</span> <span class='assign token'>=</span> <span class='mail identifier id'>mail</span><span class='rparen token'>)</span>
|
|
835
|
+
<span class='mail identifier id'>mail</span><span class='dot token'>.</span><span class='gsub! fid id'>gsub!</span><span class='lparen token'>(</span><span class='string val'>"@"</span> <span class='string val'>"&#x40;"</span><span class='rparen token'>)</span>
|
|
836
|
+
<span class='tag identifier id'>tag</span> <span class='symbol val'>:a</span><span class='comma token'>,</span> <span class='text identifier id'>text</span><span class='comma token'>,</span> <span class='href identifier id'>href</span><span class='colon op'>:</span> <span class='dstring node'>"mailto:#{mail}"</span>
|
|
837
|
+
<span class='end end kw'>end</span>
|
|
838
|
+
</pre>
|
|
839
|
+
</td>
|
|
840
|
+
</tr>
|
|
841
|
+
</table>
|
|
842
|
+
</div>
|
|
843
|
+
</div>
|
|
844
|
+
</div>
|
|
845
|
+
</div>
|
|
846
|
+
|
|
847
|
+
<div class="method">
|
|
848
|
+
<div class="method_header">
|
|
849
|
+
<h3>markdown</h3>
|
|
850
|
+
</div><div id="markdown-instance_method" class="section method">
|
|
851
|
+
<div class="details_title">
|
|
852
|
+
<div class='section methodsignature'>
|
|
853
|
+
<tt class='def'>
|
|
854
|
+
<span class='visibility'>public</span>
|
|
855
|
+
<span class='return_types'></span>
|
|
856
|
+
<span class='name'>markdown</span><span class='args'>(text)</span>
|
|
857
|
+
<span class='block'></span>
|
|
858
|
+
</tt>
|
|
859
|
+
</div>
|
|
860
|
+
|
|
861
|
+
</div><div class="section tags">
|
|
862
|
+
<h2>Meta Tags</h2>
|
|
863
|
+
<div class="param">
|
|
864
|
+
<h3>Parameters:</h3>
|
|
865
|
+
<dl>
|
|
866
|
+
|
|
867
|
+
</dl>
|
|
868
|
+
</div><div class="since">
|
|
869
|
+
<h3>Since:</h3>
|
|
870
|
+
<dl>
|
|
871
|
+
|
|
872
|
+
<dt>
|
|
873
|
+
|
|
874
|
+
|
|
875
|
+
|
|
876
|
+
</dt>
|
|
877
|
+
<dd>
|
|
878
|
+
<span class='desc'><p>
|
|
879
|
+
0.0.1
|
|
880
|
+
</p>
|
|
881
|
+
</span>
|
|
882
|
+
</dd>
|
|
883
|
+
|
|
884
|
+
</dl>
|
|
885
|
+
</div>
|
|
886
|
+
|
|
887
|
+
</div><div class="section source">
|
|
888
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
|
889
|
+
<div class="source_code">
|
|
890
|
+
<table>
|
|
891
|
+
<tr>
|
|
892
|
+
<td>
|
|
893
|
+
<pre class="lines">
|
|
894
|
+
|
|
895
|
+
|
|
896
|
+
12
|
|
897
|
+
13
|
|
898
|
+
14</pre>
|
|
899
|
+
</td>
|
|
900
|
+
<td>
|
|
901
|
+
<pre class="code"><span class="info file"># File 'lib/rango/helpers/syntax.rb', line 12</span>
|
|
902
|
+
|
|
903
|
+
<span class='def def kw'>def</span> <span class='markdown identifier id'>markdown</span><span class='lparen token'>(</span><span class='text identifier id'>text</span><span class='rparen token'>)</span>
|
|
904
|
+
<span class='require identifier id'>require</span> <span class='string val'>"bluecloth"</span>
|
|
905
|
+
<span class='end end kw'>end</span>
|
|
906
|
+
</pre>
|
|
907
|
+
</td>
|
|
908
|
+
</tr>
|
|
909
|
+
</table>
|
|
910
|
+
</div>
|
|
911
|
+
</div>
|
|
912
|
+
</div>
|
|
913
|
+
</div>
|
|
914
|
+
|
|
915
|
+
<div class="method">
|
|
916
|
+
<div class="method_header">
|
|
917
|
+
<h3>maruku</h3>
|
|
918
|
+
</div><div id="maruku-instance_method" class="section method">
|
|
919
|
+
<div class="details_title">
|
|
920
|
+
<div class='section methodsignature'>
|
|
921
|
+
<tt class='def'>
|
|
922
|
+
<span class='visibility'>public</span>
|
|
923
|
+
<span class='return_types'></span>
|
|
924
|
+
<span class='name'>maruku</span><span class='args'>(text, options = Hash.new)</span>
|
|
925
|
+
<span class='block'></span>
|
|
926
|
+
</tt>
|
|
927
|
+
</div>
|
|
928
|
+
|
|
929
|
+
</div><div class="section tags">
|
|
930
|
+
<h2>Meta Tags</h2>
|
|
931
|
+
<div class="param">
|
|
932
|
+
<h3>Parameters:</h3>
|
|
933
|
+
<dl>
|
|
934
|
+
|
|
935
|
+
</dl>
|
|
936
|
+
</div><div class="since">
|
|
937
|
+
<h3>Since:</h3>
|
|
938
|
+
<dl>
|
|
939
|
+
|
|
940
|
+
<dt>
|
|
941
|
+
|
|
942
|
+
|
|
943
|
+
|
|
944
|
+
</dt>
|
|
945
|
+
<dd>
|
|
946
|
+
<span class='desc'><p>
|
|
947
|
+
0.0.1
|
|
948
|
+
</p>
|
|
949
|
+
</span>
|
|
950
|
+
</dd>
|
|
951
|
+
|
|
952
|
+
</dl>
|
|
953
|
+
</div>
|
|
954
|
+
|
|
955
|
+
</div><div class="section source">
|
|
956
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
|
957
|
+
<div class="source_code">
|
|
958
|
+
<table>
|
|
959
|
+
<tr>
|
|
960
|
+
<td>
|
|
961
|
+
<pre class="lines">
|
|
962
|
+
|
|
963
|
+
|
|
964
|
+
17
|
|
965
|
+
18
|
|
966
|
+
19</pre>
|
|
967
|
+
</td>
|
|
968
|
+
<td>
|
|
969
|
+
<pre class="code"><span class="info file"># File 'lib/rango/helpers/syntax.rb', line 17</span>
|
|
970
|
+
|
|
971
|
+
<span class='def def kw'>def</span> <span class='maruku identifier id'>maruku</span><span class='lparen token'>(</span><span class='text identifier id'>text</span><span class='comma token'>,</span> <span class='options identifier id'>options</span> <span class='assign token'>=</span> <span class='Hash constant id'>Hash</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='rparen token'>)</span>
|
|
972
|
+
<span class='require identifier id'>require</span> <span class='string val'>"maruku"</span>
|
|
973
|
+
<span class='end end kw'>end</span>
|
|
974
|
+
</pre>
|
|
975
|
+
</td>
|
|
976
|
+
</tr>
|
|
977
|
+
</table>
|
|
978
|
+
</div>
|
|
979
|
+
</div>
|
|
980
|
+
</div>
|
|
981
|
+
</div>
|
|
982
|
+
|
|
983
|
+
<div class="method">
|
|
984
|
+
<div class="method_header">
|
|
985
|
+
<h3>stylesheet</h3>
|
|
986
|
+
</div><div id="stylesheet-instance_method" class="section method">
|
|
987
|
+
<div class="details_title">
|
|
988
|
+
<div class='section methodsignature'>
|
|
989
|
+
<tt class='def'>
|
|
990
|
+
<span class='visibility'>public</span>
|
|
991
|
+
<span class='return_types'></span>
|
|
992
|
+
<span class='name'>stylesheet</span><span class='args'>(basename, attrs = Hash.new)</span>
|
|
993
|
+
<span class='block'></span>
|
|
994
|
+
</tt>
|
|
995
|
+
</div>
|
|
996
|
+
|
|
997
|
+
</div><div class="section tags">
|
|
998
|
+
<h2>Meta Tags</h2>
|
|
999
|
+
<div class="param">
|
|
1000
|
+
<h3>Parameters:</h3>
|
|
1001
|
+
<dl>
|
|
1002
|
+
|
|
1003
|
+
</dl>
|
|
1004
|
+
</div><div class="since">
|
|
1005
|
+
<h3>Since:</h3>
|
|
1006
|
+
<dl>
|
|
1007
|
+
|
|
1008
|
+
<dt>
|
|
1009
|
+
|
|
1010
|
+
|
|
1011
|
+
|
|
1012
|
+
</dt>
|
|
1013
|
+
<dd>
|
|
1014
|
+
<span class='desc'><p>
|
|
1015
|
+
0.0.2
|
|
1016
|
+
</p>
|
|
1017
|
+
</span>
|
|
1018
|
+
</dd>
|
|
1019
|
+
|
|
1020
|
+
</dl>
|
|
1021
|
+
</div>
|
|
1022
|
+
|
|
1023
|
+
</div><div class="section source">
|
|
1024
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
|
1025
|
+
<div class="source_code">
|
|
1026
|
+
<table>
|
|
1027
|
+
<tr>
|
|
1028
|
+
<td>
|
|
1029
|
+
<pre class="lines">
|
|
1030
|
+
|
|
1031
|
+
|
|
1032
|
+
13
|
|
1033
|
+
14
|
|
1034
|
+
15
|
|
1035
|
+
16
|
|
1036
|
+
17</pre>
|
|
1037
|
+
</td>
|
|
1038
|
+
<td>
|
|
1039
|
+
<pre class="code"><span class="info file"># File 'lib/rango/helpers/assets.rb', line 13</span>
|
|
1040
|
+
|
|
1041
|
+
<span class='def def kw'>def</span> <span class='stylesheet identifier id'>stylesheet</span><span class='lparen token'>(</span><span class='basename identifier id'>basename</span><span class='comma token'>,</span> <span class='attrs identifier id'>attrs</span> <span class='assign token'>=</span> <span class='Hash constant id'>Hash</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='rparen token'>)</span>
|
|
1042
|
+
<span class='path identifier id'>path</span> <span class='assign token'>=</span> <span class='Path constant id'>Path</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='File constant id'>File</span><span class='dot token'>.</span><span class='join identifier id'>join</span><span class='lparen token'>(</span><span class='Project constant id'>Project</span><span class='dot token'>.</span><span class='settings identifier id'>settings</span><span class='dot token'>.</span><span class='media_root identifier id'>media_root</span><span class='comma token'>,</span> <span class='basename identifier id'>basename</span><span class='rparen token'>)</span><span class='rparen token'>)</span>
|
|
1043
|
+
<span class='default identifier id'>default</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='href identifier id'>href</span><span class='colon op'>:</span> <span class='path identifier id'>path</span><span class='dot token'>.</span><span class='url identifier id'>url</span><span class='comma token'>,</span> <span class='media identifier id'>media</span><span class='colon op'>:</span> <span class='string val'>'screen'</span><span class='comma token'>,</span> <span class='rel identifier id'>rel</span><span class='colon op'>:</span> <span class='string val'>'stylesheet'</span><span class='comma token'>,</span> <span class='type identifier id'>type</span><span class='colon op'>:</span> <span class='string val'>'text/css'</span><span class='rbrace token'>}</span>
|
|
1044
|
+
<span class='single_tag identifier id'>single_tag</span> <span class='symbol val'>:link</span><span class='comma token'>,</span> <span class='default identifier id'>default</span><span class='dot token'>.</span><span class='merge identifier id'>merge</span><span class='lparen token'>(</span><span class='attrs identifier id'>attrs</span><span class='rparen token'>)</span>
|
|
1045
|
+
<span class='end end kw'>end</span>
|
|
1046
|
+
</pre>
|
|
1047
|
+
</td>
|
|
1048
|
+
</tr>
|
|
1049
|
+
</table>
|
|
1050
|
+
</div>
|
|
1051
|
+
</div>
|
|
1052
|
+
</div>
|
|
1053
|
+
</div>
|
|
1054
|
+
|
|
1055
|
+
<div class="method">
|
|
1056
|
+
<div class="method_header">
|
|
1057
|
+
<h3>stylesheets</h3>
|
|
1058
|
+
</div><div id="stylesheets-instance_method" class="section method">
|
|
1059
|
+
<div class="details_title">
|
|
1060
|
+
<div class='section methodsignature'>
|
|
1061
|
+
<tt class='def'>
|
|
1062
|
+
<span class='visibility'>public</span>
|
|
1063
|
+
<span class='return_types'></span>
|
|
1064
|
+
<span class='name'>stylesheets</span><span class='args'>(*names)</span>
|
|
1065
|
+
<span class='block'></span>
|
|
1066
|
+
</tt>
|
|
1067
|
+
</div>
|
|
1068
|
+
|
|
1069
|
+
</div><div class="section tags">
|
|
1070
|
+
<h2>Meta Tags</h2>
|
|
1071
|
+
<div class="param">
|
|
1072
|
+
<h3>Parameters:</h3>
|
|
1073
|
+
<dl>
|
|
1074
|
+
|
|
1075
|
+
</dl>
|
|
1076
|
+
</div><div class="since">
|
|
1077
|
+
<h3>Since:</h3>
|
|
1078
|
+
<dl>
|
|
1079
|
+
|
|
1080
|
+
<dt>
|
|
1081
|
+
|
|
1082
|
+
|
|
1083
|
+
|
|
1084
|
+
</dt>
|
|
1085
|
+
<dd>
|
|
1086
|
+
<span class='desc'><p>
|
|
1087
|
+
0.0.2
|
|
1088
|
+
</p>
|
|
1089
|
+
</span>
|
|
1090
|
+
</dd>
|
|
1091
|
+
|
|
1092
|
+
</dl>
|
|
1093
|
+
</div>
|
|
1094
|
+
|
|
1095
|
+
</div><div class="section source">
|
|
1096
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
|
1097
|
+
<div class="source_code">
|
|
1098
|
+
<table>
|
|
1099
|
+
<tr>
|
|
1100
|
+
<td>
|
|
1101
|
+
<pre class="lines">
|
|
1102
|
+
|
|
1103
|
+
|
|
1104
|
+
25
|
|
1105
|
+
26
|
|
1106
|
+
27</pre>
|
|
1107
|
+
</td>
|
|
1108
|
+
<td>
|
|
1109
|
+
<pre class="code"><span class="info file"># File 'lib/rango/helpers/assets.rb', line 25</span>
|
|
1110
|
+
|
|
1111
|
+
<span class='def def kw'>def</span> <span class='stylesheets identifier id'>stylesheets</span><span class='lparen token'>(</span><span class='mult op'>*</span><span class='names identifier id'>names</span><span class='rparen token'>)</span>
|
|
1112
|
+
<span class='names identifier id'>names</span><span class='dot token'>.</span><span class='map identifier id'>map</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='name identifier id'>name</span><span class='bitor op'>|</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='stylesheet identifier id'>stylesheet</span><span class='lparen token'>(</span><span class='name identifier id'>name</span><span class='rparen token'>)</span> <span class='rbrace token'>}</span><span class='dot token'>.</span><span class='join identifier id'>join</span><span class='lparen token'>(</span><span class='string val'>"\n"</span><span class='rparen token'>)</span>
|
|
1113
|
+
<span class='end end kw'>end</span>
|
|
1114
|
+
</pre>
|
|
1115
|
+
</td>
|
|
1116
|
+
</tr>
|
|
1117
|
+
</table>
|
|
1118
|
+
</div>
|
|
1119
|
+
</div>
|
|
1120
|
+
</div>
|
|
1121
|
+
</div>
|
|
1122
|
+
|
|
1123
|
+
<div class="method">
|
|
1124
|
+
<div class="method_header">
|
|
1125
|
+
<h3>syntax</h3>
|
|
1126
|
+
</div><div id="syntax-instance_method" class="section method">
|
|
1127
|
+
<div class="details_title">
|
|
1128
|
+
<div class='section methodsignature'>
|
|
1129
|
+
<tt class='def'>
|
|
1130
|
+
<span class='visibility'>public</span>
|
|
1131
|
+
<span class='return_types'></span>
|
|
1132
|
+
<span class='name'>syntax</span><span class='args'>(text, options = Hash.new)</span>
|
|
1133
|
+
<span class='block'></span>
|
|
1134
|
+
</tt>
|
|
1135
|
+
</div>
|
|
1136
|
+
|
|
1137
|
+
</div><div class="section tags">
|
|
1138
|
+
<h2>Meta Tags</h2>
|
|
1139
|
+
<div class="param">
|
|
1140
|
+
<h3>Parameters:</h3>
|
|
1141
|
+
<dl>
|
|
1142
|
+
|
|
1143
|
+
</dl>
|
|
1144
|
+
</div><div class="since">
|
|
1145
|
+
<h3>Since:</h3>
|
|
1146
|
+
<dl>
|
|
1147
|
+
|
|
1148
|
+
<dt>
|
|
1149
|
+
|
|
1150
|
+
|
|
1151
|
+
|
|
1152
|
+
</dt>
|
|
1153
|
+
<dd>
|
|
1154
|
+
<span class='desc'><p>
|
|
1155
|
+
0.0.1
|
|
1156
|
+
</p>
|
|
1157
|
+
</span>
|
|
1158
|
+
</dd>
|
|
1159
|
+
|
|
1160
|
+
</dl>
|
|
1161
|
+
</div>
|
|
1162
|
+
|
|
1163
|
+
</div><div class="section source">
|
|
1164
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
|
1165
|
+
<div class="source_code">
|
|
1166
|
+
<table>
|
|
1167
|
+
<tr>
|
|
1168
|
+
<td>
|
|
1169
|
+
<pre class="lines">
|
|
1170
|
+
|
|
1171
|
+
|
|
1172
|
+
22
|
|
1173
|
+
23
|
|
1174
|
+
24
|
|
1175
|
+
25
|
|
1176
|
+
26</pre>
|
|
1177
|
+
</td>
|
|
1178
|
+
<td>
|
|
1179
|
+
<pre class="code"><span class="info file"># File 'lib/rango/helpers/syntax.rb', line 22</span>
|
|
1180
|
+
|
|
1181
|
+
<span class='def def kw'>def</span> <span class='syntax identifier id'>syntax</span><span class='lparen token'>(</span><span class='text identifier id'>text</span><span class='comma token'>,</span> <span class='options identifier id'>options</span> <span class='assign token'>=</span> <span class='Hash constant id'>Hash</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='rparen token'>)</span>
|
|
1182
|
+
<span class='require identifier id'>require</span> <span class='string val'>"syntax/convertors/html"</span>
|
|
1183
|
+
<span class='convertor identifier id'>convertor</span> <span class='assign token'>=</span> <span class='Syntax constant id'>Syntax</span><span class='colon2 op'>::</span><span class='Convertors constant id'>Convertors</span><span class='colon2 op'>::</span><span class='HTML constant id'>HTML</span><span class='dot token'>.</span><span class='for_syntax identifier id'>for_syntax</span><span class='lparen token'>(</span><span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:language</span><span class='rbrack token'>]</span> <span class='orop op'>||</span> <span class='string val'>"ruby"</span><span class='rparen token'>)</span>
|
|
1184
|
+
<span class='convertor identifier id'>convertor</span><span class='dot token'>.</span><span class='convert identifier id'>convert</span><span class='lparen token'>(</span><span class='text identifier id'>text</span><span class='comma token'>,</span> <span class='false false kw'>false</span><span class='rparen token'>)</span>
|
|
1185
|
+
<span class='end end kw'>end</span>
|
|
1186
|
+
</pre>
|
|
1187
|
+
</td>
|
|
1188
|
+
</tr>
|
|
1189
|
+
</table>
|
|
1190
|
+
</div>
|
|
1191
|
+
</div>
|
|
1192
|
+
</div>
|
|
1193
|
+
</div>
|
|
1194
|
+
|
|
1195
|
+
<div class="method">
|
|
1196
|
+
<div class="method_header">
|
|
1197
|
+
<h3>textile</h3>
|
|
1198
|
+
</div><div id="textile-instance_method" class="section method">
|
|
1199
|
+
<div class="details_title">
|
|
1200
|
+
<div class='section methodsignature'>
|
|
1201
|
+
<tt class='def'>
|
|
1202
|
+
<span class='visibility'>public</span>
|
|
1203
|
+
<span class='return_types'></span>
|
|
1204
|
+
<span class='name'>textile</span><span class='args'>(text)</span>
|
|
1205
|
+
<span class='block'></span>
|
|
1206
|
+
</tt>
|
|
1207
|
+
</div>
|
|
1208
|
+
|
|
1209
|
+
</div><div class="section tags">
|
|
1210
|
+
<h2>Meta Tags</h2>
|
|
1211
|
+
<div class="param">
|
|
1212
|
+
<h3>Parameters:</h3>
|
|
1213
|
+
<dl>
|
|
1214
|
+
|
|
1215
|
+
</dl>
|
|
1216
|
+
</div><div class="since">
|
|
1217
|
+
<h3>Since:</h3>
|
|
1218
|
+
<dl>
|
|
1219
|
+
|
|
1220
|
+
<dt>
|
|
1221
|
+
|
|
1222
|
+
|
|
1223
|
+
|
|
1224
|
+
</dt>
|
|
1225
|
+
<dd>
|
|
1226
|
+
<span class='desc'><p>
|
|
1227
|
+
0.0.1
|
|
1228
|
+
</p>
|
|
1229
|
+
</span>
|
|
1230
|
+
</dd>
|
|
1231
|
+
|
|
1232
|
+
</dl>
|
|
1233
|
+
</div>
|
|
1234
|
+
|
|
1235
|
+
</div><div class="section source">
|
|
1236
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
|
1237
|
+
<div class="source_code">
|
|
1238
|
+
<table>
|
|
1239
|
+
<tr>
|
|
1240
|
+
<td>
|
|
1241
|
+
<pre class="lines">
|
|
1242
|
+
|
|
1243
|
+
|
|
1244
|
+
6
|
|
1245
|
+
7
|
|
1246
|
+
8
|
|
1247
|
+
9</pre>
|
|
1248
|
+
</td>
|
|
1249
|
+
<td>
|
|
1250
|
+
<pre class="code"><span class="info file"># File 'lib/rango/helpers/syntax.rb', line 6</span>
|
|
1251
|
+
|
|
1252
|
+
<span class='def def kw'>def</span> <span class='textile identifier id'>textile</span><span class='lparen token'>(</span><span class='text identifier id'>text</span><span class='rparen token'>)</span>
|
|
1253
|
+
<span class='require identifier id'>require</span> <span class='string val'>"redcloth"</span>
|
|
1254
|
+
<span class='RedCloth constant id'>RedCloth</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='text identifier id'>text</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='to_html identifier id'>to_html</span>
|
|
1255
|
+
<span class='end end kw'>end</span>
|
|
1256
|
+
</pre>
|
|
1257
|
+
</td>
|
|
1258
|
+
</tr>
|
|
1259
|
+
</table>
|
|
1260
|
+
</div>
|
|
1261
|
+
</div>
|
|
1262
|
+
</div>
|
|
1263
|
+
</div>
|
|
1264
|
+
|
|
1265
|
+
</div>
|
|
1266
|
+
</div>
|
|
1267
|
+
|
|
1268
|
+
</div>
|
|
1269
|
+
</div>
|
|
1270
|
+
</body>
|
|
1271
|
+
</html>
|