typo 5.1.3 → 5.1.98
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +1 -0
- data/MAINTAINERS +5 -1
- data/README +3 -10
- data/app/apis/meta_weblog_service.rb +1 -1
- data/app/controllers/accounts_controller.rb +20 -9
- data/app/controllers/admin/base_controller.rb +21 -1
- data/app/controllers/admin/blacklist_controller.rb +6 -15
- data/app/controllers/admin/cache_controller.rb +2 -6
- data/app/controllers/admin/categories_controller.rb +32 -26
- data/app/controllers/admin/content_controller.rb +40 -54
- data/app/controllers/admin/dashboard_controller.rb +58 -5
- data/app/controllers/admin/feedback_controller.rb +88 -17
- data/app/controllers/admin/pages_controller.rb +9 -30
- data/app/controllers/admin/profiles_controller.rb +7 -10
- data/app/controllers/admin/resources_controller.rb +13 -12
- data/app/controllers/admin/settings_controller.rb +9 -42
- data/app/controllers/admin/sidebar_controller.rb +21 -8
- data/app/controllers/admin/tags_controller.rb +7 -13
- data/app/controllers/admin/textfilters_controller.rb +1 -99
- data/app/controllers/admin/themes_controller.rb +8 -5
- data/app/controllers/admin/users_controller.rb +13 -11
- data/app/controllers/application.rb +1 -0
- data/app/controllers/articles_controller.rb +64 -16
- data/app/controllers/backend_controller.rb +8 -2
- data/app/controllers/grouping_controller.rb +16 -10
- data/app/controllers/redirect_controller.rb +2 -2
- data/app/controllers/users_controller.rb +4 -0
- data/app/controllers/xml_controller.rb +3 -1
- data/app/helpers/admin/base_helper.rb +60 -113
- data/app/helpers/admin/content_helper.rb +19 -1
- data/app/helpers/admin/feedback_helper.rb +0 -31
- data/app/helpers/admin/pages_helper.rb +0 -20
- data/app/helpers/admin/settings_helper.rb +5 -0
- data/app/helpers/application_helper.rb +43 -27
- data/app/helpers/authors_helper.rb +1 -3
- data/app/helpers/content_helper.rb +1 -18
- data/app/helpers/sidebar_helper.rb +12 -0
- data/app/helpers/theme_helper.rb +0 -20
- data/app/helpers/xml_helper.rb +1 -9
- data/app/models/article.rb +73 -9
- data/app/models/blog.rb +24 -3
- data/app/models/blog_sweeper.rb +4 -13
- data/app/models/category.rb +1 -0
- data/app/models/content.rb +45 -4
- data/app/models/feedback/states.rb +21 -2
- data/app/models/feedback.rb +2 -0
- data/app/models/page.rb +7 -0
- data/app/models/page_cache.rb +1 -1
- data/app/models/profile.rb +2 -0
- data/app/models/tag.rb +3 -1
- data/app/models/theme.rb +1 -1
- data/app/models/user.rb +35 -6
- data/app/views/accounts/login.html.erb +7 -9
- data/app/views/accounts/signup.html.erb +1 -1
- data/app/views/admin/base/_recent_comments.html.erb +3 -3
- data/app/views/admin/base/_recent_trackbacks.html.erb +3 -3
- data/app/views/admin/blacklist/_blacklist_patterns.html.erb +2 -5
- data/app/views/admin/blacklist/_quick_post.html.erb +1 -1
- data/app/views/admin/blacklist/edit.html.erb +2 -3
- data/app/views/admin/blacklist/index.html.erb +2 -2
- data/app/views/admin/categories/_categories.html.erb +8 -10
- data/app/views/admin/categories/_form.html.erb +12 -3
- data/app/views/admin/categories/index.html.erb +1 -5
- data/app/views/admin/categories/new.html.erb +9 -0
- data/app/views/admin/content/_article_list.html.erb +16 -0
- data/app/views/admin/content/_drafts.html.erb +3 -3
- data/app/views/admin/content/_form.html.erb +29 -53
- data/app/views/admin/content/index.html.erb +49 -9
- data/app/views/admin/content/new.html.erb +1 -1
- data/app/views/admin/dashboard/_comments.html.erb +1 -3
- data/app/views/admin/dashboard/_inbound.html.erb +19 -0
- data/app/views/admin/dashboard/_overview.html.erb +7 -2
- data/app/views/admin/dashboard/_sysinfo.html.erb +5 -5
- data/app/views/admin/dashboard/_typo_dev.html.erb +21 -0
- data/app/views/admin/dashboard/_welcome.html.erb +1 -1
- data/app/views/admin/dashboard/index.html.erb +14 -17
- data/app/views/admin/feedback/_button.html.erb +5 -4
- data/app/views/admin/{comments → feedback}/_form.html.erb +1 -0
- data/app/views/admin/feedback/_item.html.erb +3 -5
- data/app/views/admin/feedback/article.html.erb +33 -0
- data/app/views/admin/feedback/edit.html.erb +10 -0
- data/app/views/admin/feedback/index.html.erb +21 -24
- data/app/views/admin/pages/_form.html.erb +20 -28
- data/app/views/admin/pages/_pages.html.erb +14 -25
- data/app/views/admin/resources/_metadata_edit.html.erb +1 -1
- data/app/views/admin/resources/_resources.html.erb +8 -5
- data/app/views/admin/resources/index.html.erb +1 -3
- data/app/views/admin/settings/_submit.html.erb +2 -2
- data/app/views/admin/settings/feedback.html.erb +86 -49
- data/app/views/admin/settings/index.html.erb +54 -58
- data/app/views/admin/settings/read.html.erb +2 -1
- data/app/views/admin/settings/seo.html.erb +46 -0
- data/app/views/admin/settings/update_database.html.erb +27 -29
- data/app/views/admin/settings/write.html.erb +41 -11
- data/app/views/admin/shared/_edit.html.erb +2 -1
- data/app/views/admin/sidebar/index.html.erb +4 -4
- data/app/views/admin/sidebar/set_active.rjs +1 -1
- data/app/views/admin/tags/_tags.html.erb +7 -8
- data/app/views/admin/tags/edit.html.erb +2 -2
- data/app/views/admin/tags/index.html.erb +1 -3
- data/app/views/admin/users/_form.html.erb +14 -3
- data/app/views/admin/users/edit.html.erb +1 -1
- data/app/views/admin/users/index.html.erb +16 -16
- data/app/views/admin/users/new.html.erb +1 -1
- data/app/views/articles/_comment_failed.html.erb +1 -0
- data/app/views/articles/_rss20_feed.rss.builder +1 -1
- data/app/views/articles/groupings.html.erb +4 -3
- data/app/views/articles/index.html.erb +1 -3
- data/app/views/articles/search.html.erb +8 -0
- data/app/views/layouts/accounts.html.erb +2 -3
- data/app/views/layouts/administration.html.erb +44 -40
- data/app/views/shared/_loginform.html.erb +9 -3
- data/app/views/shared/_search.html.erb +3 -8
- data/config/boot.rb +96 -32
- data/config/environment.rb +14 -7
- data/config/environments/development.rb +2 -0
- data/config/initializers/access_rules.rb +41 -48
- data/config/initializers/inflector.rb +1 -0
- data/config/routes.rb +11 -21
- data/db/migrate/001_initial_schema.rb +0 -1
- data/db/migrate/003_add_article_user_id.rb +11 -0
- data/db/migrate/020_superclass_articles.rb +4 -3
- data/db/migrate/021_superclass_comments.rb +2 -2
- data/db/migrate/022_superclass_trackbacks.rb +2 -1
- data/db/migrate/028_rename_redirect_to.rb +5 -1
- data/db/migrate/057_add_categorization_model.rb +12 -6
- data/db/migrate/072_add_remember_token.rb +9 -0
- data/db/migrate/073_add_meta_and_subcategories.rb +13 -0
- data/db/migrate/074_add_remember_token_expires_at.rb +9 -0
- data/db/migrate/075_move_editor_to_user.rb +20 -0
- data/db/migrate/076_fix_users_empty_email.rb +15 -0
- data/db/migrate/077_fix_userless_articles.rb +20 -0
- data/db/schema.rb +38 -38
- data/doc/typo-5.2-release-notes.txt +52 -0
- data/lang/fr_FR.rb +35 -15
- data/lang/he_IL.rb +715 -0
- data/lib/tasks/release.rake +7 -7
- data/lib/tasks/rspec.rake +142 -0
- data/lib/text_filter_plugin.rb +5 -0
- data/lib/typo_version.rb +1 -1
- data/public/images/admin/typologo.gif +0 -0
- data/public/javascripts/administration.js +12 -0
- data/public/javascripts/controls.js +1 -3
- data/public/javascripts/dragdrop.js +1 -3
- data/public/javascripts/effects.js +5 -7
- data/public/javascripts/fckcustom.js +9 -8
- data/public/javascripts/fckeditor/fckconfig.js +2 -2
- data/public/javascripts/fckeditor/fckeditor.js +1 -1
- data/public/javascripts/prototype.js +317 -167
- data/public/javascripts/quicktags.js +511 -0
- data/public/robots.txt +16 -1
- data/public/sources/javascripts/administration.js +12 -0
- data/public/sources/javascripts/application.js +2 -0
- data/public/sources/javascripts/codecollapse.js +8 -0
- data/public/sources/javascripts/controls.js +963 -0
- data/public/sources/javascripts/cookies.js +60 -0
- data/public/sources/javascripts/dragdrop.js +972 -0
- data/public/sources/javascripts/effects.js +1120 -0
- data/public/sources/javascripts/fckcustom.js +28 -0
- data/public/sources/javascripts/lang/default.js +21 -0
- data/public/sources/javascripts/lang/en_US.js +21 -0
- data/public/sources/javascripts/lang/fr_FR.js +21 -0
- data/public/sources/javascripts/lightbox.js +202 -0
- data/public/sources/javascripts/prototype.js +4320 -0
- data/public/sources/javascripts/quicktags.js +511 -0
- data/public/sources/javascripts/scriptaculous.js +58 -0
- data/public/sources/javascripts/slider.js +258 -0
- data/public/sources/javascripts/typo.js +136 -0
- data/public/sources/stylesheets/administration.css +955 -0
- data/public/sources/stylesheets/administration_rtl.css +1026 -0
- data/public/sources/stylesheets/codecollapse.css +3 -0
- data/public/sources/stylesheets/coderay.css +126 -0
- data/public/sources/stylesheets/lightbox.css +62 -0
- data/public/sources/stylesheets/rss.css +54 -0
- data/public/sources/stylesheets/textmate/dawn.css +209 -0
- data/public/sources/stylesheets/textmate/iplastic.css +142 -0
- data/public/sources/stylesheets/textmate/space_cadet.css +99 -0
- data/public/sources/stylesheets/textmate/textmate.css +48 -0
- data/public/sources/stylesheets/textmate/twilight.css +227 -0
- data/public/sources/stylesheets/user-styles.css +22 -0
- data/public/stylesheets/administration.css +146 -214
- data/public/stylesheets/administration_rtl.css +1026 -0
- data/public/stylesheets/coderay.css +128 -0
- data/script/autospec +5 -0
- data/script/dbconsole +3 -0
- data/script/performance/request +3 -0
- data/script/spec_server +18 -4
- data/spec/controllers/accounts_controller_spec.rb +24 -11
- data/spec/controllers/admin/blacklist_controller_spec.rb +4 -4
- data/spec/controllers/admin/cache_controller_spec.rb +32 -0
- data/spec/controllers/admin/categories_controller_spec.rb +8 -16
- data/spec/controllers/admin/content_controller_spec.rb +327 -171
- data/spec/controllers/admin/feedback_controller_spec.rb +278 -26
- data/spec/controllers/admin/pages_controller_spec.rb +0 -6
- data/spec/controllers/admin/resources_controller_spec.rb +3 -6
- data/spec/controllers/admin/settings_controller_spec.rb +21 -1
- data/spec/controllers/admin/tags_controller_spec.rb +35 -0
- data/spec/controllers/admin/textfilters_controller_spec.rb +10 -9
- data/spec/controllers/admin/users_controller_spec.rb +17 -18
- data/spec/controllers/articles_controller_spec.rb +4 -1
- data/spec/controllers/authors_controller_spec.rb +3 -6
- data/spec/controllers/backend_controller_spec.rb +26 -3
- data/spec/controllers/categories_controller_spec.rb +3 -6
- data/spec/controllers/comments_controller_spec.rb +4 -3
- data/spec/controllers/redirect_controller_spec.rb +5 -5
- data/spec/controllers/routes/articles_routing_spec.rb +31 -0
- data/spec/controllers/tags_controller_spec.rb +3 -6
- data/spec/controllers/textfilter_controller_spec.rb +37 -21
- data/spec/controllers/xml_controller_spec.rb +4 -1
- data/spec/helpers/application_helper_spec.rb +25 -0
- data/spec/helpers/content_helper_spec.rb +2 -0
- data/spec/lib/text_filter_plugin_spec.rb +15 -0
- data/spec/models/article_closing_spec.rb +4 -0
- data/spec/models/article_spec.rb +72 -3
- data/spec/models/blog_spec.rb +12 -0
- data/spec/models/comment_spec.rb +155 -127
- data/spec/models/metafragment_spec.rb +12 -0
- data/spec/models/resource_spec.rb +1 -0
- data/spec/models/tag_spec.rb +2 -2
- data/spec/models/theme_spec.rb +2 -2
- data/spec/models/user_spec.rb +14 -0
- data/spec/spec_helper.rb +1 -0
- data/spec/views/articles/index_spec.rb +57 -0
- data/test/fixtures/contents.yml +18 -0
- data/test/fixtures/feedback.yml +27 -0
- data/test/fixtures/profiles.yml +4 -0
- data/test/mocks/themes/typographic/views/articles/_article.html.erb +1 -1
- data/test/mocks/themes/typographic/views/articles/index.html.erb +1 -1
- data/themes/dirtylicious/layouts/default.html.erb +1 -1
- data/themes/dirtylicious/views/articles/index.html.erb +1 -3
- data/themes/scribbish/views/articles/index.html.erb +1 -3
- data/themes/standard_issue/views/articles/_article.html.erb +1 -1
- data/themes/standard_issue/views/articles/index.html.erb +1 -3
- data/themes/typographic/views/articles/_article.html.erb +1 -1
- data/themes/typographic/views/articles/index.html.erb +1 -3
- data/vendor/actionwebservice/CHANGELOG +63 -8
- data/vendor/actionwebservice/README +17 -0
- data/vendor/actionwebservice/Rakefile +12 -11
- data/vendor/actionwebservice/actionwebservice.gemspec +26 -0
- data/vendor/actionwebservice/generators/web_service/USAGE +28 -0
- data/vendor/actionwebservice/generators/web_service/templates/api_definition.rb +5 -0
- data/vendor/actionwebservice/generators/web_service/templates/controller.rb +8 -0
- data/vendor/actionwebservice/generators/web_service/templates/functional_test.rb +19 -0
- data/vendor/actionwebservice/generators/web_service/web_service_generator.rb +29 -0
- data/vendor/actionwebservice/install.rb +1 -1
- data/vendor/actionwebservice/lib/action_web_service/api.rb +1 -1
- data/vendor/actionwebservice/lib/action_web_service/casting.rb +7 -1
- data/vendor/actionwebservice/lib/action_web_service/dispatcher/action_controller_dispatcher.rb +2 -2
- data/vendor/actionwebservice/lib/action_web_service/protocol/soap_protocol/marshaler.rb +7 -0
- data/vendor/actionwebservice/lib/action_web_service/scaffolding.rb +8 -8
- data/vendor/actionwebservice/lib/action_web_service/templates/scaffolds/{layout.erb → layout.html.erb} +0 -0
- data/vendor/actionwebservice/lib/action_web_service/templates/scaffolds/{methods.erb → methods.html.erb} +0 -0
- data/vendor/actionwebservice/lib/action_web_service/templates/scaffolds/{parameters.erb → parameters.html.erb} +0 -0
- data/vendor/actionwebservice/lib/action_web_service/templates/scaffolds/{result.erb → result.html.erb} +0 -0
- data/vendor/actionwebservice/lib/action_web_service/version.rb +3 -3
- data/vendor/actionwebservice/lib/action_web_service.rb +3 -3
- data/vendor/actionwebservice/test/abstract_client.rb +1 -1
- data/vendor/actionwebservice/test/abstract_dispatcher.rb +0 -4
- data/vendor/actionwebservice/test/abstract_unit.rb +6 -18
- data/vendor/actionwebservice/test/client_xmlrpc_test.rb +0 -1
- data/vendor/actionwebservice/test/gencov +0 -0
- data/vendor/actionwebservice/test/run +0 -0
- data/vendor/actionwebservice/test/scaffolded_controller_test.rb +5 -5
- data/vendor/gems/coderay-0.8.260/.specification +114 -0
- data/vendor/gems/coderay-0.8.260/FOLDERS +53 -0
- data/vendor/gems/coderay-0.8.260/LICENSE +504 -0
- data/vendor/gems/coderay-0.8.260/README +128 -0
- data/vendor/gems/coderay-0.8.260/bin/coderay +82 -0
- data/vendor/gems/coderay-0.8.260/bin/coderay_stylesheet +4 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/duo.rb +87 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/encoder.rb +182 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/encoders/_map.rb +9 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/encoders/count.rb +21 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/encoders/debug.rb +49 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/encoders/div.rb +20 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/encoders/html/css.rb +70 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/encoders/html/numerization.rb +124 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/encoders/html/output.rb +197 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/encoders/html.rb +287 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/encoders/null.rb +26 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/encoders/page.rb +21 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/encoders/span.rb +20 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/encoders/statistic.rb +77 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/encoders/text.rb +32 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/encoders/tokens.rb +44 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/encoders/xml.rb +70 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/encoders/yaml.rb +22 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/for_redcloth.rb +72 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/helpers/file_type.rb +211 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/helpers/gzip_simple.rb +123 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/helpers/plugin.rb +333 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/helpers/word_list.rb +123 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/scanner.rb +255 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/scanners/_map.rb +15 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/scanners/c.rb +165 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/scanners/css.rb +181 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/scanners/debug.rb +61 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/scanners/delphi.rb +150 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/scanners/diff.rb +104 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/scanners/html.rb +177 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/scanners/java/builtin_types.rb +419 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/scanners/java.rb +179 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/scanners/java_script.rb +187 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/scanners/json.rb +106 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/scanners/nitro_xhtml.rb +134 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/scanners/plaintext.rb +18 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/scanners/rhtml.rb +73 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/scanners/ruby/patterns.rb +226 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/scanners/ruby.rb +381 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/scanners/scheme.rb +142 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/scanners/sql.Keith.rb +143 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/scanners/sql.rb +154 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/scanners/xml.rb +19 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/style.rb +20 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/styles/_map.rb +7 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/styles/cycnus.rb +146 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/styles/murphy.rb +132 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/token_classes.rb +82 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay/tokens.rb +387 -0
- data/vendor/gems/coderay-0.8.260/lib/coderay.rb +321 -0
- data/vendor/gems/coderay-0.8.260/lib/term/ansicolor.rb +220 -0
- data/vendor/plugins/acts_as_tree/README +26 -0
- data/vendor/plugins/{classic_pagination → acts_as_tree}/Rakefile +3 -3
- data/vendor/plugins/acts_as_tree/init.rb +1 -0
- data/vendor/plugins/acts_as_tree/lib/active_record/acts/tree.rb +96 -0
- data/vendor/{actionwebservice/lib/action_web_service/templates/scaffolds/layout.rhtml → plugins/acts_as_tree/test/abstract_unit.rb} +0 -0
- data/vendor/plugins/acts_as_tree/test/acts_as_tree_test.rb +219 -0
- data/vendor/{actionwebservice/lib/action_web_service/templates/scaffolds/methods.rhtml → plugins/acts_as_tree/test/database.yml} +0 -0
- data/vendor/{actionwebservice/lib/action_web_service/templates/scaffolds/parameters.rhtml → plugins/acts_as_tree/test/fixtures/mixin.rb} +0 -0
- data/vendor/{actionwebservice/lib/action_web_service/templates/scaffolds/result.rhtml → plugins/acts_as_tree/test/fixtures/mixins.yml} +0 -0
- data/vendor/plugins/{rspec_on_rails/generators/rspec/templates/previous_failures.txt → acts_as_tree/test/schema.rb} +0 -0
- data/vendor/plugins/expiring_action_cache/lib/metafragment.rb +1 -1
- data/vendor/plugins/fckeditor/lib/fckeditor.rb +1 -1
- data/vendor/plugins/livesearch_sidebar/init.rb +4 -0
- data/vendor/plugins/livesearch_sidebar/lib/livesearch_sidebar.rb +5 -0
- data/vendor/plugins/livesearch_sidebar/views/content.rhtml +15 -0
- data/vendor/plugins/localization/bin/make_language.rb +78 -0
- data/vendor/plugins/localization/lib/localization.rb +14 -0
- data/vendor/plugins/rspec/.autotest +1 -0
- data/vendor/plugins/rspec/{CHANGES → History.txt} +215 -62
- data/vendor/plugins/rspec/{MIT-LICENSE → License.txt} +3 -1
- data/vendor/plugins/rspec/Manifest.txt +403 -0
- data/vendor/plugins/rspec/README.txt +39 -0
- data/vendor/plugins/rspec/Rakefile +39 -229
- data/vendor/plugins/rspec/TODO.txt +10 -0
- data/vendor/plugins/rspec/bin/autospec +4 -0
- data/vendor/plugins/rspec/bin/spec +1 -1
- data/vendor/plugins/rspec/examples/pure/autogenerated_docstrings_example.rb +4 -4
- data/vendor/plugins/rspec/examples/pure/partial_mock_example.rb +1 -0
- data/vendor/plugins/rspec/examples/pure/shared_example_group_example.rb +2 -2
- data/vendor/plugins/rspec/examples/pure/yielding_example.rb +33 -0
- data/vendor/plugins/rspec/examples/stories/calculator.rb +1 -1
- data/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/everything.rb +1 -1
- data/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/CellsWithMoreThanThreeNeighboursDie.story +17 -17
- data/vendor/plugins/rspec/lib/autotest/discover.rb +1 -1
- data/vendor/plugins/rspec/lib/autotest/rspec.rb +10 -38
- data/vendor/plugins/rspec/lib/spec/adapters/ruby_engine/mri.rb +8 -0
- data/vendor/plugins/rspec/lib/spec/adapters/ruby_engine/rubinius.rb +8 -0
- data/vendor/plugins/rspec/lib/spec/adapters/ruby_engine.rb +26 -0
- data/vendor/plugins/rspec/lib/spec/adapters.rb +1 -0
- data/vendor/plugins/rspec/lib/spec/example/before_and_after_hooks.rb +93 -0
- data/vendor/plugins/rspec/lib/spec/example/configuration.rb +40 -17
- data/vendor/plugins/rspec/lib/spec/example/errors.rb +23 -2
- data/vendor/plugins/rspec/lib/spec/example/example_group.rb +12 -3
- data/vendor/plugins/rspec/lib/spec/example/example_group_factory.rb +41 -22
- data/vendor/plugins/rspec/lib/spec/example/example_group_methods.rb +88 -144
- data/vendor/plugins/rspec/lib/spec/example/example_matcher.rb +2 -0
- data/vendor/plugins/rspec/lib/spec/example/example_methods.rb +19 -20
- data/vendor/plugins/rspec/lib/spec/example/shared_example_group.rb +6 -12
- data/vendor/plugins/rspec/lib/spec/example.rb +1 -1
- data/vendor/plugins/rspec/lib/spec/expectations/differs/default.rb +1 -1
- data/vendor/plugins/rspec/lib/spec/expectations/extensions/object.rb +4 -12
- data/vendor/plugins/rspec/lib/spec/expectations/handler.rb +10 -10
- data/vendor/plugins/rspec/lib/spec/extensions/main.rb +3 -18
- data/vendor/plugins/rspec/lib/spec/extensions/metaclass.rb +7 -0
- data/vendor/plugins/rspec/lib/spec/extensions/object.rb +0 -4
- data/vendor/plugins/rspec/lib/spec/extensions.rb +1 -0
- data/vendor/plugins/rspec/lib/spec/interop/test/unit/testcase.rb +12 -2
- data/vendor/plugins/rspec/lib/spec/matchers/be.rb +18 -21
- data/vendor/plugins/rspec/lib/spec/matchers/be_close.rb +5 -5
- data/vendor/plugins/rspec/lib/spec/matchers/change.rb +45 -41
- data/vendor/plugins/rspec/lib/spec/matchers/eql.rb +6 -6
- data/vendor/plugins/rspec/lib/spec/matchers/equal.rb +6 -6
- data/vendor/plugins/rspec/lib/spec/matchers/exist.rb +10 -5
- data/vendor/plugins/rspec/lib/spec/matchers/has.rb +2 -12
- data/vendor/plugins/rspec/lib/spec/matchers/have.rb +25 -20
- data/vendor/plugins/rspec/lib/spec/matchers/include.rb +12 -5
- data/vendor/plugins/rspec/lib/spec/matchers/match.rb +9 -9
- data/vendor/plugins/rspec/lib/spec/matchers/operator_matcher.rb +25 -19
- data/vendor/plugins/rspec/lib/spec/matchers/raise_error.rb +60 -37
- data/vendor/plugins/rspec/lib/spec/matchers/respond_to.rb +5 -4
- data/vendor/plugins/rspec/lib/spec/matchers/satisfy.rb +5 -5
- data/vendor/plugins/rspec/lib/spec/matchers/simple_matcher.rb +115 -12
- data/vendor/plugins/rspec/lib/spec/matchers/throw_symbol.rb +3 -3
- data/vendor/plugins/rspec/lib/spec/matchers.rb +8 -2
- data/vendor/plugins/rspec/lib/spec/mocks/argument_constraints.rb +165 -0
- data/vendor/plugins/rspec/lib/spec/mocks/argument_expectation.rb +24 -158
- data/vendor/plugins/rspec/lib/spec/mocks/error_generator.rb +1 -1
- data/vendor/plugins/rspec/lib/spec/mocks/extensions.rb +1 -0
- data/vendor/plugins/rspec/lib/spec/mocks/framework.rb +15 -0
- data/vendor/plugins/rspec/lib/spec/mocks/message_expectation.rb +74 -10
- data/vendor/plugins/rspec/lib/spec/mocks/methods.rb +15 -3
- data/vendor/plugins/rspec/lib/spec/mocks/mock.rb +13 -7
- data/vendor/plugins/rspec/lib/spec/mocks/proxy.rb +71 -17
- data/vendor/plugins/rspec/lib/spec/mocks/spec_methods.rb +9 -1
- data/vendor/plugins/rspec/lib/spec/mocks.rb +1 -12
- data/vendor/plugins/rspec/lib/spec/rake/spectask.rb +19 -27
- data/vendor/plugins/rspec/lib/spec/rake/verify_rcov.rb +3 -3
- data/vendor/plugins/rspec/lib/spec/runner/backtrace_tweaker.rb +7 -8
- data/vendor/plugins/rspec/lib/spec/runner/command_line.rb +6 -17
- data/vendor/plugins/rspec/lib/spec/runner/drb_command_line.rb +1 -1
- data/vendor/plugins/rspec/lib/spec/runner/formatter/base_formatter.rb +4 -3
- data/vendor/plugins/rspec/lib/spec/runner/formatter/base_text_formatter.rb +5 -9
- data/vendor/plugins/rspec/lib/spec/runner/formatter/failing_example_groups_formatter.rb +4 -8
- data/vendor/plugins/rspec/lib/spec/runner/formatter/html_formatter.rb +18 -14
- data/vendor/plugins/rspec/lib/spec/runner/formatter/nested_text_formatter.rb +65 -0
- data/vendor/plugins/rspec/lib/spec/runner/formatter/profile_formatter.rb +4 -0
- data/vendor/plugins/rspec/lib/spec/runner/formatter/progress_bar_formatter.rb +6 -2
- data/vendor/plugins/rspec/lib/spec/runner/formatter/specdoc_formatter.rb +1 -1
- data/vendor/plugins/rspec/lib/spec/runner/formatter/story/html_formatter.rb +62 -16
- data/vendor/plugins/rspec/lib/spec/runner/formatter/story/plain_text_formatter.rb +81 -18
- data/vendor/plugins/rspec/lib/spec/runner/formatter/story/progress_bar_formatter.rb +42 -0
- data/vendor/plugins/rspec/lib/spec/runner/heckle_runner.rb +2 -2
- data/vendor/plugins/rspec/lib/spec/runner/option_parser.rb +49 -45
- data/vendor/plugins/rspec/lib/spec/runner/options.rb +54 -20
- data/vendor/plugins/rspec/lib/spec/runner/reporter.rb +36 -12
- data/vendor/plugins/rspec/lib/spec/runner/spec_parser.rb +1 -1
- data/vendor/plugins/rspec/lib/spec/runner.rb +17 -6
- data/vendor/plugins/rspec/lib/spec/story/extensions/regexp.rb +2 -2
- data/vendor/plugins/rspec/lib/spec/story/extensions/string.rb +2 -2
- data/vendor/plugins/rspec/lib/spec/story/runner/plain_text_story_runner.rb +2 -2
- data/vendor/plugins/rspec/lib/spec/story/runner/scenario_runner.rb +8 -0
- data/vendor/plugins/rspec/lib/spec/story/runner/story_mediator.rb +15 -1
- data/vendor/plugins/rspec/lib/spec/story/runner/story_parser.rb +20 -0
- data/vendor/plugins/rspec/lib/spec/story/runner/story_runner.rb +3 -1
- data/vendor/plugins/rspec/lib/spec/story/runner.rb +8 -5
- data/vendor/plugins/rspec/lib/spec/story/step.rb +43 -31
- data/vendor/plugins/rspec/lib/spec/story/step_mother.rb +2 -1
- data/vendor/plugins/rspec/lib/spec/story/story.rb +8 -11
- data/vendor/plugins/rspec/lib/spec/story/world.rb +6 -3
- data/vendor/plugins/rspec/lib/spec/version.rb +13 -22
- data/vendor/plugins/rspec/lib/spec.rb +15 -13
- data/vendor/plugins/rspec/plugins/mock_frameworks/rspec.rb +2 -0
- data/vendor/plugins/rspec/rake_tasks/failing_examples_with_html.rake +1 -1
- data/vendor/plugins/rspec/rake_tasks/verify_rcov.rake +2 -2
- data/vendor/plugins/rspec/rspec.gemspec +22 -0
- data/vendor/plugins/rspec/spec/{autotest_helper.rb → autotest/autotest_helper.rb} +2 -2
- data/vendor/plugins/rspec/spec/{autotest_matchers.rb → autotest/autotest_matchers.rb} +0 -0
- data/vendor/plugins/rspec/spec/autotest/discover_spec.rb +1 -1
- data/vendor/plugins/rspec/spec/autotest/rspec_spec.rb +94 -139
- data/vendor/plugins/rspec/spec/rspec_suite.rb +0 -1
- data/vendor/plugins/rspec/spec/spec/adapters/ruby_engine_spec.rb +16 -0
- data/vendor/plugins/rspec/spec/spec/example/configuration_spec.rb +229 -215
- data/vendor/plugins/rspec/spec/spec/example/example_group_class_definition_spec.rb +9 -9
- data/vendor/plugins/rspec/spec/spec/example/example_group_factory_spec.rb +137 -101
- data/vendor/plugins/rspec/spec/spec/example/example_group_methods_spec.rb +456 -361
- data/vendor/plugins/rspec/spec/spec/example/example_group_spec.rb +460 -488
- data/vendor/plugins/rspec/spec/spec/example/example_methods_spec.rb +117 -52
- data/vendor/plugins/rspec/spec/spec/example/nested_example_group_spec.rb +12 -0
- data/vendor/plugins/rspec/spec/spec/example/pending_module_spec.rb +114 -0
- data/vendor/plugins/rspec/spec/spec/example/shared_example_group_spec.rb +219 -203
- data/vendor/plugins/rspec/spec/spec/expectations/differs/default_spec.rb +27 -9
- data/vendor/plugins/rspec/spec/spec/expectations/extensions/object_spec.rb +0 -12
- data/vendor/plugins/rspec/spec/spec/extensions/main_spec.rb +23 -28
- data/vendor/plugins/rspec/spec/spec/interop/test/unit/resources/spec_with_options_hash.rb +13 -0
- data/vendor/plugins/rspec/spec/spec/interop/test/unit/spec_spec.rb +15 -8
- data/vendor/plugins/rspec/spec/spec/interop/test/unit/testcase_spec.rb +4 -0
- data/vendor/plugins/rspec/spec/spec/matchers/be_spec.rb +24 -0
- data/vendor/plugins/rspec/spec/spec/matchers/change_spec.rb +16 -6
- data/vendor/plugins/rspec/spec/spec/matchers/handler_spec.rb +58 -37
- data/vendor/plugins/rspec/spec/spec/matchers/has_spec.rb +26 -0
- data/vendor/plugins/rspec/spec/spec/matchers/have_spec.rb +105 -2
- data/vendor/plugins/rspec/spec/spec/matchers/include_spec.rb +19 -0
- data/vendor/plugins/rspec/spec/spec/matchers/operator_matcher_spec.rb +35 -2
- data/vendor/plugins/rspec/spec/spec/matchers/raise_error_spec.rb +124 -0
- data/vendor/plugins/rspec/spec/spec/matchers/respond_to_spec.rb +6 -6
- data/vendor/plugins/rspec/spec/spec/matchers/simple_matcher_spec.rb +64 -2
- data/vendor/plugins/rspec/spec/spec/mocks/any_number_of_times_spec.rb +7 -0
- data/vendor/plugins/rspec/spec/spec/mocks/{bug_report_10263.rb → bug_report_10263_spec.rb} +0 -0
- data/vendor/plugins/rspec/spec/spec/mocks/bug_report_11545_spec.rb +2 -0
- data/vendor/plugins/rspec/spec/spec/mocks/bug_report_496.rb +17 -0
- data/vendor/plugins/rspec/spec/spec/mocks/failing_mock_argument_constraints_spec.rb +10 -30
- data/vendor/plugins/rspec/spec/spec/mocks/hash_including_matcher_spec.rb +53 -0
- data/vendor/plugins/rspec/spec/spec/mocks/mock_spec.rb +123 -43
- data/vendor/plugins/rspec/spec/spec/mocks/nil_expectation_warning_spec.rb +53 -0
- data/vendor/plugins/rspec/spec/spec/mocks/null_object_mock_spec.rb +14 -0
- data/vendor/plugins/rspec/spec/spec/mocks/options_hash_spec.rb +18 -28
- data/vendor/plugins/rspec/spec/spec/mocks/partial_mock_spec.rb +50 -7
- data/vendor/plugins/rspec/spec/spec/mocks/passing_mock_argument_constraints_spec.rb +26 -50
- data/vendor/plugins/rspec/spec/spec/mocks/stub_spec.rb +7 -0
- data/vendor/plugins/rspec/spec/spec/package/bin_spec_spec.rb +8 -0
- data/vendor/plugins/rspec/spec/spec/runner/command_line_spec.rb +102 -108
- data/vendor/plugins/rspec/spec/spec/runner/drb_command_line_spec.rb +11 -6
- data/vendor/plugins/rspec/spec/spec/runner/formatter/base_formatter_spec.rb +112 -0
- data/vendor/plugins/rspec/spec/spec/runner/formatter/failing_example_groups_formatter_spec.rb +3 -2
- data/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatted-1.8.6.html +30 -25
- data/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb +1 -6
- data/vendor/plugins/rspec/spec/spec/runner/formatter/nested_text_formatter_spec.rb +318 -0
- data/vendor/plugins/rspec/spec/spec/runner/formatter/progress_bar_formatter_spec.rb +30 -2
- data/vendor/plugins/rspec/spec/spec/runner/formatter/spec_mate_formatter_spec.rb +4 -4
- data/vendor/plugins/rspec/spec/spec/runner/formatter/specdoc_formatter_spec.rb +133 -100
- data/vendor/plugins/rspec/spec/spec/runner/formatter/story/html_formatter_spec.rb +76 -2
- data/vendor/plugins/rspec/spec/spec/runner/formatter/story/plain_text_formatter_spec.rb +266 -1
- data/vendor/plugins/rspec/spec/spec/runner/formatter/story/progress_bar_formatter_spec.rb +82 -0
- data/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatted-1.8.6.html +33 -28
- data/vendor/plugins/rspec/spec/spec/runner/heckle_runner_spec.rb +8 -8
- data/vendor/plugins/rspec/spec/spec/runner/option_parser_spec.rb +104 -61
- data/vendor/plugins/rspec/spec/spec/runner/options_spec.rb +103 -17
- data/vendor/plugins/rspec/spec/spec/runner/output_one_time_fixture_runner.rb +1 -1
- data/vendor/plugins/rspec/spec/spec/runner/quiet_backtrace_tweaker_spec.rb +6 -0
- data/vendor/plugins/rspec/spec/spec/runner/reporter_spec.rb +59 -10
- data/vendor/plugins/rspec/spec/spec/runner/spec_drb.opts +1 -0
- data/vendor/plugins/rspec/spec/spec/runner/spec_parser_spec.rb +10 -4
- data/vendor/plugins/rspec/spec/spec/story/runner/plain_text_story_runner_spec.rb +15 -17
- data/vendor/plugins/rspec/spec/spec/story/runner/scenario_runner_spec.rb +124 -52
- data/vendor/plugins/rspec/spec/spec/story/runner/story_mediator_spec.rb +12 -2
- data/vendor/plugins/rspec/spec/spec/story/runner/story_parser_spec.rb +23 -6
- data/vendor/plugins/rspec/spec/spec/story/runner/story_runner_spec.rb +43 -5
- data/vendor/plugins/rspec/spec/spec/story/runner_spec.rb +59 -72
- data/vendor/plugins/rspec/spec/spec/story/scenario_spec.rb +1 -3
- data/vendor/plugins/rspec/spec/spec/story/step_mother_spec.rb +12 -0
- data/vendor/plugins/rspec/spec/spec/story/step_spec.rb +76 -4
- data/vendor/plugins/rspec/spec/spec/story/story_spec.rb +3 -5
- data/vendor/plugins/rspec/spec/spec/story/world_spec.rb +8 -8
- data/vendor/plugins/rspec/spec/spec_helper.rb +40 -66
- data/vendor/plugins/rspec/stories/all.rb +1 -1
- data/vendor/plugins/rspec/stories/configuration/before_blocks.story +21 -0
- data/vendor/plugins/rspec/stories/configuration/stories.rb +7 -0
- data/vendor/plugins/rspec/stories/mock_framework_integration/stories.rb +7 -0
- data/vendor/plugins/rspec/stories/mock_framework_integration/use_flexmock.story +9 -0
- data/vendor/plugins/rspec/stories/resources/spec/before_blocks_example.rb +32 -0
- data/vendor/plugins/rspec/stories/resources/spec/spec_with_flexmock.rb +18 -0
- data/vendor/plugins/rspec/stories/stories/multiline_steps.story +23 -0
- data/vendor/plugins/rspec/stories/stories/steps/multiline_steps.rb +13 -0
- data/vendor/plugins/rspec/stories/stories/stories.rb +6 -0
- data/vendor/plugins/rspec-rails/History.txt +93 -0
- data/vendor/plugins/{rspec_on_rails/MIT-LICENSE → rspec-rails/License.txt} +7 -5
- data/vendor/plugins/rspec-rails/Manifest.txt +161 -0
- data/vendor/plugins/rspec-rails/README.txt +46 -0
- data/vendor/plugins/rspec-rails/Rakefile +39 -0
- data/vendor/plugins/rspec-rails/UPGRADE +7 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/generators/rspec/CHANGES +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/generators/rspec/rspec_generator.rb +9 -4
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/generators/rspec/templates/all_stories.rb +0 -0
- data/vendor/plugins/{rspec_on_rails/spec_resources/views/controller_spec/_partial.rhtml → rspec-rails/generators/rspec/templates/previous_failures.txt} +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/generators/rspec/templates/rcov.opts +0 -0
- data/vendor/plugins/{rspec_on_rails/tasks → rspec-rails/generators/rspec/templates}/rspec.rake +6 -11
- data/vendor/plugins/rspec-rails/generators/rspec/templates/script/autospec +5 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/generators/rspec/templates/script/spec +1 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/generators/rspec/templates/script/spec_server +18 -4
- data/vendor/plugins/rspec-rails/generators/rspec/templates/spec.opts +4 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/generators/rspec/templates/spec_helper.rb +8 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/generators/rspec/templates/stories_helper.rb +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/generators/rspec_controller/USAGE +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/generators/rspec_controller/rspec_controller_generator.rb +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/generators/rspec_controller/templates/controller_spec.rb +1 -1
- data/vendor/plugins/rspec-rails/generators/rspec_controller/templates/helper_spec.rb +11 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/generators/rspec_controller/templates/view_spec.rb +2 -2
- data/vendor/plugins/rspec-rails/generators/rspec_default_values.rb +19 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/generators/rspec_model/USAGE +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/generators/rspec_model/rspec_model_generator.rb +7 -2
- data/vendor/plugins/rspec-rails/generators/rspec_model/templates/model_spec.rb +15 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/generators/rspec_scaffold/rspec_scaffold_generator.rb +2 -15
- data/vendor/plugins/rspec-rails/generators/rspec_scaffold/templates/controller_spec.rb +173 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/generators/rspec_scaffold/templates/edit_erb_spec.rb +8 -7
- data/vendor/plugins/rspec-rails/generators/rspec_scaffold/templates/helper_spec.rb +11 -0
- data/vendor/plugins/rspec-rails/generators/rspec_scaffold/templates/index_erb_spec.rb +27 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/generators/rspec_scaffold/templates/new_erb_spec.rb +7 -7
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/generators/rspec_scaffold/templates/routing_spec.rb +15 -17
- data/vendor/plugins/rspec-rails/generators/rspec_scaffold/templates/show_erb_spec.rb +23 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/init.rb +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/lib/autotest/discover.rb +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/lib/autotest/rails_rspec.rb +1 -6
- data/vendor/plugins/rspec-rails/lib/spec/rails/example/assigns_hash_proxy.rb +40 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/lib/spec/rails/example/controller_example_group.rb +56 -55
- data/vendor/plugins/rspec-rails/lib/spec/rails/example/cookies_proxy.rb +25 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/lib/spec/rails/example/functional_example_group.rb +31 -10
- data/vendor/plugins/rspec-rails/lib/spec/rails/example/helper_example_group.rb +170 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/lib/spec/rails/example/model_example_group.rb +0 -0
- data/vendor/plugins/rspec-rails/lib/spec/rails/example/rails_example_group.rb +33 -0
- data/vendor/plugins/rspec-rails/lib/spec/rails/example/render_observer.rb +93 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/lib/spec/rails/example/view_example_group.rb +18 -6
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/lib/spec/rails/example.rb +1 -1
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/lib/spec/rails/extensions/action_controller/base.rb +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/lib/spec/rails/extensions/action_controller/rescue.rb +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/lib/spec/rails/extensions/action_controller/test_response.rb +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/lib/spec/rails/extensions/action_view/base.rb +8 -4
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/lib/spec/rails/extensions/active_record/base.rb +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/lib/spec/rails/extensions/object.rb +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/lib/spec/rails/extensions/spec/example/configuration.rb +6 -1
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/lib/spec/rails/extensions/spec/matchers/have.rb +2 -2
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/lib/spec/rails/extensions.rb +0 -0
- data/vendor/plugins/rspec-rails/lib/spec/rails/interop/testcase.rb +14 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/lib/spec/rails/matchers/assert_select.rb +1 -0
- data/vendor/plugins/rspec-rails/lib/spec/rails/matchers/change.rb +11 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/lib/spec/rails/matchers/have_text.rb +4 -2
- data/vendor/plugins/rspec-rails/lib/spec/rails/matchers/include_text.rb +54 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/lib/spec/rails/matchers/redirect_to.rb +1 -1
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/lib/spec/rails/matchers/render_template.rb +26 -6
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/lib/spec/rails/matchers.rb +2 -0
- data/vendor/plugins/rspec-rails/lib/spec/rails/mocks.rb +132 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/lib/spec/rails/story_adapter.rb +11 -3
- data/vendor/plugins/rspec-rails/lib/spec/rails/version.rb +15 -0
- data/vendor/plugins/rspec-rails/lib/spec/rails.rb +15 -0
- data/vendor/plugins/rspec-rails/rspec-rails.gemspec +28 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec/rails/autotest/mappings_spec.rb +1 -1
- data/vendor/plugins/rspec-rails/spec/rails/example/assigns_hash_proxy_spec.rb +96 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec/rails/example/configuration_spec.rb +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec/rails/example/controller_isolation_spec.rb +20 -1
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec/rails/example/controller_spec_spec.rb +119 -27
- data/vendor/plugins/rspec-rails/spec/rails/example/cookies_proxy_spec.rb +74 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec/rails/example/example_group_factory_spec.rb +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec/rails/example/helper_spec_spec.rb +60 -4
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec/rails/example/model_spec_spec.rb +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec/rails/example/shared_behaviour_spec.rb +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec/rails/example/test_unit_assertion_accessibility_spec.rb +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec/rails/example/view_spec_spec.rb +75 -51
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec/rails/extensions/action_controller_rescue_action_spec.rb +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec/rails/extensions/action_view_base_spec.rb +10 -10
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec/rails/extensions/active_record_spec.rb +0 -0
- data/vendor/plugins/rspec-rails/spec/rails/interop/testcase_spec.rb +66 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec/rails/matchers/assert_select_spec.rb +34 -3
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec/rails/matchers/description_generation_spec.rb +0 -0
- data/vendor/plugins/rspec-rails/spec/rails/matchers/errors_on_spec.rb +25 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec/rails/matchers/have_text_spec.rb +0 -0
- data/vendor/plugins/rspec-rails/spec/rails/matchers/include_text_spec.rb +64 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec/rails/matchers/redirect_to_spec.rb +7 -1
- data/vendor/plugins/{rspec_on_rails/spec/rails/matchers/render_spec.rb → rspec-rails/spec/rails/matchers/render_template_spec.rb} +21 -14
- data/vendor/plugins/rspec-rails/spec/rails/matchers/should_change_spec.rb +15 -0
- data/vendor/plugins/rspec-rails/spec/rails/mocks/ar_classes.rb +10 -0
- data/vendor/plugins/rspec-rails/spec/rails/mocks/mock_model_spec.rb +106 -0
- data/vendor/plugins/rspec-rails/spec/rails/mocks/stub_model_spec.rb +80 -0
- data/vendor/plugins/rspec-rails/spec/rails/sample_modified_fixture.rb +8 -0
- data/vendor/plugins/rspec-rails/spec/rails/sample_spec.rb +8 -0
- data/vendor/plugins/rspec-rails/spec/rails/spec_server_spec.rb +96 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec/rails/spec_spec.rb +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec/rails_suite.rb +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec/spec_helper.rb +13 -1
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec_resources/controllers/action_view_base_spec_controller.rb +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec_resources/controllers/controller_spec_controller.rb +46 -3
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec_resources/controllers/redirect_spec_controller.rb +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec_resources/controllers/render_spec_controller.rb +4 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec_resources/controllers/rjs_spec_controller.rb +0 -0
- data/vendor/plugins/rspec-rails/spec_resources/helpers/addition_helper.rb +5 -0
- data/vendor/plugins/rspec-rails/spec_resources/helpers/explicit_helper.rb +38 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec_resources/helpers/more_explicit_helper.rb +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec_resources/helpers/plugin_application_helper.rb +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec_resources/helpers/view_spec_helper.rb +0 -0
- data/vendor/plugins/{rspec_on_rails/spec_resources/views/controller_spec/action_setting_the_assigns_hash.rhtml → rspec-rails/spec_resources/views/controller_spec/_partial.rhtml} +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec_resources/views/controller_spec/action_setting_flash_after_session_reset.rhtml +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec_resources/views/controller_spec/action_setting_flash_before_session_reset.rhtml +0 -0
- data/vendor/plugins/{rspec_on_rails/spec_resources/views/render_spec/_a_partial.rhtml → rspec-rails/spec_resources/views/controller_spec/action_setting_the_assigns_hash.rhtml} +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec_resources/views/controller_spec/action_with_errors_in_template.rhtml +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec_resources/views/controller_spec/action_with_template.rhtml +0 -0
- data/vendor/plugins/{rspec_on_rails/spec_resources/views/render_spec/some_action.rhtml → rspec-rails/spec_resources/views/layouts/application.rhtml} +0 -0
- data/vendor/plugins/{rspec_on_rails/spec_resources/views/view_spec/_partial_used_twice.rhtml → rspec-rails/spec_resources/views/layouts/simple.rhtml} +0 -0
- data/vendor/plugins/rspec-rails/spec_resources/views/objects/_object.html.erb +1 -0
- data/vendor/plugins/rspec-rails/spec_resources/views/render_spec/_a_partial.rhtml +0 -0
- data/vendor/plugins/rspec-rails/spec_resources/views/render_spec/action_with_alternate_layout.rhtml +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec_resources/views/render_spec/some_action.js.rjs +0 -0
- data/vendor/plugins/rspec-rails/spec_resources/views/render_spec/some_action.rhtml +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec_resources/views/render_spec/some_action.rjs +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec_resources/views/rjs_spec/_replacement_partial.rhtml +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec_resources/views/rjs_spec/hide_div.rjs +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec_resources/views/rjs_spec/hide_page_element.rjs +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec_resources/views/rjs_spec/insert_html.rjs +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec_resources/views/rjs_spec/replace.rjs +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec_resources/views/rjs_spec/replace_html.rjs +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec_resources/views/rjs_spec/replace_html_with_partial.rjs +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec_resources/views/rjs_spec/visual_effect.rjs +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec_resources/views/rjs_spec/visual_toggle_effect.rjs +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec_resources/views/tag_spec/no_tags.rhtml +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec_resources/views/tag_spec/single_div_with_no_attributes.rhtml +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec_resources/views/tag_spec/single_div_with_one_attribute.rhtml +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec_resources/views/view_spec/_partial.rhtml +0 -0
- data/vendor/plugins/rspec-rails/spec_resources/views/view_spec/_partial_used_twice.rhtml +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec_resources/views/view_spec/_partial_with_local_variable.rhtml +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec_resources/views/view_spec/_partial_with_sub_partial.rhtml +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec_resources/views/view_spec/_spacer.rhtml +0 -0
- data/vendor/plugins/rspec-rails/spec_resources/views/view_spec/accessor.rhtml +5 -0
- data/vendor/plugins/rspec-rails/spec_resources/views/view_spec/block_helper.rhtml +3 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec_resources/views/view_spec/entry_form.rhtml +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec_resources/views/view_spec/explicit_helper.rhtml +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec_resources/views/view_spec/foo/show.rhtml +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec_resources/views/view_spec/implicit_helper.rhtml +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec_resources/views/view_spec/multiple_helpers.rhtml +0 -0
- data/vendor/plugins/rspec-rails/spec_resources/views/view_spec/should_not_receive.rhtml +3 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec_resources/views/view_spec/template_with_partial.rhtml +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec_resources/views/view_spec/template_with_partial_using_collection.rhtml +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/spec_resources/views/view_spec/template_with_partial_with_array.rhtml +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/stories/all.rb +0 -0
- data/vendor/plugins/rspec-rails/stories/configuration/stories.rb +5 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/stories/helper.rb +1 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/stories/steps/people.rb +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/stories/transactions_should_rollback +0 -0
- data/vendor/plugins/{rspec_on_rails → rspec-rails}/stories/transactions_should_rollback.rb +0 -0
- data/vendor/plugins/typo_textfilter_code/lib/typo_textfilter_code.rb +25 -20
- data/vendor/plugins/typo_textfilter_flickr/lib/typo_textfilter_flickr.rb +1 -1
- data/vendor/plugins/typo_textfilter_lightbox/lib/typo_textfilter_lightbox.rb +1 -1
- data/vendor/plugins/will_paginate/.manifest +49 -0
- data/vendor/plugins/will_paginate/CHANGELOG.rdoc +110 -0
- data/vendor/plugins/will_paginate/LICENSE +18 -0
- data/vendor/plugins/will_paginate/README.rdoc +107 -0
- data/vendor/plugins/will_paginate/Rakefile +62 -0
- data/vendor/plugins/will_paginate/examples/apple-circle.gif +0 -0
- data/vendor/plugins/will_paginate/examples/index.haml +69 -0
- data/vendor/plugins/will_paginate/examples/index.html +92 -0
- data/vendor/plugins/will_paginate/examples/pagination.css +90 -0
- data/vendor/plugins/will_paginate/examples/pagination.sass +91 -0
- data/vendor/plugins/will_paginate/init.rb +1 -0
- data/vendor/plugins/will_paginate/lib/will_paginate/array.rb +16 -0
- data/vendor/plugins/will_paginate/lib/will_paginate/collection.rb +146 -0
- data/vendor/plugins/will_paginate/lib/will_paginate/core_ext.rb +32 -0
- data/vendor/plugins/will_paginate/lib/will_paginate/finder.rb +260 -0
- data/vendor/plugins/will_paginate/lib/will_paginate/named_scope.rb +170 -0
- data/vendor/plugins/will_paginate/lib/will_paginate/named_scope_patch.rb +37 -0
- data/vendor/plugins/will_paginate/lib/will_paginate/version.rb +9 -0
- data/vendor/plugins/will_paginate/lib/will_paginate/view_helpers.rb +383 -0
- data/vendor/plugins/will_paginate/lib/will_paginate.rb +82 -0
- data/vendor/plugins/will_paginate/test/boot.rb +21 -0
- data/vendor/plugins/will_paginate/test/collection_test.rb +143 -0
- data/vendor/plugins/will_paginate/test/console +8 -0
- data/vendor/plugins/will_paginate/test/database.yml +22 -0
- data/vendor/plugins/will_paginate/test/finder_test.rb +476 -0
- data/vendor/plugins/will_paginate/test/fixtures/admin.rb +3 -0
- data/vendor/plugins/will_paginate/test/fixtures/developer.rb +14 -0
- data/vendor/plugins/{classic_pagination → will_paginate}/test/fixtures/developers_projects.yml +0 -0
- data/vendor/plugins/will_paginate/test/fixtures/project.rb +15 -0
- data/vendor/plugins/{classic_pagination → will_paginate}/test/fixtures/projects.yml +3 -4
- data/vendor/plugins/will_paginate/test/fixtures/replies.yml +29 -0
- data/vendor/plugins/{classic_pagination → will_paginate}/test/fixtures/reply.rb +2 -0
- data/vendor/plugins/will_paginate/test/fixtures/schema.rb +38 -0
- data/vendor/plugins/will_paginate/test/fixtures/topic.rb +10 -0
- data/vendor/plugins/{classic_pagination → will_paginate}/test/fixtures/topics.yml +9 -1
- data/vendor/plugins/will_paginate/test/fixtures/user.rb +2 -0
- data/vendor/plugins/{classic_pagination/test/fixtures/developers.yml → will_paginate/test/fixtures/users.yml} +15 -1
- data/vendor/plugins/will_paginate/test/helper.rb +37 -0
- data/vendor/plugins/will_paginate/test/lib/activerecord_test_case.rb +36 -0
- data/vendor/plugins/will_paginate/test/lib/activerecord_test_connector.rb +73 -0
- data/vendor/plugins/will_paginate/test/lib/load_fixtures.rb +11 -0
- data/vendor/plugins/will_paginate/test/lib/view_test_process.rb +165 -0
- data/vendor/plugins/will_paginate/test/tasks.rake +59 -0
- data/vendor/plugins/will_paginate/test/view_test.rb +363 -0
- data/vendor/plugins/will_paginate/will_paginate.gemspec +22 -0
- data/vendor/plugins/xml_sidebar/views/content.rhtml +3 -3
- metadata +614 -542
- data/CHANGES-5.1.3 +0 -21
- data/app/controllers/admin/comments_controller.rb +0 -57
- data/app/controllers/admin/trackbacks_controller.rb +0 -45
- data/app/views/accounts/logout.html.erb +0 -12
- data/app/views/accounts/welcome.html.erb +0 -13
- data/app/views/admin/categories/_quick_post.html.erb +0 -11
- data/app/views/admin/categories/edit.html.erb +0 -11
- data/app/views/admin/comments/destroy.html.erb +0 -11
- data/app/views/admin/comments/edit.html.erb +0 -14
- data/app/views/admin/comments/index.html.erb +0 -30
- data/app/views/admin/comments/show.html.erb +0 -28
- data/app/views/admin/content/_articles.html.erb +0 -47
- data/app/views/admin/content/_pages.html.erb +0 -3
- data/app/views/admin/content/edit.html.erb +0 -3
- data/app/views/admin/pages/_quick_post.html.erb +0 -21
- data/app/views/admin/settings/podcast.html.erb +0 -44
- data/app/views/admin/settings/spam.html.erb +0 -42
- data/app/views/admin/textfilters/_form.html.erb +0 -60
- data/app/views/admin/textfilters/_macros.html.erb +0 -16
- data/app/views/admin/textfilters/_textfilters.html.erb +0 -20
- data/app/views/admin/textfilters/destroy.html.erb +0 -10
- data/app/views/admin/textfilters/edit.html.erb +0 -14
- data/app/views/admin/textfilters/index.html.erb +0 -12
- data/app/views/admin/textfilters/macro_help.html.erb +0 -3
- data/app/views/admin/textfilters/new.html.erb +0 -12
- data/app/views/admin/textfilters/preview.html.erb +0 -3
- data/app/views/admin/textfilters/show.html.erb +0 -29
- data/app/views/admin/textfilters/show_help.html.erb +0 -4
- data/app/views/admin/trackbacks/_form.html.erb +0 -19
- data/app/views/admin/trackbacks/destroy.html.erb +0 -6
- data/app/views/admin/trackbacks/edit.html.erb +0 -11
- data/app/views/admin/trackbacks/index.html.erb +0 -22
- data/app/views/admin/trackbacks/show.html.erb +0 -14
- data/app/views/admin/users/_user.html.erb +0 -20
- data/doc/typo-4.0-release-notes.txt +0 -135
- data/public/images/admin/arrow_comment_group.gif +0 -0
- data/public/images/admin/bc-bg.gif +0 -0
- data/public/images/admin/bgdivider.png +0 -0
- data/public/images/admin/bgoff.png +0 -0
- data/public/images/admin/bgover.png +0 -0
- data/public/images/admin/bgselected.png +0 -0
- data/public/images/admin/cancel.png +0 -0
- data/public/images/admin/checked.png +0 -0
- data/public/images/admin/delete.png +0 -0
- data/public/images/admin/edit.png +0 -0
- data/public/images/admin/help.png +0 -0
- data/public/images/admin/loginformbg.png +0 -0
- data/public/images/admin/show.png +0 -0
- data/public/images/admin/table-header-first.png +0 -0
- data/public/stylesheets/typo_code.css +0 -62
- data/spec/controllers/admin/comments_controller_spec.rb +0 -74
- data/spec/controllers/admin/trackbacks_controller_spec.rb +0 -57
- data/spec/helpers/admin_base_helper_spec.rb +0 -13
- data/themes/dirtylicious/views/shared/_search.html.erb +0 -16
- data/themes/scribbish/views/shared/_search.html.erb +0 -16
- data/themes/standard_issue/views/shared/_search.html.erb +0 -17
- data/themes/typographic/views/shared/_search.html.erb +0 -17
- data/vendor/plugins/classic_pagination/CHANGELOG +0 -152
- data/vendor/plugins/classic_pagination/README +0 -18
- data/vendor/plugins/classic_pagination/init.rb +0 -33
- data/vendor/plugins/classic_pagination/install.rb +0 -1
- data/vendor/plugins/classic_pagination/lib/pagination.rb +0 -405
- data/vendor/plugins/classic_pagination/lib/pagination_helper.rb +0 -135
- data/vendor/plugins/classic_pagination/test/fixtures/companies.yml +0 -24
- data/vendor/plugins/classic_pagination/test/fixtures/company.rb +0 -9
- data/vendor/plugins/classic_pagination/test/fixtures/developer.rb +0 -7
- data/vendor/plugins/classic_pagination/test/fixtures/project.rb +0 -3
- data/vendor/plugins/classic_pagination/test/fixtures/replies.yml +0 -13
- data/vendor/plugins/classic_pagination/test/fixtures/schema.sql +0 -42
- data/vendor/plugins/classic_pagination/test/fixtures/topic.rb +0 -3
- data/vendor/plugins/classic_pagination/test/helper.rb +0 -117
- data/vendor/plugins/classic_pagination/test/pagination_helper_test.rb +0 -38
- data/vendor/plugins/classic_pagination/test/pagination_test.rb +0 -177
- data/vendor/plugins/rspec/README +0 -71
- data/vendor/plugins/rspec/TODO +0 -2
- data/vendor/plugins/rspec/UPGRADE +0 -31
- data/vendor/plugins/rspec/autotest/discover.rb +0 -6
- data/vendor/plugins/rspec/autotest/rspec.rb +0 -1
- data/vendor/plugins/rspec/bin/spec_translator +0 -8
- data/vendor/plugins/rspec/lib/spec/mocks/argument_constraint_matchers.rb +0 -27
- data/vendor/plugins/rspec/lib/spec/translator.rb +0 -114
- data/vendor/plugins/rspec/pre_commit/lib/pre_commit/core.rb +0 -50
- data/vendor/plugins/rspec/pre_commit/lib/pre_commit/pre_commit.rb +0 -54
- data/vendor/plugins/rspec/pre_commit/lib/pre_commit/rspec.rb +0 -111
- data/vendor/plugins/rspec/pre_commit/lib/pre_commit/rspec_on_rails.rb +0 -313
- data/vendor/plugins/rspec/pre_commit/lib/pre_commit.rb +0 -4
- data/vendor/plugins/rspec/pre_commit/spec/pre_commit/pre_commit_spec.rb +0 -15
- data/vendor/plugins/rspec/pre_commit/spec/pre_commit/rspec_on_rails_spec.rb +0 -36
- data/vendor/plugins/rspec/pre_commit/spec/spec_helper.rb +0 -3
- data/vendor/plugins/rspec/pre_commit/spec/spec_suite.rb +0 -11
- data/vendor/plugins/rspec/report.html +0 -4358
- data/vendor/plugins/rspec/spec/spec/example/example_spec.rb +0 -53
- data/vendor/plugins/rspec/spec/spec/runner/execution_context_spec.rb +0 -31
- data/vendor/plugins/rspec/spec/spec/translator_spec.rb +0 -265
- data/vendor/plugins/rspec_on_rails/README +0 -3
- data/vendor/plugins/rspec_on_rails/Rakefile +0 -9
- data/vendor/plugins/rspec_on_rails/generators/rspec/templates/spec.opts +0 -6
- data/vendor/plugins/rspec_on_rails/generators/rspec_controller/templates/helper_spec.rb +0 -11
- data/vendor/plugins/rspec_on_rails/generators/rspec_model/templates/model_spec.rb +0 -11
- data/vendor/plugins/rspec_on_rails/generators/rspec_scaffold/templates/controller_spec.rb +0 -313
- data/vendor/plugins/rspec_on_rails/generators/rspec_scaffold/templates/helper_spec.rb +0 -11
- data/vendor/plugins/rspec_on_rails/generators/rspec_scaffold/templates/index_erb_spec.rb +0 -22
- data/vendor/plugins/rspec_on_rails/generators/rspec_scaffold/templates/show_erb_spec.rb +0 -22
- data/vendor/plugins/rspec_on_rails/lib/spec/rails/example/assigns_hash_proxy.rb +0 -42
- data/vendor/plugins/rspec_on_rails/lib/spec/rails/example/helper_example_group.rb +0 -82
- data/vendor/plugins/rspec_on_rails/lib/spec/rails/example/ivar_proxy.rb +0 -62
- data/vendor/plugins/rspec_on_rails/lib/spec/rails/example/rails_example_group.rb +0 -68
- data/vendor/plugins/rspec_on_rails/lib/spec/rails/example/render_observer.rb +0 -90
- data/vendor/plugins/rspec_on_rails/lib/spec/rails/version.rb +0 -23
- data/vendor/plugins/rspec_on_rails/lib/spec/rails.rb +0 -51
- data/vendor/plugins/rspec_on_rails/spec/rails/autotest/rails_rspec_spec.rb +0 -8
- data/vendor/plugins/rspec_on_rails/spec/rails/example/assigns_hash_proxy_spec.rb +0 -55
- data/vendor/plugins/rspec_on_rails/spec/rails/example/ivar_proxy_spec.rb +0 -64
- data/vendor/plugins/rspec_on_rails/spec/rails/matchers/errors_on_spec.rb +0 -13
- data/vendor/plugins/rspec_on_rails/spec/rails/mocks/mock_model_spec.rb +0 -65
- data/vendor/plugins/rspec_on_rails/spec/rails/sample_spec.rb +0 -7
- data/vendor/plugins/rspec_on_rails/spec/rails/spec_server_spec.rb +0 -89
- data/vendor/plugins/rspec_on_rails/spec_resources/helpers/explicit_helper.rb +0 -10
- data/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/accessor.rhtml +0 -3
- data/vendor/syntax/LICENSE +0 -27
- data/vendor/syntax/NEWS +0 -16
- data/vendor/syntax/README +0 -38
- data/vendor/syntax/Rakefile +0 -194
- data/vendor/syntax/api/classes/Syntax/Convertors/Abstract.html +0 -159
- data/vendor/syntax/api/classes/Syntax/Convertors/HTML.html +0 -149
- data/vendor/syntax/api/classes/Syntax/Convertors.html +0 -91
- data/vendor/syntax/api/classes/Syntax/Default.html +0 -123
- data/vendor/syntax/api/classes/Syntax/Ruby.html +0 -319
- data/vendor/syntax/api/classes/Syntax/Token.html +0 -151
- data/vendor/syntax/api/classes/Syntax/Tokenizer.html +0 -324
- data/vendor/syntax/api/classes/Syntax/Version.html +0 -109
- data/vendor/syntax/api/classes/Syntax/XML.html +0 -205
- data/vendor/syntax/api/classes/Syntax/YAML.html +0 -189
- data/vendor/syntax/api/classes/Syntax.html +0 -173
- data/vendor/syntax/api/created.rid +0 -1
- data/vendor/syntax/api/files/README.html +0 -155
- data/vendor/syntax/api/files/lib/syntax/common_rb.html +0 -96
- data/vendor/syntax/api/files/lib/syntax/convertors/abstract_rb.html +0 -96
- data/vendor/syntax/api/files/lib/syntax/convertors/html_rb.html +0 -96
- data/vendor/syntax/api/files/lib/syntax/lang/ruby_rb.html +0 -96
- data/vendor/syntax/api/files/lib/syntax/lang/xml_rb.html +0 -96
- data/vendor/syntax/api/files/lib/syntax/lang/yaml_rb.html +0 -96
- data/vendor/syntax/api/files/lib/syntax/version_rb.html +0 -92
- data/vendor/syntax/api/files/lib/syntax_rb.html +0 -96
- data/vendor/syntax/api/fr_class_index.html +0 -56
- data/vendor/syntax/api/fr_file_index.html +0 -54
- data/vendor/syntax/api/fr_method_index.html +0 -65
- data/vendor/syntax/api/index.html +0 -26
- data/vendor/syntax/api/rdoc-style.css +0 -175
- data/vendor/syntax/doc/manual/chapter.erb +0 -38
- data/vendor/syntax/doc/manual/example.erb +0 -18
- data/vendor/syntax/doc/manual/index.erb +0 -29
- data/vendor/syntax/doc/manual/manual.rb +0 -311
- data/vendor/syntax/doc/manual/manual.yml +0 -43
- data/vendor/syntax/doc/manual/page.erb +0 -87
- data/vendor/syntax/doc/manual/parts/0000.txt +0 -5
- data/vendor/syntax/doc/manual/parts/0001.txt +0 -16
- data/vendor/syntax/doc/manual/parts/0002.txt +0 -24
- data/vendor/syntax/doc/manual/parts/0003.txt +0 -6
- data/vendor/syntax/doc/manual/parts/0004.txt +0 -32
- data/vendor/syntax/doc/manual/parts/0005.txt +0 -18
- data/vendor/syntax/doc/manual/parts/0006.txt +0 -62
- data/vendor/syntax/doc/manual/parts/0007.txt +0 -3
- data/vendor/syntax/doc/manual/parts/0008.txt +0 -5
- data/vendor/syntax/doc/manual/parts/0009.txt +0 -29
- data/vendor/syntax/doc/manual/parts/0010.txt +0 -21
- data/vendor/syntax/doc/manual/stylesheets/manual.css +0 -270
- data/vendor/syntax/doc/manual/stylesheets/ruby.css +0 -17
- data/vendor/syntax/doc/manual/tutorial.erb +0 -30
- data/vendor/syntax/doc/manual-html/chapter-1.html +0 -198
- data/vendor/syntax/doc/manual-html/chapter-2.html +0 -262
- data/vendor/syntax/doc/manual-html/chapter-3.html +0 -266
- data/vendor/syntax/doc/manual-html/chapter-4.html +0 -267
- data/vendor/syntax/doc/manual-html/index.html +0 -152
- data/vendor/syntax/doc/manual-html/stylesheets/manual.css +0 -270
- data/vendor/syntax/doc/manual-html/stylesheets/ruby.css +0 -17
- data/vendor/syntax/lib/syntax/common.rb +0 -163
- data/vendor/syntax/lib/syntax/convertors/abstract.rb +0 -27
- data/vendor/syntax/lib/syntax/convertors/html.rb +0 -51
- data/vendor/syntax/lib/syntax/lang/ruby.rb +0 -317
- data/vendor/syntax/lib/syntax/lang/xml.rb +0 -108
- data/vendor/syntax/lib/syntax/lang/yaml.rb +0 -105
- data/vendor/syntax/lib/syntax/version.rb +0 -9
- data/vendor/syntax/lib/syntax.rb +0 -38
- data/vendor/syntax/setup.rb +0 -1331
- data/vendor/syntax/syntax.gemspec +0 -24
- data/vendor/syntax/test/ALL-TESTS.rb +0 -5
- data/vendor/syntax/test/syntax/tc_ruby.rb +0 -871
- data/vendor/syntax/test/syntax/tc_xml.rb +0 -202
- data/vendor/syntax/test/syntax/tc_yaml.rb +0 -228
- data/vendor/syntax/test/syntax/tokenizer_testcase.rb +0 -40
- data/vendor/syntax/test/tc_syntax.rb +0 -22
data/vendor/syntax/setup.rb
DELETED
@@ -1,1331 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# setup.rb
|
3
|
-
#
|
4
|
-
# Copyright (c) 2000-2004 Minero Aoki
|
5
|
-
#
|
6
|
-
# This program is free software.
|
7
|
-
# You can distribute/modify this program under the terms of
|
8
|
-
# the GNU Lesser General Public License version 2.1.
|
9
|
-
#
|
10
|
-
|
11
|
-
#
|
12
|
-
# For backward compatibility
|
13
|
-
#
|
14
|
-
|
15
|
-
unless Enumerable.method_defined?(:map)
|
16
|
-
module Enumerable
|
17
|
-
alias map collect
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
unless Enumerable.method_defined?(:detect)
|
22
|
-
module Enumerable
|
23
|
-
alias detect find
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|
27
|
-
unless Enumerable.method_defined?(:select)
|
28
|
-
module Enumerable
|
29
|
-
alias select find_all
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
unless Enumerable.method_defined?(:reject)
|
34
|
-
module Enumerable
|
35
|
-
def reject
|
36
|
-
result = []
|
37
|
-
each do |i|
|
38
|
-
result.push i unless yield(i)
|
39
|
-
end
|
40
|
-
result
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
unless Enumerable.method_defined?(:inject)
|
46
|
-
module Enumerable
|
47
|
-
def inject(result)
|
48
|
-
each do |i|
|
49
|
-
result = yield(result, i)
|
50
|
-
end
|
51
|
-
result
|
52
|
-
end
|
53
|
-
end
|
54
|
-
end
|
55
|
-
|
56
|
-
unless Enumerable.method_defined?(:any?)
|
57
|
-
module Enumerable
|
58
|
-
def any?
|
59
|
-
each do |i|
|
60
|
-
return true if yield(i)
|
61
|
-
end
|
62
|
-
false
|
63
|
-
end
|
64
|
-
end
|
65
|
-
end
|
66
|
-
|
67
|
-
unless File.respond_to?(:read)
|
68
|
-
def File.read(fname)
|
69
|
-
open(fname) {|f|
|
70
|
-
return f.read
|
71
|
-
}
|
72
|
-
end
|
73
|
-
end
|
74
|
-
|
75
|
-
#
|
76
|
-
# Application independent utilities
|
77
|
-
#
|
78
|
-
|
79
|
-
def File.binread(fname)
|
80
|
-
open(fname, 'rb') {|f|
|
81
|
-
return f.read
|
82
|
-
}
|
83
|
-
end
|
84
|
-
|
85
|
-
# for corrupted windows stat(2)
|
86
|
-
def File.dir?(path)
|
87
|
-
File.directory?((path[-1,1] == '/') ? path : path + '/')
|
88
|
-
end
|
89
|
-
|
90
|
-
#
|
91
|
-
# Config
|
92
|
-
#
|
93
|
-
|
94
|
-
if arg = ARGV.detect{|arg| /\A--rbconfig=/ =~ arg }
|
95
|
-
ARGV.delete(arg)
|
96
|
-
require arg.split(/=/, 2)[1]
|
97
|
-
$".push 'rbconfig.rb'
|
98
|
-
else
|
99
|
-
require 'rbconfig'
|
100
|
-
end
|
101
|
-
|
102
|
-
def multipackage_install?
|
103
|
-
FileTest.directory?(File.dirname($0) + '/packages')
|
104
|
-
end
|
105
|
-
|
106
|
-
|
107
|
-
class ConfigTable
|
108
|
-
|
109
|
-
c = ::Config::CONFIG
|
110
|
-
|
111
|
-
rubypath = c['bindir'] + '/' + c['ruby_install_name']
|
112
|
-
|
113
|
-
major = c['MAJOR'].to_i
|
114
|
-
minor = c['MINOR'].to_i
|
115
|
-
teeny = c['TEENY'].to_i
|
116
|
-
version = "#{major}.#{minor}"
|
117
|
-
|
118
|
-
# ruby ver. >= 1.4.4?
|
119
|
-
newpath_p = ((major >= 2) or
|
120
|
-
((major == 1) and
|
121
|
-
((minor >= 5) or
|
122
|
-
((minor == 4) and (teeny >= 4)))))
|
123
|
-
|
124
|
-
subprefix = lambda {|path|
|
125
|
-
path.sub(/\A#{Regexp.quote(c['prefix'])}/o, '$prefix')
|
126
|
-
}
|
127
|
-
|
128
|
-
if c['rubylibdir']
|
129
|
-
# V < 1.6.3
|
130
|
-
stdruby = subprefix.call(c['rubylibdir'])
|
131
|
-
siteruby = subprefix.call(c['sitedir'])
|
132
|
-
versite = subprefix.call(c['sitelibdir'])
|
133
|
-
sodir = subprefix.call(c['sitearchdir'])
|
134
|
-
elsif newpath_p
|
135
|
-
# 1.4.4 <= V <= 1.6.3
|
136
|
-
stdruby = "$prefix/lib/ruby/#{version}"
|
137
|
-
siteruby = subprefix.call(c['sitedir'])
|
138
|
-
versite = siteruby + '/' + version
|
139
|
-
sodir = "$site-ruby/#{c['arch']}"
|
140
|
-
else
|
141
|
-
# V < 1.4.4
|
142
|
-
stdruby = "$prefix/lib/ruby/#{version}"
|
143
|
-
siteruby = "$prefix/lib/ruby/#{version}/site_ruby"
|
144
|
-
versite = siteruby
|
145
|
-
sodir = "$site-ruby/#{c['arch']}"
|
146
|
-
end
|
147
|
-
|
148
|
-
if arg = c['configure_args'].split.detect {|arg| /--with-make-prog=/ =~ arg }
|
149
|
-
makeprog = arg.sub(/'/, '').split(/=/, 2)[1]
|
150
|
-
else
|
151
|
-
makeprog = 'make'
|
152
|
-
end
|
153
|
-
|
154
|
-
common_descripters = [
|
155
|
-
[ 'prefix', [ c['prefix'],
|
156
|
-
'path',
|
157
|
-
'path prefix of target environment' ] ],
|
158
|
-
[ 'std-ruby', [ stdruby,
|
159
|
-
'path',
|
160
|
-
'the directory for standard ruby libraries' ] ],
|
161
|
-
[ 'site-ruby-common', [ siteruby,
|
162
|
-
'path',
|
163
|
-
'the directory for version-independent non-standard ruby libraries' ] ],
|
164
|
-
[ 'site-ruby', [ versite,
|
165
|
-
'path',
|
166
|
-
'the directory for non-standard ruby libraries' ] ],
|
167
|
-
[ 'bin-dir', [ '$prefix/bin',
|
168
|
-
'path',
|
169
|
-
'the directory for commands' ] ],
|
170
|
-
[ 'rb-dir', [ '$site-ruby',
|
171
|
-
'path',
|
172
|
-
'the directory for ruby scripts' ] ],
|
173
|
-
[ 'so-dir', [ sodir,
|
174
|
-
'path',
|
175
|
-
'the directory for ruby extentions' ] ],
|
176
|
-
[ 'data-dir', [ '$prefix/share',
|
177
|
-
'path',
|
178
|
-
'the directory for shared data' ] ],
|
179
|
-
[ 'ruby-path', [ rubypath,
|
180
|
-
'path',
|
181
|
-
'path to set to #! line' ] ],
|
182
|
-
[ 'ruby-prog', [ rubypath,
|
183
|
-
'name',
|
184
|
-
'the ruby program using for installation' ] ],
|
185
|
-
[ 'make-prog', [ makeprog,
|
186
|
-
'name',
|
187
|
-
'the make program to compile ruby extentions' ] ],
|
188
|
-
[ 'without-ext', [ 'no',
|
189
|
-
'yes/no',
|
190
|
-
'does not compile/install ruby extentions' ] ]
|
191
|
-
]
|
192
|
-
multipackage_descripters = [
|
193
|
-
[ 'with', [ '',
|
194
|
-
'name,name...',
|
195
|
-
'package names that you want to install',
|
196
|
-
'ALL' ] ],
|
197
|
-
[ 'without', [ '',
|
198
|
-
'name,name...',
|
199
|
-
'package names that you do not want to install',
|
200
|
-
'NONE' ] ]
|
201
|
-
]
|
202
|
-
if multipackage_install?
|
203
|
-
DESCRIPTER = common_descripters + multipackage_descripters
|
204
|
-
else
|
205
|
-
DESCRIPTER = common_descripters
|
206
|
-
end
|
207
|
-
|
208
|
-
SAVE_FILE = 'config.save'
|
209
|
-
|
210
|
-
def ConfigTable.each_name(&block)
|
211
|
-
keys().each(&block)
|
212
|
-
end
|
213
|
-
|
214
|
-
def ConfigTable.keys
|
215
|
-
DESCRIPTER.map {|name, *dummy| name }
|
216
|
-
end
|
217
|
-
|
218
|
-
def ConfigTable.each_definition(&block)
|
219
|
-
DESCRIPTER.each(&block)
|
220
|
-
end
|
221
|
-
|
222
|
-
def ConfigTable.get_entry(name)
|
223
|
-
name, ent = DESCRIPTER.assoc(name)
|
224
|
-
ent
|
225
|
-
end
|
226
|
-
|
227
|
-
def ConfigTable.get_entry!(name)
|
228
|
-
get_entry(name) or raise ArgumentError, "no such config: #{name}"
|
229
|
-
end
|
230
|
-
|
231
|
-
def ConfigTable.add_entry(name, vals)
|
232
|
-
ConfigTable::DESCRIPTER.push [name,vals]
|
233
|
-
end
|
234
|
-
|
235
|
-
def ConfigTable.remove_entry(name)
|
236
|
-
get_entry(name) or raise ArgumentError, "no such config: #{name}"
|
237
|
-
DESCRIPTER.delete_if {|n, arr| n == name }
|
238
|
-
end
|
239
|
-
|
240
|
-
def ConfigTable.config_key?(name)
|
241
|
-
get_entry(name) ? true : false
|
242
|
-
end
|
243
|
-
|
244
|
-
def ConfigTable.bool_config?(name)
|
245
|
-
ent = get_entry(name) or return false
|
246
|
-
ent[1] == 'yes/no'
|
247
|
-
end
|
248
|
-
|
249
|
-
def ConfigTable.value_config?(name)
|
250
|
-
ent = get_entry(name) or return false
|
251
|
-
ent[1] != 'yes/no'
|
252
|
-
end
|
253
|
-
|
254
|
-
def ConfigTable.path_config?(name)
|
255
|
-
ent = get_entry(name) or return false
|
256
|
-
ent[1] == 'path'
|
257
|
-
end
|
258
|
-
|
259
|
-
|
260
|
-
class << self
|
261
|
-
alias newobj new
|
262
|
-
end
|
263
|
-
|
264
|
-
def ConfigTable.new
|
265
|
-
c = newobj()
|
266
|
-
c.initialize_from_table
|
267
|
-
c
|
268
|
-
end
|
269
|
-
|
270
|
-
def ConfigTable.load
|
271
|
-
c = newobj()
|
272
|
-
c.initialize_from_file
|
273
|
-
c
|
274
|
-
end
|
275
|
-
|
276
|
-
def initialize_from_table
|
277
|
-
@table = {}
|
278
|
-
DESCRIPTER.each do |k, (default, vname, desc, default2)|
|
279
|
-
@table[k] = default
|
280
|
-
end
|
281
|
-
end
|
282
|
-
|
283
|
-
def initialize_from_file
|
284
|
-
raise InstallError, "#{File.basename $0} config first"\
|
285
|
-
unless File.file?(SAVE_FILE)
|
286
|
-
@table = {}
|
287
|
-
File.foreach(SAVE_FILE) do |line|
|
288
|
-
k, v = line.split(/=/, 2)
|
289
|
-
@table[k] = v.strip
|
290
|
-
end
|
291
|
-
end
|
292
|
-
|
293
|
-
def save
|
294
|
-
File.open(SAVE_FILE, 'w') {|f|
|
295
|
-
@table.each do |k, v|
|
296
|
-
f.printf "%s=%s\n", k, v if v
|
297
|
-
end
|
298
|
-
}
|
299
|
-
end
|
300
|
-
|
301
|
-
def []=(k, v)
|
302
|
-
raise InstallError, "unknown config option #{k}"\
|
303
|
-
unless ConfigTable.config_key?(k)
|
304
|
-
@table[k] = v
|
305
|
-
end
|
306
|
-
|
307
|
-
def [](key)
|
308
|
-
return nil unless @table[key]
|
309
|
-
@table[key].gsub(%r<\$([^/]+)>) { self[$1] }
|
310
|
-
end
|
311
|
-
|
312
|
-
def set_raw(key, val)
|
313
|
-
@table[key] = val
|
314
|
-
end
|
315
|
-
|
316
|
-
def get_raw(key)
|
317
|
-
@table[key]
|
318
|
-
end
|
319
|
-
|
320
|
-
end
|
321
|
-
|
322
|
-
|
323
|
-
module MetaConfigAPI
|
324
|
-
|
325
|
-
def eval_file_ifexist(fname)
|
326
|
-
instance_eval File.read(fname), fname, 1 if File.file?(fname)
|
327
|
-
end
|
328
|
-
|
329
|
-
def config_names
|
330
|
-
ConfigTable.keys
|
331
|
-
end
|
332
|
-
|
333
|
-
def config?(name)
|
334
|
-
ConfigTable.config_key?(name)
|
335
|
-
end
|
336
|
-
|
337
|
-
def bool_config?(name)
|
338
|
-
ConfigTable.bool_config?(name)
|
339
|
-
end
|
340
|
-
|
341
|
-
def value_config?(name)
|
342
|
-
ConfigTable.value_config?(name)
|
343
|
-
end
|
344
|
-
|
345
|
-
def path_config?(name)
|
346
|
-
ConfigTable.path_config?(name)
|
347
|
-
end
|
348
|
-
|
349
|
-
def add_config(name, argname, default, desc)
|
350
|
-
ConfigTable.add_entry name,[default,argname,desc]
|
351
|
-
end
|
352
|
-
|
353
|
-
def add_path_config(name, default, desc)
|
354
|
-
add_config name, 'path', default, desc
|
355
|
-
end
|
356
|
-
|
357
|
-
def add_bool_config(name, default, desc)
|
358
|
-
add_config name, 'yes/no', default ? 'yes' : 'no', desc
|
359
|
-
end
|
360
|
-
|
361
|
-
def set_config_default(name, default)
|
362
|
-
if bool_config?(name)
|
363
|
-
ConfigTable.get_entry!(name)[0] = (default ? 'yes' : 'no')
|
364
|
-
else
|
365
|
-
ConfigTable.get_entry!(name)[0] = default
|
366
|
-
end
|
367
|
-
end
|
368
|
-
|
369
|
-
def remove_config(name)
|
370
|
-
ent = ConfigTable.get_entry(name)
|
371
|
-
ConfigTable.remove_entry name
|
372
|
-
ent
|
373
|
-
end
|
374
|
-
|
375
|
-
end
|
376
|
-
|
377
|
-
#
|
378
|
-
# File Operations
|
379
|
-
#
|
380
|
-
|
381
|
-
module FileOperations
|
382
|
-
|
383
|
-
def mkdir_p(dirname, prefix = nil)
|
384
|
-
dirname = prefix + dirname if prefix
|
385
|
-
$stderr.puts "mkdir -p #{dirname}" if verbose?
|
386
|
-
return if no_harm?
|
387
|
-
|
388
|
-
# does not check '/'... it's too abnormal case
|
389
|
-
dirs = dirname.split(%r<(?=/)>)
|
390
|
-
if /\A[a-z]:\z/i =~ dirs[0]
|
391
|
-
disk = dirs.shift
|
392
|
-
dirs[0] = disk + dirs[0]
|
393
|
-
end
|
394
|
-
dirs.each_index do |idx|
|
395
|
-
path = dirs[0..idx].join('')
|
396
|
-
Dir.mkdir path unless File.dir?(path)
|
397
|
-
end
|
398
|
-
end
|
399
|
-
|
400
|
-
def rm_f(fname)
|
401
|
-
$stderr.puts "rm -f #{fname}" if verbose?
|
402
|
-
return if no_harm?
|
403
|
-
|
404
|
-
if File.exist?(fname) or File.symlink?(fname)
|
405
|
-
File.chmod 0777, fname
|
406
|
-
File.unlink fname
|
407
|
-
end
|
408
|
-
end
|
409
|
-
|
410
|
-
def rm_rf(dn)
|
411
|
-
$stderr.puts "rm -rf #{dn}" if verbose?
|
412
|
-
return if no_harm?
|
413
|
-
|
414
|
-
Dir.chdir dn
|
415
|
-
Dir.foreach('.') do |fn|
|
416
|
-
next if fn == '.'
|
417
|
-
next if fn == '..'
|
418
|
-
if File.dir?(fn)
|
419
|
-
verbose_off {
|
420
|
-
rm_rf fn
|
421
|
-
}
|
422
|
-
else
|
423
|
-
verbose_off {
|
424
|
-
rm_f fn
|
425
|
-
}
|
426
|
-
end
|
427
|
-
end
|
428
|
-
Dir.chdir '..'
|
429
|
-
Dir.rmdir dn
|
430
|
-
end
|
431
|
-
|
432
|
-
def move_file(src, dest)
|
433
|
-
File.unlink dest if File.exist?(dest)
|
434
|
-
begin
|
435
|
-
File.rename src, dest
|
436
|
-
rescue
|
437
|
-
File.open(dest, 'wb') {|f| f.write File.binread(src) }
|
438
|
-
File.chmod File.stat(src).mode, dest
|
439
|
-
File.unlink src
|
440
|
-
end
|
441
|
-
end
|
442
|
-
|
443
|
-
def install(from, dest, mode, prefix = nil)
|
444
|
-
$stderr.puts "install #{from} #{dest}" if verbose?
|
445
|
-
return if no_harm?
|
446
|
-
|
447
|
-
realdest = prefix + dest if prefix
|
448
|
-
realdest = File.join(realdest, File.basename(from)) if File.dir?(realdest)
|
449
|
-
str = File.binread(from)
|
450
|
-
if diff?(str, realdest)
|
451
|
-
verbose_off {
|
452
|
-
rm_f realdest if File.exist?(realdest)
|
453
|
-
}
|
454
|
-
File.open(realdest, 'wb') {|f|
|
455
|
-
f.write str
|
456
|
-
}
|
457
|
-
File.chmod mode, realdest
|
458
|
-
|
459
|
-
File.open("#{objdir_root()}/InstalledFiles", 'a') {|f|
|
460
|
-
if prefix
|
461
|
-
f.puts realdest.sub(prefix, '')
|
462
|
-
else
|
463
|
-
f.puts realdest
|
464
|
-
end
|
465
|
-
}
|
466
|
-
end
|
467
|
-
end
|
468
|
-
|
469
|
-
def diff?(new_content, path)
|
470
|
-
return true unless File.exist?(path)
|
471
|
-
new_content != File.binread(path)
|
472
|
-
end
|
473
|
-
|
474
|
-
def command(str)
|
475
|
-
$stderr.puts str if verbose?
|
476
|
-
system str or raise RuntimeError, "'system #{str}' failed"
|
477
|
-
end
|
478
|
-
|
479
|
-
def ruby(str)
|
480
|
-
command config('ruby-prog') + ' ' + str
|
481
|
-
end
|
482
|
-
|
483
|
-
def make(task = '')
|
484
|
-
command config('make-prog') + ' ' + task
|
485
|
-
end
|
486
|
-
|
487
|
-
def extdir?(dir)
|
488
|
-
File.exist?(dir + '/MANIFEST')
|
489
|
-
end
|
490
|
-
|
491
|
-
def all_files_in(dirname)
|
492
|
-
Dir.open(dirname) {|d|
|
493
|
-
return d.select {|ent| File.file?("#{dirname}/#{ent}") }
|
494
|
-
}
|
495
|
-
end
|
496
|
-
|
497
|
-
REJECT_DIRS = %w(
|
498
|
-
CVS SCCS RCS CVS.adm
|
499
|
-
)
|
500
|
-
|
501
|
-
def all_dirs_in(dirname)
|
502
|
-
Dir.open(dirname) {|d|
|
503
|
-
return d.select {|n| File.dir?("#{dirname}/#{n}") } - %w(. ..) - REJECT_DIRS
|
504
|
-
}
|
505
|
-
end
|
506
|
-
|
507
|
-
end
|
508
|
-
|
509
|
-
#
|
510
|
-
# Main Installer
|
511
|
-
#
|
512
|
-
|
513
|
-
class InstallError < StandardError; end
|
514
|
-
|
515
|
-
|
516
|
-
module HookUtils
|
517
|
-
|
518
|
-
def run_hook(name)
|
519
|
-
try_run_hook "#{curr_srcdir()}/#{name}" or
|
520
|
-
try_run_hook "#{curr_srcdir()}/#{name}.rb"
|
521
|
-
end
|
522
|
-
|
523
|
-
def try_run_hook(fname)
|
524
|
-
return false unless File.file?(fname)
|
525
|
-
begin
|
526
|
-
instance_eval File.read(fname), fname, 1
|
527
|
-
rescue
|
528
|
-
raise InstallError, "hook #{fname} failed:\n" + $!.message
|
529
|
-
end
|
530
|
-
true
|
531
|
-
end
|
532
|
-
|
533
|
-
end
|
534
|
-
|
535
|
-
|
536
|
-
module HookScriptAPI
|
537
|
-
|
538
|
-
def get_config(key)
|
539
|
-
@config[key]
|
540
|
-
end
|
541
|
-
|
542
|
-
alias config get_config
|
543
|
-
|
544
|
-
def set_config(key, val)
|
545
|
-
@config[key] = val
|
546
|
-
end
|
547
|
-
|
548
|
-
#
|
549
|
-
# srcdir/objdir (works only in the package directory)
|
550
|
-
#
|
551
|
-
|
552
|
-
#abstract srcdir_root
|
553
|
-
#abstract objdir_root
|
554
|
-
#abstract relpath
|
555
|
-
|
556
|
-
def curr_srcdir
|
557
|
-
"#{srcdir_root()}/#{relpath()}"
|
558
|
-
end
|
559
|
-
|
560
|
-
def curr_objdir
|
561
|
-
"#{objdir_root()}/#{relpath()}"
|
562
|
-
end
|
563
|
-
|
564
|
-
def srcfile(path)
|
565
|
-
"#{curr_srcdir()}/#{path}"
|
566
|
-
end
|
567
|
-
|
568
|
-
def srcexist?(path)
|
569
|
-
File.exist?(srcfile(path))
|
570
|
-
end
|
571
|
-
|
572
|
-
def srcdirectory?(path)
|
573
|
-
File.dir?(srcfile(path))
|
574
|
-
end
|
575
|
-
|
576
|
-
def srcfile?(path)
|
577
|
-
File.file? srcfile(path)
|
578
|
-
end
|
579
|
-
|
580
|
-
def srcentries(path = '.')
|
581
|
-
Dir.open("#{curr_srcdir()}/#{path}") {|d|
|
582
|
-
return d.to_a - %w(. ..)
|
583
|
-
}
|
584
|
-
end
|
585
|
-
|
586
|
-
def srcfiles(path = '.')
|
587
|
-
srcentries(path).select {|fname|
|
588
|
-
File.file?(File.join(curr_srcdir(), path, fname))
|
589
|
-
}
|
590
|
-
end
|
591
|
-
|
592
|
-
def srcdirectories(path = '.')
|
593
|
-
srcentries(path).select {|fname|
|
594
|
-
File.dir?(File.join(curr_srcdir(), path, fname))
|
595
|
-
}
|
596
|
-
end
|
597
|
-
|
598
|
-
end
|
599
|
-
|
600
|
-
|
601
|
-
class ToplevelInstaller
|
602
|
-
|
603
|
-
Version = '3.2.4'
|
604
|
-
Copyright = 'Copyright (c) 2000-2004 Minero Aoki'
|
605
|
-
|
606
|
-
TASKS = [
|
607
|
-
[ 'config', 'saves your configurations' ],
|
608
|
-
[ 'show', 'shows current configuration' ],
|
609
|
-
[ 'setup', 'compiles ruby extentions and others' ],
|
610
|
-
[ 'install', 'installs files' ],
|
611
|
-
[ 'clean', "does `make clean' for each extention" ],
|
612
|
-
[ 'distclean',"does `make distclean' for each extention" ]
|
613
|
-
]
|
614
|
-
|
615
|
-
def ToplevelInstaller.invoke
|
616
|
-
instance().invoke
|
617
|
-
end
|
618
|
-
|
619
|
-
@singleton = nil
|
620
|
-
|
621
|
-
def ToplevelInstaller.instance
|
622
|
-
@singleton ||= new(File.dirname($0))
|
623
|
-
@singleton
|
624
|
-
end
|
625
|
-
|
626
|
-
include MetaConfigAPI
|
627
|
-
|
628
|
-
def initialize(ardir_root)
|
629
|
-
@config = nil
|
630
|
-
@options = { 'verbose' => true }
|
631
|
-
@ardir = File.expand_path(ardir_root)
|
632
|
-
end
|
633
|
-
|
634
|
-
def inspect
|
635
|
-
"#<#{self.class} #{__id__()}>"
|
636
|
-
end
|
637
|
-
|
638
|
-
def invoke
|
639
|
-
run_metaconfigs
|
640
|
-
task = parsearg_global()
|
641
|
-
@config = load_config(task)
|
642
|
-
__send__ "parsearg_#{task}"
|
643
|
-
init_installers
|
644
|
-
__send__ "exec_#{task}"
|
645
|
-
end
|
646
|
-
|
647
|
-
def run_metaconfigs
|
648
|
-
eval_file_ifexist "#{@ardir}/metaconfig"
|
649
|
-
end
|
650
|
-
|
651
|
-
def load_config(task)
|
652
|
-
case task
|
653
|
-
when 'config'
|
654
|
-
ConfigTable.new
|
655
|
-
when 'clean', 'distclean'
|
656
|
-
if File.exist?('config.save')
|
657
|
-
then ConfigTable.load
|
658
|
-
else ConfigTable.new
|
659
|
-
end
|
660
|
-
else
|
661
|
-
ConfigTable.load
|
662
|
-
end
|
663
|
-
end
|
664
|
-
|
665
|
-
def init_installers
|
666
|
-
@installer = Installer.new(@config, @options, @ardir, File.expand_path('.'))
|
667
|
-
end
|
668
|
-
|
669
|
-
#
|
670
|
-
# Hook Script API bases
|
671
|
-
#
|
672
|
-
|
673
|
-
def srcdir_root
|
674
|
-
@ardir
|
675
|
-
end
|
676
|
-
|
677
|
-
def objdir_root
|
678
|
-
'.'
|
679
|
-
end
|
680
|
-
|
681
|
-
def relpath
|
682
|
-
'.'
|
683
|
-
end
|
684
|
-
|
685
|
-
#
|
686
|
-
# Option Parsing
|
687
|
-
#
|
688
|
-
|
689
|
-
def parsearg_global
|
690
|
-
valid_task = /\A(?:#{TASKS.map {|task,desc| task }.join '|'})\z/
|
691
|
-
|
692
|
-
while arg = ARGV.shift
|
693
|
-
case arg
|
694
|
-
when /\A\w+\z/
|
695
|
-
raise InstallError, "invalid task: #{arg}" unless valid_task =~ arg
|
696
|
-
return arg
|
697
|
-
|
698
|
-
when '-q', '--quiet'
|
699
|
-
@options['verbose'] = false
|
700
|
-
|
701
|
-
when '--verbose'
|
702
|
-
@options['verbose'] = true
|
703
|
-
|
704
|
-
when '-h', '--help'
|
705
|
-
print_usage $stdout
|
706
|
-
exit 0
|
707
|
-
|
708
|
-
when '-v', '--version'
|
709
|
-
puts "#{File.basename($0)} version #{Version}"
|
710
|
-
exit 0
|
711
|
-
|
712
|
-
when '--copyright'
|
713
|
-
puts Copyright
|
714
|
-
exit 0
|
715
|
-
|
716
|
-
else
|
717
|
-
raise InstallError, "unknown global option '#{arg}'"
|
718
|
-
end
|
719
|
-
end
|
720
|
-
|
721
|
-
raise InstallError, <<EOS
|
722
|
-
No task or global option given.
|
723
|
-
Typical installation procedure is:
|
724
|
-
$ ruby #{File.basename($0)} config
|
725
|
-
$ ruby #{File.basename($0)} setup
|
726
|
-
# ruby #{File.basename($0)} install (may require root privilege)
|
727
|
-
EOS
|
728
|
-
end
|
729
|
-
|
730
|
-
|
731
|
-
def parsearg_no_options
|
732
|
-
raise InstallError, "#{task}: unknown options: #{ARGV.join ' '}"\
|
733
|
-
unless ARGV.empty?
|
734
|
-
end
|
735
|
-
|
736
|
-
alias parsearg_show parsearg_no_options
|
737
|
-
alias parsearg_setup parsearg_no_options
|
738
|
-
alias parsearg_clean parsearg_no_options
|
739
|
-
alias parsearg_distclean parsearg_no_options
|
740
|
-
|
741
|
-
def parsearg_config
|
742
|
-
re = /\A--(#{ConfigTable.keys.join '|'})(?:=(.*))?\z/
|
743
|
-
@options['config-opt'] = []
|
744
|
-
|
745
|
-
while i = ARGV.shift
|
746
|
-
if /\A--?\z/ =~ i
|
747
|
-
@options['config-opt'] = ARGV.dup
|
748
|
-
break
|
749
|
-
end
|
750
|
-
m = re.match(i) or raise InstallError, "config: unknown option #{i}"
|
751
|
-
name, value = m.to_a[1,2]
|
752
|
-
if value
|
753
|
-
if ConfigTable.bool_config?(name)
|
754
|
-
raise InstallError, "config: --#{name} allows only yes/no for argument"\
|
755
|
-
unless /\A(y(es)?|n(o)?|t(rue)?|f(alse))\z/i =~ value
|
756
|
-
value = (/\Ay(es)?|\At(rue)/i =~ value) ? 'yes' : 'no'
|
757
|
-
end
|
758
|
-
else
|
759
|
-
raise InstallError, "config: --#{name} requires argument"\
|
760
|
-
unless ConfigTable.bool_config?(name)
|
761
|
-
value = 'yes'
|
762
|
-
end
|
763
|
-
@config[name] = value
|
764
|
-
end
|
765
|
-
end
|
766
|
-
|
767
|
-
def parsearg_install
|
768
|
-
@options['no-harm'] = false
|
769
|
-
@options['install-prefix'] = ''
|
770
|
-
while a = ARGV.shift
|
771
|
-
case a
|
772
|
-
when /\A--no-harm\z/
|
773
|
-
@options['no-harm'] = true
|
774
|
-
when /\A--prefix=(.*)\z/
|
775
|
-
path = $1
|
776
|
-
path = File.expand_path(path) unless path[0,1] == '/'
|
777
|
-
@options['install-prefix'] = path
|
778
|
-
else
|
779
|
-
raise InstallError, "install: unknown option #{a}"
|
780
|
-
end
|
781
|
-
end
|
782
|
-
end
|
783
|
-
|
784
|
-
def print_usage(out)
|
785
|
-
out.puts 'Typical Installation Procedure:'
|
786
|
-
out.puts " $ ruby #{File.basename $0} config"
|
787
|
-
out.puts " $ ruby #{File.basename $0} setup"
|
788
|
-
out.puts " # ruby #{File.basename $0} install (may require root privilege)"
|
789
|
-
out.puts
|
790
|
-
out.puts 'Detailed Usage:'
|
791
|
-
out.puts " ruby #{File.basename $0} <global option>"
|
792
|
-
out.puts " ruby #{File.basename $0} [<global options>] <task> [<task options>]"
|
793
|
-
|
794
|
-
fmt = " %-20s %s\n"
|
795
|
-
out.puts
|
796
|
-
out.puts 'Global options:'
|
797
|
-
out.printf fmt, '-q,--quiet', 'suppress message outputs'
|
798
|
-
out.printf fmt, ' --verbose', 'output messages verbosely'
|
799
|
-
out.printf fmt, '-h,--help', 'print this message'
|
800
|
-
out.printf fmt, '-v,--version', 'print version and quit'
|
801
|
-
out.printf fmt, ' --copyright', 'print copyright and quit'
|
802
|
-
|
803
|
-
out.puts
|
804
|
-
out.puts 'Tasks:'
|
805
|
-
TASKS.each do |name, desc|
|
806
|
-
out.printf " %-10s %s\n", name, desc
|
807
|
-
end
|
808
|
-
|
809
|
-
out.puts
|
810
|
-
out.puts 'Options for config:'
|
811
|
-
ConfigTable.each_definition do |name, (default, arg, desc, default2)|
|
812
|
-
out.printf " %-20s %s [%s]\n",
|
813
|
-
'--'+ name + (ConfigTable.bool_config?(name) ? '' : '='+arg),
|
814
|
-
desc,
|
815
|
-
default2 || default
|
816
|
-
end
|
817
|
-
out.printf " %-20s %s [%s]\n",
|
818
|
-
'--rbconfig=path', 'your rbconfig.rb to load', "running ruby's"
|
819
|
-
|
820
|
-
out.puts
|
821
|
-
out.puts 'Options for install:'
|
822
|
-
out.printf " %-20s %s [%s]\n",
|
823
|
-
'--no-harm', 'only display what to do if given', 'off'
|
824
|
-
out.printf " %-20s %s [%s]\n",
|
825
|
-
'--prefix', 'install path prefix', '$prefix'
|
826
|
-
|
827
|
-
out.puts
|
828
|
-
end
|
829
|
-
|
830
|
-
#
|
831
|
-
# Task Handlers
|
832
|
-
#
|
833
|
-
|
834
|
-
def exec_config
|
835
|
-
@installer.exec_config
|
836
|
-
@config.save # must be final
|
837
|
-
end
|
838
|
-
|
839
|
-
def exec_setup
|
840
|
-
@installer.exec_setup
|
841
|
-
end
|
842
|
-
|
843
|
-
def exec_install
|
844
|
-
@installer.exec_install
|
845
|
-
end
|
846
|
-
|
847
|
-
def exec_show
|
848
|
-
ConfigTable.each_name do |k|
|
849
|
-
v = @config.get_raw(k)
|
850
|
-
if not v or v.empty?
|
851
|
-
v = '(not specified)'
|
852
|
-
end
|
853
|
-
printf "%-10s %s\n", k, v
|
854
|
-
end
|
855
|
-
end
|
856
|
-
|
857
|
-
def exec_clean
|
858
|
-
@installer.exec_clean
|
859
|
-
end
|
860
|
-
|
861
|
-
def exec_distclean
|
862
|
-
@installer.exec_distclean
|
863
|
-
end
|
864
|
-
|
865
|
-
end
|
866
|
-
|
867
|
-
|
868
|
-
class ToplevelInstallerMulti < ToplevelInstaller
|
869
|
-
|
870
|
-
include HookUtils
|
871
|
-
include HookScriptAPI
|
872
|
-
include FileOperations
|
873
|
-
|
874
|
-
def initialize(ardir)
|
875
|
-
super
|
876
|
-
@packages = all_dirs_in("#{@ardir}/packages")
|
877
|
-
raise 'no package exists' if @packages.empty?
|
878
|
-
end
|
879
|
-
|
880
|
-
def run_metaconfigs
|
881
|
-
eval_file_ifexist "#{@ardir}/metaconfig"
|
882
|
-
@packages.each do |name|
|
883
|
-
eval_file_ifexist "#{@ardir}/packages/#{name}/metaconfig"
|
884
|
-
end
|
885
|
-
end
|
886
|
-
|
887
|
-
def init_installers
|
888
|
-
@installers = {}
|
889
|
-
@packages.each do |pack|
|
890
|
-
@installers[pack] = Installer.new(@config, @options,
|
891
|
-
"#{@ardir}/packages/#{pack}",
|
892
|
-
"packages/#{pack}")
|
893
|
-
end
|
894
|
-
|
895
|
-
with = extract_selection(config('with'))
|
896
|
-
without = extract_selection(config('without'))
|
897
|
-
@selected = @installers.keys.select {|name|
|
898
|
-
(with.empty? or with.include?(name)) \
|
899
|
-
and not without.include?(name)
|
900
|
-
}
|
901
|
-
end
|
902
|
-
|
903
|
-
def extract_selection(list)
|
904
|
-
a = list.split(/,/)
|
905
|
-
a.each do |name|
|
906
|
-
raise InstallError, "no such package: #{name}" \
|
907
|
-
unless @installers.key?(name)
|
908
|
-
end
|
909
|
-
a
|
910
|
-
end
|
911
|
-
|
912
|
-
def print_usage(f)
|
913
|
-
super
|
914
|
-
f.puts 'Inluded packages:'
|
915
|
-
f.puts ' ' + @packages.sort.join(' ')
|
916
|
-
f.puts
|
917
|
-
end
|
918
|
-
|
919
|
-
#
|
920
|
-
# multi-package metaconfig API
|
921
|
-
#
|
922
|
-
|
923
|
-
attr_reader :packages
|
924
|
-
|
925
|
-
def declare_packages(list)
|
926
|
-
raise 'package list is empty' if list.empty?
|
927
|
-
list.each do |name|
|
928
|
-
raise "directory packages/#{name} does not exist"\
|
929
|
-
unless File.dir?("#{@ardir}/packages/#{name}")
|
930
|
-
end
|
931
|
-
@packages = list
|
932
|
-
end
|
933
|
-
|
934
|
-
#
|
935
|
-
# Task Handlers
|
936
|
-
#
|
937
|
-
|
938
|
-
def exec_config
|
939
|
-
run_hook 'pre-config'
|
940
|
-
each_selected_installers {|inst| inst.exec_config }
|
941
|
-
run_hook 'post-config'
|
942
|
-
@config.save # must be final
|
943
|
-
end
|
944
|
-
|
945
|
-
def exec_setup
|
946
|
-
run_hook 'pre-setup'
|
947
|
-
each_selected_installers {|inst| inst.exec_setup }
|
948
|
-
run_hook 'post-setup'
|
949
|
-
end
|
950
|
-
|
951
|
-
def exec_install
|
952
|
-
run_hook 'pre-install'
|
953
|
-
each_selected_installers {|inst| inst.exec_install }
|
954
|
-
run_hook 'post-install'
|
955
|
-
end
|
956
|
-
|
957
|
-
def exec_clean
|
958
|
-
rm_f 'config.save'
|
959
|
-
run_hook 'pre-clean'
|
960
|
-
each_selected_installers {|inst| inst.exec_clean }
|
961
|
-
run_hook 'post-clean'
|
962
|
-
end
|
963
|
-
|
964
|
-
def exec_distclean
|
965
|
-
rm_f 'config.save'
|
966
|
-
run_hook 'pre-distclean'
|
967
|
-
each_selected_installers {|inst| inst.exec_distclean }
|
968
|
-
run_hook 'post-distclean'
|
969
|
-
end
|
970
|
-
|
971
|
-
#
|
972
|
-
# lib
|
973
|
-
#
|
974
|
-
|
975
|
-
def each_selected_installers
|
976
|
-
Dir.mkdir 'packages' unless File.dir?('packages')
|
977
|
-
@selected.each do |pack|
|
978
|
-
$stderr.puts "Processing the package `#{pack}' ..." if @options['verbose']
|
979
|
-
Dir.mkdir "packages/#{pack}" unless File.dir?("packages/#{pack}")
|
980
|
-
Dir.chdir "packages/#{pack}"
|
981
|
-
yield @installers[pack]
|
982
|
-
Dir.chdir '../..'
|
983
|
-
end
|
984
|
-
end
|
985
|
-
|
986
|
-
def verbose?
|
987
|
-
@options['verbose']
|
988
|
-
end
|
989
|
-
|
990
|
-
def no_harm?
|
991
|
-
@options['no-harm']
|
992
|
-
end
|
993
|
-
|
994
|
-
end
|
995
|
-
|
996
|
-
|
997
|
-
class Installer
|
998
|
-
|
999
|
-
FILETYPES = %w( bin lib ext data )
|
1000
|
-
|
1001
|
-
include HookScriptAPI
|
1002
|
-
include HookUtils
|
1003
|
-
include FileOperations
|
1004
|
-
|
1005
|
-
def initialize(config, opt, srcroot, objroot)
|
1006
|
-
@config = config
|
1007
|
-
@options = opt
|
1008
|
-
@srcdir = File.expand_path(srcroot)
|
1009
|
-
@objdir = File.expand_path(objroot)
|
1010
|
-
@currdir = '.'
|
1011
|
-
end
|
1012
|
-
|
1013
|
-
def inspect
|
1014
|
-
"#<#{self.class} #{File.basename(@srcdir)}>"
|
1015
|
-
end
|
1016
|
-
|
1017
|
-
#
|
1018
|
-
# Hook Script API bases
|
1019
|
-
#
|
1020
|
-
|
1021
|
-
def srcdir_root
|
1022
|
-
@srcdir
|
1023
|
-
end
|
1024
|
-
|
1025
|
-
def objdir_root
|
1026
|
-
@objdir
|
1027
|
-
end
|
1028
|
-
|
1029
|
-
def relpath
|
1030
|
-
@currdir
|
1031
|
-
end
|
1032
|
-
|
1033
|
-
#
|
1034
|
-
# configs/options
|
1035
|
-
#
|
1036
|
-
|
1037
|
-
def no_harm?
|
1038
|
-
@options['no-harm']
|
1039
|
-
end
|
1040
|
-
|
1041
|
-
def verbose?
|
1042
|
-
@options['verbose']
|
1043
|
-
end
|
1044
|
-
|
1045
|
-
def verbose_off
|
1046
|
-
begin
|
1047
|
-
save, @options['verbose'] = @options['verbose'], false
|
1048
|
-
yield
|
1049
|
-
ensure
|
1050
|
-
@options['verbose'] = save
|
1051
|
-
end
|
1052
|
-
end
|
1053
|
-
|
1054
|
-
#
|
1055
|
-
# TASK config
|
1056
|
-
#
|
1057
|
-
|
1058
|
-
def exec_config
|
1059
|
-
exec_task_traverse 'config'
|
1060
|
-
end
|
1061
|
-
|
1062
|
-
def config_dir_bin(rel)
|
1063
|
-
end
|
1064
|
-
|
1065
|
-
def config_dir_lib(rel)
|
1066
|
-
end
|
1067
|
-
|
1068
|
-
def config_dir_ext(rel)
|
1069
|
-
extconf if extdir?(curr_srcdir())
|
1070
|
-
end
|
1071
|
-
|
1072
|
-
def extconf
|
1073
|
-
opt = @options['config-opt'].join(' ')
|
1074
|
-
command "#{config('ruby-prog')} #{curr_srcdir()}/extconf.rb #{opt}"
|
1075
|
-
end
|
1076
|
-
|
1077
|
-
def config_dir_data(rel)
|
1078
|
-
end
|
1079
|
-
|
1080
|
-
#
|
1081
|
-
# TASK setup
|
1082
|
-
#
|
1083
|
-
|
1084
|
-
def exec_setup
|
1085
|
-
exec_task_traverse 'setup'
|
1086
|
-
end
|
1087
|
-
|
1088
|
-
def setup_dir_bin(rel)
|
1089
|
-
all_files_in(curr_srcdir()).each do |fname|
|
1090
|
-
adjust_shebang "#{curr_srcdir()}/#{fname}"
|
1091
|
-
end
|
1092
|
-
end
|
1093
|
-
|
1094
|
-
# modify: #!/usr/bin/ruby
|
1095
|
-
# modify: #! /usr/bin/ruby
|
1096
|
-
# modify: #!ruby
|
1097
|
-
# not modify: #!/usr/bin/env ruby
|
1098
|
-
SHEBANG_RE = /\A\#!\s*\S*ruby\S*/
|
1099
|
-
|
1100
|
-
def adjust_shebang(path)
|
1101
|
-
return if no_harm?
|
1102
|
-
|
1103
|
-
tmpfile = File.basename(path) + '.tmp'
|
1104
|
-
begin
|
1105
|
-
File.open(path, 'rb') {|r|
|
1106
|
-
File.open(tmpfile, 'wb') {|w|
|
1107
|
-
first = r.gets
|
1108
|
-
return unless SHEBANG_RE =~ first
|
1109
|
-
|
1110
|
-
$stderr.puts "adjusting shebang: #{File.basename path}" if verbose?
|
1111
|
-
w.print first.sub(SHEBANG_RE, '#!' + config('ruby-path'))
|
1112
|
-
w.write r.read
|
1113
|
-
}
|
1114
|
-
}
|
1115
|
-
move_file tmpfile, File.basename(path)
|
1116
|
-
ensure
|
1117
|
-
File.unlink tmpfile if File.exist?(tmpfile)
|
1118
|
-
end
|
1119
|
-
end
|
1120
|
-
|
1121
|
-
def setup_dir_lib(rel)
|
1122
|
-
end
|
1123
|
-
|
1124
|
-
def setup_dir_ext(rel)
|
1125
|
-
make if extdir?(curr_srcdir())
|
1126
|
-
end
|
1127
|
-
|
1128
|
-
def setup_dir_data(rel)
|
1129
|
-
end
|
1130
|
-
|
1131
|
-
#
|
1132
|
-
# TASK install
|
1133
|
-
#
|
1134
|
-
|
1135
|
-
def exec_install
|
1136
|
-
exec_task_traverse 'install'
|
1137
|
-
end
|
1138
|
-
|
1139
|
-
def install_dir_bin(rel)
|
1140
|
-
install_files collect_filenames_auto(), "#{config('bin-dir')}/#{rel}", 0755
|
1141
|
-
end
|
1142
|
-
|
1143
|
-
def install_dir_lib(rel)
|
1144
|
-
install_files ruby_scripts(), "#{config('rb-dir')}/#{rel}", 0644
|
1145
|
-
end
|
1146
|
-
|
1147
|
-
def install_dir_ext(rel)
|
1148
|
-
return unless extdir?(curr_srcdir())
|
1149
|
-
install_files ruby_extentions('.'),
|
1150
|
-
"#{config('so-dir')}/#{File.dirname(rel)}",
|
1151
|
-
0555
|
1152
|
-
end
|
1153
|
-
|
1154
|
-
def install_dir_data(rel)
|
1155
|
-
install_files collect_filenames_auto(), "#{config('data-dir')}/#{rel}", 0644
|
1156
|
-
end
|
1157
|
-
|
1158
|
-
def install_files(list, dest, mode)
|
1159
|
-
mkdir_p dest, @options['install-prefix']
|
1160
|
-
list.each do |fname|
|
1161
|
-
install fname, dest, mode, @options['install-prefix']
|
1162
|
-
end
|
1163
|
-
end
|
1164
|
-
|
1165
|
-
def ruby_scripts
|
1166
|
-
collect_filenames_auto().select {|n| /\.rb\z/ =~ n || "module.yml" == n }
|
1167
|
-
end
|
1168
|
-
|
1169
|
-
# picked up many entries from cvs-1.11.1/src/ignore.c
|
1170
|
-
reject_patterns = %w(
|
1171
|
-
core RCSLOG tags TAGS .make.state
|
1172
|
-
.nse_depinfo #* .#* cvslog.* ,* .del-* *.olb
|
1173
|
-
*~ *.old *.bak *.BAK *.orig *.rej _$* *$
|
1174
|
-
|
1175
|
-
*.org *.in .*
|
1176
|
-
)
|
1177
|
-
mapping = {
|
1178
|
-
'.' => '\.',
|
1179
|
-
'$' => '\$',
|
1180
|
-
'#' => '\#',
|
1181
|
-
'*' => '.*'
|
1182
|
-
}
|
1183
|
-
REJECT_PATTERNS = Regexp.new('\A(?:' +
|
1184
|
-
reject_patterns.map {|pat|
|
1185
|
-
pat.gsub(/[\.\$\#\*]/) {|ch| mapping[ch] }
|
1186
|
-
}.join('|') +
|
1187
|
-
')\z')
|
1188
|
-
|
1189
|
-
def collect_filenames_auto
|
1190
|
-
mapdir((existfiles() - hookfiles()).reject {|fname|
|
1191
|
-
REJECT_PATTERNS =~ fname
|
1192
|
-
})
|
1193
|
-
end
|
1194
|
-
|
1195
|
-
def existfiles
|
1196
|
-
all_files_in(curr_srcdir()) | all_files_in('.')
|
1197
|
-
end
|
1198
|
-
|
1199
|
-
def hookfiles
|
1200
|
-
%w( pre-%s post-%s pre-%s.rb post-%s.rb ).map {|fmt|
|
1201
|
-
%w( config setup install clean ).map {|t| sprintf(fmt, t) }
|
1202
|
-
}.flatten
|
1203
|
-
end
|
1204
|
-
|
1205
|
-
def mapdir(filelist)
|
1206
|
-
filelist.map {|fname|
|
1207
|
-
if File.exist?(fname) # objdir
|
1208
|
-
fname
|
1209
|
-
else # srcdir
|
1210
|
-
File.join(curr_srcdir(), fname)
|
1211
|
-
end
|
1212
|
-
}
|
1213
|
-
end
|
1214
|
-
|
1215
|
-
def ruby_extentions(dir)
|
1216
|
-
_ruby_extentions(dir) or
|
1217
|
-
raise InstallError, "no ruby extention exists: 'ruby #{$0} setup' first"
|
1218
|
-
end
|
1219
|
-
|
1220
|
-
DLEXT = /\.#{ ::Config::CONFIG['DLEXT'] }\z/
|
1221
|
-
|
1222
|
-
def _ruby_extentions(dir)
|
1223
|
-
Dir.open(dir) {|d|
|
1224
|
-
return d.select {|fname| DLEXT =~ fname }
|
1225
|
-
}
|
1226
|
-
end
|
1227
|
-
|
1228
|
-
#
|
1229
|
-
# TASK clean
|
1230
|
-
#
|
1231
|
-
|
1232
|
-
def exec_clean
|
1233
|
-
exec_task_traverse 'clean'
|
1234
|
-
rm_f 'config.save'
|
1235
|
-
rm_f 'InstalledFiles'
|
1236
|
-
end
|
1237
|
-
|
1238
|
-
def clean_dir_bin(rel)
|
1239
|
-
end
|
1240
|
-
|
1241
|
-
def clean_dir_lib(rel)
|
1242
|
-
end
|
1243
|
-
|
1244
|
-
def clean_dir_ext(rel)
|
1245
|
-
return unless extdir?(curr_srcdir())
|
1246
|
-
make 'clean' if File.file?('Makefile')
|
1247
|
-
end
|
1248
|
-
|
1249
|
-
def clean_dir_data(rel)
|
1250
|
-
end
|
1251
|
-
|
1252
|
-
#
|
1253
|
-
# TASK distclean
|
1254
|
-
#
|
1255
|
-
|
1256
|
-
def exec_distclean
|
1257
|
-
exec_task_traverse 'distclean'
|
1258
|
-
rm_f 'config.save'
|
1259
|
-
rm_f 'InstalledFiles'
|
1260
|
-
end
|
1261
|
-
|
1262
|
-
def distclean_dir_bin(rel)
|
1263
|
-
end
|
1264
|
-
|
1265
|
-
def distclean_dir_lib(rel)
|
1266
|
-
end
|
1267
|
-
|
1268
|
-
def distclean_dir_ext(rel)
|
1269
|
-
return unless extdir?(curr_srcdir())
|
1270
|
-
make 'distclean' if File.file?('Makefile')
|
1271
|
-
end
|
1272
|
-
|
1273
|
-
#
|
1274
|
-
# lib
|
1275
|
-
#
|
1276
|
-
|
1277
|
-
def exec_task_traverse(task)
|
1278
|
-
run_hook "pre-#{task}"
|
1279
|
-
FILETYPES.each do |type|
|
1280
|
-
if config('without-ext') == 'yes' and type == 'ext'
|
1281
|
-
$stderr.puts 'skipping ext/* by user option' if verbose?
|
1282
|
-
next
|
1283
|
-
end
|
1284
|
-
traverse task, type, "#{task}_dir_#{type}"
|
1285
|
-
end
|
1286
|
-
run_hook "post-#{task}"
|
1287
|
-
end
|
1288
|
-
|
1289
|
-
def traverse(task, rel, mid)
|
1290
|
-
dive_into(rel) {
|
1291
|
-
run_hook "pre-#{task}"
|
1292
|
-
__send__ mid, rel.sub(%r[\A.*?(?:/|\z)], '')
|
1293
|
-
all_dirs_in(curr_srcdir()).each do |d|
|
1294
|
-
traverse task, "#{rel}/#{d}", mid
|
1295
|
-
end
|
1296
|
-
run_hook "post-#{task}"
|
1297
|
-
}
|
1298
|
-
end
|
1299
|
-
|
1300
|
-
def dive_into(rel)
|
1301
|
-
return unless File.dir?("#{@srcdir}/#{rel}")
|
1302
|
-
|
1303
|
-
dir = File.basename(rel)
|
1304
|
-
Dir.mkdir dir unless File.dir?(dir)
|
1305
|
-
prevdir = Dir.pwd
|
1306
|
-
Dir.chdir dir
|
1307
|
-
$stderr.puts '---> ' + rel if verbose?
|
1308
|
-
@currdir = rel
|
1309
|
-
yield
|
1310
|
-
Dir.chdir prevdir
|
1311
|
-
$stderr.puts '<--- ' + rel if verbose?
|
1312
|
-
@currdir = File.dirname(rel)
|
1313
|
-
end
|
1314
|
-
|
1315
|
-
end
|
1316
|
-
|
1317
|
-
|
1318
|
-
if $0 == __FILE__
|
1319
|
-
begin
|
1320
|
-
if multipackage_install?
|
1321
|
-
ToplevelInstallerMulti.invoke
|
1322
|
-
else
|
1323
|
-
ToplevelInstaller.invoke
|
1324
|
-
end
|
1325
|
-
rescue
|
1326
|
-
raise if $DEBUG
|
1327
|
-
$stderr.puts $!.message
|
1328
|
-
$stderr.puts "Try 'ruby #{$0} --help' for detailed usage."
|
1329
|
-
exit 1
|
1330
|
-
end
|
1331
|
-
end
|