mack 0.8.2 → 0.8.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +17 -1
- data/bin/env_handler.rb +1 -1
- data/bin/mack +2 -2
- data/bin/mackery-server +1 -1
- data/lib/gems.rb +6 -1
- data/lib/gems/builder-2.1.2/lib/blankslate.rb +2 -2
- data/lib/gems/builder-2.1.2/lib/builder/xchar.rb +3 -3
- data/lib/gems/builder-2.1.2/lib/builder/xmlbase.rb +9 -9
- data/lib/gems/builder-2.1.2/lib/builder/xmlmarkup.rb +15 -15
- data/lib/gems/configatron-2.2.2/lib/configatron.rb +9 -0
- data/lib/gems/{configatron-2.1.5 → configatron-2.2.2}/lib/configatron/configatron.rb +8 -6
- data/lib/gems/configatron-2.2.2/lib/configatron/core_ext/class.rb +26 -0
- data/lib/gems/{configatron-2.1.5/lib/configatron → configatron-2.2.2/lib/configatron/core_ext}/kernel.rb +0 -0
- data/lib/gems/configatron-2.2.2/lib/configatron/core_ext/object.rb +9 -0
- data/lib/gems/configatron-2.2.2/lib/configatron/core_ext/string.rb +84 -0
- data/lib/gems/configatron-2.2.2/lib/configatron/errors.rb +13 -0
- data/lib/gems/{configatron-2.1.5 → configatron-2.2.2}/lib/configatron/store.rb +37 -6
- data/lib/gems/cucumber-0.1.15/lib/autotest/cucumber.rb +6 -0
- data/lib/gems/cucumber-0.1.15/lib/autotest/cucumber_mixin.rb +130 -0
- data/lib/gems/cucumber-0.1.15/lib/autotest/cucumber_rails.rb +6 -0
- data/lib/gems/cucumber-0.1.15/lib/autotest/cucumber_rails_rspec.rb +6 -0
- data/lib/gems/cucumber-0.1.15/lib/autotest/cucumber_rspec.rb +6 -0
- data/lib/gems/cucumber-0.1.15/lib/autotest/discover.rb +9 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber.rb +19 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/broadcaster.rb +20 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/cli.rb +360 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/core_ext/exception.rb +20 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/core_ext/proc.rb +69 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/core_ext/string.rb +29 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/executor.rb +205 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/formatters.rb +1 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/formatters/ansicolor.rb +105 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/formatters/autotest_formatter.rb +23 -0
- data/lib/gems/{rspec-1.1.11/story_server/prototype/stylesheets/rspec.css → cucumber-0.1.15/lib/cucumber/formatters/cucumber.css} +33 -37
- data/lib/gems/cucumber-0.1.15/lib/cucumber/formatters/cucumber.js +11 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/formatters/html_formatter.rb +151 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/formatters/jquery.js +32 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/formatters/pretty_formatter.rb +285 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/formatters/profile_formatter.rb +92 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/formatters/progress_formatter.rb +61 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/formatters/unicode.rb +35 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/languages.yml +271 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/model.rb +1 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/model/table.rb +28 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/platform.rb +32 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/rails/rspec.rb +12 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/rails/world.rb +73 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/rake/task.rb +101 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/step_methods.rb +49 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/step_mother.rb +98 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/tree.rb +16 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/tree/feature.rb +89 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/tree/features.rb +21 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/tree/given_scenario.rb +13 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/tree/scenario.rb +236 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/tree/step.rb +173 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/tree/table.rb +26 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/tree/top_down_visitor.rb +23 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature.treetop.erb +254 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_ar.rb +1951 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_cy.rb +1951 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_da.rb +1951 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_de.rb +1951 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_en-lol.rb +1951 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_en-tx.rb +1951 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_en.rb +1951 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_es.rb +1951 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_et.rb +1951 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_fr.rb +1951 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_id.rb +1951 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_it.rb +1951 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_ja.rb +1951 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_ko.rb +1951 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_lt.rb +1951 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_nl.rb +1951 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_no.rb +1951 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_parser.rb +36 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_pl.rb +1951 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_pt.rb +1951 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_ro.rb +1951 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_ro2.rb +1951 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_ru.rb +1951 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_se.rb +1951 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/treetop_parser/feature_zh-CN.rb +1951 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/version.rb +10 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/world.rb +1 -0
- data/lib/gems/cucumber-0.1.15/lib/cucumber/world/pending.rb +22 -0
- data/lib/gems/diff-lcs-1.1.2/lib/diff/lcs.rb +1105 -0
- data/lib/gems/diff-lcs-1.1.2/lib/diff/lcs/array.rb +21 -0
- data/lib/gems/diff-lcs-1.1.2/lib/diff/lcs/block.rb +51 -0
- data/lib/gems/diff-lcs-1.1.2/lib/diff/lcs/callbacks.rb +322 -0
- data/lib/gems/diff-lcs-1.1.2/lib/diff/lcs/change.rb +169 -0
- data/lib/gems/diff-lcs-1.1.2/lib/diff/lcs/hunk.rb +257 -0
- data/lib/gems/diff-lcs-1.1.2/lib/diff/lcs/ldiff.rb +226 -0
- data/lib/gems/diff-lcs-1.1.2/lib/diff/lcs/string.rb +19 -0
- data/lib/gems/polyglot-0.2.3/lib/polyglot.rb +62 -0
- data/lib/gems/polyglot-0.2.3/lib/polyglot/version.rb +9 -0
- data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack.rb +7 -2
- data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/adapter/camping.rb +1 -1
- data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/auth/abstract/handler.rb +0 -0
- data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/auth/abstract/request.rb +0 -0
- data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/auth/basic.rb +0 -0
- data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/auth/digest/md5.rb +0 -0
- data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/auth/digest/nonce.rb +0 -0
- data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/auth/digest/params.rb +0 -0
- data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/auth/digest/request.rb +0 -0
- data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/auth/openid.rb +4 -3
- data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/builder.rb +12 -1
- data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/cascade.rb +0 -0
- data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/commonlogger.rb +0 -0
- data/lib/gems/rack-0.9.1/lib/rack/conditionalget.rb +43 -0
- data/lib/gems/rack-0.9.1/lib/rack/content_length.rb +25 -0
- data/lib/gems/rack-0.9.1/lib/rack/deflater.rb +87 -0
- data/lib/gems/rack-0.9.1/lib/rack/directory.rb +150 -0
- data/lib/gems/rack-0.9.1/lib/rack/file.rb +85 -0
- data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/handler.rb +4 -0
- data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/handler/cgi.rb +0 -0
- data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/handler/evented_mongrel.rb +1 -1
- data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/handler/fastcgi.rb +2 -0
- data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/handler/lsws.rb +0 -0
- data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/handler/mongrel.rb +6 -2
- data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/handler/scgi.rb +0 -0
- data/lib/gems/rack-0.9.1/lib/rack/handler/swiftiplied_mongrel.rb +8 -0
- data/lib/gems/rack-0.9.1/lib/rack/handler/thin.rb +15 -0
- data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/handler/webrick.rb +8 -4
- data/lib/gems/rack-0.9.1/lib/rack/head.rb +19 -0
- data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/lint.rb +74 -10
- data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/lobster.rb +13 -13
- data/lib/gems/rack-0.9.1/lib/rack/methodoverride.rb +27 -0
- data/lib/gems/rack-0.9.1/lib/rack/mime.rb +204 -0
- data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/mock.rb +0 -0
- data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/recursive.rb +0 -0
- data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/reloader.rb +0 -0
- data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/request.rb +10 -1
- data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/response.rb +7 -2
- data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/session/abstract/id.rb +14 -1
- data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/session/cookie.rb +19 -1
- data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/session/memcache.rb +1 -1
- data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/session/pool.rb +1 -1
- data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/showexceptions.rb +5 -1
- data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/showstatus.rb +3 -2
- data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/static.rb +0 -0
- data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/urlmap.rb +1 -1
- data/lib/gems/{rack-0.4.0 → rack-0.9.1}/lib/rack/utils.rb +42 -13
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/bin/autospec +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/bin/spec +0 -0
- data/lib/gems/{rspec-1.1.11/plugins → rspec-1.1.12/lib/adapters}/mock_frameworks/flexmock.rb +1 -1
- data/lib/gems/{rspec-1.1.11/plugins → rspec-1.1.12/lib/adapters}/mock_frameworks/mocha.rb +1 -1
- data/lib/gems/{rspec-1.1.11/plugins → rspec-1.1.12/lib/adapters}/mock_frameworks/rr.rb +1 -1
- data/lib/gems/{rspec-1.1.11/plugins → rspec-1.1.12/lib/adapters}/mock_frameworks/rspec.rb +2 -2
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/autotest/discover.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/autotest/rspec.rb +4 -3
- data/lib/gems/rspec-1.1.12/lib/spec.rb +7 -0
- data/lib/gems/rspec-1.1.12/lib/spec/dsl.rb +1 -0
- data/lib/gems/{rspec-1.1.11/lib/spec/extensions → rspec-1.1.12/lib/spec/dsl}/main.rb +10 -10
- data/lib/gems/rspec-1.1.12/lib/spec/example.rb +186 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/example/before_and_after_hooks.rb +30 -24
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/example/errors.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/example/example_group.rb +1 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/example/example_group_factory.rb +26 -9
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/example/example_group_methods.rb +138 -113
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/example/example_matcher.rb +0 -0
- data/lib/gems/rspec-1.1.12/lib/spec/example/example_methods.rb +168 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/example/module_reopening_fix.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/example/pending.rb +0 -0
- data/lib/gems/rspec-1.1.12/lib/spec/example/shared_example_group.rb +59 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/expectations.rb +22 -18
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/expectations/differs/default.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/expectations/errors.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/expectations/extensions.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/expectations/extensions/object.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/expectations/extensions/string_and_symbol.rb +0 -0
- data/lib/gems/rspec-1.1.12/lib/spec/expectations/handler.rb +32 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/interop/test.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/interop/test/unit/autorunner.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/interop/test/unit/testcase.rb +19 -17
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/interop/test/unit/testresult.rb +1 -1
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/interop/test/unit/testsuite_adapter.rb +1 -1
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/interop/test/unit/ui/console/testrunner.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/matchers.rb +7 -28
- data/lib/gems/rspec-1.1.12/lib/spec/matchers/be.rb +208 -0
- data/lib/gems/rspec-1.1.12/lib/spec/matchers/be_close.rb +21 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/matchers/change.rb +0 -0
- data/lib/gems/rspec-1.1.12/lib/spec/matchers/eql.rb +25 -0
- data/lib/gems/rspec-1.1.12/lib/spec/matchers/equal.rb +25 -0
- data/lib/gems/rspec-1.1.12/lib/spec/matchers/errors.rb +5 -0
- data/lib/gems/rspec-1.1.12/lib/spec/matchers/exist.rb +16 -0
- data/lib/gems/rspec-1.1.12/lib/spec/matchers/generated_descriptions.rb +48 -0
- data/lib/gems/rspec-1.1.12/lib/spec/matchers/has.rb +18 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/matchers/have.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/matchers/include.rb +12 -9
- data/lib/gems/rspec-1.1.12/lib/spec/matchers/match.rb +22 -0
- data/lib/gems/rspec-1.1.12/lib/spec/matchers/match_array.rb +79 -0
- data/lib/gems/rspec-1.1.12/lib/spec/matchers/method_missing.rb +9 -0
- data/lib/gems/rspec-1.1.12/lib/spec/matchers/operator_matcher.rb +70 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/matchers/raise_error.rb +4 -8
- data/lib/gems/rspec-1.1.12/lib/spec/matchers/respond_to.rb +71 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/matchers/satisfy.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/matchers/simple_matcher.rb +0 -0
- data/lib/gems/rspec-1.1.12/lib/spec/matchers/throw_symbol.rb +106 -0
- data/lib/gems/rspec-1.1.12/lib/spec/matchers/wrap_expectation.rb +55 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/mocks.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/mocks/argument_constraints.rb +77 -5
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/mocks/argument_expectation.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/mocks/error_generator.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/mocks/errors.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/mocks/extensions.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/mocks/extensions/object.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/mocks/framework.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/mocks/message_expectation.rb +7 -7
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/mocks/methods.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/mocks/mock.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/mocks/order_group.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/mocks/proxy.rb +14 -12
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/mocks/space.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/mocks/spec_methods.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/rake/spectask.rb +4 -6
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/rake/verify_rcov.rb +0 -0
- data/lib/gems/rspec-1.1.12/lib/spec/ruby.rb +9 -0
- data/lib/gems/rspec-1.1.12/lib/spec/runner.rb +88 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/runner/backtrace_tweaker.rb +5 -3
- data/lib/gems/rspec-1.1.12/lib/spec/runner/class_and_arguments_parser.rb +14 -0
- data/lib/gems/rspec-1.1.12/lib/spec/runner/command_line.rb +15 -0
- data/lib/gems/{rspec-1.1.11/lib/spec/example → rspec-1.1.12/lib/spec/runner}/configuration.rb +46 -47
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/runner/drb_command_line.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/runner/example_group_runner.rb +15 -4
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/runner/formatter/base_formatter.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/runner/formatter/base_text_formatter.rb +4 -3
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/runner/formatter/failing_example_groups_formatter.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/runner/formatter/failing_examples_formatter.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/runner/formatter/html_formatter.rb +14 -11
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/runner/formatter/nested_text_formatter.rb +2 -2
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/runner/formatter/profile_formatter.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/runner/formatter/progress_bar_formatter.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/runner/formatter/snippet_extractor.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/runner/formatter/specdoc_formatter.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/runner/formatter/story/html_formatter.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/runner/formatter/story/plain_text_formatter.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/runner/formatter/story/progress_bar_formatter.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/runner/formatter/text_mate_formatter.rb +0 -0
- data/lib/gems/rspec-1.1.12/lib/spec/runner/heckle_runner.rb +74 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/runner/heckle_runner_unsupported.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/runner/option_parser.rb +8 -4
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/runner/options.rb +29 -14
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/runner/reporter.rb +1 -1
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/runner/spec_parser.rb +11 -9
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/story.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/story/extensions.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/story/extensions/main.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/story/extensions/regexp.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/story/extensions/string.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/story/given_scenario.rb +0 -0
- data/lib/gems/rspec-1.1.12/lib/spec/story/runner.rb +57 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/story/runner/plain_text_story_runner.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/story/runner/scenario_collector.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/story/runner/scenario_runner.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/story/runner/story_mediator.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/story/runner/story_parser.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/story/runner/story_runner.rb +10 -6
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/story/scenario.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/story/step.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/story/step_group.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/story/step_mother.rb +0 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/story/story.rb +0 -0
- data/lib/gems/rspec-1.1.12/lib/spec/story/world.rb +124 -0
- data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/version.rb +4 -2
- data/lib/gems/rubyforge-1.0.1/lib/rubyforge.rb +475 -0
- data/lib/gems/rubyforge-1.0.1/lib/rubyforge/client.rb +134 -0
- data/lib/gems/rubyforge-1.0.1/lib/rubyforge/cookie_manager.rb +51 -0
- data/lib/gems/term-ansicolor-1.0.3/VERSION +1 -0
- data/lib/gems/term-ansicolor-1.0.3/lib/term/ansicolor.rb +220 -0
- data/lib/gems/{rspec-1.1.11/spec/spec/runner/empty_file.txt → treetop-1.2.4/lib/metagrammar.rb} +0 -0
- data/lib/gems/treetop-1.2.4/lib/treetop.rb +11 -0
- data/lib/gems/treetop-1.2.4/lib/treetop/bootstrap_gen_1_metagrammar.rb +45 -0
- data/lib/gems/treetop-1.2.4/lib/treetop/compiler.rb +6 -0
- data/lib/gems/treetop-1.2.4/lib/treetop/compiler/grammar_compiler.rb +40 -0
- data/lib/gems/treetop-1.2.4/lib/treetop/compiler/lexical_address_space.rb +17 -0
- data/lib/gems/treetop-1.2.4/lib/treetop/compiler/metagrammar.rb +2887 -0
- data/lib/gems/treetop-1.2.4/lib/treetop/compiler/metagrammar.treetop +404 -0
- data/lib/gems/treetop-1.2.4/lib/treetop/compiler/node_classes.rb +19 -0
- data/lib/gems/treetop-1.2.4/lib/treetop/compiler/node_classes/anything_symbol.rb +18 -0
- data/lib/gems/treetop-1.2.4/lib/treetop/compiler/node_classes/atomic_expression.rb +14 -0
- data/lib/gems/treetop-1.2.4/lib/treetop/compiler/node_classes/character_class.rb +19 -0
- data/lib/gems/treetop-1.2.4/lib/treetop/compiler/node_classes/choice.rb +31 -0
- data/lib/gems/treetop-1.2.4/lib/treetop/compiler/node_classes/declaration_sequence.rb +24 -0
- data/lib/gems/treetop-1.2.4/lib/treetop/compiler/node_classes/grammar.rb +28 -0
- data/lib/gems/treetop-1.2.4/lib/treetop/compiler/node_classes/inline_module.rb +27 -0
- data/lib/gems/treetop-1.2.4/lib/treetop/compiler/node_classes/nonterminal.rb +13 -0
- data/lib/gems/treetop-1.2.4/lib/treetop/compiler/node_classes/optional.rb +19 -0
- data/lib/gems/treetop-1.2.4/lib/treetop/compiler/node_classes/parenthesized_expression.rb +9 -0
- data/lib/gems/treetop-1.2.4/lib/treetop/compiler/node_classes/parsing_expression.rb +138 -0
- data/lib/gems/treetop-1.2.4/lib/treetop/compiler/node_classes/parsing_rule.rb +55 -0
- data/lib/gems/treetop-1.2.4/lib/treetop/compiler/node_classes/predicate.rb +45 -0
- data/lib/gems/treetop-1.2.4/lib/treetop/compiler/node_classes/repetition.rb +55 -0
- data/lib/gems/treetop-1.2.4/lib/treetop/compiler/node_classes/sequence.rb +68 -0
- data/lib/gems/treetop-1.2.4/lib/treetop/compiler/node_classes/terminal.rb +20 -0
- data/lib/gems/treetop-1.2.4/lib/treetop/compiler/node_classes/transient_prefix.rb +9 -0
- data/lib/gems/treetop-1.2.4/lib/treetop/compiler/node_classes/treetop_file.rb +9 -0
- data/lib/gems/treetop-1.2.4/lib/treetop/compiler/ruby_builder.rb +113 -0
- data/lib/gems/treetop-1.2.4/lib/treetop/ruby_extensions.rb +2 -0
- data/lib/gems/treetop-1.2.4/lib/treetop/ruby_extensions/string.rb +42 -0
- data/lib/gems/treetop-1.2.4/lib/treetop/runtime.rb +5 -0
- data/lib/gems/treetop-1.2.4/lib/treetop/runtime/compiled_parser.rb +87 -0
- data/lib/gems/treetop-1.2.4/lib/treetop/runtime/interval_skip_list.rb +4 -0
- data/lib/gems/treetop-1.2.4/lib/treetop/runtime/interval_skip_list/head_node.rb +15 -0
- data/lib/gems/treetop-1.2.4/lib/treetop/runtime/interval_skip_list/interval_skip_list.rb +200 -0
- data/lib/gems/treetop-1.2.4/lib/treetop/runtime/interval_skip_list/node.rb +164 -0
- data/lib/gems/treetop-1.2.4/lib/treetop/runtime/syntax_node.rb +72 -0
- data/lib/gems/treetop-1.2.4/lib/treetop/runtime/terminal_parse_failure.rb +16 -0
- data/lib/gems/treetop-1.2.4/lib/treetop/runtime/terminal_syntax_node.rb +17 -0
- data/lib/mack/application.rb +5 -5
- data/lib/mack/boot/configuration.rb +3 -1
- data/lib/mack/boot/console.rb +2 -2
- data/lib/mack/boot/core.rb +3 -3
- data/lib/mack/boot/environment.rb +1 -1
- data/lib/mack/boot/logging.rb +1 -1
- data/lib/mack/boot/logging/filter.rb +1 -1
- data/lib/mack/boot/paths.rb +34 -30
- data/lib/mack/boot/plugins.rb +2 -2
- data/lib/mack/controller/controller.rb +2 -2
- data/lib/mack/controller/request.rb +32 -32
- data/lib/mack/core_extensions/kernel.rb +1 -1
- data/lib/mack/generators/controller_generator/controller_generator.rb +14 -4
- data/lib/mack/generators/controller_generator/manifest.yml +7 -7
- data/lib/mack/generators/controller_generator/templates/test/controllers/rspec.rb.template +1 -1
- data/lib/mack/generators/controller_generator/templates/test/controllers/test_case.rb.template +1 -1
- data/lib/mack/generators/controller_helper_generator/manifest.yml +6 -6
- data/lib/mack/generators/mack_application_generator/mack_application_generator.rb +2 -2
- data/lib/mack/generators/mack_application_generator/manifest.yml +57 -54
- data/lib/mack/generators/mack_application_generator/templates/config/configatron/default.rb.template +1 -1
- data/lib/mack/generators/mack_application_generator/templates/config/database.yml.template +15 -15
- data/lib/mack/generators/mack_application_generator/templates/config/initializers/gems.rb.template +4 -1
- data/lib/mack/generators/mack_application_generator/templates/test/controllers/default_controller_spec.rb.template +1 -1
- data/lib/mack/generators/mack_application_generator/templates/test/controllers/default_controller_test.rb.template +1 -1
- data/lib/mack/generators/mack_application_generator/templates/test/spec_helper.rb.template +3 -3
- data/lib/mack/generators/mack_application_generator/templates/test/test_helper.rb.template +3 -3
- data/lib/mack/generators/passenger_generator/templates/config.ru.template +1 -1
- data/lib/mack/generators/view_helper_generator/manifest.yml +6 -6
- data/lib/mack/rendering/engine/builder.rb +1 -1
- data/lib/mack/routing/route_map.rb +1 -15
- data/lib/mack/routing/urls.rb +16 -2
- data/lib/mack/runner_helpers/request_logger.rb +1 -1
- data/lib/mack/tasks/mack_update_tasks.rake +5 -5
- data/lib/mack/tasks/rake_rules.rake +1 -1
- data/lib/mack/tasks/test_tasks.rake +2 -2
- data/lib/mack/testing/helpers.rb +24 -24
- data/lib/mack/testing/rspec.rb +5 -23
- data/lib/mack/testing/test_assertions.rb +0 -1
- data/lib/mack/utils/ansi/ansi_color.rb +1 -1
- data/lib/mack/version.rb +1 -1
- data/lib/mack/view/default_form_builder.rb +9 -0
- data/lib/mack/view/form_builder.rb +151 -0
- data/lib/mack/view_helpers/form_helpers.rb +7 -6
- data/lib/mack_core.rb +3 -3
- data/lib/mack_tasks.rb +1 -1
- metadata +381 -477
- data/lib/gems/builder-2.1.2/lib/builder/css.rb +0 -250
- data/lib/gems/configatron-2.1.5/lib/configatron.rb +0 -6
- data/lib/gems/configatron-2.1.5/lib/configatron/errors.rb +0 -7
- data/lib/gems/lockfile-1.4.3/bin/rlock +0 -360
- data/lib/gems/lockfile-1.4.3/bin/rlock-1.4.3 +0 -360
- data/lib/gems/logging-0.9.4/data/bad_logging_1.rb +0 -13
- data/lib/gems/logging-0.9.4/data/bad_logging_2.rb +0 -21
- data/lib/gems/logging-0.9.4/data/logging.rb +0 -42
- data/lib/gems/logging-0.9.4/data/logging.yaml +0 -63
- data/lib/gems/logging-0.9.4/data/simple_logging.rb +0 -13
- data/lib/gems/rack-0.4.0/bin/rackup +0 -172
- data/lib/gems/rack-0.4.0/lib/rack/deflater.rb +0 -63
- data/lib/gems/rack-0.4.0/lib/rack/directory.rb +0 -158
- data/lib/gems/rack-0.4.0/lib/rack/file.rb +0 -116
- data/lib/gems/rcov-0.8.1.2.0/ext/rcovrt/callsite.c +0 -242
- data/lib/gems/rcov-0.8.1.2.0/ext/rcovrt/extconf.rb +0 -11
- data/lib/gems/rcov-0.8.1.2.0/ext/rcovrt/rcovrt.c +0 -329
- data/lib/gems/rspec-1.1.11/lib/spec.rb +0 -32
- data/lib/gems/rspec-1.1.11/lib/spec/adapters.rb +0 -1
- data/lib/gems/rspec-1.1.11/lib/spec/adapters/ruby_engine.rb +0 -26
- data/lib/gems/rspec-1.1.11/lib/spec/adapters/ruby_engine/mri.rb +0 -8
- data/lib/gems/rspec-1.1.11/lib/spec/adapters/ruby_engine/rubinius.rb +0 -8
- data/lib/gems/rspec-1.1.11/lib/spec/example.rb +0 -12
- data/lib/gems/rspec-1.1.11/lib/spec/example/example_methods.rb +0 -105
- data/lib/gems/rspec-1.1.11/lib/spec/example/shared_example_group.rb +0 -52
- data/lib/gems/rspec-1.1.11/lib/spec/expectations/handler.rb +0 -52
- data/lib/gems/rspec-1.1.11/lib/spec/extensions.rb +0 -4
- data/lib/gems/rspec-1.1.11/lib/spec/extensions/class.rb +0 -24
- data/lib/gems/rspec-1.1.11/lib/spec/extensions/metaclass.rb +0 -7
- data/lib/gems/rspec-1.1.11/lib/spec/extensions/object.rb +0 -6
- data/lib/gems/rspec-1.1.11/lib/spec/matchers/be.rb +0 -221
- data/lib/gems/rspec-1.1.11/lib/spec/matchers/be_close.rb +0 -37
- data/lib/gems/rspec-1.1.11/lib/spec/matchers/eql.rb +0 -43
- data/lib/gems/rspec-1.1.11/lib/spec/matchers/equal.rb +0 -43
- data/lib/gems/rspec-1.1.11/lib/spec/matchers/exist.rb +0 -22
- data/lib/gems/rspec-1.1.11/lib/spec/matchers/has.rb +0 -34
- data/lib/gems/rspec-1.1.11/lib/spec/matchers/match.rb +0 -41
- data/lib/gems/rspec-1.1.11/lib/spec/matchers/operator_matcher.rb +0 -79
- data/lib/gems/rspec-1.1.11/lib/spec/matchers/respond_to.rb +0 -46
- data/lib/gems/rspec-1.1.11/lib/spec/matchers/throw_symbol.rb +0 -74
- data/lib/gems/rspec-1.1.11/lib/spec/runner.rb +0 -213
- data/lib/gems/rspec-1.1.11/lib/spec/runner/class_and_arguments_parser.rb +0 -16
- data/lib/gems/rspec-1.1.11/lib/spec/runner/command_line.rb +0 -17
- data/lib/gems/rspec-1.1.11/lib/spec/runner/heckle_runner.rb +0 -72
- data/lib/gems/rspec-1.1.11/lib/spec/story/runner.rb +0 -59
- data/lib/gems/rspec-1.1.11/lib/spec/story/world.rb +0 -128
- data/lib/gems/rspec-1.1.11/rake_tasks/examples.rake +0 -7
- data/lib/gems/rspec-1.1.11/rake_tasks/examples_with_rcov.rake +0 -9
- data/lib/gems/rspec-1.1.11/rake_tasks/failing_examples_with_html.rake +0 -9
- data/lib/gems/rspec-1.1.11/rake_tasks/verify_rcov.rake +0 -7
- data/lib/gems/rspec-1.1.11/spec/README.jruby +0 -15
- data/lib/gems/rspec-1.1.11/spec/autotest/autotest_helper.rb +0 -6
- data/lib/gems/rspec-1.1.11/spec/autotest/autotest_matchers.rb +0 -47
- data/lib/gems/rspec-1.1.11/spec/autotest/discover_spec.rb +0 -19
- data/lib/gems/rspec-1.1.11/spec/autotest/rspec_spec.rb +0 -150
- data/lib/gems/rspec-1.1.11/spec/rspec_suite.rb +0 -6
- data/lib/gems/rspec-1.1.11/spec/ruby_forker.rb +0 -13
- data/lib/gems/rspec-1.1.11/spec/spec.opts +0 -6
- data/lib/gems/rspec-1.1.11/spec/spec/adapters/ruby_engine_spec.rb +0 -16
- data/lib/gems/rspec-1.1.11/spec/spec/example/configuration_spec.rb +0 -296
- data/lib/gems/rspec-1.1.11/spec/spec/example/example_group_class_definition_spec.rb +0 -48
- data/lib/gems/rspec-1.1.11/spec/spec/example/example_group_factory_spec.rb +0 -165
- data/lib/gems/rspec-1.1.11/spec/spec/example/example_group_methods_spec.rb +0 -584
- data/lib/gems/rspec-1.1.11/spec/spec/example/example_group_spec.rb +0 -683
- data/lib/gems/rspec-1.1.11/spec/spec/example/example_matcher_spec.rb +0 -96
- data/lib/gems/rspec-1.1.11/spec/spec/example/example_methods_spec.rb +0 -169
- data/lib/gems/rspec-1.1.11/spec/spec/example/example_runner_spec.rb +0 -194
- data/lib/gems/rspec-1.1.11/spec/spec/example/nested_example_group_spec.rb +0 -71
- data/lib/gems/rspec-1.1.11/spec/spec/example/pending_module_spec.rb +0 -145
- data/lib/gems/rspec-1.1.11/spec/spec/example/predicate_matcher_spec.rb +0 -21
- data/lib/gems/rspec-1.1.11/spec/spec/example/shared_example_group_spec.rb +0 -281
- data/lib/gems/rspec-1.1.11/spec/spec/example/subclassing_example_group_spec.rb +0 -25
- data/lib/gems/rspec-1.1.11/spec/spec/expectations/differs/default_spec.rb +0 -127
- data/lib/gems/rspec-1.1.11/spec/spec/expectations/extensions/object_spec.rb +0 -95
- data/lib/gems/rspec-1.1.11/spec/spec/expectations/fail_with_spec.rb +0 -71
- data/lib/gems/rspec-1.1.11/spec/spec/extensions/main_spec.rb +0 -71
- data/lib/gems/rspec-1.1.11/spec/spec/interop/test/unit/resources/spec_that_fails.rb +0 -10
- data/lib/gems/rspec-1.1.11/spec/spec/interop/test/unit/resources/spec_that_passes.rb +0 -10
- data/lib/gems/rspec-1.1.11/spec/spec/interop/test/unit/resources/spec_with_errors.rb +0 -10
- data/lib/gems/rspec-1.1.11/spec/spec/interop/test/unit/resources/spec_with_options_hash.rb +0 -13
- data/lib/gems/rspec-1.1.11/spec/spec/interop/test/unit/resources/test_case_that_fails.rb +0 -10
- data/lib/gems/rspec-1.1.11/spec/spec/interop/test/unit/resources/test_case_that_passes.rb +0 -10
- data/lib/gems/rspec-1.1.11/spec/spec/interop/test/unit/resources/test_case_with_errors.rb +0 -10
- data/lib/gems/rspec-1.1.11/spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb +0 -38
- data/lib/gems/rspec-1.1.11/spec/spec/interop/test/unit/spec_spec.rb +0 -52
- data/lib/gems/rspec-1.1.11/spec/spec/interop/test/unit/test_unit_spec_helper.rb +0 -14
- data/lib/gems/rspec-1.1.11/spec/spec/interop/test/unit/testcase_spec.rb +0 -49
- data/lib/gems/rspec-1.1.11/spec/spec/interop/test/unit/testsuite_adapter_spec.rb +0 -9
- data/lib/gems/rspec-1.1.11/spec/spec/matchers/be_close_spec.rb +0 -39
- data/lib/gems/rspec-1.1.11/spec/spec/matchers/be_spec.rb +0 -248
- data/lib/gems/rspec-1.1.11/spec/spec/matchers/change_spec.rb +0 -329
- data/lib/gems/rspec-1.1.11/spec/spec/matchers/description_generation_spec.rb +0 -153
- data/lib/gems/rspec-1.1.11/spec/spec/matchers/eql_spec.rb +0 -28
- data/lib/gems/rspec-1.1.11/spec/spec/matchers/equal_spec.rb +0 -28
- data/lib/gems/rspec-1.1.11/spec/spec/matchers/exist_spec.rb +0 -57
- data/lib/gems/rspec-1.1.11/spec/spec/matchers/handler_spec.rb +0 -150
- data/lib/gems/rspec-1.1.11/spec/spec/matchers/has_spec.rb +0 -63
- data/lib/gems/rspec-1.1.11/spec/spec/matchers/have_spec.rb +0 -394
- data/lib/gems/rspec-1.1.11/spec/spec/matchers/include_spec.rb +0 -64
- data/lib/gems/rspec-1.1.11/spec/spec/matchers/match_spec.rb +0 -37
- data/lib/gems/rspec-1.1.11/spec/spec/matchers/matcher_methods_spec.rb +0 -78
- data/lib/gems/rspec-1.1.11/spec/spec/matchers/mock_constraint_matchers_spec.rb +0 -24
- data/lib/gems/rspec-1.1.11/spec/spec/matchers/operator_matcher_spec.rb +0 -191
- data/lib/gems/rspec-1.1.11/spec/spec/matchers/raise_error_spec.rb +0 -315
- data/lib/gems/rspec-1.1.11/spec/spec/matchers/respond_to_spec.rb +0 -54
- data/lib/gems/rspec-1.1.11/spec/spec/matchers/satisfy_spec.rb +0 -36
- data/lib/gems/rspec-1.1.11/spec/spec/matchers/simple_matcher_spec.rb +0 -93
- data/lib/gems/rspec-1.1.11/spec/spec/matchers/throw_symbol_spec.rb +0 -54
- data/lib/gems/rspec-1.1.11/spec/spec/mocks/any_number_of_times_spec.rb +0 -36
- data/lib/gems/rspec-1.1.11/spec/spec/mocks/argument_expectation_spec.rb +0 -23
- data/lib/gems/rspec-1.1.11/spec/spec/mocks/at_least_spec.rb +0 -97
- data/lib/gems/rspec-1.1.11/spec/spec/mocks/at_most_spec.rb +0 -93
- data/lib/gems/rspec-1.1.11/spec/spec/mocks/bug_report_10260_spec.rb +0 -8
- data/lib/gems/rspec-1.1.11/spec/spec/mocks/bug_report_10263_spec.rb +0 -24
- data/lib/gems/rspec-1.1.11/spec/spec/mocks/bug_report_11545_spec.rb +0 -33
- data/lib/gems/rspec-1.1.11/spec/spec/mocks/bug_report_15719_spec.rb +0 -30
- data/lib/gems/rspec-1.1.11/spec/spec/mocks/bug_report_496.rb +0 -17
- data/lib/gems/rspec-1.1.11/spec/spec/mocks/bug_report_7611_spec.rb +0 -19
- data/lib/gems/rspec-1.1.11/spec/spec/mocks/bug_report_7805_spec.rb +0 -22
- data/lib/gems/rspec-1.1.11/spec/spec/mocks/bug_report_8165_spec.rb +0 -31
- data/lib/gems/rspec-1.1.11/spec/spec/mocks/bug_report_8302_spec.rb +0 -26
- data/lib/gems/rspec-1.1.11/spec/spec/mocks/failing_mock_argument_constraints_spec.rb +0 -95
- data/lib/gems/rspec-1.1.11/spec/spec/mocks/hash_including_matcher_spec.rb +0 -53
- data/lib/gems/rspec-1.1.11/spec/spec/mocks/mock_ordering_spec.rb +0 -84
- data/lib/gems/rspec-1.1.11/spec/spec/mocks/mock_space_spec.rb +0 -54
- data/lib/gems/rspec-1.1.11/spec/spec/mocks/mock_spec.rb +0 -555
- data/lib/gems/rspec-1.1.11/spec/spec/mocks/multiple_return_value_spec.rb +0 -113
- data/lib/gems/rspec-1.1.11/spec/spec/mocks/nil_expectation_warning_spec.rb +0 -53
- data/lib/gems/rspec-1.1.11/spec/spec/mocks/null_object_mock_spec.rb +0 -54
- data/lib/gems/rspec-1.1.11/spec/spec/mocks/once_counts_spec.rb +0 -53
- data/lib/gems/rspec-1.1.11/spec/spec/mocks/options_hash_spec.rb +0 -35
- data/lib/gems/rspec-1.1.11/spec/spec/mocks/partial_mock_spec.rb +0 -149
- data/lib/gems/rspec-1.1.11/spec/spec/mocks/partial_mock_using_mocks_directly_spec.rb +0 -66
- data/lib/gems/rspec-1.1.11/spec/spec/mocks/passing_mock_argument_constraints_spec.rb +0 -130
- data/lib/gems/rspec-1.1.11/spec/spec/mocks/precise_counts_spec.rb +0 -52
- data/lib/gems/rspec-1.1.11/spec/spec/mocks/record_messages_spec.rb +0 -26
- data/lib/gems/rspec-1.1.11/spec/spec/mocks/stub_spec.rb +0 -188
- data/lib/gems/rspec-1.1.11/spec/spec/mocks/twice_counts_spec.rb +0 -67
- data/lib/gems/rspec-1.1.11/spec/spec/package/bin_spec_spec.rb +0 -22
- data/lib/gems/rspec-1.1.11/spec/spec/runner/class_and_argument_parser_spec.rb +0 -23
- data/lib/gems/rspec-1.1.11/spec/spec/runner/command_line_spec.rb +0 -141
- data/lib/gems/rspec-1.1.11/spec/spec/runner/drb_command_line_spec.rb +0 -97
- data/lib/gems/rspec-1.1.11/spec/spec/runner/examples.txt +0 -2
- data/lib/gems/rspec-1.1.11/spec/spec/runner/failed.txt +0 -3
- data/lib/gems/rspec-1.1.11/spec/spec/runner/formatter/base_formatter_spec.rb +0 -112
- data/lib/gems/rspec-1.1.11/spec/spec/runner/formatter/failing_example_groups_formatter_spec.rb +0 -45
- data/lib/gems/rspec-1.1.11/spec/spec/runner/formatter/failing_examples_formatter_spec.rb +0 -33
- data/lib/gems/rspec-1.1.11/spec/spec/runner/formatter/html_formatted-1.8.4.html +0 -365
- data/lib/gems/rspec-1.1.11/spec/spec/runner/formatter/html_formatted-1.8.5-jruby.html +0 -387
- data/lib/gems/rspec-1.1.11/spec/spec/runner/formatter/html_formatted-1.8.5.html +0 -371
- data/lib/gems/rspec-1.1.11/spec/spec/runner/formatter/html_formatted-1.8.6-jruby.html +0 -381
- data/lib/gems/rspec-1.1.11/spec/spec/runner/formatter/html_formatted-1.8.6.html +0 -370
- data/lib/gems/rspec-1.1.11/spec/spec/runner/formatter/html_formatter_spec.rb +0 -61
- data/lib/gems/rspec-1.1.11/spec/spec/runner/formatter/nested_text_formatter_spec.rb +0 -318
- data/lib/gems/rspec-1.1.11/spec/spec/runner/formatter/profile_formatter_spec.rb +0 -65
- data/lib/gems/rspec-1.1.11/spec/spec/runner/formatter/progress_bar_formatter_spec.rb +0 -155
- data/lib/gems/rspec-1.1.11/spec/spec/runner/formatter/snippet_extractor_spec.rb +0 -18
- data/lib/gems/rspec-1.1.11/spec/spec/runner/formatter/spec_mate_formatter_spec.rb +0 -103
- data/lib/gems/rspec-1.1.11/spec/spec/runner/formatter/specdoc_formatter_spec.rb +0 -159
- data/lib/gems/rspec-1.1.11/spec/spec/runner/formatter/story/html_formatter_spec.rb +0 -135
- data/lib/gems/rspec-1.1.11/spec/spec/runner/formatter/story/plain_text_formatter_spec.rb +0 -600
- data/lib/gems/rspec-1.1.11/spec/spec/runner/formatter/story/progress_bar_formatter_spec.rb +0 -82
- data/lib/gems/rspec-1.1.11/spec/spec/runner/formatter/text_mate_formatted-1.8.4.html +0 -365
- data/lib/gems/rspec-1.1.11/spec/spec/runner/formatter/text_mate_formatted-1.8.6.html +0 -370
- data/lib/gems/rspec-1.1.11/spec/spec/runner/heckle_runner_spec.rb +0 -78
- data/lib/gems/rspec-1.1.11/spec/spec/runner/heckler_spec.rb +0 -13
- data/lib/gems/rspec-1.1.11/spec/spec/runner/noisy_backtrace_tweaker_spec.rb +0 -45
- data/lib/gems/rspec-1.1.11/spec/spec/runner/option_parser_spec.rb +0 -421
- data/lib/gems/rspec-1.1.11/spec/spec/runner/options_spec.rb +0 -450
- data/lib/gems/rspec-1.1.11/spec/spec/runner/output_one_time_fixture.rb +0 -7
- data/lib/gems/rspec-1.1.11/spec/spec/runner/output_one_time_fixture_runner.rb +0 -8
- data/lib/gems/rspec-1.1.11/spec/spec/runner/output_one_time_spec.rb +0 -16
- data/lib/gems/rspec-1.1.11/spec/spec/runner/quiet_backtrace_tweaker_spec.rb +0 -62
- data/lib/gems/rspec-1.1.11/spec/spec/runner/reporter_spec.rb +0 -238
- data/lib/gems/rspec-1.1.11/spec/spec/runner/resources/a_bar.rb +0 -0
- data/lib/gems/rspec-1.1.11/spec/spec/runner/resources/a_foo.rb +0 -0
- data/lib/gems/rspec-1.1.11/spec/spec/runner/resources/a_spec.rb +0 -1
- data/lib/gems/rspec-1.1.11/spec/spec/runner/spec.opts +0 -2
- data/lib/gems/rspec-1.1.11/spec/spec/runner/spec_drb.opts +0 -1
- data/lib/gems/rspec-1.1.11/spec/spec/runner/spec_parser/spec_parser_fixture.rb +0 -70
- data/lib/gems/rspec-1.1.11/spec/spec/runner/spec_parser_spec.rb +0 -85
- data/lib/gems/rspec-1.1.11/spec/spec/runner/spec_spaced.opts +0 -2
- data/lib/gems/rspec-1.1.11/spec/spec/runner_spec.rb +0 -11
- data/lib/gems/rspec-1.1.11/spec/spec/spec_classes.rb +0 -133
- data/lib/gems/rspec-1.1.11/spec/spec/story/builders.rb +0 -46
- data/lib/gems/rspec-1.1.11/spec/spec/story/extensions/main_spec.rb +0 -161
- data/lib/gems/rspec-1.1.11/spec/spec/story/extensions_spec.rb +0 -14
- data/lib/gems/rspec-1.1.11/spec/spec/story/given_scenario_spec.rb +0 -27
- data/lib/gems/rspec-1.1.11/spec/spec/story/runner/plain_text_story_runner_spec.rb +0 -90
- data/lib/gems/rspec-1.1.11/spec/spec/story/runner/scenario_collector_spec.rb +0 -27
- data/lib/gems/rspec-1.1.11/spec/spec/story/runner/scenario_runner_spec.rb +0 -214
- data/lib/gems/rspec-1.1.11/spec/spec/story/runner/story_mediator_spec.rb +0 -143
- data/lib/gems/rspec-1.1.11/spec/spec/story/runner/story_parser_spec.rb +0 -401
- data/lib/gems/rspec-1.1.11/spec/spec/story/runner/story_runner_spec.rb +0 -294
- data/lib/gems/rspec-1.1.11/spec/spec/story/runner_spec.rb +0 -93
- data/lib/gems/rspec-1.1.11/spec/spec/story/scenario_spec.rb +0 -18
- data/lib/gems/rspec-1.1.11/spec/spec/story/step_group_spec.rb +0 -157
- data/lib/gems/rspec-1.1.11/spec/spec/story/step_mother_spec.rb +0 -84
- data/lib/gems/rspec-1.1.11/spec/spec/story/step_spec.rb +0 -272
- data/lib/gems/rspec-1.1.11/spec/spec/story/story_helper.rb +0 -2
- data/lib/gems/rspec-1.1.11/spec/spec/story/story_spec.rb +0 -84
- data/lib/gems/rspec-1.1.11/spec/spec/story/world_spec.rb +0 -423
- data/lib/gems/rspec-1.1.11/spec/spec_helper.rb +0 -77
- data/lib/gems/rspec-1.1.11/stories/all.rb +0 -5
- data/lib/gems/rspec-1.1.11/stories/configuration/before_blocks.story +0 -21
- data/lib/gems/rspec-1.1.11/stories/configuration/stories.rb +0 -7
- data/lib/gems/rspec-1.1.11/stories/example_groups/autogenerated_docstrings +0 -45
- data/lib/gems/rspec-1.1.11/stories/example_groups/example_group_with_should_methods +0 -17
- data/lib/gems/rspec-1.1.11/stories/example_groups/nested_groups +0 -17
- data/lib/gems/rspec-1.1.11/stories/example_groups/output +0 -25
- data/lib/gems/rspec-1.1.11/stories/example_groups/stories.rb +0 -7
- data/lib/gems/rspec-1.1.11/stories/helper.rb +0 -6
- data/lib/gems/rspec-1.1.11/stories/interop/examples_and_tests_together +0 -30
- data/lib/gems/rspec-1.1.11/stories/interop/stories.rb +0 -7
- data/lib/gems/rspec-1.1.11/stories/interop/test_case_with_should_methods +0 -17
- data/lib/gems/rspec-1.1.11/stories/mock_framework_integration/stories.rb +0 -7
- data/lib/gems/rspec-1.1.11/stories/mock_framework_integration/use_flexmock.story +0 -9
- data/lib/gems/rspec-1.1.11/stories/pending_stories/README +0 -3
- data/lib/gems/rspec-1.1.11/stories/resources/helpers/cmdline.rb +0 -9
- data/lib/gems/rspec-1.1.11/stories/resources/helpers/story_helper.rb +0 -16
- data/lib/gems/rspec-1.1.11/stories/resources/matchers/smart_match.rb +0 -37
- data/lib/gems/rspec-1.1.11/stories/resources/spec/before_blocks_example.rb +0 -32
- data/lib/gems/rspec-1.1.11/stories/resources/spec/example_group_with_should_methods.rb +0 -12
- data/lib/gems/rspec-1.1.11/stories/resources/spec/simple_spec.rb +0 -8
- data/lib/gems/rspec-1.1.11/stories/resources/spec/spec_with_flexmock.rb +0 -18
- data/lib/gems/rspec-1.1.11/stories/resources/steps/running_rspec.rb +0 -50
- data/lib/gems/rspec-1.1.11/stories/resources/stories/failing_story.rb +0 -15
- data/lib/gems/rspec-1.1.11/stories/resources/test/spec_and_test_together.rb +0 -57
- data/lib/gems/rspec-1.1.11/stories/resources/test/test_case_with_should_methods.rb +0 -30
- data/lib/gems/rspec-1.1.11/stories/stories/multiline_steps.story +0 -23
- data/lib/gems/rspec-1.1.11/stories/stories/steps/multiline_steps.rb +0 -13
- data/lib/gems/rspec-1.1.11/stories/stories/stories.rb +0 -6
- data/lib/gems/rspec-1.1.11/story_server/prototype/javascripts/builder.js +0 -136
- data/lib/gems/rspec-1.1.11/story_server/prototype/javascripts/controls.js +0 -972
- data/lib/gems/rspec-1.1.11/story_server/prototype/javascripts/dragdrop.js +0 -976
- data/lib/gems/rspec-1.1.11/story_server/prototype/javascripts/effects.js +0 -1117
- data/lib/gems/rspec-1.1.11/story_server/prototype/javascripts/prototype.js +0 -4140
- data/lib/gems/rspec-1.1.11/story_server/prototype/javascripts/rspec.js +0 -149
- data/lib/gems/rspec-1.1.11/story_server/prototype/javascripts/scriptaculous.js +0 -58
- data/lib/gems/rspec-1.1.11/story_server/prototype/javascripts/slider.js +0 -276
- data/lib/gems/rspec-1.1.11/story_server/prototype/javascripts/sound.js +0 -55
- data/lib/gems/rspec-1.1.11/story_server/prototype/javascripts/unittest.js +0 -568
- data/lib/gems/rspec-1.1.11/story_server/prototype/lib/server.rb +0 -24
- data/lib/gems/rspec-1.1.11/story_server/prototype/stories.html +0 -176
- data/lib/gems/rspec-1.1.11/story_server/prototype/stylesheets/test.css +0 -90
- data/lib/mack/testing/test_case.rb +0 -52
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,57 @@
|
|
1
|
+
require 'spec/story/runner/scenario_collector.rb'
|
2
|
+
require 'spec/story/runner/scenario_runner.rb'
|
3
|
+
require 'spec/story/runner/story_runner.rb'
|
4
|
+
require 'spec/story/runner/story_parser.rb'
|
5
|
+
require 'spec/story/runner/story_mediator.rb'
|
6
|
+
require 'spec/story/runner/plain_text_story_runner.rb'
|
7
|
+
|
8
|
+
module Spec
|
9
|
+
module Story
|
10
|
+
module Runner
|
11
|
+
def self.run_options # :nodoc:
|
12
|
+
Spec::Runner.options
|
13
|
+
end
|
14
|
+
|
15
|
+
def self.story_runner # :nodoc:
|
16
|
+
unless @story_runner
|
17
|
+
@story_runner = create_story_runner
|
18
|
+
run_options.story_formatters.each do |formatter|
|
19
|
+
register_listener(formatter)
|
20
|
+
end
|
21
|
+
self.register_exit_hook
|
22
|
+
end
|
23
|
+
@story_runner
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.scenario_runner # :nodoc:
|
27
|
+
@scenario_runner ||= ScenarioRunner.new
|
28
|
+
end
|
29
|
+
|
30
|
+
def self.world_creator # :nodoc:
|
31
|
+
@world_creator ||= World
|
32
|
+
end
|
33
|
+
|
34
|
+
def self.create_story_runner
|
35
|
+
Runner::StoryRunner.new(scenario_runner, world_creator)
|
36
|
+
end
|
37
|
+
|
38
|
+
# Use this to register a customer output formatter.
|
39
|
+
def self.register_listener(listener)
|
40
|
+
story_runner.add_listener(listener) # run_started, story_started, story_ended, #run_ended
|
41
|
+
world_creator.add_listener(listener) # found_scenario, step_succeeded, step_failed, step_failed
|
42
|
+
scenario_runner.add_listener(listener) # scenario_started, scenario_succeeded, scenario_pending, scenario_failed
|
43
|
+
end
|
44
|
+
|
45
|
+
def self.register_exit_hook # :nodoc:
|
46
|
+
at_exit do
|
47
|
+
exit Runner.story_runner.run_stories unless $!
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
def self.dry_run
|
52
|
+
run_options.dry_run
|
53
|
+
end
|
54
|
+
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
data/lib/gems/{rspec-1.1.11 → rspec-1.1.12}/lib/spec/story/runner/plain_text_story_runner.rb
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -2,12 +2,16 @@ module Spec
|
|
2
2
|
module Story
|
3
3
|
module Runner
|
4
4
|
class StoryRunner
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
5
|
+
def self.current_story_runner
|
6
|
+
@current_story_runner
|
7
|
+
end
|
8
|
+
|
9
|
+
def self.current_story_runner=(current_story_runner)
|
10
|
+
@current_story_runner = current_story_runner
|
11
|
+
end
|
12
|
+
|
13
|
+
def self.scenario_from_current_story(scenario_name)
|
14
|
+
current_story_runner.scenario_from_current_story(scenario_name)
|
11
15
|
end
|
12
16
|
|
13
17
|
attr_accessor :stories, :scenarios, :current_story
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,124 @@
|
|
1
|
+
require 'spec/expectations'
|
2
|
+
require 'spec/matchers'
|
3
|
+
require 'spec/example/pending'
|
4
|
+
|
5
|
+
module Spec
|
6
|
+
module Story
|
7
|
+
=begin
|
8
|
+
A World represents the actual instance a scenario will run in.
|
9
|
+
|
10
|
+
The runner ensures any instance variables and methods defined anywhere
|
11
|
+
in a story block are available to all the scenarios. This includes
|
12
|
+
variables that are created or referenced inside Given, When and Then
|
13
|
+
blocks.
|
14
|
+
=end
|
15
|
+
module World
|
16
|
+
include ::Spec::Example::Pending
|
17
|
+
include ::Spec::Matchers
|
18
|
+
|
19
|
+
def self.create(cls = Object, *args)
|
20
|
+
cls.new(*args).extend(World)
|
21
|
+
end
|
22
|
+
|
23
|
+
def self.listeners
|
24
|
+
@listeners ||= []
|
25
|
+
end
|
26
|
+
|
27
|
+
def self.add_listener(listener)
|
28
|
+
listeners() << listener
|
29
|
+
end
|
30
|
+
|
31
|
+
def self.step_mother
|
32
|
+
@step_mother ||= StepMother.new
|
33
|
+
end
|
34
|
+
|
35
|
+
def self.use(steps)
|
36
|
+
step_mother.use(steps)
|
37
|
+
end
|
38
|
+
|
39
|
+
def self.step_names
|
40
|
+
@step_names ||= []
|
41
|
+
end
|
42
|
+
|
43
|
+
def self.run_given_scenario_with_suspended_listeners(world, type, name, scenario)
|
44
|
+
current_listeners = Array.new(listeners)
|
45
|
+
begin
|
46
|
+
listeners.each { |l| l.found_scenario(type, name) }
|
47
|
+
@listeners.clear
|
48
|
+
scenario.perform(world, name) unless dry_run
|
49
|
+
ensure
|
50
|
+
@listeners.replace(current_listeners)
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
def self.store_and_call(world, type, name, *args, &block)
|
55
|
+
if block_given?
|
56
|
+
step_mother.store(type, Step.new(name, &block))
|
57
|
+
end
|
58
|
+
step = step_mother.find(type, name)
|
59
|
+
|
60
|
+
step_name = step.name
|
61
|
+
step_names << step_name
|
62
|
+
|
63
|
+
# It's important to have access to the parsed args here, so
|
64
|
+
# we can give them to the listeners. The HTML reporter needs
|
65
|
+
# the args so it can style them. See the generated output in
|
66
|
+
# story_server/prototype/rspec_stories.html (generated by rake stories)
|
67
|
+
args = step.parse_args(name) if args.empty?
|
68
|
+
begin
|
69
|
+
listeners.each { |l| l.step_upcoming(type, step_name, *args) }
|
70
|
+
step.perform(world, *args) unless dry_run
|
71
|
+
listeners.each { |l| l.step_succeeded(type, step_name, *args) }
|
72
|
+
rescue Exception => e
|
73
|
+
case e
|
74
|
+
when Spec::Example::ExamplePendingError
|
75
|
+
@listeners.each { |l| l.step_pending(type, step_name, *args) }
|
76
|
+
else
|
77
|
+
@listeners.each { |l| l.step_failed(type, step_name, *args) }
|
78
|
+
end
|
79
|
+
errors << e
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
def self.errors
|
84
|
+
@errors ||= []
|
85
|
+
end
|
86
|
+
|
87
|
+
def self.dry_run
|
88
|
+
::Spec::Story::Runner.dry_run
|
89
|
+
end
|
90
|
+
|
91
|
+
def start_collecting_errors
|
92
|
+
errors.clear
|
93
|
+
end
|
94
|
+
|
95
|
+
def errors
|
96
|
+
World.errors
|
97
|
+
end
|
98
|
+
|
99
|
+
def GivenScenario(name)
|
100
|
+
World.run_given_scenario_with_suspended_listeners(self, :'given scenario', name, GivenScenario.new(name))
|
101
|
+
@__previous_step = :given
|
102
|
+
end
|
103
|
+
|
104
|
+
def Given(name, *args, &block)
|
105
|
+
World.store_and_call self, :given, name, *args, &block
|
106
|
+
@__previous_step = :given
|
107
|
+
end
|
108
|
+
|
109
|
+
def When(name, *args, &block)
|
110
|
+
World.store_and_call self, :when, name, *args, &block
|
111
|
+
@__previous_step = :when
|
112
|
+
end
|
113
|
+
|
114
|
+
def Then(name, *args, &block)
|
115
|
+
World.store_and_call self, :then, name, *args, &block
|
116
|
+
@__previous_step = :then
|
117
|
+
end
|
118
|
+
|
119
|
+
def And(name, *args, &block)
|
120
|
+
World.store_and_call self, @__previous_step, name, *args, &block
|
121
|
+
end
|
122
|
+
end
|
123
|
+
end
|
124
|
+
end
|
@@ -0,0 +1,475 @@
|
|
1
|
+
#! /usr/bin/env ruby -w
|
2
|
+
|
3
|
+
require 'enumerator'
|
4
|
+
require 'fileutils'
|
5
|
+
require 'yaml'
|
6
|
+
require 'open-uri'
|
7
|
+
require 'rubyforge/client'
|
8
|
+
|
9
|
+
$TESTING = false unless defined? $TESTING
|
10
|
+
|
11
|
+
class RubyForge
|
12
|
+
|
13
|
+
# :stopdoc:
|
14
|
+
VERSION = '1.0.1'
|
15
|
+
HOME = ENV["HOME"] || ENV["HOMEPATH"] || File::expand_path("~")
|
16
|
+
RUBYFORGE_D = File::join HOME, ".rubyforge"
|
17
|
+
CONFIG_F = File::join RUBYFORGE_D, "user-config.yml"
|
18
|
+
COOKIE_F = File::join RUBYFORGE_D, "cookie.dat"
|
19
|
+
|
20
|
+
# We must use __FILE__ instead of DATA because this is now a library
|
21
|
+
# and DATA is relative to $0, not __FILE__.
|
22
|
+
config = File.read(__FILE__).split(/__END__/).last.gsub(/#\{(.*)\}/) {eval $1}
|
23
|
+
CONFIG = YAML.load(config)
|
24
|
+
# :startdoc:
|
25
|
+
|
26
|
+
attr_reader :userconfig, :autoconfig
|
27
|
+
|
28
|
+
def initialize(userconfig=nil, autoconfig=nil, opts=nil)
|
29
|
+
# def initialize(userconfig=CONFIG_F, opts={})
|
30
|
+
@userconfig, @autoconfig = userconfig, autoconfig
|
31
|
+
|
32
|
+
@autoconfig ||= CONFIG["rubyforge"].dup
|
33
|
+
@userconfig.merge! opts if opts
|
34
|
+
|
35
|
+
@client = nil
|
36
|
+
@uri = nil
|
37
|
+
end
|
38
|
+
|
39
|
+
def configure opts = {}
|
40
|
+
user_path = CONFIG_F
|
41
|
+
dir, file = File.split(user_path)
|
42
|
+
|
43
|
+
@userconfig = if test(?e, user_path) then
|
44
|
+
YAML.load_file(user_path)
|
45
|
+
else
|
46
|
+
CONFIG
|
47
|
+
end.merge(opts)
|
48
|
+
@autoconfig_path = File.join(dir, file.sub(/^user/, 'auto'))
|
49
|
+
@autoconfig = if test(?e, @autoconfig_path) then
|
50
|
+
YAML.load_file(@autoconfig_path)
|
51
|
+
else
|
52
|
+
CONFIG["rubyforge"].dup
|
53
|
+
end
|
54
|
+
@autoconfig["type_ids"] = CONFIG['rubyforge']['type_ids'].dup
|
55
|
+
|
56
|
+
raise "no <username>" unless @userconfig["username"]
|
57
|
+
raise "no <password>" unless @userconfig["password"]
|
58
|
+
raise "no <cookie_jar>" unless @userconfig["cookie_jar"]
|
59
|
+
|
60
|
+
self
|
61
|
+
end
|
62
|
+
|
63
|
+
def uri
|
64
|
+
@uri ||= URI.parse @userconfig['uri']
|
65
|
+
end
|
66
|
+
|
67
|
+
def setup
|
68
|
+
FileUtils::mkdir_p RUBYFORGE_D, :mode => 0700 unless test ?d, RUBYFORGE_D
|
69
|
+
test ?e, CONFIG_F and FileUtils::mv CONFIG_F, "#{CONFIG_F}.bak"
|
70
|
+
config = CONFIG.dup
|
71
|
+
config.delete "rubyforge"
|
72
|
+
|
73
|
+
open(CONFIG_F, "w") { |f|
|
74
|
+
f.write YAML.dump(config)
|
75
|
+
}
|
76
|
+
FileUtils::touch COOKIE_F
|
77
|
+
edit = (ENV["EDITOR"] || ENV["EDIT"] || "vi") + " '#{CONFIG_F}'"
|
78
|
+
system edit or puts "edit '#{CONFIG_F}'"
|
79
|
+
end
|
80
|
+
|
81
|
+
def save_autoconfig
|
82
|
+
File.open(@autoconfig_path, "w") do |file|
|
83
|
+
YAML.dump @autoconfig, file
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
def scrape_config
|
88
|
+
username = @userconfig['username']
|
89
|
+
|
90
|
+
%w(group package processor release).each do |type|
|
91
|
+
@autoconfig["#{type}_ids"].clear
|
92
|
+
end
|
93
|
+
|
94
|
+
puts "Getting #{username}"
|
95
|
+
html = URI.parse("http://rubyforge.org/users/#{username}/index.html").read
|
96
|
+
|
97
|
+
projects = html.scan(%r%/projects/([^/]+)/%).flatten
|
98
|
+
|
99
|
+
puts "Fetching #{projects.size} projects"
|
100
|
+
projects.each do |project|
|
101
|
+
next if project == "support"
|
102
|
+
scrape_project(project)
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
def scrape_project(project)
|
107
|
+
data = {
|
108
|
+
"group_ids" => {},
|
109
|
+
"package_ids" => {},
|
110
|
+
"processor_ids" => Hash.new { |h,k| h[k] = {} },
|
111
|
+
"release_ids" => Hash.new { |h,k| h[k] = {} },
|
112
|
+
}
|
113
|
+
|
114
|
+
puts "Updating #{project}"
|
115
|
+
|
116
|
+
unless data["group_ids"].has_key? project then
|
117
|
+
html = URI.parse("http://rubyforge.org/projects/#{project}/index.html").read
|
118
|
+
group_id = html[/(frs|tracker|mail)\/\?group_id=\d+/][/\d+/].to_i
|
119
|
+
data["group_ids"][project] = group_id
|
120
|
+
end
|
121
|
+
|
122
|
+
group_id = data["group_ids"][project]
|
123
|
+
|
124
|
+
html = URI.parse("http://rubyforge.org/frs/?group_id=#{group_id}").read
|
125
|
+
|
126
|
+
package = nil
|
127
|
+
html.scan(/<h3>[^<]+|release_id=\d+">[^>]+|filemodule_id=\d+/).each do |s|
|
128
|
+
case s
|
129
|
+
when /<h3>([^<]+)/ then
|
130
|
+
package = $1.strip
|
131
|
+
when /release_id=(\d+)">([^<]+)/ then
|
132
|
+
data["release_ids"][package][$2] = $1.to_i
|
133
|
+
when /filemodule_id=(\d+)/ then
|
134
|
+
data["package_ids"][package] = $1.to_i
|
135
|
+
end
|
136
|
+
end
|
137
|
+
|
138
|
+
if not data['release_ids'][package].empty? and
|
139
|
+
@autoconfig['processor_ids'].empty? then
|
140
|
+
puts "Fetching processor ids"
|
141
|
+
|
142
|
+
login
|
143
|
+
|
144
|
+
html = client.get_content "http://rubyforge.org/frs/admin/qrs.php?package=&group_id=#{group_id}"
|
145
|
+
|
146
|
+
html =~ /<select name="processor_id">(.*?)<\/select>/m
|
147
|
+
processors = $1
|
148
|
+
processors.scan(/<option value="(\d{4})">([^<]+)/) do
|
149
|
+
data["processor_ids"][$2] = $1.to_i
|
150
|
+
end if processors
|
151
|
+
end
|
152
|
+
|
153
|
+
data.each do |key, val|
|
154
|
+
@autoconfig[key].merge! val
|
155
|
+
end
|
156
|
+
|
157
|
+
save_autoconfig
|
158
|
+
end
|
159
|
+
|
160
|
+
def login
|
161
|
+
page = self.uri + "/account/login.php"
|
162
|
+
page.scheme = 'https'
|
163
|
+
page = URI.parse page.to_s # set SSL port correctly
|
164
|
+
|
165
|
+
username = @userconfig["username"]
|
166
|
+
password = @userconfig["password"]
|
167
|
+
|
168
|
+
form = {
|
169
|
+
"return_to" => "",
|
170
|
+
"form_loginname" => username,
|
171
|
+
"form_pw" => password,
|
172
|
+
"login" => "Login"
|
173
|
+
}
|
174
|
+
|
175
|
+
response = run page, form
|
176
|
+
|
177
|
+
re = %r/personal\s+page\s+for:\s+#{ Regexp.escape username }/iom
|
178
|
+
unless response =~ re
|
179
|
+
warn("%s:%d: warning: potentially failed login using %s:%s" %
|
180
|
+
[__FILE__,__LINE__,username,password]) unless $TESTING
|
181
|
+
end
|
182
|
+
|
183
|
+
response
|
184
|
+
end
|
185
|
+
|
186
|
+
def create_package(group_id, package_name)
|
187
|
+
page = "/frs/admin/index.php"
|
188
|
+
|
189
|
+
group_id = lookup "group", group_id
|
190
|
+
is_private = @userconfig["is_private"]
|
191
|
+
is_public = is_private ? 0 : 1
|
192
|
+
|
193
|
+
form = {
|
194
|
+
"func" => "add_package",
|
195
|
+
"group_id" => group_id,
|
196
|
+
"package_name" => package_name,
|
197
|
+
"is_public" => is_public,
|
198
|
+
"submit" => "Create This Package",
|
199
|
+
}
|
200
|
+
|
201
|
+
run page, form
|
202
|
+
|
203
|
+
group_name = @autoconfig["group_ids"].invert[group_id]
|
204
|
+
scrape_project(group_name)
|
205
|
+
end
|
206
|
+
|
207
|
+
##
|
208
|
+
# Posts news item to +group_id+ (can be name) with +subject+ and +body+
|
209
|
+
|
210
|
+
def post_news(group_id, subject, body)
|
211
|
+
page = "/news/submit.php"
|
212
|
+
group_id = lookup "group", group_id
|
213
|
+
|
214
|
+
form = {
|
215
|
+
"group_id" => group_id,
|
216
|
+
"post_changes" => "y",
|
217
|
+
"summary" => subject,
|
218
|
+
"details" => body,
|
219
|
+
"submit" => "Submit",
|
220
|
+
}
|
221
|
+
|
222
|
+
run page, form
|
223
|
+
end
|
224
|
+
|
225
|
+
def delete_package(group_id, package_id)
|
226
|
+
page = "/frs/admin/index.php"
|
227
|
+
|
228
|
+
group_id = lookup "group", group_id
|
229
|
+
package_id = lookup "package", package_id
|
230
|
+
|
231
|
+
form = {
|
232
|
+
"func" => "delete_package",
|
233
|
+
"group_id" => group_id,
|
234
|
+
"package_id" => package_id,
|
235
|
+
"sure" => "1",
|
236
|
+
"really_sure" => "1",
|
237
|
+
"submit" => "Delete",
|
238
|
+
}
|
239
|
+
|
240
|
+
package_name = @autoconfig["package_ids"].invert[package_id]
|
241
|
+
@autoconfig["package_ids"].delete package_name
|
242
|
+
@autoconfig["release_ids"].delete package_name
|
243
|
+
save_autoconfig
|
244
|
+
|
245
|
+
run page, form
|
246
|
+
end
|
247
|
+
|
248
|
+
def add_release(group_id, package_id, release_name, *files)
|
249
|
+
userfile = files.shift
|
250
|
+
page = "/frs/admin/qrs.php"
|
251
|
+
|
252
|
+
group_id = lookup "group", group_id
|
253
|
+
package_id = lookup "package", package_id
|
254
|
+
userfile = open userfile, 'rb'
|
255
|
+
release_date = @userconfig["release_date"]
|
256
|
+
type_id = @userconfig["type_id"]
|
257
|
+
processor_id = @userconfig["processor_id"]
|
258
|
+
release_notes = @userconfig["release_notes"]
|
259
|
+
release_changes = @userconfig["release_changes"]
|
260
|
+
preformatted = @userconfig["preformatted"]
|
261
|
+
|
262
|
+
release_date ||= Time.now.strftime("%Y-%m-%d %H:%M")
|
263
|
+
|
264
|
+
type_id ||= userfile.path[%r|\.[^\./]+$|]
|
265
|
+
type_id = (lookup "type", type_id rescue lookup "type", ".oth")
|
266
|
+
|
267
|
+
processor_id ||= "Any"
|
268
|
+
processor_id = lookup "processor", processor_id
|
269
|
+
|
270
|
+
release_notes = IO::read(release_notes) if
|
271
|
+
test(?e, release_notes) if release_notes
|
272
|
+
|
273
|
+
release_changes = IO::read(release_changes) if
|
274
|
+
test(?e, release_changes) if release_changes
|
275
|
+
|
276
|
+
preformatted = preformatted ? 1 : 0
|
277
|
+
|
278
|
+
form = {
|
279
|
+
"group_id" => group_id,
|
280
|
+
"package_id" => package_id,
|
281
|
+
"release_name" => release_name,
|
282
|
+
"release_date" => release_date,
|
283
|
+
"type_id" => type_id,
|
284
|
+
"processor_id" => processor_id,
|
285
|
+
"release_notes" => release_notes,
|
286
|
+
"release_changes" => release_changes,
|
287
|
+
"preformatted" => preformatted,
|
288
|
+
"userfile" => userfile,
|
289
|
+
"submit" => "Release File"
|
290
|
+
}
|
291
|
+
|
292
|
+
boundary = Array::new(8){ "%2.2d" % rand(42) }.join('__')
|
293
|
+
boundary = "multipart/form-data; boundary=___#{ boundary }___"
|
294
|
+
|
295
|
+
html = run(page, form, 'content-type' => boundary)
|
296
|
+
raise "Invalid package_id #{package_id}" if html[/Invalid package_id/]
|
297
|
+
raise "You have already released this version." if html[/That filename already exists in this project/]
|
298
|
+
|
299
|
+
release_id = html[/release_id=\d+/][/\d+/].to_i rescue nil
|
300
|
+
|
301
|
+
unless release_id then
|
302
|
+
puts html if $DEBUG
|
303
|
+
raise "Couldn't get release_id, upload failed\?"
|
304
|
+
end
|
305
|
+
|
306
|
+
puts "RELEASE ID = #{release_id}" if $DEBUG
|
307
|
+
|
308
|
+
files.each do |file|
|
309
|
+
add_file(group_id, package_id, release_id, file)
|
310
|
+
end
|
311
|
+
|
312
|
+
package_name = @autoconfig["package_ids"].invert[package_id]
|
313
|
+
raise "unknown package name for #{package_id}" if package_name.nil?
|
314
|
+
@autoconfig["release_ids"][package_name] ||= {}
|
315
|
+
@autoconfig["release_ids"][package_name][release_name] = release_id
|
316
|
+
save_autoconfig
|
317
|
+
|
318
|
+
release_id
|
319
|
+
end
|
320
|
+
|
321
|
+
##
|
322
|
+
# add a file to an existing release under the specified group_id,
|
323
|
+
# package_id, and release_id
|
324
|
+
#
|
325
|
+
# example :
|
326
|
+
# add_file("codeforpeople.com", "traits", "0.8.0", "traits-0.8.0.gem")
|
327
|
+
# add_file("codeforpeople.com", "traits", "0.8.0", "traits-0.8.0.tgz")
|
328
|
+
# add_file(1024, 1242, "0.8.0", "traits-0.8.0.gem")
|
329
|
+
|
330
|
+
def add_file(group_name, package_name, release_name, userfile)
|
331
|
+
page = '/frs/admin/editrelease.php'
|
332
|
+
type_id = @userconfig["type_id"]
|
333
|
+
group_id = lookup "group", group_name
|
334
|
+
package_id = lookup "package", package_name
|
335
|
+
release_id = (Integer === release_name) ? release_name : lookup("release", package_name)[release_name]
|
336
|
+
processor_id = @userconfig["processor_id"]
|
337
|
+
|
338
|
+
page = "/frs/admin/editrelease.php?group_id=#{group_id}&release_id=#{release_id}&package_id=#{package_id}"
|
339
|
+
|
340
|
+
userfile = open userfile, 'rb'
|
341
|
+
|
342
|
+
type_id ||= userfile.path[%r|\.[^\./]+$|]
|
343
|
+
type_id = (lookup "type", type_id rescue lookup "type", ".oth")
|
344
|
+
|
345
|
+
processor_id ||= "Any"
|
346
|
+
processor_id = lookup "processor", processor_id
|
347
|
+
|
348
|
+
form = {
|
349
|
+
"step2" => 1,
|
350
|
+
"type_id" => type_id,
|
351
|
+
"processor_id" => processor_id,
|
352
|
+
"userfile" => userfile,
|
353
|
+
"submit" => "Add This File"
|
354
|
+
}
|
355
|
+
|
356
|
+
boundary = Array::new(8){ "%2.2d" % rand(42) }.join('__')
|
357
|
+
boundary = "multipart/form-data; boundary=___#{ boundary }___"
|
358
|
+
|
359
|
+
run page, form, 'content-type' => boundary
|
360
|
+
end
|
361
|
+
|
362
|
+
def client
|
363
|
+
return @client if @client
|
364
|
+
|
365
|
+
@client = RubyForge::Client::new ENV["HTTP_PROXY"]
|
366
|
+
@client.debug_dev = STDERR if ENV["RUBYFORGE_DEBUG"] || ENV["DEBUG"] || $DEBUG
|
367
|
+
@client.cookie_store = @userconfig["cookie_jar"]
|
368
|
+
|
369
|
+
@client
|
370
|
+
end
|
371
|
+
|
372
|
+
def run(page, form, extheader={}) # :nodoc:
|
373
|
+
uri = self.uri + page
|
374
|
+
if $DEBUG then
|
375
|
+
puts "client.post_content #{uri.inspect}, #{form.inspect}, #{extheader.inspect}"
|
376
|
+
end
|
377
|
+
|
378
|
+
response = client.post_content uri, form, extheader
|
379
|
+
|
380
|
+
client.save_cookie_store
|
381
|
+
|
382
|
+
if $DEBUG then
|
383
|
+
response.sub!(/\A.*end tabGenerator -->/m, '')
|
384
|
+
response.gsub!(/\t/, ' ')
|
385
|
+
response.gsub!(/\n{3,}/, "\n\n")
|
386
|
+
puts response
|
387
|
+
end
|
388
|
+
|
389
|
+
return response
|
390
|
+
end
|
391
|
+
|
392
|
+
def lookup(type, val) # :nodoc:
|
393
|
+
unless Fixnum === val then
|
394
|
+
key = val.to_s
|
395
|
+
val = @autoconfig["#{type}_ids"][key]
|
396
|
+
raise "no <#{type}_id> configured for <#{ key }>" unless val
|
397
|
+
end
|
398
|
+
val
|
399
|
+
end
|
400
|
+
end
|
401
|
+
|
402
|
+
__END__
|
403
|
+
#
|
404
|
+
# base rubyforge uri - store in #{ CONFIG_F }
|
405
|
+
#
|
406
|
+
uri : http://rubyforge.org
|
407
|
+
#
|
408
|
+
# this must be your username
|
409
|
+
#
|
410
|
+
username : username
|
411
|
+
#
|
412
|
+
# this must be your password
|
413
|
+
#
|
414
|
+
password : password
|
415
|
+
#
|
416
|
+
# defaults for some values
|
417
|
+
#
|
418
|
+
cookie_jar : #{ COOKIE_F }
|
419
|
+
is_private : false
|
420
|
+
# AUTOCONFIG:
|
421
|
+
rubyforge :
|
422
|
+
#
|
423
|
+
# map your group names to their rubyforge ids
|
424
|
+
#
|
425
|
+
group_ids :
|
426
|
+
codeforpeople.com : 1024
|
427
|
+
#
|
428
|
+
# map your package names to their rubyforge ids
|
429
|
+
#
|
430
|
+
package_ids :
|
431
|
+
traits : 1241
|
432
|
+
#
|
433
|
+
# map your package names to their rubyforge ids
|
434
|
+
#
|
435
|
+
release_ids :
|
436
|
+
traits :
|
437
|
+
1.2.3 : 666
|
438
|
+
#
|
439
|
+
# mapping file exts to rubyforge ids
|
440
|
+
#
|
441
|
+
type_ids :
|
442
|
+
.deb : 1000
|
443
|
+
.rpm : 2000
|
444
|
+
.zip : 3000
|
445
|
+
.bz2 : 3100
|
446
|
+
.gz : 3110
|
447
|
+
.src.zip : 5000
|
448
|
+
.src.bz2 : 5010
|
449
|
+
.src.tar.bz2 : 5010
|
450
|
+
.src.gz : 5020
|
451
|
+
.src.tar.gz : 5020
|
452
|
+
.src.rpm : 5100
|
453
|
+
.src : 5900
|
454
|
+
.jpg : 8000
|
455
|
+
.txt : 8100
|
456
|
+
.text : 8100
|
457
|
+
.htm : 8200
|
458
|
+
.html : 8200
|
459
|
+
.pdf : 8300
|
460
|
+
.oth : 9999
|
461
|
+
.ebuild : 1300
|
462
|
+
.exe : 1100
|
463
|
+
.dmg : 1200
|
464
|
+
.tar.gz : 5000
|
465
|
+
.tgz : 5000
|
466
|
+
.gem : 1400
|
467
|
+
.pgp : 8150
|
468
|
+
.sig : 8150
|
469
|
+
.pem : 1500
|
470
|
+
|
471
|
+
#
|
472
|
+
# map processor names to rubyforge ids
|
473
|
+
#
|
474
|
+
processor_ids :
|
475
|
+
Other : 9999
|