jnstq-acts_as_sms 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/MIT-LICENSE +20 -0
- data/README +84 -0
- data/acts_as_sms.gemspec +18 -0
- data/init.rb +1 -0
- data/lib/equipe.rb +1 -0
- data/lib/equipe/acts_as_sms.rb +130 -0
- data/rails/init.rb +3 -0
- data/rails_generators/short_message_service/USAGE +5 -0
- data/rails_generators/short_message_service/lib/insert_routes.rb +50 -0
- data/rails_generators/short_message_service/short_message_service_generator.rb +81 -0
- data/rails_generators/short_message_service/templates/delivery_receipt.rb +3 -0
- data/rails_generators/short_message_service/templates/delivery_receipts_controller.rb +9 -0
- data/rails_generators/short_message_service/templates/index.html.erb +22 -0
- data/rails_generators/short_message_service/templates/migration.rb +27 -0
- data/rails_generators/short_message_service/templates/new.html.erb +24 -0
- data/rails_generators/short_message_service/templates/short_message.rb +3 -0
- data/rails_generators/short_message_service/templates/short_message.yml +15 -0
- data/rails_generators/short_message_service/templates/short_messages_controller.rb +26 -0
- data/test/Rakefile +10 -0
- data/test/app/controllers/application.rb +15 -0
- data/test/app/controllers/delivery_receipts_controller.rb +9 -0
- data/test/app/controllers/short_messages_controller.rb +26 -0
- data/test/app/helpers/application_helper.rb +3 -0
- data/test/app/helpers/delivery_receipts_helper.rb +2 -0
- data/test/app/helpers/short_messages_helper.rb +2 -0
- data/test/app/models/delivery_receipt.rb +3 -0
- data/test/app/models/short_message.rb +3 -0
- data/test/app/views/short_messages/index.html.erb +22 -0
- data/test/app/views/short_messages/new.html.erb +24 -0
- data/test/config/boot.rb +109 -0
- data/test/config/database.yml +19 -0
- data/test/config/environment.rb +13 -0
- data/test/config/environments/development.rb +17 -0
- data/test/config/environments/production.rb +22 -0
- data/test/config/environments/test.rb +22 -0
- data/test/config/initializers/inflections.rb +10 -0
- data/test/config/initializers/mime_types.rb +5 -0
- data/test/config/initializers/new_rails_defaults.rb +15 -0
- data/test/config/routes.rb +43 -0
- data/test/config/short_message.yml +15 -0
- data/test/db/schema.rb +35 -0
- data/test/lib/tasks/rspec.rake +132 -0
- data/test/public/404.html +30 -0
- data/test/public/422.html +30 -0
- data/test/public/500.html +30 -0
- data/test/public/dispatch.cgi +10 -0
- data/test/public/dispatch.fcgi +24 -0
- data/test/public/dispatch.rb +10 -0
- data/test/public/favicon.ico +0 -0
- data/test/public/images/rails.png +0 -0
- data/test/public/index.html +274 -0
- data/test/public/javascripts/application.js +2 -0
- data/test/public/javascripts/controls.js +963 -0
- data/test/public/javascripts/dragdrop.js +972 -0
- data/test/public/javascripts/effects.js +1120 -0
- data/test/public/javascripts/prototype.js +4225 -0
- data/test/public/robots.txt +5 -0
- data/test/script/about +3 -0
- data/test/script/autospec +3 -0
- data/test/script/console +3 -0
- data/test/script/dbconsole +3 -0
- data/test/script/destroy +3 -0
- data/test/script/generate +3 -0
- data/test/script/performance/benchmarker +3 -0
- data/test/script/performance/profiler +3 -0
- data/test/script/performance/request +3 -0
- data/test/script/plugin +3 -0
- data/test/script/process/inspector +3 -0
- data/test/script/process/reaper +3 -0
- data/test/script/process/spawner +3 -0
- data/test/script/runner +3 -0
- data/test/script/server +3 -0
- data/test/script/spec +4 -0
- data/test/script/spec_server +116 -0
- data/test/spec/controllers/delivery_receipts_controller_spec.rb +17 -0
- data/test/spec/controllers/short_messages_controller_spec.rb +36 -0
- data/test/spec/fixtures/messages.yml +15 -0
- data/test/spec/helpers/delivery_receipts_helper_spec.rb +11 -0
- data/test/spec/helpers/short_messages_helper_spec.rb +11 -0
- data/test/spec/models/short_message_spec.rb +232 -0
- data/test/spec/rcov.opts +2 -0
- data/test/spec/spec.opts +4 -0
- data/test/spec/spec_helper.rb +47 -0
- data/test/spec/views/short_messages/index.html.erb_spec.rb +13 -0
- data/test/spec/views/short_messages/new.html.erb_spec.rb +13 -0
- data/test/stories/all.rb +4 -0
- data/test/stories/helper.rb +3 -0
- data/test/vendor/plugins/rspec-on-rails-matchers/CHANGELOG +10 -0
- data/test/vendor/plugins/rspec-on-rails-matchers/MIT-LICENSE +20 -0
- data/test/vendor/plugins/rspec-on-rails-matchers/README +187 -0
- data/test/vendor/plugins/rspec-on-rails-matchers/TODO +4 -0
- data/test/vendor/plugins/rspec-on-rails-matchers/init.rb +5 -0
- data/test/vendor/plugins/rspec-on-rails-matchers/lib/spec/rails/matchers/associations.rb +33 -0
- data/test/vendor/plugins/rspec-on-rails-matchers/lib/spec/rails/matchers/observers.rb +34 -0
- data/test/vendor/plugins/rspec-on-rails-matchers/lib/spec/rails/matchers/validations.rb +56 -0
- data/test/vendor/plugins/rspec-on-rails-matchers/lib/spec/rails/matchers/views.rb +102 -0
- data/test/vendor/plugins/rspec-rails/History.txt +44 -0
- data/test/vendor/plugins/rspec-rails/Manifest.txt +151 -0
- data/test/vendor/plugins/rspec-rails/README.txt +81 -0
- data/test/vendor/plugins/rspec-rails/Rakefile +37 -0
- data/test/vendor/plugins/rspec-rails/UPGRADE +7 -0
- data/test/vendor/plugins/rspec-rails/generators/rspec/CHANGES +1 -0
- data/test/vendor/plugins/rspec-rails/generators/rspec/rspec_generator.rb +40 -0
- data/test/vendor/plugins/rspec-rails/generators/rspec/templates/all_stories.rb +4 -0
- data/test/vendor/plugins/rspec-rails/generators/rspec/templates/previous_failures.txt +0 -0
- data/test/vendor/plugins/rspec-rails/generators/rspec/templates/rcov.opts +2 -0
- data/test/vendor/plugins/rspec-rails/generators/rspec/templates/rspec.rake +132 -0
- data/test/vendor/plugins/rspec-rails/generators/rspec/templates/script/autospec +3 -0
- data/test/vendor/plugins/rspec-rails/generators/rspec/templates/script/spec +4 -0
- data/test/vendor/plugins/rspec-rails/generators/rspec/templates/script/spec_server +116 -0
- data/test/vendor/plugins/rspec-rails/generators/rspec/templates/spec.opts +4 -0
- data/test/vendor/plugins/rspec-rails/generators/rspec/templates/spec_helper.rb +47 -0
- data/test/vendor/plugins/rspec-rails/generators/rspec/templates/stories_helper.rb +3 -0
- data/test/vendor/plugins/rspec-rails/generators/rspec_controller/USAGE +33 -0
- data/test/vendor/plugins/rspec-rails/generators/rspec_controller/rspec_controller_generator.rb +49 -0
- data/test/vendor/plugins/rspec-rails/generators/rspec_controller/templates/controller_spec.rb +25 -0
- data/test/vendor/plugins/rspec-rails/generators/rspec_controller/templates/helper_spec.rb +11 -0
- data/test/vendor/plugins/rspec-rails/generators/rspec_controller/templates/view_spec.rb +12 -0
- data/test/vendor/plugins/rspec-rails/generators/rspec_default_values.rb +19 -0
- data/test/vendor/plugins/rspec-rails/generators/rspec_model/USAGE +18 -0
- data/test/vendor/plugins/rspec-rails/generators/rspec_model/rspec_model_generator.rb +35 -0
- data/test/vendor/plugins/rspec-rails/generators/rspec_model/templates/model_spec.rb +15 -0
- data/test/vendor/plugins/rspec-rails/generators/rspec_scaffold/rspec_scaffold_generator.rb +154 -0
- data/test/vendor/plugins/rspec-rails/generators/rspec_scaffold/templates/controller_spec.rb +173 -0
- data/test/vendor/plugins/rspec-rails/generators/rspec_scaffold/templates/edit_erb_spec.rb +26 -0
- data/test/vendor/plugins/rspec-rails/generators/rspec_scaffold/templates/helper_spec.rb +11 -0
- data/test/vendor/plugins/rspec-rails/generators/rspec_scaffold/templates/index_erb_spec.rb +27 -0
- data/test/vendor/plugins/rspec-rails/generators/rspec_scaffold/templates/new_erb_spec.rb +26 -0
- data/test/vendor/plugins/rspec-rails/generators/rspec_scaffold/templates/routing_spec.rb +59 -0
- data/test/vendor/plugins/rspec-rails/generators/rspec_scaffold/templates/show_erb_spec.rb +23 -0
- data/test/vendor/plugins/rspec-rails/init.rb +9 -0
- data/test/vendor/plugins/rspec-rails/lib/autotest/discover.rb +1 -0
- data/test/vendor/plugins/rspec-rails/lib/autotest/rails_rspec.rb +76 -0
- data/test/vendor/plugins/rspec-rails/lib/spec/rails.rb +15 -0
- data/test/vendor/plugins/rspec-rails/lib/spec/rails/example.rb +47 -0
- data/test/vendor/plugins/rspec-rails/lib/spec/rails/example/assigns_hash_proxy.rb +43 -0
- data/test/vendor/plugins/rspec-rails/lib/spec/rails/example/controller_example_group.rb +282 -0
- data/test/vendor/plugins/rspec-rails/lib/spec/rails/example/cookies_proxy.rb +25 -0
- data/test/vendor/plugins/rspec-rails/lib/spec/rails/example/functional_example_group.rb +87 -0
- data/test/vendor/plugins/rspec-rails/lib/spec/rails/example/helper_example_group.rb +166 -0
- data/test/vendor/plugins/rspec-rails/lib/spec/rails/example/model_example_group.rb +14 -0
- data/test/vendor/plugins/rspec-rails/lib/spec/rails/example/rails_example_group.rb +33 -0
- data/test/vendor/plugins/rspec-rails/lib/spec/rails/example/render_observer.rb +90 -0
- data/test/vendor/plugins/rspec-rails/lib/spec/rails/example/view_example_group.rb +183 -0
- data/test/vendor/plugins/rspec-rails/lib/spec/rails/extensions.rb +12 -0
- data/test/vendor/plugins/rspec-rails/lib/spec/rails/extensions/action_controller/base.rb +14 -0
- data/test/vendor/plugins/rspec-rails/lib/spec/rails/extensions/action_controller/rescue.rb +21 -0
- data/test/vendor/plugins/rspec-rails/lib/spec/rails/extensions/action_controller/test_response.rb +11 -0
- data/test/vendor/plugins/rspec-rails/lib/spec/rails/extensions/action_view/base.rb +31 -0
- data/test/vendor/plugins/rspec-rails/lib/spec/rails/extensions/active_record/base.rb +30 -0
- data/test/vendor/plugins/rspec-rails/lib/spec/rails/extensions/object.rb +5 -0
- data/test/vendor/plugins/rspec-rails/lib/spec/rails/extensions/spec/example/configuration.rb +71 -0
- data/test/vendor/plugins/rspec-rails/lib/spec/rails/extensions/spec/matchers/have.rb +21 -0
- data/test/vendor/plugins/rspec-rails/lib/spec/rails/interop/testcase.rb +14 -0
- data/test/vendor/plugins/rspec-rails/lib/spec/rails/matchers.rb +30 -0
- data/test/vendor/plugins/rspec-rails/lib/spec/rails/matchers/assert_select.rb +131 -0
- data/test/vendor/plugins/rspec-rails/lib/spec/rails/matchers/have_text.rb +57 -0
- data/test/vendor/plugins/rspec-rails/lib/spec/rails/matchers/include_text.rb +54 -0
- data/test/vendor/plugins/rspec-rails/lib/spec/rails/matchers/redirect_to.rb +113 -0
- data/test/vendor/plugins/rspec-rails/lib/spec/rails/matchers/render_template.rb +90 -0
- data/test/vendor/plugins/rspec-rails/lib/spec/rails/mocks.rb +132 -0
- data/test/vendor/plugins/rspec-rails/lib/spec/rails/story_adapter.rb +79 -0
- data/test/vendor/plugins/rspec-rails/lib/spec/rails/version.rb +15 -0
- data/test/vendor/plugins/rspec-rails/spec/rails/autotest/mappings_spec.rb +36 -0
- data/test/vendor/plugins/rspec-rails/spec/rails/example/assigns_hash_proxy_spec.rb +65 -0
- data/test/vendor/plugins/rspec-rails/spec/rails/example/configuration_spec.rb +83 -0
- data/test/vendor/plugins/rspec-rails/spec/rails/example/controller_isolation_spec.rb +62 -0
- data/test/vendor/plugins/rspec-rails/spec/rails/example/controller_spec_spec.rb +255 -0
- data/test/vendor/plugins/rspec-rails/spec/rails/example/cookies_proxy_spec.rb +74 -0
- data/test/vendor/plugins/rspec-rails/spec/rails/example/example_group_factory_spec.rb +112 -0
- data/test/vendor/plugins/rspec-rails/spec/rails/example/helper_spec_spec.rb +161 -0
- data/test/vendor/plugins/rspec-rails/spec/rails/example/model_spec_spec.rb +18 -0
- data/test/vendor/plugins/rspec-rails/spec/rails/example/shared_behaviour_spec.rb +16 -0
- data/test/vendor/plugins/rspec-rails/spec/rails/example/test_unit_assertion_accessibility_spec.rb +33 -0
- data/test/vendor/plugins/rspec-rails/spec/rails/example/view_spec_spec.rb +268 -0
- data/test/vendor/plugins/rspec-rails/spec/rails/extensions/action_controller_rescue_action_spec.rb +54 -0
- data/test/vendor/plugins/rspec-rails/spec/rails/extensions/action_view_base_spec.rb +48 -0
- data/test/vendor/plugins/rspec-rails/spec/rails/extensions/active_record_spec.rb +14 -0
- data/test/vendor/plugins/rspec-rails/spec/rails/interop/testcase_spec.rb +66 -0
- data/test/vendor/plugins/rspec-rails/spec/rails/matchers/assert_select_spec.rb +814 -0
- data/test/vendor/plugins/rspec-rails/spec/rails/matchers/description_generation_spec.rb +37 -0
- data/test/vendor/plugins/rspec-rails/spec/rails/matchers/errors_on_spec.rb +13 -0
- data/test/vendor/plugins/rspec-rails/spec/rails/matchers/have_text_spec.rb +62 -0
- data/test/vendor/plugins/rspec-rails/spec/rails/matchers/include_text_spec.rb +64 -0
- data/test/vendor/plugins/rspec-rails/spec/rails/matchers/redirect_to_spec.rb +209 -0
- data/test/vendor/plugins/rspec-rails/spec/rails/matchers/render_template_spec.rb +176 -0
- data/test/vendor/plugins/rspec-rails/spec/rails/mocks/ar_classes.rb +10 -0
- data/test/vendor/plugins/rspec-rails/spec/rails/mocks/mock_model_spec.rb +90 -0
- data/test/vendor/plugins/rspec-rails/spec/rails/mocks/stub_model_spec.rb +79 -0
- data/test/vendor/plugins/rspec-rails/spec/rails/sample_modified_fixture.rb +8 -0
- data/test/vendor/plugins/rspec-rails/spec/rails/sample_spec.rb +8 -0
- data/test/vendor/plugins/rspec-rails/spec/rails/spec_server_spec.rb +96 -0
- data/test/vendor/plugins/rspec-rails/spec/rails/spec_spec.rb +11 -0
- data/test/vendor/plugins/rspec-rails/spec/rails_suite.rb +7 -0
- data/test/vendor/plugins/rspec-rails/spec/spec_helper.rb +57 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/controllers/action_view_base_spec_controller.rb +2 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/controllers/controller_spec_controller.rb +94 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/controllers/redirect_spec_controller.rb +59 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/controllers/render_spec_controller.rb +30 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/controllers/rjs_spec_controller.rb +58 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/helpers/explicit_helper.rb +38 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/helpers/more_explicit_helper.rb +5 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/helpers/plugin_application_helper.rb +6 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/helpers/view_spec_helper.rb +13 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/views/controller_spec/_partial.rhtml +0 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/views/controller_spec/action_setting_flash_after_session_reset.rhtml +1 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/views/controller_spec/action_setting_flash_before_session_reset.rhtml +1 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/views/controller_spec/action_setting_the_assigns_hash.rhtml +0 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/views/controller_spec/action_with_errors_in_template.rhtml +1 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/views/controller_spec/action_with_template.rhtml +1 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/views/layouts/application.rhtml +0 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/views/layouts/simple.rhtml +0 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/views/objects/_object.html.erb +1 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/views/render_spec/_a_partial.rhtml +0 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/views/render_spec/action_with_alternate_layout.rhtml +0 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/views/render_spec/some_action.js.rjs +1 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/views/render_spec/some_action.rhtml +0 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/views/render_spec/some_action.rjs +1 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/views/rjs_spec/_replacement_partial.rhtml +1 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/views/rjs_spec/hide_div.rjs +1 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/views/rjs_spec/hide_page_element.rjs +1 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/views/rjs_spec/insert_html.rjs +1 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/views/rjs_spec/replace.rjs +1 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/views/rjs_spec/replace_html.rjs +1 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/views/rjs_spec/replace_html_with_partial.rjs +1 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/views/rjs_spec/visual_effect.rjs +1 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/views/rjs_spec/visual_toggle_effect.rjs +1 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/views/tag_spec/no_tags.rhtml +1 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/views/tag_spec/single_div_with_no_attributes.rhtml +1 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/views/tag_spec/single_div_with_one_attribute.rhtml +1 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/views/view_spec/_partial.rhtml +2 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/views/view_spec/_partial_used_twice.rhtml +0 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/views/view_spec/_partial_with_local_variable.rhtml +1 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/views/view_spec/_partial_with_sub_partial.rhtml +1 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/views/view_spec/_spacer.rhtml +1 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/views/view_spec/accessor.rhtml +5 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/views/view_spec/block_helper.rhtml +3 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/views/view_spec/entry_form.rhtml +2 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/views/view_spec/explicit_helper.rhtml +2 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/views/view_spec/foo/show.rhtml +1 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/views/view_spec/implicit_helper.rhtml +2 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/views/view_spec/multiple_helpers.rhtml +3 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/views/view_spec/template_with_partial.rhtml +5 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/views/view_spec/template_with_partial_using_collection.rhtml +3 -0
- data/test/vendor/plugins/rspec-rails/spec_resources/views/view_spec/template_with_partial_with_array.rhtml +1 -0
- data/test/vendor/plugins/rspec-rails/stories/all.rb +10 -0
- data/test/vendor/plugins/rspec-rails/stories/configuration/stories.rb +5 -0
- data/test/vendor/plugins/rspec-rails/stories/helper.rb +6 -0
- data/test/vendor/plugins/rspec-rails/stories/steps/people.rb +8 -0
- data/test/vendor/plugins/rspec-rails/stories/transactions_should_rollback +15 -0
- data/test/vendor/plugins/rspec-rails/stories/transactions_should_rollback.rb +25 -0
- data/test/vendor/plugins/rspec/History.txt +1113 -0
- data/test/vendor/plugins/rspec/Manifest.txt +383 -0
- data/test/vendor/plugins/rspec/README.txt +63 -0
- data/test/vendor/plugins/rspec/Rakefile +88 -0
- data/test/vendor/plugins/rspec/TODO +1 -0
- data/test/vendor/plugins/rspec/bin/autospec +4 -0
- data/test/vendor/plugins/rspec/bin/spec +4 -0
- data/test/vendor/plugins/rspec/examples/pure/autogenerated_docstrings_example.rb +19 -0
- data/test/vendor/plugins/rspec/examples/pure/before_and_after_example.rb +40 -0
- data/test/vendor/plugins/rspec/examples/pure/behave_as_example.rb +45 -0
- data/test/vendor/plugins/rspec/examples/pure/custom_expectation_matchers.rb +54 -0
- data/test/vendor/plugins/rspec/examples/pure/custom_formatter.rb +12 -0
- data/test/vendor/plugins/rspec/examples/pure/dynamic_spec.rb +9 -0
- data/test/vendor/plugins/rspec/examples/pure/file_accessor.rb +19 -0
- data/test/vendor/plugins/rspec/examples/pure/file_accessor_spec.rb +38 -0
- data/test/vendor/plugins/rspec/examples/pure/greeter_spec.rb +31 -0
- data/test/vendor/plugins/rspec/examples/pure/helper_method_example.rb +14 -0
- data/test/vendor/plugins/rspec/examples/pure/io_processor.rb +8 -0
- data/test/vendor/plugins/rspec/examples/pure/io_processor_spec.rb +21 -0
- data/test/vendor/plugins/rspec/examples/pure/legacy_spec.rb +11 -0
- data/test/vendor/plugins/rspec/examples/pure/mocking_example.rb +27 -0
- data/test/vendor/plugins/rspec/examples/pure/multi_threaded_behaviour_runner.rb +28 -0
- data/test/vendor/plugins/rspec/examples/pure/nested_classes_example.rb +36 -0
- data/test/vendor/plugins/rspec/examples/pure/partial_mock_example.rb +29 -0
- data/test/vendor/plugins/rspec/examples/pure/pending_example.rb +20 -0
- data/test/vendor/plugins/rspec/examples/pure/predicate_example.rb +27 -0
- data/test/vendor/plugins/rspec/examples/pure/priority.txt +1 -0
- data/test/vendor/plugins/rspec/examples/pure/shared_example_group_example.rb +81 -0
- data/test/vendor/plugins/rspec/examples/pure/shared_stack_examples.rb +38 -0
- data/test/vendor/plugins/rspec/examples/pure/spec_helper.rb +3 -0
- data/test/vendor/plugins/rspec/examples/pure/stack.rb +36 -0
- data/test/vendor/plugins/rspec/examples/pure/stack_spec.rb +63 -0
- data/test/vendor/plugins/rspec/examples/pure/stack_spec_with_nested_example_groups.rb +67 -0
- data/test/vendor/plugins/rspec/examples/pure/stubbing_example.rb +69 -0
- data/test/vendor/plugins/rspec/examples/pure/yielding_example.rb +33 -0
- data/test/vendor/plugins/rspec/examples/stories/adder.rb +13 -0
- data/test/vendor/plugins/rspec/examples/stories/addition +34 -0
- data/test/vendor/plugins/rspec/examples/stories/addition.rb +9 -0
- data/test/vendor/plugins/rspec/examples/stories/calculator.rb +65 -0
- data/test/vendor/plugins/rspec/examples/stories/game-of-life/README.txt +21 -0
- data/test/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/everything.rb +6 -0
- data/test/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/examples/examples.rb +3 -0
- data/test/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/examples/game_behaviour.rb +35 -0
- data/test/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/examples/grid_behaviour.rb +66 -0
- data/test/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/CellsWithLessThanTwoNeighboursDie.story +21 -0
- data/test/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/CellsWithMoreThanThreeNeighboursDie.story +21 -0
- data/test/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/EmptySpacesWithThreeNeighboursCreateACell.story +42 -0
- data/test/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/ICanCreateACell.story +42 -0
- data/test/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/ICanKillACell.story +17 -0
- data/test/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/TheGridWraps.story +53 -0
- data/test/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/create_a_cell.rb +52 -0
- data/test/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/helper.rb +6 -0
- data/test/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/kill_a_cell.rb +26 -0
- data/test/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/steps.rb +5 -0
- data/test/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/stories.rb +3 -0
- data/test/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/stories.txt +22 -0
- data/test/vendor/plugins/rspec/examples/stories/game-of-life/life.rb +3 -0
- data/test/vendor/plugins/rspec/examples/stories/game-of-life/life/game.rb +23 -0
- data/test/vendor/plugins/rspec/examples/stories/game-of-life/life/grid.rb +43 -0
- data/test/vendor/plugins/rspec/examples/stories/helper.rb +9 -0
- data/test/vendor/plugins/rspec/examples/stories/steps/addition_steps.rb +18 -0
- data/test/vendor/plugins/rspec/failing_examples/README.txt +7 -0
- data/test/vendor/plugins/rspec/failing_examples/diffing_spec.rb +36 -0
- data/test/vendor/plugins/rspec/failing_examples/failing_autogenerated_docstrings_example.rb +19 -0
- data/test/vendor/plugins/rspec/failing_examples/failure_in_setup.rb +10 -0
- data/test/vendor/plugins/rspec/failing_examples/failure_in_teardown.rb +10 -0
- data/test/vendor/plugins/rspec/failing_examples/mocking_example.rb +40 -0
- data/test/vendor/plugins/rspec/failing_examples/mocking_with_flexmock.rb +26 -0
- data/test/vendor/plugins/rspec/failing_examples/mocking_with_mocha.rb +25 -0
- data/test/vendor/plugins/rspec/failing_examples/mocking_with_rr.rb +27 -0
- data/test/vendor/plugins/rspec/failing_examples/partial_mock_example.rb +20 -0
- data/test/vendor/plugins/rspec/failing_examples/predicate_example.rb +29 -0
- data/test/vendor/plugins/rspec/failing_examples/raising_example.rb +47 -0
- data/test/vendor/plugins/rspec/failing_examples/spec_helper.rb +3 -0
- data/test/vendor/plugins/rspec/failing_examples/syntax_error_example.rb +7 -0
- data/test/vendor/plugins/rspec/failing_examples/team_spec.rb +44 -0
- data/test/vendor/plugins/rspec/failing_examples/timeout_behaviour.rb +7 -0
- data/test/vendor/plugins/rspec/init.rb +9 -0
- data/test/vendor/plugins/rspec/lib/autotest/discover.rb +3 -0
- data/test/vendor/plugins/rspec/lib/autotest/rspec.rb +46 -0
- data/test/vendor/plugins/rspec/lib/spec.rb +28 -0
- data/test/vendor/plugins/rspec/lib/spec/adapters.rb +1 -0
- data/test/vendor/plugins/rspec/lib/spec/adapters/ruby_engine.rb +26 -0
- data/test/vendor/plugins/rspec/lib/spec/adapters/ruby_engine/mri.rb +8 -0
- data/test/vendor/plugins/rspec/lib/spec/adapters/ruby_engine/rubinius.rb +8 -0
- data/test/vendor/plugins/rspec/lib/spec/example.rb +12 -0
- data/test/vendor/plugins/rspec/lib/spec/example/configuration.rb +158 -0
- data/test/vendor/plugins/rspec/lib/spec/example/errors.rb +16 -0
- data/test/vendor/plugins/rspec/lib/spec/example/example_group.rb +17 -0
- data/test/vendor/plugins/rspec/lib/spec/example/example_group_factory.rb +64 -0
- data/test/vendor/plugins/rspec/lib/spec/example/example_group_methods.rb +440 -0
- data/test/vendor/plugins/rspec/lib/spec/example/example_matcher.rb +44 -0
- data/test/vendor/plugins/rspec/lib/spec/example/example_methods.rb +107 -0
- data/test/vendor/plugins/rspec/lib/spec/example/module_inclusion_warnings.rb +38 -0
- data/test/vendor/plugins/rspec/lib/spec/example/module_reopening_fix.rb +21 -0
- data/test/vendor/plugins/rspec/lib/spec/example/pending.rb +18 -0
- data/test/vendor/plugins/rspec/lib/spec/example/shared_example_group.rb +58 -0
- data/test/vendor/plugins/rspec/lib/spec/expectations.rb +56 -0
- data/test/vendor/plugins/rspec/lib/spec/expectations/differs/default.rb +66 -0
- data/test/vendor/plugins/rspec/lib/spec/expectations/errors.rb +12 -0
- data/test/vendor/plugins/rspec/lib/spec/expectations/extensions.rb +2 -0
- data/test/vendor/plugins/rspec/lib/spec/expectations/extensions/object.rb +63 -0
- data/test/vendor/plugins/rspec/lib/spec/expectations/extensions/string_and_symbol.rb +17 -0
- data/test/vendor/plugins/rspec/lib/spec/expectations/handler.rb +52 -0
- data/test/vendor/plugins/rspec/lib/spec/extensions.rb +4 -0
- data/test/vendor/plugins/rspec/lib/spec/extensions/class.rb +24 -0
- data/test/vendor/plugins/rspec/lib/spec/extensions/main.rb +87 -0
- data/test/vendor/plugins/rspec/lib/spec/extensions/metaclass.rb +7 -0
- data/test/vendor/plugins/rspec/lib/spec/extensions/object.rb +6 -0
- data/test/vendor/plugins/rspec/lib/spec/interop/test.rb +12 -0
- data/test/vendor/plugins/rspec/lib/spec/interop/test/unit/autorunner.rb +6 -0
- data/test/vendor/plugins/rspec/lib/spec/interop/test/unit/testcase.rb +61 -0
- data/test/vendor/plugins/rspec/lib/spec/interop/test/unit/testresult.rb +6 -0
- data/test/vendor/plugins/rspec/lib/spec/interop/test/unit/testsuite_adapter.rb +34 -0
- data/test/vendor/plugins/rspec/lib/spec/interop/test/unit/ui/console/testrunner.rb +61 -0
- data/test/vendor/plugins/rspec/lib/spec/matchers.rb +162 -0
- data/test/vendor/plugins/rspec/lib/spec/matchers/be.rb +224 -0
- data/test/vendor/plugins/rspec/lib/spec/matchers/be_close.rb +37 -0
- data/test/vendor/plugins/rspec/lib/spec/matchers/change.rb +148 -0
- data/test/vendor/plugins/rspec/lib/spec/matchers/eql.rb +43 -0
- data/test/vendor/plugins/rspec/lib/spec/matchers/equal.rb +43 -0
- data/test/vendor/plugins/rspec/lib/spec/matchers/exist.rb +17 -0
- data/test/vendor/plugins/rspec/lib/spec/matchers/has.rb +34 -0
- data/test/vendor/plugins/rspec/lib/spec/matchers/have.rb +150 -0
- data/test/vendor/plugins/rspec/lib/spec/matchers/include.rb +70 -0
- data/test/vendor/plugins/rspec/lib/spec/matchers/match.rb +41 -0
- data/test/vendor/plugins/rspec/lib/spec/matchers/operator_matcher.rb +79 -0
- data/test/vendor/plugins/rspec/lib/spec/matchers/raise_error.rb +132 -0
- data/test/vendor/plugins/rspec/lib/spec/matchers/respond_to.rb +45 -0
- data/test/vendor/plugins/rspec/lib/spec/matchers/satisfy.rb +47 -0
- data/test/vendor/plugins/rspec/lib/spec/matchers/simple_matcher.rb +132 -0
- data/test/vendor/plugins/rspec/lib/spec/matchers/throw_symbol.rb +74 -0
- data/test/vendor/plugins/rspec/lib/spec/mocks.rb +211 -0
- data/test/vendor/plugins/rspec/lib/spec/mocks/argument_constraint_matchers.rb +31 -0
- data/test/vendor/plugins/rspec/lib/spec/mocks/argument_expectation.rb +216 -0
- data/test/vendor/plugins/rspec/lib/spec/mocks/error_generator.rb +84 -0
- data/test/vendor/plugins/rspec/lib/spec/mocks/errors.rb +10 -0
- data/test/vendor/plugins/rspec/lib/spec/mocks/extensions.rb +1 -0
- data/test/vendor/plugins/rspec/lib/spec/mocks/extensions/object.rb +3 -0
- data/test/vendor/plugins/rspec/lib/spec/mocks/framework.rb +15 -0
- data/test/vendor/plugins/rspec/lib/spec/mocks/message_expectation.rb +295 -0
- data/test/vendor/plugins/rspec/lib/spec/mocks/methods.rb +51 -0
- data/test/vendor/plugins/rspec/lib/spec/mocks/mock.rb +56 -0
- data/test/vendor/plugins/rspec/lib/spec/mocks/order_group.rb +29 -0
- data/test/vendor/plugins/rspec/lib/spec/mocks/proxy.rb +193 -0
- data/test/vendor/plugins/rspec/lib/spec/mocks/space.rb +28 -0
- data/test/vendor/plugins/rspec/lib/spec/mocks/spec_methods.rb +38 -0
- data/test/vendor/plugins/rspec/lib/spec/rake/spectask.rb +227 -0
- data/test/vendor/plugins/rspec/lib/spec/rake/verify_rcov.rb +52 -0
- data/test/vendor/plugins/rspec/lib/spec/runner.rb +214 -0
- data/test/vendor/plugins/rspec/lib/spec/runner/backtrace_tweaker.rb +56 -0
- data/test/vendor/plugins/rspec/lib/spec/runner/class_and_arguments_parser.rb +16 -0
- data/test/vendor/plugins/rspec/lib/spec/runner/command_line.rb +17 -0
- data/test/vendor/plugins/rspec/lib/spec/runner/drb_command_line.rb +20 -0
- data/test/vendor/plugins/rspec/lib/spec/runner/example_group_runner.rb +59 -0
- data/test/vendor/plugins/rspec/lib/spec/runner/formatter/base_formatter.rb +79 -0
- data/test/vendor/plugins/rspec/lib/spec/runner/formatter/base_text_formatter.rb +126 -0
- data/test/vendor/plugins/rspec/lib/spec/runner/formatter/failing_example_groups_formatter.rb +27 -0
- data/test/vendor/plugins/rspec/lib/spec/runner/formatter/failing_examples_formatter.rb +20 -0
- data/test/vendor/plugins/rspec/lib/spec/runner/formatter/html_formatter.rb +337 -0
- data/test/vendor/plugins/rspec/lib/spec/runner/formatter/nested_text_formatter.rb +65 -0
- data/test/vendor/plugins/rspec/lib/spec/runner/formatter/profile_formatter.rb +51 -0
- data/test/vendor/plugins/rspec/lib/spec/runner/formatter/progress_bar_formatter.rb +34 -0
- data/test/vendor/plugins/rspec/lib/spec/runner/formatter/snippet_extractor.rb +52 -0
- data/test/vendor/plugins/rspec/lib/spec/runner/formatter/specdoc_formatter.rb +39 -0
- data/test/vendor/plugins/rspec/lib/spec/runner/formatter/story/html_formatter.rb +174 -0
- data/test/vendor/plugins/rspec/lib/spec/runner/formatter/story/plain_text_formatter.rb +194 -0
- data/test/vendor/plugins/rspec/lib/spec/runner/formatter/story/progress_bar_formatter.rb +42 -0
- data/test/vendor/plugins/rspec/lib/spec/runner/formatter/text_mate_formatter.rb +16 -0
- data/test/vendor/plugins/rspec/lib/spec/runner/heckle_runner.rb +72 -0
- data/test/vendor/plugins/rspec/lib/spec/runner/heckle_runner_unsupported.rb +10 -0
- data/test/vendor/plugins/rspec/lib/spec/runner/option_parser.rb +204 -0
- data/test/vendor/plugins/rspec/lib/spec/runner/options.rb +318 -0
- data/test/vendor/plugins/rspec/lib/spec/runner/reporter.rb +165 -0
- data/test/vendor/plugins/rspec/lib/spec/runner/spec_parser.rb +71 -0
- data/test/vendor/plugins/rspec/lib/spec/story.rb +10 -0
- data/test/vendor/plugins/rspec/lib/spec/story/extensions.rb +3 -0
- data/test/vendor/plugins/rspec/lib/spec/story/extensions/main.rb +86 -0
- data/test/vendor/plugins/rspec/lib/spec/story/extensions/regexp.rb +9 -0
- data/test/vendor/plugins/rspec/lib/spec/story/extensions/string.rb +9 -0
- data/test/vendor/plugins/rspec/lib/spec/story/given_scenario.rb +14 -0
- data/test/vendor/plugins/rspec/lib/spec/story/runner.rb +59 -0
- data/test/vendor/plugins/rspec/lib/spec/story/runner/plain_text_story_runner.rb +48 -0
- data/test/vendor/plugins/rspec/lib/spec/story/runner/scenario_collector.rb +18 -0
- data/test/vendor/plugins/rspec/lib/spec/story/runner/scenario_runner.rb +54 -0
- data/test/vendor/plugins/rspec/lib/spec/story/runner/story_mediator.rb +137 -0
- data/test/vendor/plugins/rspec/lib/spec/story/runner/story_parser.rb +247 -0
- data/test/vendor/plugins/rspec/lib/spec/story/runner/story_runner.rb +70 -0
- data/test/vendor/plugins/rspec/lib/spec/story/scenario.rb +14 -0
- data/test/vendor/plugins/rspec/lib/spec/story/step.rb +70 -0
- data/test/vendor/plugins/rspec/lib/spec/story/step_group.rb +89 -0
- data/test/vendor/plugins/rspec/lib/spec/story/step_mother.rb +38 -0
- data/test/vendor/plugins/rspec/lib/spec/story/story.rb +39 -0
- data/test/vendor/plugins/rspec/lib/spec/story/world.rb +128 -0
- data/test/vendor/plugins/rspec/lib/spec/version.rb +13 -0
- data/test/vendor/plugins/rspec/plugins/mock_frameworks/flexmock.rb +23 -0
- data/test/vendor/plugins/rspec/plugins/mock_frameworks/mocha.rb +19 -0
- data/test/vendor/plugins/rspec/plugins/mock_frameworks/rr.rb +21 -0
- data/test/vendor/plugins/rspec/plugins/mock_frameworks/rspec.rb +20 -0
- data/test/vendor/plugins/rspec/rake_tasks/examples.rake +7 -0
- data/test/vendor/plugins/rspec/rake_tasks/examples_with_rcov.rake +9 -0
- data/test/vendor/plugins/rspec/rake_tasks/failing_examples_with_html.rake +9 -0
- data/test/vendor/plugins/rspec/rake_tasks/verify_rcov.rake +7 -0
- data/test/vendor/plugins/rspec/spec/README.jruby +15 -0
- data/test/vendor/plugins/rspec/spec/autotest/discover_spec.rb +19 -0
- data/test/vendor/plugins/rspec/spec/autotest/rspec_spec.rb +146 -0
- data/test/vendor/plugins/rspec/spec/autotest_helper.rb +6 -0
- data/test/vendor/plugins/rspec/spec/autotest_matchers.rb +47 -0
- data/test/vendor/plugins/rspec/spec/rspec_suite.rb +7 -0
- data/test/vendor/plugins/rspec/spec/ruby_forker.rb +13 -0
- data/test/vendor/plugins/rspec/spec/spec.opts +6 -0
- data/test/vendor/plugins/rspec/spec/spec/adapters/ruby_engine_spec.rb +16 -0
- data/test/vendor/plugins/rspec/spec/spec/example/base_formatter_spec.rb +112 -0
- data/test/vendor/plugins/rspec/spec/spec/example/configuration_spec.rb +282 -0
- data/test/vendor/plugins/rspec/spec/spec/example/example_group/described_module_spec.rb +20 -0
- data/test/vendor/plugins/rspec/spec/spec/example/example_group/warning_messages_spec.rb +76 -0
- data/test/vendor/plugins/rspec/spec/spec/example/example_group_class_definition_spec.rb +48 -0
- data/test/vendor/plugins/rspec/spec/spec/example/example_group_factory_spec.rb +144 -0
- data/test/vendor/plugins/rspec/spec/spec/example/example_group_methods_spec.rb +574 -0
- data/test/vendor/plugins/rspec/spec/spec/example/example_group_spec.rb +724 -0
- data/test/vendor/plugins/rspec/spec/spec/example/example_matcher_spec.rb +96 -0
- data/test/vendor/plugins/rspec/spec/spec/example/example_methods_spec.rb +130 -0
- data/test/vendor/plugins/rspec/spec/spec/example/example_runner_spec.rb +194 -0
- data/test/vendor/plugins/rspec/spec/spec/example/example_spec.rb +53 -0
- data/test/vendor/plugins/rspec/spec/spec/example/nested_example_group_spec.rb +71 -0
- data/test/vendor/plugins/rspec/spec/spec/example/pending_module_spec.rb +88 -0
- data/test/vendor/plugins/rspec/spec/spec/example/predicate_matcher_spec.rb +21 -0
- data/test/vendor/plugins/rspec/spec/spec/example/shared_example_group_spec.rb +265 -0
- data/test/vendor/plugins/rspec/spec/spec/example/subclassing_example_group_spec.rb +25 -0
- data/test/vendor/plugins/rspec/spec/spec/expectations/differs/default_spec.rb +127 -0
- data/test/vendor/plugins/rspec/spec/spec/expectations/extensions/object_spec.rb +95 -0
- data/test/vendor/plugins/rspec/spec/spec/expectations/fail_with_spec.rb +71 -0
- data/test/vendor/plugins/rspec/spec/spec/extensions/main_spec.rb +71 -0
- data/test/vendor/plugins/rspec/spec/spec/interop/test/unit/resources/spec_that_fails.rb +10 -0
- data/test/vendor/plugins/rspec/spec/spec/interop/test/unit/resources/spec_that_passes.rb +10 -0
- data/test/vendor/plugins/rspec/spec/spec/interop/test/unit/resources/spec_with_errors.rb +10 -0
- data/test/vendor/plugins/rspec/spec/spec/interop/test/unit/resources/test_case_that_fails.rb +10 -0
- data/test/vendor/plugins/rspec/spec/spec/interop/test/unit/resources/test_case_that_passes.rb +10 -0
- data/test/vendor/plugins/rspec/spec/spec/interop/test/unit/resources/test_case_with_errors.rb +10 -0
- data/test/vendor/plugins/rspec/spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb +38 -0
- data/test/vendor/plugins/rspec/spec/spec/interop/test/unit/spec_spec.rb +45 -0
- data/test/vendor/plugins/rspec/spec/spec/interop/test/unit/test_unit_spec_helper.rb +14 -0
- data/test/vendor/plugins/rspec/spec/spec/interop/test/unit/testcase_spec.rb +45 -0
- data/test/vendor/plugins/rspec/spec/spec/interop/test/unit/testsuite_adapter_spec.rb +9 -0
- data/test/vendor/plugins/rspec/spec/spec/matchers/be_close_spec.rb +39 -0
- data/test/vendor/plugins/rspec/spec/spec/matchers/be_spec.rb +248 -0
- data/test/vendor/plugins/rspec/spec/spec/matchers/change_spec.rb +329 -0
- data/test/vendor/plugins/rspec/spec/spec/matchers/description_generation_spec.rb +153 -0
- data/test/vendor/plugins/rspec/spec/spec/matchers/eql_spec.rb +28 -0
- data/test/vendor/plugins/rspec/spec/spec/matchers/equal_spec.rb +28 -0
- data/test/vendor/plugins/rspec/spec/spec/matchers/exist_spec.rb +57 -0
- data/test/vendor/plugins/rspec/spec/spec/matchers/handler_spec.rb +150 -0
- data/test/vendor/plugins/rspec/spec/spec/matchers/has_spec.rb +63 -0
- data/test/vendor/plugins/rspec/spec/spec/matchers/have_spec.rb +394 -0
- data/test/vendor/plugins/rspec/spec/spec/matchers/include_spec.rb +45 -0
- data/test/vendor/plugins/rspec/spec/spec/matchers/match_spec.rb +37 -0
- data/test/vendor/plugins/rspec/spec/spec/matchers/matcher_methods_spec.rb +78 -0
- data/test/vendor/plugins/rspec/spec/spec/matchers/mock_constraint_matchers_spec.rb +24 -0
- data/test/vendor/plugins/rspec/spec/spec/matchers/operator_matcher_spec.rb +191 -0
- data/test/vendor/plugins/rspec/spec/spec/matchers/raise_error_spec.rb +315 -0
- data/test/vendor/plugins/rspec/spec/spec/matchers/respond_to_spec.rb +54 -0
- data/test/vendor/plugins/rspec/spec/spec/matchers/satisfy_spec.rb +36 -0
- data/test/vendor/plugins/rspec/spec/spec/matchers/simple_matcher_spec.rb +93 -0
- data/test/vendor/plugins/rspec/spec/spec/matchers/throw_symbol_spec.rb +54 -0
- data/test/vendor/plugins/rspec/spec/spec/mocks/any_number_of_times_spec.rb +29 -0
- data/test/vendor/plugins/rspec/spec/spec/mocks/argument_expectation_spec.rb +23 -0
- data/test/vendor/plugins/rspec/spec/spec/mocks/at_least_spec.rb +97 -0
- data/test/vendor/plugins/rspec/spec/spec/mocks/at_most_spec.rb +93 -0
- data/test/vendor/plugins/rspec/spec/spec/mocks/bug_report_10260_spec.rb +8 -0
- data/test/vendor/plugins/rspec/spec/spec/mocks/bug_report_10263_spec.rb +24 -0
- data/test/vendor/plugins/rspec/spec/spec/mocks/bug_report_11545_spec.rb +33 -0
- data/test/vendor/plugins/rspec/spec/spec/mocks/bug_report_15719_spec.rb +30 -0
- data/test/vendor/plugins/rspec/spec/spec/mocks/bug_report_496.rb +17 -0
- data/test/vendor/plugins/rspec/spec/spec/mocks/bug_report_7611_spec.rb +19 -0
- data/test/vendor/plugins/rspec/spec/spec/mocks/bug_report_7805_spec.rb +22 -0
- data/test/vendor/plugins/rspec/spec/spec/mocks/bug_report_8165_spec.rb +31 -0
- data/test/vendor/plugins/rspec/spec/spec/mocks/bug_report_8302_spec.rb +26 -0
- data/test/vendor/plugins/rspec/spec/spec/mocks/failing_mock_argument_constraints_spec.rb +130 -0
- data/test/vendor/plugins/rspec/spec/spec/mocks/hash_including_matcher_spec.rb +32 -0
- data/test/vendor/plugins/rspec/spec/spec/mocks/mock_ordering_spec.rb +84 -0
- data/test/vendor/plugins/rspec/spec/spec/mocks/mock_space_spec.rb +54 -0
- data/test/vendor/plugins/rspec/spec/spec/mocks/mock_spec.rb +503 -0
- data/test/vendor/plugins/rspec/spec/spec/mocks/multiple_return_value_spec.rb +113 -0
- data/test/vendor/plugins/rspec/spec/spec/mocks/null_object_mock_spec.rb +54 -0
- data/test/vendor/plugins/rspec/spec/spec/mocks/once_counts_spec.rb +53 -0
- data/test/vendor/plugins/rspec/spec/spec/mocks/options_hash_spec.rb +45 -0
- data/test/vendor/plugins/rspec/spec/spec/mocks/partial_mock_spec.rb +142 -0
- data/test/vendor/plugins/rspec/spec/spec/mocks/partial_mock_using_mocks_directly_spec.rb +66 -0
- data/test/vendor/plugins/rspec/spec/spec/mocks/passing_mock_argument_constraints_spec.rb +175 -0
- data/test/vendor/plugins/rspec/spec/spec/mocks/precise_counts_spec.rb +52 -0
- data/test/vendor/plugins/rspec/spec/spec/mocks/record_messages_spec.rb +26 -0
- data/test/vendor/plugins/rspec/spec/spec/mocks/stub_spec.rb +187 -0
- data/test/vendor/plugins/rspec/spec/spec/mocks/twice_counts_spec.rb +67 -0
- data/test/vendor/plugins/rspec/spec/spec/package/bin_spec_spec.rb +14 -0
- data/test/vendor/plugins/rspec/spec/spec/runner/class_and_argument_parser_spec.rb +23 -0
- data/test/vendor/plugins/rspec/spec/spec/runner/command_line_spec.rb +140 -0
- data/test/vendor/plugins/rspec/spec/spec/runner/drb_command_line_spec.rb +99 -0
- data/test/vendor/plugins/rspec/spec/spec/runner/empty_file.txt +0 -0
- data/test/vendor/plugins/rspec/spec/spec/runner/examples.txt +2 -0
- data/test/vendor/plugins/rspec/spec/spec/runner/execution_context_spec.rb +37 -0
- data/test/vendor/plugins/rspec/spec/spec/runner/failed.txt +3 -0
- data/test/vendor/plugins/rspec/spec/spec/runner/formatter/failing_example_groups_formatter_spec.rb +45 -0
- data/test/vendor/plugins/rspec/spec/spec/runner/formatter/failing_examples_formatter_spec.rb +33 -0
- data/test/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatted-1.8.4.html +365 -0
- data/test/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatted-1.8.5-jruby.html +387 -0
- data/test/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatted-1.8.5.html +371 -0
- data/test/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatted-1.8.6-jruby.html +381 -0
- data/test/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatted-1.8.6.html +370 -0
- data/test/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb +64 -0
- data/test/vendor/plugins/rspec/spec/spec/runner/formatter/nested_text_formatter_spec.rb +333 -0
- data/test/vendor/plugins/rspec/spec/spec/runner/formatter/profile_formatter_spec.rb +65 -0
- data/test/vendor/plugins/rspec/spec/spec/runner/formatter/progress_bar_formatter_spec.rb +155 -0
- data/test/vendor/plugins/rspec/spec/spec/runner/formatter/snippet_extractor_spec.rb +18 -0
- data/test/vendor/plugins/rspec/spec/spec/runner/formatter/spec_mate_formatter_spec.rb +104 -0
- data/test/vendor/plugins/rspec/spec/spec/runner/formatter/specdoc_formatter_spec.rb +158 -0
- data/test/vendor/plugins/rspec/spec/spec/runner/formatter/story/html_formatter_spec.rb +135 -0
- data/test/vendor/plugins/rspec/spec/spec/runner/formatter/story/plain_text_formatter_spec.rb +600 -0
- data/test/vendor/plugins/rspec/spec/spec/runner/formatter/story/progress_bar_formatter_spec.rb +82 -0
- data/test/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatted-1.8.4.html +365 -0
- data/test/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatted-1.8.6.html +370 -0
- data/test/vendor/plugins/rspec/spec/spec/runner/heckle_runner_spec.rb +78 -0
- data/test/vendor/plugins/rspec/spec/spec/runner/heckler_spec.rb +13 -0
- data/test/vendor/plugins/rspec/spec/spec/runner/noisy_backtrace_tweaker_spec.rb +45 -0
- data/test/vendor/plugins/rspec/spec/spec/runner/option_parser_spec.rb +409 -0
- data/test/vendor/plugins/rspec/spec/spec/runner/options_spec.rb +450 -0
- data/test/vendor/plugins/rspec/spec/spec/runner/output_one_time_fixture.rb +7 -0
- data/test/vendor/plugins/rspec/spec/spec/runner/output_one_time_fixture_runner.rb +8 -0
- data/test/vendor/plugins/rspec/spec/spec/runner/output_one_time_spec.rb +16 -0
- data/test/vendor/plugins/rspec/spec/spec/runner/quiet_backtrace_tweaker_spec.rb +62 -0
- data/test/vendor/plugins/rspec/spec/spec/runner/reporter_spec.rb +264 -0
- data/test/vendor/plugins/rspec/spec/spec/runner/resources/a_bar.rb +0 -0
- data/test/vendor/plugins/rspec/spec/spec/runner/resources/a_foo.rb +0 -0
- data/test/vendor/plugins/rspec/spec/spec/runner/resources/a_spec.rb +1 -0
- data/test/vendor/plugins/rspec/spec/spec/runner/spec.opts +2 -0
- data/test/vendor/plugins/rspec/spec/spec/runner/spec_drb.opts +1 -0
- data/test/vendor/plugins/rspec/spec/spec/runner/spec_parser/spec_parser_fixture.rb +70 -0
- data/test/vendor/plugins/rspec/spec/spec/runner/spec_parser_spec.rb +85 -0
- data/test/vendor/plugins/rspec/spec/spec/runner/spec_spaced.opts +2 -0
- data/test/vendor/plugins/rspec/spec/spec/runner_spec.rb +11 -0
- data/test/vendor/plugins/rspec/spec/spec/spec_classes.rb +133 -0
- data/test/vendor/plugins/rspec/spec/spec/story/builders.rb +46 -0
- data/test/vendor/plugins/rspec/spec/spec/story/extensions/main_spec.rb +161 -0
- data/test/vendor/plugins/rspec/spec/spec/story/extensions_spec.rb +14 -0
- data/test/vendor/plugins/rspec/spec/spec/story/given_scenario_spec.rb +27 -0
- data/test/vendor/plugins/rspec/spec/spec/story/runner/plain_text_story_runner_spec.rb +90 -0
- data/test/vendor/plugins/rspec/spec/spec/story/runner/scenario_collector_spec.rb +27 -0
- data/test/vendor/plugins/rspec/spec/spec/story/runner/scenario_runner_spec.rb +214 -0
- data/test/vendor/plugins/rspec/spec/spec/story/runner/story_mediator_spec.rb +143 -0
- data/test/vendor/plugins/rspec/spec/spec/story/runner/story_parser_spec.rb +401 -0
- data/test/vendor/plugins/rspec/spec/spec/story/runner/story_runner_spec.rb +294 -0
- data/test/vendor/plugins/rspec/spec/spec/story/runner_spec.rb +93 -0
- data/test/vendor/plugins/rspec/spec/spec/story/scenario_spec.rb +18 -0
- data/test/vendor/plugins/rspec/spec/spec/story/step_group_spec.rb +157 -0
- data/test/vendor/plugins/rspec/spec/spec/story/step_mother_spec.rb +84 -0
- data/test/vendor/plugins/rspec/spec/spec/story/step_spec.rb +272 -0
- data/test/vendor/plugins/rspec/spec/spec/story/story_helper.rb +2 -0
- data/test/vendor/plugins/rspec/spec/spec/story/story_spec.rb +84 -0
- data/test/vendor/plugins/rspec/spec/spec/story/world_spec.rb +423 -0
- data/test/vendor/plugins/rspec/spec/spec_helper.rb +56 -0
- data/test/vendor/plugins/rspec/stories/all.rb +5 -0
- data/test/vendor/plugins/rspec/stories/configuration/before_blocks.story +21 -0
- data/test/vendor/plugins/rspec/stories/configuration/stories.rb +7 -0
- data/test/vendor/plugins/rspec/stories/example_groups/autogenerated_docstrings +45 -0
- data/test/vendor/plugins/rspec/stories/example_groups/example_group_with_should_methods +17 -0
- data/test/vendor/plugins/rspec/stories/example_groups/nested_groups +17 -0
- data/test/vendor/plugins/rspec/stories/example_groups/output +25 -0
- data/test/vendor/plugins/rspec/stories/example_groups/stories.rb +7 -0
- data/test/vendor/plugins/rspec/stories/helper.rb +6 -0
- data/test/vendor/plugins/rspec/stories/interop/examples_and_tests_together +30 -0
- data/test/vendor/plugins/rspec/stories/interop/stories.rb +7 -0
- data/test/vendor/plugins/rspec/stories/interop/test_case_with_should_methods +17 -0
- data/test/vendor/plugins/rspec/stories/mock_framework_integration/stories.rb +7 -0
- data/test/vendor/plugins/rspec/stories/mock_framework_integration/use_flexmock.story +9 -0
- data/test/vendor/plugins/rspec/stories/pending_stories/README +3 -0
- data/test/vendor/plugins/rspec/stories/resources/helpers/cmdline.rb +9 -0
- data/test/vendor/plugins/rspec/stories/resources/helpers/story_helper.rb +16 -0
- data/test/vendor/plugins/rspec/stories/resources/matchers/smart_match.rb +37 -0
- data/test/vendor/plugins/rspec/stories/resources/spec/before_blocks_example.rb +32 -0
- data/test/vendor/plugins/rspec/stories/resources/spec/example_group_with_should_methods.rb +12 -0
- data/test/vendor/plugins/rspec/stories/resources/spec/simple_spec.rb +8 -0
- data/test/vendor/plugins/rspec/stories/resources/spec/spec_with_flexmock.rb +18 -0
- data/test/vendor/plugins/rspec/stories/resources/steps/running_rspec.rb +50 -0
- data/test/vendor/plugins/rspec/stories/resources/stories/failing_story.rb +15 -0
- data/test/vendor/plugins/rspec/stories/resources/test/spec_and_test_together.rb +57 -0
- data/test/vendor/plugins/rspec/stories/resources/test/test_case_with_should_methods.rb +30 -0
- data/test/vendor/plugins/rspec/stories/stories/multiline_steps.story +23 -0
- data/test/vendor/plugins/rspec/stories/stories/steps/multiline_steps.rb +13 -0
- data/test/vendor/plugins/rspec/stories/stories/stories.rb +6 -0
- data/test/vendor/plugins/rspec/story_server/prototype/javascripts/builder.js +136 -0
- data/test/vendor/plugins/rspec/story_server/prototype/javascripts/controls.js +972 -0
- data/test/vendor/plugins/rspec/story_server/prototype/javascripts/dragdrop.js +976 -0
- data/test/vendor/plugins/rspec/story_server/prototype/javascripts/effects.js +1117 -0
- data/test/vendor/plugins/rspec/story_server/prototype/javascripts/prototype.js +4140 -0
- data/test/vendor/plugins/rspec/story_server/prototype/javascripts/rspec.js +149 -0
- data/test/vendor/plugins/rspec/story_server/prototype/javascripts/scriptaculous.js +58 -0
- data/test/vendor/plugins/rspec/story_server/prototype/javascripts/slider.js +276 -0
- data/test/vendor/plugins/rspec/story_server/prototype/javascripts/sound.js +55 -0
- data/test/vendor/plugins/rspec/story_server/prototype/javascripts/unittest.js +568 -0
- data/test/vendor/plugins/rspec/story_server/prototype/lib/server.rb +24 -0
- data/test/vendor/plugins/rspec/story_server/prototype/stories.html +176 -0
- data/test/vendor/plugins/rspec/story_server/prototype/stylesheets/rspec.css +136 -0
- data/test/vendor/plugins/rspec/story_server/prototype/stylesheets/test.css +90 -0
- metadata +715 -0
data/MIT-LICENSE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Copyright (c) 2008 Jon Stenqvist
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
4
|
+
a copy of this software and associated documentation files (the
|
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
9
|
+
the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be
|
|
12
|
+
included in all copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
= acts_as_sms
|
|
2
|
+
|
|
3
|
+
This plugin enables you to send SMS and receive delivery reports by integrating with Cellsynt's SMS gateway via a simple proprietary HTTP interface.
|
|
4
|
+
|
|
5
|
+
== DESCRIPTION:
|
|
6
|
+
|
|
7
|
+
Rails plugin for integrating with Cellsynt's SMS gateway via HTTP interface.
|
|
8
|
+
|
|
9
|
+
== SYNOPSIS:
|
|
10
|
+
|
|
11
|
+
class ShortMessage < ActiveRecord::Base
|
|
12
|
+
acts_as_sms
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
You can also pass default values for :message_type, :originator_type, :originator, :allow_concat, :message_type => 'text' to the acts_as_sms method.
|
|
16
|
+
|
|
17
|
+
class DeliveryReceipt < ActiveRecord::Base
|
|
18
|
+
belongs_to :short_message
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
sms = ShortMessage.new :destination => "0046707123123", :body => "Message to send"
|
|
22
|
+
sms.valid? # => true, the send it
|
|
23
|
+
sms.send_message # send_message will also run validation and save it.
|
|
24
|
+
|
|
25
|
+
sms.sent? # => is true if received tracking id from sms gateway.
|
|
26
|
+
|
|
27
|
+
If callback from sms gateway is enabled. you are able to track the status for of the message.
|
|
28
|
+
|
|
29
|
+
sms.delivered?
|
|
30
|
+
sms.buffered?
|
|
31
|
+
sms.failed?
|
|
32
|
+
|
|
33
|
+
== REQUIREMENTS:
|
|
34
|
+
|
|
35
|
+
httparty
|
|
36
|
+
|
|
37
|
+
== INSTALL:
|
|
38
|
+
|
|
39
|
+
Install the plugin with
|
|
40
|
+
|
|
41
|
+
script/plugin install git://github.com/jnstq/acts_as_sms.git
|
|
42
|
+
|
|
43
|
+
if httpary gem is missing run
|
|
44
|
+
|
|
45
|
+
rake gems:install
|
|
46
|
+
|
|
47
|
+
Create migrations, models and controllers
|
|
48
|
+
|
|
49
|
+
./script/generate short_message_service short_message delivery_receipt
|
|
50
|
+
|
|
51
|
+
Run the pending migrations
|
|
52
|
+
|
|
53
|
+
rake db:migrate
|
|
54
|
+
|
|
55
|
+
Open config/short_message.yml and enter your account settings for cellsynt sms service.
|
|
56
|
+
Login to http://sms.cellsynt.net, under integration set your delivery receipt url to
|
|
57
|
+
http://yourdomain.com/delivery_receipts/report.
|
|
58
|
+
|
|
59
|
+
Restart your server and browse to /short_messages, you should now be able to send sms.
|
|
60
|
+
|
|
61
|
+
== LICENSE:
|
|
62
|
+
|
|
63
|
+
(The MIT License)
|
|
64
|
+
|
|
65
|
+
Copyright (c) 2008 Jon Stenqvist
|
|
66
|
+
|
|
67
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
68
|
+
a copy of this software and associated documentation files (the
|
|
69
|
+
'Software'), to deal in the Software without restriction, including
|
|
70
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
71
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
72
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
73
|
+
the following conditions:
|
|
74
|
+
|
|
75
|
+
The above copyright notice and this permission notice shall be
|
|
76
|
+
included in all copies or substantial portions of the Software.
|
|
77
|
+
|
|
78
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
79
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
80
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
81
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
82
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
83
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
84
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/acts_as_sms.gemspec
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# ruby -e 'puts Dir["**/*"].select{|file|!File.directory?(file)}.inspect'
|
|
2
|
+
Gem::Specification.new do |s|
|
|
3
|
+
s.name = "acts_as_sms"
|
|
4
|
+
s.version = "0.1.0"
|
|
5
|
+
s.date = "2008-09-26"
|
|
6
|
+
s.summary = "Rails plugin for sending sms"
|
|
7
|
+
s.email = "jon.stenqvist@gmail.com"
|
|
8
|
+
# s.homepage = "http://github.com/schacon/grit"
|
|
9
|
+
s.description = "Rails plugin for integrating with Cellsynt's SMS gateway via HTTP interface."
|
|
10
|
+
s.has_rdoc = false
|
|
11
|
+
s.authors = ["Jon Stenqvist"]
|
|
12
|
+
s.files = ["acts_as_sms.gemspec", "init.rb", "lib/equipe/acts_as_sms.rb", "lib/equipe.rb", "MIT-LICENSE", "rails/init.rb", "rails_generators/short_message_service/lib/insert_routes.rb", "rails_generators/short_message_service/short_message_service_generator.rb", "rails_generators/short_message_service/templates/delivery_receipt.rb", "rails_generators/short_message_service/templates/delivery_receipts_controller.rb", "rails_generators/short_message_service/templates/index.html.erb", "rails_generators/short_message_service/templates/migration.rb", "rails_generators/short_message_service/templates/new.html.erb", "rails_generators/short_message_service/templates/short_message.rb", "rails_generators/short_message_service/templates/short_message.yml", "rails_generators/short_message_service/templates/short_messages_controller.rb", "rails_generators/short_message_service/USAGE", "README"]
|
|
13
|
+
s.test_files = ["test/app/controllers/application.rb", "test/app/controllers/delivery_receipts_controller.rb", "test/app/controllers/short_messages_controller.rb", "test/app/helpers/application_helper.rb", "test/app/helpers/delivery_receipts_helper.rb", "test/app/helpers/short_messages_helper.rb", "test/app/models/delivery_receipt.rb", "test/app/models/short_message.rb", "test/app/views/short_messages/index.html.erb", "test/app/views/short_messages/new.html.erb", "test/config/boot.rb", "test/config/database.yml", "test/config/environment.rb", "test/config/environments/development.rb", "test/config/environments/production.rb", "test/config/environments/test.rb", "test/config/initializers/inflections.rb", "test/config/initializers/mime_types.rb", "test/config/initializers/new_rails_defaults.rb", "test/config/routes.rb", "test/config/short_message.yml", "test/db/development.sqlite3", "test/db/migrate/20080915204910_create_short_message_and_delivery_receipt.rb", "test/db/schema.rb", "test/db/test.sqlite3", "test/lib/tasks/rspec.rake", "test/public/404.html", "test/public/422.html", "test/public/500.html", "test/public/dispatch.cgi", "test/public/dispatch.fcgi", "test/public/dispatch.rb", "test/public/favicon.ico", "test/public/images/rails.png", "test/public/index.html", "test/public/javascripts/application.js", "test/public/javascripts/controls.js", "test/public/javascripts/dragdrop.js", "test/public/javascripts/effects.js", "test/public/javascripts/prototype.js", "test/public/robots.txt", "test/Rakefile", "test/script/about", "test/script/autospec", "test/script/console", "test/script/dbconsole", "test/script/destroy", "test/script/generate", "test/script/performance/benchmarker", "test/script/performance/profiler", "test/script/performance/request", "test/script/plugin", "test/script/process/inspector", "test/script/process/reaper", "test/script/process/spawner", "test/script/runner", "test/script/server", "test/script/spec", "test/script/spec_server", "test/spec/controllers/delivery_receipts_controller_spec.rb", "test/spec/controllers/short_messages_controller_spec.rb", "test/spec/fixtures/messages.yml", "test/spec/helpers/delivery_receipts_helper_spec.rb", "test/spec/helpers/short_messages_helper_spec.rb", "test/spec/models/short_message_spec.rb", "test/spec/rcov.opts", "test/spec/spec.opts", "test/spec/spec_helper.rb", "test/spec/views/short_messages/index.html.erb_spec.rb", "test/spec/views/short_messages/new.html.erb_spec.rb", "test/stories/all.rb", "test/stories/helper.rb", "test/vendor/plugins/rspec/bin/autospec", "test/vendor/plugins/rspec/bin/spec", "test/vendor/plugins/rspec/examples/pure/autogenerated_docstrings_example.rb", "test/vendor/plugins/rspec/examples/pure/before_and_after_example.rb", "test/vendor/plugins/rspec/examples/pure/behave_as_example.rb", "test/vendor/plugins/rspec/examples/pure/custom_expectation_matchers.rb", "test/vendor/plugins/rspec/examples/pure/custom_formatter.rb", "test/vendor/plugins/rspec/examples/pure/dynamic_spec.rb", "test/vendor/plugins/rspec/examples/pure/file_accessor.rb", "test/vendor/plugins/rspec/examples/pure/file_accessor_spec.rb", "test/vendor/plugins/rspec/examples/pure/greeter_spec.rb", "test/vendor/plugins/rspec/examples/pure/helper_method_example.rb", "test/vendor/plugins/rspec/examples/pure/io_processor.rb", "test/vendor/plugins/rspec/examples/pure/io_processor_spec.rb", "test/vendor/plugins/rspec/examples/pure/legacy_spec.rb", "test/vendor/plugins/rspec/examples/pure/mocking_example.rb", "test/vendor/plugins/rspec/examples/pure/multi_threaded_behaviour_runner.rb", "test/vendor/plugins/rspec/examples/pure/nested_classes_example.rb", "test/vendor/plugins/rspec/examples/pure/partial_mock_example.rb", "test/vendor/plugins/rspec/examples/pure/pending_example.rb", "test/vendor/plugins/rspec/examples/pure/predicate_example.rb", "test/vendor/plugins/rspec/examples/pure/priority.txt", "test/vendor/plugins/rspec/examples/pure/shared_example_group_example.rb", "test/vendor/plugins/rspec/examples/pure/shared_stack_examples.rb", "test/vendor/plugins/rspec/examples/pure/spec_helper.rb", "test/vendor/plugins/rspec/examples/pure/stack.rb", "test/vendor/plugins/rspec/examples/pure/stack_spec.rb", "test/vendor/plugins/rspec/examples/pure/stack_spec_with_nested_example_groups.rb", "test/vendor/plugins/rspec/examples/pure/stubbing_example.rb", "test/vendor/plugins/rspec/examples/pure/yielding_example.rb", "test/vendor/plugins/rspec/examples/stories/adder.rb", "test/vendor/plugins/rspec/examples/stories/addition", "test/vendor/plugins/rspec/examples/stories/addition.rb", "test/vendor/plugins/rspec/examples/stories/calculator.rb", "test/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/everything.rb", "test/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/examples/examples.rb", "test/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/examples/game_behaviour.rb", "test/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/examples/grid_behaviour.rb", "test/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/CellsWithLessThanTwoNeighboursDie.story", "test/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/CellsWithMoreThanThreeNeighboursDie.story", "test/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/create_a_cell.rb", "test/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/EmptySpacesWithThreeNeighboursCreateACell.story", "test/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/helper.rb", "test/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/ICanCreateACell.story", "test/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/ICanKillACell.story", "test/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/kill_a_cell.rb", "test/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/steps.rb", "test/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/stories.rb", "test/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/stories.txt", "test/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/TheGridWraps.story", "test/vendor/plugins/rspec/examples/stories/game-of-life/life/game.rb", "test/vendor/plugins/rspec/examples/stories/game-of-life/life/grid.rb", "test/vendor/plugins/rspec/examples/stories/game-of-life/life.rb", "test/vendor/plugins/rspec/examples/stories/game-of-life/README.txt", "test/vendor/plugins/rspec/examples/stories/helper.rb", "test/vendor/plugins/rspec/examples/stories/steps/addition_steps.rb", "test/vendor/plugins/rspec/failing_examples/diffing_spec.rb", "test/vendor/plugins/rspec/failing_examples/failing_autogenerated_docstrings_example.rb", "test/vendor/plugins/rspec/failing_examples/failure_in_setup.rb", "test/vendor/plugins/rspec/failing_examples/failure_in_teardown.rb", "test/vendor/plugins/rspec/failing_examples/mocking_example.rb", "test/vendor/plugins/rspec/failing_examples/mocking_with_flexmock.rb", "test/vendor/plugins/rspec/failing_examples/mocking_with_mocha.rb", "test/vendor/plugins/rspec/failing_examples/mocking_with_rr.rb", "test/vendor/plugins/rspec/failing_examples/partial_mock_example.rb", "test/vendor/plugins/rspec/failing_examples/predicate_example.rb", "test/vendor/plugins/rspec/failing_examples/raising_example.rb", "test/vendor/plugins/rspec/failing_examples/README.txt", "test/vendor/plugins/rspec/failing_examples/spec_helper.rb", "test/vendor/plugins/rspec/failing_examples/syntax_error_example.rb", "test/vendor/plugins/rspec/failing_examples/team_spec.rb", "test/vendor/plugins/rspec/failing_examples/timeout_behaviour.rb", "test/vendor/plugins/rspec/History.txt", "test/vendor/plugins/rspec/init.rb", "test/vendor/plugins/rspec/lib/autotest/discover.rb", "test/vendor/plugins/rspec/lib/autotest/rspec.rb", "test/vendor/plugins/rspec/lib/spec/adapters/ruby_engine/mri.rb", "test/vendor/plugins/rspec/lib/spec/adapters/ruby_engine/rubinius.rb", "test/vendor/plugins/rspec/lib/spec/adapters/ruby_engine.rb", "test/vendor/plugins/rspec/lib/spec/adapters.rb", "test/vendor/plugins/rspec/lib/spec/example/configuration.rb", "test/vendor/plugins/rspec/lib/spec/example/errors.rb", "test/vendor/plugins/rspec/lib/spec/example/example_group.rb", "test/vendor/plugins/rspec/lib/spec/example/example_group_factory.rb", "test/vendor/plugins/rspec/lib/spec/example/example_group_methods.rb", "test/vendor/plugins/rspec/lib/spec/example/example_matcher.rb", "test/vendor/plugins/rspec/lib/spec/example/example_methods.rb", "test/vendor/plugins/rspec/lib/spec/example/module_inclusion_warnings.rb", "test/vendor/plugins/rspec/lib/spec/example/module_reopening_fix.rb", "test/vendor/plugins/rspec/lib/spec/example/pending.rb", "test/vendor/plugins/rspec/lib/spec/example/shared_example_group.rb", "test/vendor/plugins/rspec/lib/spec/example.rb", "test/vendor/plugins/rspec/lib/spec/expectations/differs/default.rb", "test/vendor/plugins/rspec/lib/spec/expectations/errors.rb", "test/vendor/plugins/rspec/lib/spec/expectations/extensions/object.rb", "test/vendor/plugins/rspec/lib/spec/expectations/extensions/string_and_symbol.rb", "test/vendor/plugins/rspec/lib/spec/expectations/extensions.rb", "test/vendor/plugins/rspec/lib/spec/expectations/handler.rb", "test/vendor/plugins/rspec/lib/spec/expectations.rb", "test/vendor/plugins/rspec/lib/spec/extensions/class.rb", "test/vendor/plugins/rspec/lib/spec/extensions/main.rb", "test/vendor/plugins/rspec/lib/spec/extensions/metaclass.rb", "test/vendor/plugins/rspec/lib/spec/extensions/object.rb", "test/vendor/plugins/rspec/lib/spec/extensions.rb", "test/vendor/plugins/rspec/lib/spec/interop/test/unit/autorunner.rb", "test/vendor/plugins/rspec/lib/spec/interop/test/unit/testcase.rb", "test/vendor/plugins/rspec/lib/spec/interop/test/unit/testresult.rb", "test/vendor/plugins/rspec/lib/spec/interop/test/unit/testsuite_adapter.rb", "test/vendor/plugins/rspec/lib/spec/interop/test/unit/ui/console/testrunner.rb", "test/vendor/plugins/rspec/lib/spec/interop/test.rb", "test/vendor/plugins/rspec/lib/spec/matchers/be.rb", "test/vendor/plugins/rspec/lib/spec/matchers/be_close.rb", "test/vendor/plugins/rspec/lib/spec/matchers/change.rb", "test/vendor/plugins/rspec/lib/spec/matchers/eql.rb", "test/vendor/plugins/rspec/lib/spec/matchers/equal.rb", "test/vendor/plugins/rspec/lib/spec/matchers/exist.rb", "test/vendor/plugins/rspec/lib/spec/matchers/has.rb", "test/vendor/plugins/rspec/lib/spec/matchers/have.rb", "test/vendor/plugins/rspec/lib/spec/matchers/include.rb", "test/vendor/plugins/rspec/lib/spec/matchers/match.rb", "test/vendor/plugins/rspec/lib/spec/matchers/operator_matcher.rb", "test/vendor/plugins/rspec/lib/spec/matchers/raise_error.rb", "test/vendor/plugins/rspec/lib/spec/matchers/respond_to.rb", "test/vendor/plugins/rspec/lib/spec/matchers/satisfy.rb", "test/vendor/plugins/rspec/lib/spec/matchers/simple_matcher.rb", "test/vendor/plugins/rspec/lib/spec/matchers/throw_symbol.rb", "test/vendor/plugins/rspec/lib/spec/matchers.rb", "test/vendor/plugins/rspec/lib/spec/mocks/argument_constraint_matchers.rb", "test/vendor/plugins/rspec/lib/spec/mocks/argument_expectation.rb", "test/vendor/plugins/rspec/lib/spec/mocks/error_generator.rb", "test/vendor/plugins/rspec/lib/spec/mocks/errors.rb", "test/vendor/plugins/rspec/lib/spec/mocks/extensions/object.rb", "test/vendor/plugins/rspec/lib/spec/mocks/extensions.rb", "test/vendor/plugins/rspec/lib/spec/mocks/framework.rb", "test/vendor/plugins/rspec/lib/spec/mocks/message_expectation.rb", "test/vendor/plugins/rspec/lib/spec/mocks/methods.rb", "test/vendor/plugins/rspec/lib/spec/mocks/mock.rb", "test/vendor/plugins/rspec/lib/spec/mocks/order_group.rb", "test/vendor/plugins/rspec/lib/spec/mocks/proxy.rb", "test/vendor/plugins/rspec/lib/spec/mocks/space.rb", "test/vendor/plugins/rspec/lib/spec/mocks/spec_methods.rb", "test/vendor/plugins/rspec/lib/spec/mocks.rb", "test/vendor/plugins/rspec/lib/spec/rake/spectask.rb", "test/vendor/plugins/rspec/lib/spec/rake/verify_rcov.rb", "test/vendor/plugins/rspec/lib/spec/runner/backtrace_tweaker.rb", "test/vendor/plugins/rspec/lib/spec/runner/class_and_arguments_parser.rb", "test/vendor/plugins/rspec/lib/spec/runner/command_line.rb", "test/vendor/plugins/rspec/lib/spec/runner/drb_command_line.rb", "test/vendor/plugins/rspec/lib/spec/runner/example_group_runner.rb", "test/vendor/plugins/rspec/lib/spec/runner/formatter/base_formatter.rb", "test/vendor/plugins/rspec/lib/spec/runner/formatter/base_text_formatter.rb", "test/vendor/plugins/rspec/lib/spec/runner/formatter/failing_example_groups_formatter.rb", "test/vendor/plugins/rspec/lib/spec/runner/formatter/failing_examples_formatter.rb", "test/vendor/plugins/rspec/lib/spec/runner/formatter/html_formatter.rb", "test/vendor/plugins/rspec/lib/spec/runner/formatter/nested_text_formatter.rb", "test/vendor/plugins/rspec/lib/spec/runner/formatter/profile_formatter.rb", "test/vendor/plugins/rspec/lib/spec/runner/formatter/progress_bar_formatter.rb", "test/vendor/plugins/rspec/lib/spec/runner/formatter/snippet_extractor.rb", "test/vendor/plugins/rspec/lib/spec/runner/formatter/specdoc_formatter.rb", "test/vendor/plugins/rspec/lib/spec/runner/formatter/story/html_formatter.rb", "test/vendor/plugins/rspec/lib/spec/runner/formatter/story/plain_text_formatter.rb", "test/vendor/plugins/rspec/lib/spec/runner/formatter/story/progress_bar_formatter.rb", "test/vendor/plugins/rspec/lib/spec/runner/formatter/text_mate_formatter.rb", "test/vendor/plugins/rspec/lib/spec/runner/heckle_runner.rb", "test/vendor/plugins/rspec/lib/spec/runner/heckle_runner_unsupported.rb", "test/vendor/plugins/rspec/lib/spec/runner/option_parser.rb", "test/vendor/plugins/rspec/lib/spec/runner/options.rb", "test/vendor/plugins/rspec/lib/spec/runner/reporter.rb", "test/vendor/plugins/rspec/lib/spec/runner/spec_parser.rb", "test/vendor/plugins/rspec/lib/spec/runner.rb", "test/vendor/plugins/rspec/lib/spec/story/extensions/main.rb", "test/vendor/plugins/rspec/lib/spec/story/extensions/regexp.rb", "test/vendor/plugins/rspec/lib/spec/story/extensions/string.rb", "test/vendor/plugins/rspec/lib/spec/story/extensions.rb", "test/vendor/plugins/rspec/lib/spec/story/given_scenario.rb", "test/vendor/plugins/rspec/lib/spec/story/runner/plain_text_story_runner.rb", "test/vendor/plugins/rspec/lib/spec/story/runner/scenario_collector.rb", "test/vendor/plugins/rspec/lib/spec/story/runner/scenario_runner.rb", "test/vendor/plugins/rspec/lib/spec/story/runner/story_mediator.rb", "test/vendor/plugins/rspec/lib/spec/story/runner/story_parser.rb", "test/vendor/plugins/rspec/lib/spec/story/runner/story_runner.rb", "test/vendor/plugins/rspec/lib/spec/story/runner.rb", "test/vendor/plugins/rspec/lib/spec/story/scenario.rb", "test/vendor/plugins/rspec/lib/spec/story/step.rb", "test/vendor/plugins/rspec/lib/spec/story/step_group.rb", "test/vendor/plugins/rspec/lib/spec/story/step_mother.rb", "test/vendor/plugins/rspec/lib/spec/story/story.rb", "test/vendor/plugins/rspec/lib/spec/story/world.rb", "test/vendor/plugins/rspec/lib/spec/story.rb", "test/vendor/plugins/rspec/lib/spec/version.rb", "test/vendor/plugins/rspec/lib/spec.rb", "test/vendor/plugins/rspec/Manifest.txt", "test/vendor/plugins/rspec/plugins/mock_frameworks/flexmock.rb", "test/vendor/plugins/rspec/plugins/mock_frameworks/mocha.rb", "test/vendor/plugins/rspec/plugins/mock_frameworks/rr.rb", "test/vendor/plugins/rspec/plugins/mock_frameworks/rspec.rb", "test/vendor/plugins/rspec/rake_tasks/examples.rake", "test/vendor/plugins/rspec/rake_tasks/examples_with_rcov.rake", "test/vendor/plugins/rspec/rake_tasks/failing_examples_with_html.rake", "test/vendor/plugins/rspec/rake_tasks/verify_rcov.rake", "test/vendor/plugins/rspec/Rakefile", "test/vendor/plugins/rspec/README.txt", "test/vendor/plugins/rspec/spec/autotest/discover_spec.rb", "test/vendor/plugins/rspec/spec/autotest/rspec_spec.rb", "test/vendor/plugins/rspec/spec/autotest_helper.rb", "test/vendor/plugins/rspec/spec/autotest_matchers.rb", "test/vendor/plugins/rspec/spec/README.jruby", "test/vendor/plugins/rspec/spec/rspec_suite.rb", "test/vendor/plugins/rspec/spec/ruby_forker.rb", "test/vendor/plugins/rspec/spec/spec/adapters/ruby_engine_spec.rb", "test/vendor/plugins/rspec/spec/spec/example/base_formatter_spec.rb", "test/vendor/plugins/rspec/spec/spec/example/configuration_spec.rb", "test/vendor/plugins/rspec/spec/spec/example/example_group/described_module_spec.rb", "test/vendor/plugins/rspec/spec/spec/example/example_group/warning_messages_spec.rb", "test/vendor/plugins/rspec/spec/spec/example/example_group_class_definition_spec.rb", "test/vendor/plugins/rspec/spec/spec/example/example_group_factory_spec.rb", "test/vendor/plugins/rspec/spec/spec/example/example_group_methods_spec.rb", "test/vendor/plugins/rspec/spec/spec/example/example_group_spec.rb", "test/vendor/plugins/rspec/spec/spec/example/example_matcher_spec.rb", "test/vendor/plugins/rspec/spec/spec/example/example_methods_spec.rb", "test/vendor/plugins/rspec/spec/spec/example/example_runner_spec.rb", "test/vendor/plugins/rspec/spec/spec/example/example_spec.rb", "test/vendor/plugins/rspec/spec/spec/example/nested_example_group_spec.rb", "test/vendor/plugins/rspec/spec/spec/example/pending_module_spec.rb", "test/vendor/plugins/rspec/spec/spec/example/predicate_matcher_spec.rb", "test/vendor/plugins/rspec/spec/spec/example/shared_example_group_spec.rb", "test/vendor/plugins/rspec/spec/spec/example/subclassing_example_group_spec.rb", "test/vendor/plugins/rspec/spec/spec/expectations/differs/default_spec.rb", "test/vendor/plugins/rspec/spec/spec/expectations/extensions/object_spec.rb", "test/vendor/plugins/rspec/spec/spec/expectations/fail_with_spec.rb", "test/vendor/plugins/rspec/spec/spec/extensions/main_spec.rb", "test/vendor/plugins/rspec/spec/spec/interop/test/unit/resources/spec_that_fails.rb", "test/vendor/plugins/rspec/spec/spec/interop/test/unit/resources/spec_that_passes.rb", "test/vendor/plugins/rspec/spec/spec/interop/test/unit/resources/spec_with_errors.rb", "test/vendor/plugins/rspec/spec/spec/interop/test/unit/resources/test_case_that_fails.rb", "test/vendor/plugins/rspec/spec/spec/interop/test/unit/resources/test_case_that_passes.rb", "test/vendor/plugins/rspec/spec/spec/interop/test/unit/resources/test_case_with_errors.rb", "test/vendor/plugins/rspec/spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb", "test/vendor/plugins/rspec/spec/spec/interop/test/unit/spec_spec.rb", "test/vendor/plugins/rspec/spec/spec/interop/test/unit/test_unit_spec_helper.rb", "test/vendor/plugins/rspec/spec/spec/interop/test/unit/testcase_spec.rb", "test/vendor/plugins/rspec/spec/spec/interop/test/unit/testsuite_adapter_spec.rb", "test/vendor/plugins/rspec/spec/spec/matchers/be_close_spec.rb", "test/vendor/plugins/rspec/spec/spec/matchers/be_spec.rb", "test/vendor/plugins/rspec/spec/spec/matchers/change_spec.rb", "test/vendor/plugins/rspec/spec/spec/matchers/description_generation_spec.rb", "test/vendor/plugins/rspec/spec/spec/matchers/eql_spec.rb", "test/vendor/plugins/rspec/spec/spec/matchers/equal_spec.rb", "test/vendor/plugins/rspec/spec/spec/matchers/exist_spec.rb", "test/vendor/plugins/rspec/spec/spec/matchers/handler_spec.rb", "test/vendor/plugins/rspec/spec/spec/matchers/has_spec.rb", "test/vendor/plugins/rspec/spec/spec/matchers/have_spec.rb", "test/vendor/plugins/rspec/spec/spec/matchers/include_spec.rb", "test/vendor/plugins/rspec/spec/spec/matchers/match_spec.rb", "test/vendor/plugins/rspec/spec/spec/matchers/matcher_methods_spec.rb", "test/vendor/plugins/rspec/spec/spec/matchers/mock_constraint_matchers_spec.rb", "test/vendor/plugins/rspec/spec/spec/matchers/operator_matcher_spec.rb", "test/vendor/plugins/rspec/spec/spec/matchers/raise_error_spec.rb", "test/vendor/plugins/rspec/spec/spec/matchers/respond_to_spec.rb", "test/vendor/plugins/rspec/spec/spec/matchers/satisfy_spec.rb", "test/vendor/plugins/rspec/spec/spec/matchers/simple_matcher_spec.rb", "test/vendor/plugins/rspec/spec/spec/matchers/throw_symbol_spec.rb", "test/vendor/plugins/rspec/spec/spec/mocks/any_number_of_times_spec.rb", "test/vendor/plugins/rspec/spec/spec/mocks/argument_expectation_spec.rb", "test/vendor/plugins/rspec/spec/spec/mocks/at_least_spec.rb", "test/vendor/plugins/rspec/spec/spec/mocks/at_most_spec.rb", "test/vendor/plugins/rspec/spec/spec/mocks/bug_report_10260_spec.rb", "test/vendor/plugins/rspec/spec/spec/mocks/bug_report_10263_spec.rb", "test/vendor/plugins/rspec/spec/spec/mocks/bug_report_11545_spec.rb", "test/vendor/plugins/rspec/spec/spec/mocks/bug_report_15719_spec.rb", "test/vendor/plugins/rspec/spec/spec/mocks/bug_report_496.rb", "test/vendor/plugins/rspec/spec/spec/mocks/bug_report_7611_spec.rb", "test/vendor/plugins/rspec/spec/spec/mocks/bug_report_7805_spec.rb", "test/vendor/plugins/rspec/spec/spec/mocks/bug_report_8165_spec.rb", "test/vendor/plugins/rspec/spec/spec/mocks/bug_report_8302_spec.rb", "test/vendor/plugins/rspec/spec/spec/mocks/failing_mock_argument_constraints_spec.rb", "test/vendor/plugins/rspec/spec/spec/mocks/hash_including_matcher_spec.rb", "test/vendor/plugins/rspec/spec/spec/mocks/mock_ordering_spec.rb", "test/vendor/plugins/rspec/spec/spec/mocks/mock_space_spec.rb", "test/vendor/plugins/rspec/spec/spec/mocks/mock_spec.rb", "test/vendor/plugins/rspec/spec/spec/mocks/multiple_return_value_spec.rb", "test/vendor/plugins/rspec/spec/spec/mocks/null_object_mock_spec.rb", "test/vendor/plugins/rspec/spec/spec/mocks/once_counts_spec.rb", "test/vendor/plugins/rspec/spec/spec/mocks/options_hash_spec.rb", "test/vendor/plugins/rspec/spec/spec/mocks/partial_mock_spec.rb", "test/vendor/plugins/rspec/spec/spec/mocks/partial_mock_using_mocks_directly_spec.rb", "test/vendor/plugins/rspec/spec/spec/mocks/passing_mock_argument_constraints_spec.rb", "test/vendor/plugins/rspec/spec/spec/mocks/precise_counts_spec.rb", "test/vendor/plugins/rspec/spec/spec/mocks/record_messages_spec.rb", "test/vendor/plugins/rspec/spec/spec/mocks/stub_spec.rb", "test/vendor/plugins/rspec/spec/spec/mocks/twice_counts_spec.rb", "test/vendor/plugins/rspec/spec/spec/package/bin_spec_spec.rb", "test/vendor/plugins/rspec/spec/spec/runner/class_and_argument_parser_spec.rb", "test/vendor/plugins/rspec/spec/spec/runner/command_line_spec.rb", "test/vendor/plugins/rspec/spec/spec/runner/drb_command_line_spec.rb", "test/vendor/plugins/rspec/spec/spec/runner/empty_file.txt", "test/vendor/plugins/rspec/spec/spec/runner/examples.txt", "test/vendor/plugins/rspec/spec/spec/runner/execution_context_spec.rb", "test/vendor/plugins/rspec/spec/spec/runner/failed.txt", "test/vendor/plugins/rspec/spec/spec/runner/formatter/failing_example_groups_formatter_spec.rb", "test/vendor/plugins/rspec/spec/spec/runner/formatter/failing_examples_formatter_spec.rb", "test/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatted-1.8.4.html", "test/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatted-1.8.5-jruby.html", "test/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatted-1.8.5.html", "test/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatted-1.8.6-jruby.html", "test/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatted-1.8.6.html", "test/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb", "test/vendor/plugins/rspec/spec/spec/runner/formatter/nested_text_formatter_spec.rb", "test/vendor/plugins/rspec/spec/spec/runner/formatter/profile_formatter_spec.rb", "test/vendor/plugins/rspec/spec/spec/runner/formatter/progress_bar_formatter_spec.rb", "test/vendor/plugins/rspec/spec/spec/runner/formatter/snippet_extractor_spec.rb", "test/vendor/plugins/rspec/spec/spec/runner/formatter/spec_mate_formatter_spec.rb", "test/vendor/plugins/rspec/spec/spec/runner/formatter/specdoc_formatter_spec.rb", "test/vendor/plugins/rspec/spec/spec/runner/formatter/story/html_formatter_spec.rb", "test/vendor/plugins/rspec/spec/spec/runner/formatter/story/plain_text_formatter_spec.rb", "test/vendor/plugins/rspec/spec/spec/runner/formatter/story/progress_bar_formatter_spec.rb", "test/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatted-1.8.4.html", "test/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatted-1.8.6.html", "test/vendor/plugins/rspec/spec/spec/runner/heckle_runner_spec.rb", "test/vendor/plugins/rspec/spec/spec/runner/heckler_spec.rb", "test/vendor/plugins/rspec/spec/spec/runner/noisy_backtrace_tweaker_spec.rb", "test/vendor/plugins/rspec/spec/spec/runner/option_parser_spec.rb", "test/vendor/plugins/rspec/spec/spec/runner/options_spec.rb", "test/vendor/plugins/rspec/spec/spec/runner/output_one_time_fixture.rb", "test/vendor/plugins/rspec/spec/spec/runner/output_one_time_fixture_runner.rb", "test/vendor/plugins/rspec/spec/spec/runner/output_one_time_spec.rb", "test/vendor/plugins/rspec/spec/spec/runner/quiet_backtrace_tweaker_spec.rb", "test/vendor/plugins/rspec/spec/spec/runner/reporter_spec.rb", "test/vendor/plugins/rspec/spec/spec/runner/resources/a_bar.rb", "test/vendor/plugins/rspec/spec/spec/runner/resources/a_foo.rb", "test/vendor/plugins/rspec/spec/spec/runner/resources/a_spec.rb", "test/vendor/plugins/rspec/spec/spec/runner/spec.opts", "test/vendor/plugins/rspec/spec/spec/runner/spec_drb.opts", "test/vendor/plugins/rspec/spec/spec/runner/spec_parser/spec_parser_fixture.rb", "test/vendor/plugins/rspec/spec/spec/runner/spec_parser_spec.rb", "test/vendor/plugins/rspec/spec/spec/runner/spec_spaced.opts", "test/vendor/plugins/rspec/spec/spec/runner_spec.rb", "test/vendor/plugins/rspec/spec/spec/spec_classes.rb", "test/vendor/plugins/rspec/spec/spec/story/builders.rb", "test/vendor/plugins/rspec/spec/spec/story/extensions/main_spec.rb", "test/vendor/plugins/rspec/spec/spec/story/extensions_spec.rb", "test/vendor/plugins/rspec/spec/spec/story/given_scenario_spec.rb", "test/vendor/plugins/rspec/spec/spec/story/runner/plain_text_story_runner_spec.rb", "test/vendor/plugins/rspec/spec/spec/story/runner/scenario_collector_spec.rb", "test/vendor/plugins/rspec/spec/spec/story/runner/scenario_runner_spec.rb", "test/vendor/plugins/rspec/spec/spec/story/runner/story_mediator_spec.rb", "test/vendor/plugins/rspec/spec/spec/story/runner/story_parser_spec.rb", "test/vendor/plugins/rspec/spec/spec/story/runner/story_runner_spec.rb", "test/vendor/plugins/rspec/spec/spec/story/runner_spec.rb", "test/vendor/plugins/rspec/spec/spec/story/scenario_spec.rb", "test/vendor/plugins/rspec/spec/spec/story/step_group_spec.rb", "test/vendor/plugins/rspec/spec/spec/story/step_mother_spec.rb", "test/vendor/plugins/rspec/spec/spec/story/step_spec.rb", "test/vendor/plugins/rspec/spec/spec/story/story_helper.rb", "test/vendor/plugins/rspec/spec/spec/story/story_spec.rb", "test/vendor/plugins/rspec/spec/spec/story/world_spec.rb", "test/vendor/plugins/rspec/spec/spec.opts", "test/vendor/plugins/rspec/spec/spec_helper.rb", "test/vendor/plugins/rspec/stories/all.rb", "test/vendor/plugins/rspec/stories/configuration/before_blocks.story", "test/vendor/plugins/rspec/stories/configuration/stories.rb", "test/vendor/plugins/rspec/stories/example_groups/autogenerated_docstrings", "test/vendor/plugins/rspec/stories/example_groups/example_group_with_should_methods", "test/vendor/plugins/rspec/stories/example_groups/nested_groups", "test/vendor/plugins/rspec/stories/example_groups/output", "test/vendor/plugins/rspec/stories/example_groups/stories.rb", "test/vendor/plugins/rspec/stories/helper.rb", "test/vendor/plugins/rspec/stories/interop/examples_and_tests_together", "test/vendor/plugins/rspec/stories/interop/stories.rb", "test/vendor/plugins/rspec/stories/interop/test_case_with_should_methods", "test/vendor/plugins/rspec/stories/mock_framework_integration/stories.rb", "test/vendor/plugins/rspec/stories/mock_framework_integration/use_flexmock.story", "test/vendor/plugins/rspec/stories/pending_stories/README", "test/vendor/plugins/rspec/stories/resources/helpers/cmdline.rb", "test/vendor/plugins/rspec/stories/resources/helpers/story_helper.rb", "test/vendor/plugins/rspec/stories/resources/matchers/smart_match.rb", "test/vendor/plugins/rspec/stories/resources/spec/before_blocks_example.rb", "test/vendor/plugins/rspec/stories/resources/spec/example_group_with_should_methods.rb", "test/vendor/plugins/rspec/stories/resources/spec/simple_spec.rb", "test/vendor/plugins/rspec/stories/resources/spec/spec_with_flexmock.rb", "test/vendor/plugins/rspec/stories/resources/steps/running_rspec.rb", "test/vendor/plugins/rspec/stories/resources/stories/failing_story.rb", "test/vendor/plugins/rspec/stories/resources/test/spec_and_test_together.rb", "test/vendor/plugins/rspec/stories/resources/test/test_case_with_should_methods.rb", "test/vendor/plugins/rspec/stories/stories/multiline_steps.story", "test/vendor/plugins/rspec/stories/stories/steps/multiline_steps.rb", "test/vendor/plugins/rspec/stories/stories/stories.rb", "test/vendor/plugins/rspec/story_server/prototype/javascripts/builder.js", "test/vendor/plugins/rspec/story_server/prototype/javascripts/controls.js", "test/vendor/plugins/rspec/story_server/prototype/javascripts/dragdrop.js", "test/vendor/plugins/rspec/story_server/prototype/javascripts/effects.js", "test/vendor/plugins/rspec/story_server/prototype/javascripts/prototype.js", "test/vendor/plugins/rspec/story_server/prototype/javascripts/rspec.js", "test/vendor/plugins/rspec/story_server/prototype/javascripts/scriptaculous.js", "test/vendor/plugins/rspec/story_server/prototype/javascripts/slider.js", "test/vendor/plugins/rspec/story_server/prototype/javascripts/sound.js", "test/vendor/plugins/rspec/story_server/prototype/javascripts/unittest.js", "test/vendor/plugins/rspec/story_server/prototype/lib/server.rb", "test/vendor/plugins/rspec/story_server/prototype/stories.html", "test/vendor/plugins/rspec/story_server/prototype/stylesheets/rspec.css", "test/vendor/plugins/rspec/story_server/prototype/stylesheets/test.css", "test/vendor/plugins/rspec/TODO", "test/vendor/plugins/rspec-on-rails-matchers/CHANGELOG", "test/vendor/plugins/rspec-on-rails-matchers/init.rb", "test/vendor/plugins/rspec-on-rails-matchers/lib/spec/rails/matchers/associations.rb", "test/vendor/plugins/rspec-on-rails-matchers/lib/spec/rails/matchers/observers.rb", "test/vendor/plugins/rspec-on-rails-matchers/lib/spec/rails/matchers/validations.rb", "test/vendor/plugins/rspec-on-rails-matchers/lib/spec/rails/matchers/views.rb", "test/vendor/plugins/rspec-on-rails-matchers/MIT-LICENSE", "test/vendor/plugins/rspec-on-rails-matchers/README", "test/vendor/plugins/rspec-on-rails-matchers/TODO", "test/vendor/plugins/rspec-rails/generators/rspec/CHANGES", "test/vendor/plugins/rspec-rails/generators/rspec/rspec_generator.rb", "test/vendor/plugins/rspec-rails/generators/rspec/templates/all_stories.rb", "test/vendor/plugins/rspec-rails/generators/rspec/templates/previous_failures.txt", "test/vendor/plugins/rspec-rails/generators/rspec/templates/rcov.opts", "test/vendor/plugins/rspec-rails/generators/rspec/templates/rspec.rake", "test/vendor/plugins/rspec-rails/generators/rspec/templates/script/autospec", "test/vendor/plugins/rspec-rails/generators/rspec/templates/script/spec", "test/vendor/plugins/rspec-rails/generators/rspec/templates/script/spec_server", "test/vendor/plugins/rspec-rails/generators/rspec/templates/spec.opts", "test/vendor/plugins/rspec-rails/generators/rspec/templates/spec_helper.rb", "test/vendor/plugins/rspec-rails/generators/rspec/templates/stories_helper.rb", "test/vendor/plugins/rspec-rails/generators/rspec_controller/rspec_controller_generator.rb", "test/vendor/plugins/rspec-rails/generators/rspec_controller/templates/controller_spec.rb", "test/vendor/plugins/rspec-rails/generators/rspec_controller/templates/helper_spec.rb", "test/vendor/plugins/rspec-rails/generators/rspec_controller/templates/view_spec.rb", "test/vendor/plugins/rspec-rails/generators/rspec_controller/USAGE", "test/vendor/plugins/rspec-rails/generators/rspec_default_values.rb", "test/vendor/plugins/rspec-rails/generators/rspec_model/rspec_model_generator.rb", "test/vendor/plugins/rspec-rails/generators/rspec_model/templates/model_spec.rb", "test/vendor/plugins/rspec-rails/generators/rspec_model/USAGE", "test/vendor/plugins/rspec-rails/generators/rspec_scaffold/rspec_scaffold_generator.rb", "test/vendor/plugins/rspec-rails/generators/rspec_scaffold/templates/controller_spec.rb", "test/vendor/plugins/rspec-rails/generators/rspec_scaffold/templates/edit_erb_spec.rb", "test/vendor/plugins/rspec-rails/generators/rspec_scaffold/templates/helper_spec.rb", "test/vendor/plugins/rspec-rails/generators/rspec_scaffold/templates/index_erb_spec.rb", "test/vendor/plugins/rspec-rails/generators/rspec_scaffold/templates/new_erb_spec.rb", "test/vendor/plugins/rspec-rails/generators/rspec_scaffold/templates/routing_spec.rb", "test/vendor/plugins/rspec-rails/generators/rspec_scaffold/templates/show_erb_spec.rb", "test/vendor/plugins/rspec-rails/History.txt", "test/vendor/plugins/rspec-rails/init.rb", "test/vendor/plugins/rspec-rails/lib/autotest/discover.rb", "test/vendor/plugins/rspec-rails/lib/autotest/rails_rspec.rb", "test/vendor/plugins/rspec-rails/lib/spec/rails/example/assigns_hash_proxy.rb", "test/vendor/plugins/rspec-rails/lib/spec/rails/example/controller_example_group.rb", "test/vendor/plugins/rspec-rails/lib/spec/rails/example/cookies_proxy.rb", "test/vendor/plugins/rspec-rails/lib/spec/rails/example/functional_example_group.rb", "test/vendor/plugins/rspec-rails/lib/spec/rails/example/helper_example_group.rb", "test/vendor/plugins/rspec-rails/lib/spec/rails/example/model_example_group.rb", "test/vendor/plugins/rspec-rails/lib/spec/rails/example/rails_example_group.rb", "test/vendor/plugins/rspec-rails/lib/spec/rails/example/render_observer.rb", "test/vendor/plugins/rspec-rails/lib/spec/rails/example/view_example_group.rb", "test/vendor/plugins/rspec-rails/lib/spec/rails/example.rb", "test/vendor/plugins/rspec-rails/lib/spec/rails/extensions/action_controller/base.rb", "test/vendor/plugins/rspec-rails/lib/spec/rails/extensions/action_controller/rescue.rb", "test/vendor/plugins/rspec-rails/lib/spec/rails/extensions/action_controller/test_response.rb", "test/vendor/plugins/rspec-rails/lib/spec/rails/extensions/action_view/base.rb", "test/vendor/plugins/rspec-rails/lib/spec/rails/extensions/active_record/base.rb", "test/vendor/plugins/rspec-rails/lib/spec/rails/extensions/object.rb", "test/vendor/plugins/rspec-rails/lib/spec/rails/extensions/spec/example/configuration.rb", "test/vendor/plugins/rspec-rails/lib/spec/rails/extensions/spec/matchers/have.rb", "test/vendor/plugins/rspec-rails/lib/spec/rails/extensions.rb", "test/vendor/plugins/rspec-rails/lib/spec/rails/interop/testcase.rb", "test/vendor/plugins/rspec-rails/lib/spec/rails/matchers/assert_select.rb", "test/vendor/plugins/rspec-rails/lib/spec/rails/matchers/have_text.rb", "test/vendor/plugins/rspec-rails/lib/spec/rails/matchers/include_text.rb", "test/vendor/plugins/rspec-rails/lib/spec/rails/matchers/redirect_to.rb", "test/vendor/plugins/rspec-rails/lib/spec/rails/matchers/render_template.rb", "test/vendor/plugins/rspec-rails/lib/spec/rails/matchers.rb", "test/vendor/plugins/rspec-rails/lib/spec/rails/mocks.rb", "test/vendor/plugins/rspec-rails/lib/spec/rails/story_adapter.rb", "test/vendor/plugins/rspec-rails/lib/spec/rails/version.rb", "test/vendor/plugins/rspec-rails/lib/spec/rails.rb", "test/vendor/plugins/rspec-rails/Manifest.txt", "test/vendor/plugins/rspec-rails/Rakefile", "test/vendor/plugins/rspec-rails/README.txt", "test/vendor/plugins/rspec-rails/spec/rails/autotest/mappings_spec.rb", "test/vendor/plugins/rspec-rails/spec/rails/example/assigns_hash_proxy_spec.rb", "test/vendor/plugins/rspec-rails/spec/rails/example/configuration_spec.rb", "test/vendor/plugins/rspec-rails/spec/rails/example/controller_isolation_spec.rb", "test/vendor/plugins/rspec-rails/spec/rails/example/controller_spec_spec.rb", "test/vendor/plugins/rspec-rails/spec/rails/example/cookies_proxy_spec.rb", "test/vendor/plugins/rspec-rails/spec/rails/example/example_group_factory_spec.rb", "test/vendor/plugins/rspec-rails/spec/rails/example/helper_spec_spec.rb", "test/vendor/plugins/rspec-rails/spec/rails/example/model_spec_spec.rb", "test/vendor/plugins/rspec-rails/spec/rails/example/shared_behaviour_spec.rb", "test/vendor/plugins/rspec-rails/spec/rails/example/test_unit_assertion_accessibility_spec.rb", "test/vendor/plugins/rspec-rails/spec/rails/example/view_spec_spec.rb", "test/vendor/plugins/rspec-rails/spec/rails/extensions/action_controller_rescue_action_spec.rb", "test/vendor/plugins/rspec-rails/spec/rails/extensions/action_view_base_spec.rb", "test/vendor/plugins/rspec-rails/spec/rails/extensions/active_record_spec.rb", "test/vendor/plugins/rspec-rails/spec/rails/interop/testcase_spec.rb", "test/vendor/plugins/rspec-rails/spec/rails/matchers/assert_select_spec.rb", "test/vendor/plugins/rspec-rails/spec/rails/matchers/description_generation_spec.rb", "test/vendor/plugins/rspec-rails/spec/rails/matchers/errors_on_spec.rb", "test/vendor/plugins/rspec-rails/spec/rails/matchers/have_text_spec.rb", "test/vendor/plugins/rspec-rails/spec/rails/matchers/include_text_spec.rb", "test/vendor/plugins/rspec-rails/spec/rails/matchers/redirect_to_spec.rb", "test/vendor/plugins/rspec-rails/spec/rails/matchers/render_template_spec.rb", "test/vendor/plugins/rspec-rails/spec/rails/mocks/ar_classes.rb", "test/vendor/plugins/rspec-rails/spec/rails/mocks/mock_model_spec.rb", "test/vendor/plugins/rspec-rails/spec/rails/mocks/stub_model_spec.rb", "test/vendor/plugins/rspec-rails/spec/rails/sample_modified_fixture.rb", "test/vendor/plugins/rspec-rails/spec/rails/sample_spec.rb", "test/vendor/plugins/rspec-rails/spec/rails/spec_server_spec.rb", "test/vendor/plugins/rspec-rails/spec/rails/spec_spec.rb", "test/vendor/plugins/rspec-rails/spec/rails_suite.rb", "test/vendor/plugins/rspec-rails/spec/spec_helper.rb", "test/vendor/plugins/rspec-rails/spec_resources/controllers/action_view_base_spec_controller.rb", "test/vendor/plugins/rspec-rails/spec_resources/controllers/controller_spec_controller.rb", "test/vendor/plugins/rspec-rails/spec_resources/controllers/redirect_spec_controller.rb", "test/vendor/plugins/rspec-rails/spec_resources/controllers/render_spec_controller.rb", "test/vendor/plugins/rspec-rails/spec_resources/controllers/rjs_spec_controller.rb", "test/vendor/plugins/rspec-rails/spec_resources/helpers/explicit_helper.rb", "test/vendor/plugins/rspec-rails/spec_resources/helpers/more_explicit_helper.rb", "test/vendor/plugins/rspec-rails/spec_resources/helpers/plugin_application_helper.rb", "test/vendor/plugins/rspec-rails/spec_resources/helpers/view_spec_helper.rb", "test/vendor/plugins/rspec-rails/spec_resources/views/controller_spec/_partial.rhtml", "test/vendor/plugins/rspec-rails/spec_resources/views/controller_spec/action_setting_flash_after_session_reset.rhtml", "test/vendor/plugins/rspec-rails/spec_resources/views/controller_spec/action_setting_flash_before_session_reset.rhtml", "test/vendor/plugins/rspec-rails/spec_resources/views/controller_spec/action_setting_the_assigns_hash.rhtml", "test/vendor/plugins/rspec-rails/spec_resources/views/controller_spec/action_with_errors_in_template.rhtml", "test/vendor/plugins/rspec-rails/spec_resources/views/controller_spec/action_with_template.rhtml", "test/vendor/plugins/rspec-rails/spec_resources/views/layouts/application.rhtml", "test/vendor/plugins/rspec-rails/spec_resources/views/layouts/simple.rhtml", "test/vendor/plugins/rspec-rails/spec_resources/views/objects/_object.html.erb", "test/vendor/plugins/rspec-rails/spec_resources/views/render_spec/_a_partial.rhtml", "test/vendor/plugins/rspec-rails/spec_resources/views/render_spec/action_with_alternate_layout.rhtml", "test/vendor/plugins/rspec-rails/spec_resources/views/render_spec/some_action.js.rjs", "test/vendor/plugins/rspec-rails/spec_resources/views/render_spec/some_action.rhtml", "test/vendor/plugins/rspec-rails/spec_resources/views/render_spec/some_action.rjs", "test/vendor/plugins/rspec-rails/spec_resources/views/rjs_spec/_replacement_partial.rhtml", "test/vendor/plugins/rspec-rails/spec_resources/views/rjs_spec/hide_div.rjs", "test/vendor/plugins/rspec-rails/spec_resources/views/rjs_spec/hide_page_element.rjs", "test/vendor/plugins/rspec-rails/spec_resources/views/rjs_spec/insert_html.rjs", "test/vendor/plugins/rspec-rails/spec_resources/views/rjs_spec/replace.rjs", "test/vendor/plugins/rspec-rails/spec_resources/views/rjs_spec/replace_html.rjs", "test/vendor/plugins/rspec-rails/spec_resources/views/rjs_spec/replace_html_with_partial.rjs", "test/vendor/plugins/rspec-rails/spec_resources/views/rjs_spec/visual_effect.rjs", "test/vendor/plugins/rspec-rails/spec_resources/views/rjs_spec/visual_toggle_effect.rjs", "test/vendor/plugins/rspec-rails/spec_resources/views/tag_spec/no_tags.rhtml", "test/vendor/plugins/rspec-rails/spec_resources/views/tag_spec/single_div_with_no_attributes.rhtml", "test/vendor/plugins/rspec-rails/spec_resources/views/tag_spec/single_div_with_one_attribute.rhtml", "test/vendor/plugins/rspec-rails/spec_resources/views/view_spec/_partial.rhtml", "test/vendor/plugins/rspec-rails/spec_resources/views/view_spec/_partial_used_twice.rhtml", "test/vendor/plugins/rspec-rails/spec_resources/views/view_spec/_partial_with_local_variable.rhtml", "test/vendor/plugins/rspec-rails/spec_resources/views/view_spec/_partial_with_sub_partial.rhtml", "test/vendor/plugins/rspec-rails/spec_resources/views/view_spec/_spacer.rhtml", "test/vendor/plugins/rspec-rails/spec_resources/views/view_spec/accessor.rhtml", "test/vendor/plugins/rspec-rails/spec_resources/views/view_spec/block_helper.rhtml", "test/vendor/plugins/rspec-rails/spec_resources/views/view_spec/entry_form.rhtml", "test/vendor/plugins/rspec-rails/spec_resources/views/view_spec/explicit_helper.rhtml", "test/vendor/plugins/rspec-rails/spec_resources/views/view_spec/foo/show.rhtml", "test/vendor/plugins/rspec-rails/spec_resources/views/view_spec/implicit_helper.rhtml", "test/vendor/plugins/rspec-rails/spec_resources/views/view_spec/multiple_helpers.rhtml", "test/vendor/plugins/rspec-rails/spec_resources/views/view_spec/template_with_partial.rhtml", "test/vendor/plugins/rspec-rails/spec_resources/views/view_spec/template_with_partial_using_collection.rhtml", "test/vendor/plugins/rspec-rails/spec_resources/views/view_spec/template_with_partial_with_array.rhtml", "test/vendor/plugins/rspec-rails/stories/all.rb", "test/vendor/plugins/rspec-rails/stories/configuration/stories.rb", "test/vendor/plugins/rspec-rails/stories/helper.rb", "test/vendor/plugins/rspec-rails/stories/steps/people.rb", "test/vendor/plugins/rspec-rails/stories/transactions_should_rollback", "test/vendor/plugins/rspec-rails/stories/transactions_should_rollback.rb", "test/vendor/plugins/rspec-rails/UPGRADE"]
|
|
14
|
+
#s.rdoc_options = ["--main", "README"]
|
|
15
|
+
# s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.txt"]
|
|
16
|
+
s.add_dependency("httparty", ["> 0.0.0"])
|
|
17
|
+
end
|
|
18
|
+
|
data/init.rb
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require File.dirname(__FILE__) + '/rails/init'
|
data/lib/equipe.rb
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require 'equipe/acts_as_sms'
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
require "yaml"
|
|
2
|
+
require "httparty"
|
|
3
|
+
|
|
4
|
+
module Equipe
|
|
5
|
+
module ActsAsSms
|
|
6
|
+
FIELDS_WITH_DEFAULT_VALUES = [:message_type, :originator_type, :originator]
|
|
7
|
+
def self.included(base)
|
|
8
|
+
base.extend ActMethods
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
module ActMethods
|
|
12
|
+
def acts_as_sms(options = {})
|
|
13
|
+
options.reverse_merge! :allow_concat => 6, :message_type => 'text', :originator_type => 'alpha', :delivery_receipt_class_name => "DeliveryReceipt"
|
|
14
|
+
unless included_modules.include?(Equipe::ActsAsSms::InstanceMethods)
|
|
15
|
+
class_inheritable_hash :acts_as_sms_options
|
|
16
|
+
self.acts_as_sms_options = {}
|
|
17
|
+
extend ClassMethods
|
|
18
|
+
include InstanceMethods
|
|
19
|
+
include HTTParty
|
|
20
|
+
class_eval do
|
|
21
|
+
validation_for_sms_message
|
|
22
|
+
has_many :delivery_receipts, :class_name => options[:delivery_receipt_class_name]
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
acts_as_sms_options.update(options)
|
|
26
|
+
end
|
|
27
|
+
private
|
|
28
|
+
def validation_for_sms_message
|
|
29
|
+
validates_inclusion_of :originator_type, :in => %w[numeric shortcode alpha], :allow_blank => false, :allow_nil => false
|
|
30
|
+
validates_length_of :originator, :within => 1..15, :if => Proc.new{|sms| sms.originator_type_is_numeric? || sms.originator_type_is_shortcode?}
|
|
31
|
+
validates_format_of :originator, :with => /^[^00]\d+$/, :if => :originator_type_is_numeric?
|
|
32
|
+
validates_format_of :originator, :with => /^[a-zA-Z0-9]{1,11}$/, :if => :originator_type_is_alpha?
|
|
33
|
+
validates_format_of :destination, :with => /^[00]{2}[^0]+\d+$/
|
|
34
|
+
validates_presence_of :body
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
module ClassMethods
|
|
39
|
+
def sms_configuration
|
|
40
|
+
filename = "#{Rails.root}/config/short_message.yml"
|
|
41
|
+
fail "Configuration file not found in config/short_message.yml" unless File.exist?(filename)
|
|
42
|
+
@sms_configuration ||= File.open(filename) { |file| YAML.load(file)[Rails.env] }
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
module InstanceMethods
|
|
47
|
+
|
|
48
|
+
%w[numeric shortcode alpha].each do |ot|
|
|
49
|
+
define_method("originator_type_is_#{ot}?") do
|
|
50
|
+
originator_type.to_s == ot
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
def sent?
|
|
55
|
+
!delivery_receipts.empty?
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
def delivered?
|
|
59
|
+
delivery_receipts.all? {|report| report.status == 'delivered' }
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
def buffered?
|
|
63
|
+
delivery_receipts.any? {|report| report.status == 'buffered' }
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
def failed?
|
|
67
|
+
delivery_receipts.any? {|report| report.status == 'failed' }
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
def send_message
|
|
71
|
+
if save
|
|
72
|
+
response = self.class.post(send_sms_url, {:query => extract_options_for_sms})
|
|
73
|
+
if response =~ /^(OK|Error):\s{1}(.*)$/
|
|
74
|
+
case :"#{$1.downcase}"
|
|
75
|
+
when :ok
|
|
76
|
+
save_tracking_ids($2.split(/,/))
|
|
77
|
+
when :error
|
|
78
|
+
fail "Error message from gateway: #{$2}"
|
|
79
|
+
end
|
|
80
|
+
else
|
|
81
|
+
fail "Unknown response from gateway: #{response}"
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
def after_initialize
|
|
87
|
+
Equipe::ActsAsSms::FIELDS_WITH_DEFAULT_VALUES.each do |key|
|
|
88
|
+
send(:"#{key}=", acts_as_sms_options[key]) if send(key).nil? && acts_as_sms_options.has_key?(key)
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
def max_length
|
|
93
|
+
acts_as_sms_options[:allow_concat] == 1 ? 160 : 153 * 6
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
protected
|
|
97
|
+
|
|
98
|
+
def validate
|
|
99
|
+
errors.add(:body, "too long") if body.to_s.length > max_length
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
private
|
|
103
|
+
|
|
104
|
+
def save_tracking_ids(*tracking_ids)
|
|
105
|
+
tracking_ids.each do |tracking_id|
|
|
106
|
+
delivery_receipts.create!(:status => 'sent', :tracking_id => tracking_id)
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
def send_sms_url
|
|
111
|
+
self.class.sms_configuration["sms_url"]
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
def extract_options_for_sms
|
|
115
|
+
{
|
|
116
|
+
:username => self.class.sms_configuration["username"],
|
|
117
|
+
:password => self.class.sms_configuration["password"],
|
|
118
|
+
:destination => destination,
|
|
119
|
+
:text => body,
|
|
120
|
+
:originatortype => originator_type,
|
|
121
|
+
:originator => originator,
|
|
122
|
+
:type => message_type,
|
|
123
|
+
:allowconcat => acts_as_sms_options[:allow_concat]
|
|
124
|
+
}
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
end
|
|
130
|
+
end
|
data/rails/init.rb
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
Description:
|
|
2
|
+
Will stub out models and controllers needed for short message service. The first args is the model name for the message. The second is the model name for delivery receipt. Controller name will be the pluralized version of the given names. I recommend to use the default names short_message and delivery_receipt.
|
|
3
|
+
|
|
4
|
+
Examples:
|
|
5
|
+
./script/generate short_message_service short_message delivery_receipt
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
Rails::Generator::Commands::Create.class_eval do
|
|
2
|
+
def route_resource(*resources)
|
|
3
|
+
resource_list = resources.map { |r| r.to_sym.inspect }.join(', ')
|
|
4
|
+
sentinel = 'ActionController::Routing::Routes.draw do |map|'
|
|
5
|
+
|
|
6
|
+
logger.route "map.resource #{resource_list}"
|
|
7
|
+
unless options[:pretend]
|
|
8
|
+
gsub_file 'config/routes.rb', /(#{Regexp.escape(sentinel)})/mi do |match|
|
|
9
|
+
"#{match}\n map.resource #{resource_list}\n"
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
def route_name(name, path, options = {})
|
|
15
|
+
sentinel = 'ActionController::Routing::Routes.draw do |map|'
|
|
16
|
+
|
|
17
|
+
logger.route "map.#{name} '#{path}', :controller => '#{options[:controller]}', :action => '#{options[:action]}'"
|
|
18
|
+
unless options[:pretend]
|
|
19
|
+
gsub_file 'config/routes.rb', /(#{Regexp.escape(sentinel)})/mi do |match|
|
|
20
|
+
"#{match}\n map.#{name} '#{path}', :controller => '#{options[:controller]}', :action => '#{options[:action]}'"
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
Rails::Generator::Commands::Destroy.class_eval do
|
|
27
|
+
def route_resource(*resources)
|
|
28
|
+
resource_list = resources.map { |r| r.to_sym.inspect }.join(', ')
|
|
29
|
+
look_for = "\n map.resource #{resource_list}\n"
|
|
30
|
+
logger.route "map.resource #{resource_list}"
|
|
31
|
+
gsub_file 'config/routes.rb', /(#{look_for})/mi, ''
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
def route_name(name, path, options = {})
|
|
35
|
+
look_for = "\n map.#{name} '#{path}', :controller => '#{options[:controller]}', :action => '#{options[:action]}'"
|
|
36
|
+
logger.route "map.#{name} '#{path}', :controller => '#{options[:controller]}', :action => '#{options[:action]}'"
|
|
37
|
+
gsub_file 'config/routes.rb', /(#{look_for})/mi, ''
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
Rails::Generator::Commands::List.class_eval do
|
|
42
|
+
def route_resource(*resources)
|
|
43
|
+
resource_list = resources.map { |r| r.to_sym.inspect }.join(', ')
|
|
44
|
+
logger.route "map.resource #{resource_list}"
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
def route_name(name, path, options = {})
|
|
48
|
+
logger.route "map.#{name} '#{path}', :controller => '{options[:controller]}', :action => '#{options[:action]}'"
|
|
49
|
+
end
|
|
50
|
+
end
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + "/lib/insert_routes.rb")
|
|
2
|
+
class ShortMessageServiceGenerator < Rails::Generator::Base
|
|
3
|
+
attr_accessor :short_message_model_name, :delivery_receipt_model_name, :migration_name
|
|
4
|
+
|
|
5
|
+
def initialize(runtime_args, runtime_options = {})
|
|
6
|
+
super
|
|
7
|
+
usage if @args.empty?
|
|
8
|
+
@short_message_model_name = @args[0].camelcase
|
|
9
|
+
@delivery_receipt_model_name = @args[1].camelcase
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def short_message_table_name
|
|
13
|
+
@short_message_model_name.pluralize.underscore
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def delivery_receipt_table_name
|
|
17
|
+
@delivery_receipt_model_name.pluralize.underscore
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def standard_delivery_receipt_model_name?
|
|
21
|
+
@delivery_receipt_model_name == "DeliveryReceipt"
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def standard_short_message_model_name?
|
|
25
|
+
@short_message_model_name == "ShortMessage"
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
def manifest
|
|
29
|
+
recorded_session = record do |m|
|
|
30
|
+
unless options[:skip_model]
|
|
31
|
+
m.directory "app/models"
|
|
32
|
+
m.template "short_message.rb", "app/models/#{@short_message_model_name.underscore}.rb"
|
|
33
|
+
m.template "delivery_receipt.rb", "app/models/#{@delivery_receipt_model_name.underscore}.rb"
|
|
34
|
+
end
|
|
35
|
+
unless options[:skip_controller]
|
|
36
|
+
m.directory "app/controllers"
|
|
37
|
+
m.template "short_messages_controller.rb", "app/controllers/#{short_message_table_name}_controller.rb"
|
|
38
|
+
m.template "delivery_receipts_controller.rb", "app/controllers/#{delivery_receipt_table_name}_controller.rb"
|
|
39
|
+
end
|
|
40
|
+
unless options[:skip_views]
|
|
41
|
+
m.directory "app/views/#{short_message_table_name}"
|
|
42
|
+
m.template "index.html.erb", "app/views/#{short_message_table_name}/index.html.erb"
|
|
43
|
+
m.template "new.html.erb", "app/views/#{short_message_table_name}/new.html.erb"
|
|
44
|
+
end
|
|
45
|
+
unless options[:skip_config]
|
|
46
|
+
m.directory "config"
|
|
47
|
+
m.template "short_message.yml", "config/short_message.yml"
|
|
48
|
+
end
|
|
49
|
+
unless options[:skip_routes]
|
|
50
|
+
m.route_resources short_message_model_name.pluralize.underscore
|
|
51
|
+
m.route_name('delivery_report', 'delivery_receipts/report', :controller => delivery_receipt_model_name.pluralize.underscore, :action => 'report')
|
|
52
|
+
end
|
|
53
|
+
unless options[:skip_migration]
|
|
54
|
+
@migration_name = "Create#{@short_message_model_name}And#{@delivery_receipt_model_name}"
|
|
55
|
+
m.migration_template "migration.rb", "db/migrate", :migration_file_name => migration_name.underscore
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
# Post-install notes
|
|
61
|
+
action = File.basename($0) # grok the action from './script/generate' or whatever
|
|
62
|
+
case action
|
|
63
|
+
when "generate"
|
|
64
|
+
puts "=" * 70
|
|
65
|
+
puts "Generateing models and controllers for short message service"
|
|
66
|
+
puts "through Cellsynt's SMS gateway HTTP interface"
|
|
67
|
+
puts "\n"
|
|
68
|
+
puts " Edit authentication settings for the\n sms gateway in config/short_message.yml."
|
|
69
|
+
puts "\n"
|
|
70
|
+
puts " Login to sms.cellsynt.net, under integration set delivery receipt url"
|
|
71
|
+
puts " to http://www.yourdomain.com/delivery_receipts/report"
|
|
72
|
+
puts "\n"
|
|
73
|
+
puts " run rake db:migrate to run the migration for message table\n and delivery receipt table"
|
|
74
|
+
puts "\n"
|
|
75
|
+
puts "Restart your server and browse to /short_messages you should \nnow be able to send sms"
|
|
76
|
+
puts "-" * 70
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
recorded_session
|
|
80
|
+
end
|
|
81
|
+
end
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
class <%=delivery_receipt_model_name.pluralize%>Controller < ApplicationController
|
|
2
|
+
|
|
3
|
+
def report
|
|
4
|
+
@<%= delivery_receipt_model_name.underscore %> = <%=delivery_receipt_model_name%>.find_by_tracking_id(params[:trackingid])
|
|
5
|
+
@<%= delivery_receipt_model_name.underscore %>.status = params[:status]
|
|
6
|
+
@<%= delivery_receipt_model_name.underscore %>.save
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<h1>Sent short messages</h1>
|
|
2
|
+
<p>All messages sent by this application</p>
|
|
3
|
+
|
|
4
|
+
<%% for <%=short_message_model_name.underscore%> in @<%=short_message_model_name.underscore.pluralize%> %>
|
|
5
|
+
<div>
|
|
6
|
+
<p>
|
|
7
|
+
<strong>Destination:</strong> <%%= <%=short_message_model_name.underscore%>.destination %>
|
|
8
|
+
</p>
|
|
9
|
+
<p>
|
|
10
|
+
<strong>Originator:</strong> <%%= <%=short_message_model_name.underscore%>.originator %>
|
|
11
|
+
</p>
|
|
12
|
+
<p>
|
|
13
|
+
<strong>Originator type:</strong> <%%= <%=short_message_model_name.underscore%>.originator_type %>
|
|
14
|
+
</p>
|
|
15
|
+
<p>
|
|
16
|
+
<strong>Message:</strong> <%%= <%=short_message_model_name.underscore%>.body %>
|
|
17
|
+
</p>
|
|
18
|
+
</div>
|
|
19
|
+
<hr>
|
|
20
|
+
<%% end %>
|
|
21
|
+
|
|
22
|
+
<p><%%= link_to 'new short message', new_short_message_path %></p>
|