rubygems-update 2.6.14 → 2.7.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rubygems-update might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.travis.yml +10 -7
- data/CONTRIBUTING.rdoc +53 -54
- data/History.txt +173 -9
- data/Manifest.txt +39 -11
- data/POLICIES.rdoc +3 -3
- data/README.md +72 -0
- data/Rakefile +30 -5
- data/appveyor.yml +29 -1
- data/bin/gem +1 -1
- data/bin/update_rubygems +2 -2
- data/bundler/CHANGELOG.md +269 -9
- data/bundler/CODE_OF_CONDUCT.md +1 -1
- data/bundler/CONTRIBUTING.md +10 -29
- data/bundler/README.md +22 -10
- data/bundler/exe/bundle +5 -7
- data/bundler/exe/bundle_ruby +4 -3
- data/bundler/lib/bundler.rb +94 -74
- data/bundler/lib/bundler/build_metadata.rb +36 -0
- data/bundler/lib/bundler/capistrano.rb +5 -0
- data/bundler/lib/bundler/cli.rb +229 -66
- data/bundler/lib/bundler/cli/add.rb +25 -0
- data/bundler/lib/bundler/cli/binstubs.rb +9 -7
- data/bundler/lib/bundler/cli/cache.rb +5 -4
- data/bundler/lib/bundler/cli/check.rb +3 -5
- data/bundler/lib/bundler/cli/clean.rb +5 -6
- data/bundler/lib/bundler/cli/common.rb +18 -2
- data/bundler/lib/bundler/cli/config.rb +26 -7
- data/bundler/lib/bundler/cli/console.rb +2 -1
- data/bundler/lib/bundler/cli/doctor.rb +1 -0
- data/bundler/lib/bundler/cli/exec.rb +3 -2
- data/bundler/lib/bundler/cli/gem.rb +36 -15
- data/bundler/lib/bundler/cli/info.rb +50 -0
- data/bundler/lib/bundler/cli/init.rb +20 -7
- data/bundler/lib/bundler/cli/inject.rb +13 -4
- data/bundler/lib/bundler/cli/install.rb +61 -77
- data/bundler/lib/bundler/cli/issue.rb +40 -0
- data/bundler/lib/bundler/cli/list.rb +22 -0
- data/bundler/lib/bundler/cli/lock.rb +4 -2
- data/bundler/lib/bundler/cli/open.rb +2 -2
- data/bundler/lib/bundler/cli/outdated.rb +30 -28
- data/bundler/lib/bundler/cli/package.rb +9 -6
- data/bundler/lib/bundler/cli/platform.rb +1 -0
- data/bundler/lib/bundler/cli/plugin.rb +1 -0
- data/bundler/lib/bundler/cli/pristine.rb +43 -0
- data/bundler/lib/bundler/cli/show.rb +1 -1
- data/bundler/lib/bundler/cli/update.rb +32 -11
- data/bundler/lib/bundler/cli/viz.rb +5 -1
- data/bundler/lib/bundler/compact_index_client.rb +1 -0
- data/bundler/lib/bundler/compact_index_client/cache.rb +1 -2
- data/bundler/lib/bundler/compact_index_client/updater.rb +26 -7
- data/bundler/lib/bundler/compatibility_guard.rb +14 -0
- data/bundler/lib/bundler/constants.rb +1 -0
- data/bundler/lib/bundler/current_ruby.rb +8 -7
- data/bundler/lib/bundler/definition.rb +231 -159
- data/bundler/lib/bundler/dep_proxy.rb +2 -0
- data/bundler/lib/bundler/dependency.rb +6 -7
- data/bundler/lib/bundler/deployment.rb +1 -1
- data/bundler/lib/bundler/deprecate.rb +14 -3
- data/bundler/lib/bundler/dsl.rb +103 -62
- data/bundler/lib/bundler/endpoint_specification.rb +12 -2
- data/bundler/lib/bundler/env.rb +97 -36
- data/bundler/lib/bundler/environment_preserver.rb +27 -6
- data/bundler/lib/bundler/errors.rb +3 -1
- data/bundler/lib/bundler/feature_flag.rb +39 -4
- data/bundler/lib/bundler/fetcher.rb +15 -8
- data/bundler/lib/bundler/fetcher/base.rb +1 -0
- data/bundler/lib/bundler/fetcher/compact_index.rb +2 -12
- data/bundler/lib/bundler/fetcher/dependency.rb +2 -1
- data/bundler/lib/bundler/fetcher/downloader.rb +4 -2
- data/bundler/lib/bundler/fetcher/index.rb +1 -0
- data/bundler/lib/bundler/friendly_errors.rb +5 -2
- data/bundler/lib/bundler/gem_helper.rb +23 -9
- data/bundler/lib/bundler/gem_helpers.rb +1 -0
- data/bundler/lib/bundler/gem_remote_fetcher.rb +1 -0
- data/bundler/lib/bundler/gem_tasks.rb +1 -0
- data/bundler/lib/bundler/gem_version_promoter.rb +1 -0
- data/bundler/lib/bundler/gemdeps.rb +1 -0
- data/bundler/lib/bundler/graph.rb +1 -0
- data/bundler/lib/bundler/index.rb +19 -11
- data/bundler/lib/bundler/injector.rb +51 -27
- data/bundler/lib/bundler/inline.rb +10 -10
- data/bundler/lib/bundler/installer.rb +104 -50
- data/bundler/lib/bundler/installer/gem_installer.rb +5 -2
- data/bundler/lib/bundler/installer/parallel_installer.rb +91 -42
- data/bundler/lib/bundler/installer/standalone.rb +1 -0
- data/bundler/lib/bundler/lazy_specification.rb +17 -4
- data/bundler/lib/bundler/lockfile_generator.rb +95 -0
- data/bundler/lib/bundler/lockfile_parser.rb +49 -35
- data/bundler/lib/bundler/match_platform.rb +1 -0
- data/bundler/lib/bundler/mirror.rb +8 -3
- data/bundler/lib/bundler/plugin.rb +6 -1
- data/bundler/lib/bundler/plugin/api/source.rb +16 -3
- data/bundler/lib/bundler/plugin/index.rb +2 -0
- data/bundler/lib/bundler/plugin/installer.rb +7 -6
- data/bundler/lib/bundler/plugin/source_list.rb +7 -8
- data/bundler/lib/bundler/process_lock.rb +24 -0
- data/bundler/lib/bundler/psyched_yaml.rb +10 -0
- data/bundler/lib/bundler/remote_specification.rb +25 -1
- data/bundler/lib/bundler/resolver.rb +171 -192
- data/bundler/lib/bundler/resolver/spec_group.rb +111 -0
- data/bundler/lib/bundler/retry.rb +1 -0
- data/bundler/lib/bundler/ruby_dsl.rb +1 -0
- data/bundler/lib/bundler/ruby_version.rb +6 -1
- data/bundler/lib/bundler/rubygems_ext.rb +18 -8
- data/bundler/lib/bundler/rubygems_gem_installer.rb +25 -2
- data/bundler/lib/bundler/rubygems_integration.rb +157 -66
- data/bundler/lib/bundler/runtime.rb +28 -18
- data/bundler/lib/bundler/settings.rb +202 -87
- data/bundler/lib/bundler/settings/validator.rb +79 -0
- data/bundler/lib/bundler/setup.rb +4 -7
- data/bundler/lib/bundler/shared_helpers.rb +129 -25
- data/bundler/lib/bundler/similarity_detector.rb +1 -0
- data/bundler/lib/bundler/source.rb +53 -1
- data/bundler/lib/bundler/source/gemspec.rb +1 -0
- data/bundler/lib/bundler/source/git.rb +49 -21
- data/bundler/lib/bundler/source/git/git_proxy.rb +17 -12
- data/bundler/lib/bundler/source/metadata.rb +63 -0
- data/bundler/lib/bundler/source/path.rb +38 -17
- data/bundler/lib/bundler/source/path/installer.rb +4 -2
- data/bundler/lib/bundler/source/rubygems.rb +154 -82
- data/bundler/lib/bundler/source/rubygems/remote.rb +8 -1
- data/bundler/lib/bundler/source_list.rb +75 -15
- data/bundler/lib/bundler/spec_set.rb +34 -21
- data/bundler/lib/bundler/ssl_certs/certificate_manager.rb +2 -1
- data/bundler/lib/bundler/stub_specification.rb +86 -2
- data/bundler/lib/bundler/templates/Executable +5 -1
- data/bundler/lib/bundler/templates/Executable.bundler +105 -0
- data/bundler/lib/bundler/templates/Executable.standalone +5 -5
- data/bundler/lib/bundler/templates/Gemfile +3 -0
- data/bundler/lib/bundler/templates/gems.rb +8 -0
- data/bundler/lib/bundler/templates/newgem/Gemfile.tt +4 -2
- data/bundler/lib/bundler/templates/newgem/LICENSE.txt.tt +1 -1
- data/bundler/lib/bundler/templates/newgem/README.md.tt +14 -8
- data/bundler/lib/bundler/templates/newgem/Rakefile.tt +5 -5
- data/bundler/lib/bundler/templates/newgem/ext/newgem/newgem.c.tt +4 -4
- data/bundler/lib/bundler/templates/newgem/ext/newgem/newgem.h.tt +3 -3
- data/bundler/lib/bundler/templates/newgem/gitignore.tt +0 -1
- data/bundler/lib/bundler/templates/newgem/lib/newgem.rb.tt +6 -6
- data/bundler/lib/bundler/templates/newgem/lib/newgem/version.rb.tt +4 -4
- data/bundler/lib/bundler/templates/newgem/newgem.gemspec.tt +13 -10
- data/bundler/lib/bundler/templates/newgem/rspec.tt +1 -0
- data/bundler/lib/bundler/templates/newgem/spec/newgem_spec.rb.tt +0 -2
- data/bundler/lib/bundler/templates/newgem/spec/spec_helper.rb.tt +3 -0
- data/bundler/lib/bundler/templates/newgem/test/newgem_test.rb.tt +1 -1
- data/bundler/lib/bundler/templates/newgem/test/test_helper.rb.tt +3 -3
- data/bundler/lib/bundler/ui.rb +1 -0
- data/bundler/lib/bundler/ui/rg_proxy.rb +1 -0
- data/bundler/lib/bundler/ui/shell.rb +24 -10
- data/bundler/lib/bundler/ui/silent.rb +12 -1
- data/bundler/lib/bundler/uri_credentials_filter.rb +1 -0
- data/bundler/lib/bundler/vendor/fileutils/lib/fileutils.rb +1638 -0
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo.rb +2 -0
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/compatibility.rb +26 -0
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/delegates/resolution_state.rb +7 -0
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/delegates/specification_provider.rb +1 -0
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph.rb +16 -5
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb +1 -0
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_edge_no_circular.rb +10 -2
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_vertex.rb +1 -0
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/delete_edge.rb +1 -0
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/detach_vertex_named.rb +1 -0
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/log.rb +1 -0
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/set_payload.rb +1 -0
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/tag.rb +1 -0
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/vertex.rb +5 -4
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/errors.rb +69 -6
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/gem_metadata.rb +2 -1
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/modules/specification_provider.rb +1 -0
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/modules/ui.rb +3 -1
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb +501 -138
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb +1 -0
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/state.rb +8 -4
- data/bundler/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb +3 -1
- data/bundler/lib/bundler/vendor/thor/lib/thor.rb +46 -21
- data/bundler/lib/bundler/vendor/thor/lib/thor/actions.rb +24 -22
- data/bundler/lib/bundler/vendor/thor/lib/thor/actions/create_file.rb +2 -1
- data/bundler/lib/bundler/vendor/thor/lib/thor/actions/create_link.rb +2 -1
- data/bundler/lib/bundler/vendor/thor/lib/thor/actions/directory.rb +2 -2
- data/bundler/lib/bundler/vendor/thor/lib/thor/actions/empty_directory.rb +16 -8
- data/bundler/lib/bundler/vendor/thor/lib/thor/actions/file_manipulation.rb +66 -18
- data/bundler/lib/bundler/vendor/thor/lib/thor/actions/inject_into_file.rb +17 -15
- data/bundler/lib/bundler/vendor/thor/lib/thor/base.rb +55 -32
- data/bundler/lib/bundler/vendor/thor/lib/thor/command.rb +13 -11
- data/bundler/lib/bundler/vendor/thor/lib/thor/core_ext/hash_with_indifferent_access.rb +21 -1
- data/bundler/lib/bundler/vendor/thor/lib/thor/core_ext/io_binary_read.rb +7 -5
- data/bundler/lib/bundler/vendor/thor/lib/thor/core_ext/ordered_hash.rb +94 -63
- data/bundler/lib/bundler/vendor/thor/lib/thor/error.rb +3 -3
- data/bundler/lib/bundler/vendor/thor/lib/thor/group.rb +13 -13
- data/bundler/lib/bundler/vendor/thor/lib/thor/invocation.rb +4 -5
- data/bundler/lib/bundler/vendor/thor/lib/thor/line_editor/basic.rb +2 -0
- data/bundler/lib/bundler/vendor/thor/lib/thor/parser/argument.rb +4 -7
- data/bundler/lib/bundler/vendor/thor/lib/thor/parser/arguments.rb +16 -16
- data/bundler/lib/bundler/vendor/thor/lib/thor/parser/option.rb +42 -21
- data/bundler/lib/bundler/vendor/thor/lib/thor/parser/options.rb +13 -10
- data/bundler/lib/bundler/vendor/thor/lib/thor/runner.rb +31 -29
- data/bundler/lib/bundler/vendor/thor/lib/thor/shell.rb +1 -1
- data/bundler/lib/bundler/vendor/thor/lib/thor/shell/basic.rb +49 -33
- data/bundler/lib/bundler/vendor/thor/lib/thor/shell/color.rb +1 -1
- data/bundler/lib/bundler/vendor/thor/lib/thor/shell/html.rb +4 -4
- data/bundler/lib/bundler/vendor/thor/lib/thor/util.rb +8 -7
- data/bundler/lib/bundler/vendor/thor/lib/thor/version.rb +1 -1
- data/bundler/lib/bundler/vendored_fileutils.rb +9 -0
- data/bundler/lib/bundler/vendored_molinillo.rb +1 -0
- data/bundler/lib/bundler/vendored_persistent.rb +35 -0
- data/bundler/lib/bundler/vendored_thor.rb +6 -2
- data/bundler/lib/bundler/version.rb +19 -2
- data/bundler/lib/bundler/version_ranges.rb +76 -0
- data/bundler/lib/bundler/vlad.rb +5 -0
- data/bundler/lib/bundler/worker.rb +3 -1
- data/bundler/lib/bundler/yaml_serializer.rb +3 -3
- data/bundler/man/bundle-add.ronn +29 -0
- data/bundler/man/bundle-binstubs.ronn +14 -0
- data/bundler/man/bundle-check.ronn +26 -0
- data/bundler/man/bundle-clean.ronn +18 -0
- data/bundler/man/bundle-config.ronn +180 -60
- data/bundler/man/bundle-exec.ronn +7 -0
- data/bundler/man/bundle-gem.ronn +3 -2
- data/bundler/man/bundle-info.ronn +17 -0
- data/bundler/man/bundle-init.ronn +18 -0
- data/bundler/man/bundle-inject.ronn +22 -0
- data/bundler/man/bundle-install.ronn +32 -32
- data/bundler/man/bundle-list.ronn +15 -0
- data/bundler/man/bundle-open.ronn +19 -0
- data/bundler/man/bundle-outdated.ronn +1 -1
- data/bundler/man/bundle-package.ronn +5 -0
- data/bundler/man/bundle-pristine.ronn +34 -0
- data/bundler/man/bundle-show.ronn +20 -0
- data/bundler/man/bundle-update.ronn +6 -3
- data/bundler/man/bundle-viz.ronn +30 -0
- data/bundler/man/bundle.ronn +11 -20
- data/bundler/man/gemfile.5.ronn +55 -64
- data/lib/rubygems.rb +79 -36
- data/lib/rubygems/basic_specification.rb +8 -4
- data/lib/rubygems/bundler_version_finder.rb +112 -0
- data/lib/rubygems/command.rb +1 -1
- data/lib/rubygems/command_manager.rb +3 -1
- data/lib/rubygems/commands/cert_command.rb +31 -6
- data/lib/rubygems/commands/cleanup_command.rb +1 -1
- data/lib/rubygems/commands/help_command.rb +1 -1
- data/lib/rubygems/commands/owner_command.rb +3 -1
- data/lib/rubygems/commands/pristine_command.rb +11 -8
- data/lib/rubygems/commands/push_command.rb +2 -1
- data/lib/rubygems/commands/query_command.rb +13 -14
- data/lib/rubygems/commands/setup_command.rb +124 -69
- data/lib/rubygems/commands/signin_command.rb +33 -0
- data/lib/rubygems/commands/signout_command.rb +33 -0
- data/lib/rubygems/commands/uninstall_command.rb +4 -3
- data/lib/rubygems/commands/unpack_command.rb +16 -4
- data/lib/rubygems/commands/update_command.rb +1 -1
- data/lib/rubygems/commands/which_command.rb +1 -1
- data/lib/rubygems/commands/yank_command.rb +4 -11
- data/lib/rubygems/config_file.rb +13 -24
- data/lib/rubygems/core_ext/kernel_require.rb +10 -9
- data/lib/rubygems/dependency.rb +2 -0
- data/lib/rubygems/dependency_installer.rb +4 -0
- data/lib/rubygems/errors.rb +3 -0
- data/lib/rubygems/exceptions.rb +6 -0
- data/lib/rubygems/ext/builder.rb +1 -1
- data/lib/rubygems/ext/ext_conf_builder.rb +2 -4
- data/lib/rubygems/ext/rake_builder.rb +1 -1
- data/lib/rubygems/gem_runner.rb +5 -1
- data/lib/rubygems/install_update_options.rb +5 -28
- data/lib/rubygems/installer.rb +12 -7
- data/lib/rubygems/installer_test_case.rb +6 -3
- data/lib/rubygems/package/old.rb +1 -1
- data/lib/rubygems/request.rb +1 -1
- data/lib/rubygems/request_set.rb +20 -3
- data/lib/rubygems/request_set/gem_dependency_api.rb +3 -3
- data/lib/rubygems/requirement.rb +5 -1
- data/lib/rubygems/resolver.rb +24 -3
- data/lib/rubygems/resolver/installer_set.rb +4 -6
- data/lib/rubygems/safe_yaml.rb +4 -1
- data/lib/rubygems/security.rb +10 -3
- data/lib/rubygems/security_option.rb +43 -0
- data/lib/rubygems/server.rb +4 -12
- data/lib/rubygems/source.rb +7 -4
- data/lib/rubygems/source/git.rb +2 -1
- data/lib/rubygems/source/local.rb +38 -35
- data/lib/rubygems/source/lock.rb +4 -1
- data/lib/rubygems/source_local.rb +3 -1
- data/lib/rubygems/source_specific_file.rb +3 -2
- data/lib/rubygems/spec_fetcher.rb +7 -3
- data/lib/rubygems/specification.rb +281 -231
- data/lib/rubygems/stub_specification.rb +2 -3
- data/lib/rubygems/test_case.rb +14 -1
- data/lib/rubygems/user_interaction.rb +15 -13
- data/lib/rubygems/util.rb +6 -17
- data/lib/rubygems/version.rb +17 -3
- data/lib/rubygems/version_option.rb +6 -1
- data/setup.rb +1 -1
- data/test/rubygems/private3072_key.pem +40 -0
- data/test/rubygems/public3072_cert.pem +25 -0
- data/test/rubygems/test_config.rb +1 -1
- data/test/rubygems/test_gem.rb +72 -14
- data/test/rubygems/test_gem_bundler_version_finder.rb +125 -0
- data/test/rubygems/test_gem_command.rb +1 -1
- data/test/rubygems/test_gem_commands_build_command.rb +27 -1
- data/test/rubygems/test_gem_commands_cert_command.rb +64 -0
- data/test/rubygems/test_gem_commands_install_command.rb +35 -2
- data/test/rubygems/test_gem_commands_pristine_command.rb +1 -1
- data/test/rubygems/test_gem_commands_query_command.rb +19 -0
- data/test/rubygems/test_gem_commands_setup_command.rb +17 -0
- data/test/rubygems/test_gem_commands_signin_command.rb +95 -0
- data/test/rubygems/test_gem_commands_signout_command.rb +37 -0
- data/test/rubygems/test_gem_commands_sources_command.rb +1 -1
- data/test/rubygems/test_gem_commands_uninstall_command.rb +12 -0
- data/test/rubygems/test_gem_commands_update_command.rb +1 -1
- data/test/rubygems/test_gem_commands_which_command.rb +3 -3
- data/test/rubygems/test_gem_dependency.rb +28 -0
- data/test/rubygems/test_gem_ext_builder.rb +2 -2
- data/test/rubygems/test_gem_ext_rake_builder.rb +2 -2
- data/test/rubygems/test_gem_install_update_options.rb +2 -1
- data/test/rubygems/test_gem_installer.rb +29 -27
- data/test/rubygems/test_gem_package.rb +5 -5
- data/test/rubygems/test_gem_remote_fetcher.rb +2 -2
- data/test/rubygems/test_gem_request_set_gem_dependency_api.rb +3 -3
- data/test/rubygems/test_gem_requirement.rb +6 -0
- data/test/rubygems/test_gem_resolver.rb +26 -0
- data/test/rubygems/test_gem_resolver_conflict.rb +1 -1
- data/test/rubygems/test_gem_security.rb +5 -0
- data/test/rubygems/test_gem_security_policy.rb +24 -24
- data/test/rubygems/test_gem_security_signer.rb +6 -6
- data/test/rubygems/test_gem_security_trust_dir.rb +2 -2
- data/test/rubygems/test_gem_server.rb +18 -1
- data/test/rubygems/test_gem_source.rb +9 -0
- data/test/rubygems/test_gem_spec_fetcher.rb +20 -0
- data/test/rubygems/test_gem_specification.rb +85 -10
- data/test/rubygems/test_gem_stream_ui.rb +6 -6
- data/test/rubygems/test_gem_stub_specification.rb +19 -1
- data/test/rubygems/test_gem_util.rb +1 -0
- data/test/rubygems/test_gem_version.rb +28 -7
- data/test/rubygems/test_gem_version_option.rb +15 -0
- data/test/rubygems/test_kernel.rb +30 -0
- data/test/rubygems/test_require.rb +44 -0
- metadata +47 -46
- data/README.rdoc +0 -54
- data/bundler/DEVELOPMENT.md +0 -150
- data/bundler/ISSUES.md +0 -117
- data/bundler/lib/bundler/postit_trampoline.rb +0 -73
- data/bundler/lib/bundler/vendor/postit/lib/postit.rb +0 -15
- data/bundler/lib/bundler/vendor/postit/lib/postit/environment.rb +0 -44
- data/bundler/lib/bundler/vendor/postit/lib/postit/installer.rb +0 -28
- data/bundler/lib/bundler/vendor/postit/lib/postit/parser.rb +0 -21
- data/bundler/lib/bundler/vendor/postit/lib/postit/setup.rb +0 -12
- data/bundler/lib/bundler/vendor/postit/lib/postit/version.rb +0 -3
- data/bundler/man/index.txt +0 -8
@@ -1,5 +1,4 @@
|
|
1
1
|
require "erb"
|
2
|
-
require "open-uri"
|
3
2
|
|
4
3
|
class Bundler::Thor
|
5
4
|
module Actions
|
@@ -26,7 +25,7 @@ class Bundler::Thor
|
|
26
25
|
|
27
26
|
create_file destination, nil, config do
|
28
27
|
content = File.binread(source)
|
29
|
-
content =
|
28
|
+
content = yield(content) if block
|
30
29
|
content
|
31
30
|
end
|
32
31
|
if config[:mode] == :preserve
|
@@ -49,7 +48,7 @@ class Bundler::Thor
|
|
49
48
|
#
|
50
49
|
# link_file "doc/README"
|
51
50
|
#
|
52
|
-
def link_file(source, *args
|
51
|
+
def link_file(source, *args)
|
53
52
|
config = args.last.is_a?(Hash) ? args.pop : {}
|
54
53
|
destination = args.first || source
|
55
54
|
source = File.expand_path(find_in_source_paths(source.to_s))
|
@@ -78,11 +77,16 @@ class Bundler::Thor
|
|
78
77
|
config = args.last.is_a?(Hash) ? args.pop : {}
|
79
78
|
destination = args.first
|
80
79
|
|
81
|
-
|
80
|
+
if source =~ %r{^https?\://}
|
81
|
+
require "open-uri"
|
82
|
+
else
|
83
|
+
source = File.expand_path(find_in_source_paths(source.to_s))
|
84
|
+
end
|
85
|
+
|
82
86
|
render = open(source) { |input| input.binmode.read }
|
83
87
|
|
84
88
|
destination ||= if block_given?
|
85
|
-
block.arity == 1 ?
|
89
|
+
block.arity == 1 ? yield(render) : yield
|
86
90
|
else
|
87
91
|
File.basename(source)
|
88
92
|
end
|
@@ -110,11 +114,13 @@ class Bundler::Thor
|
|
110
114
|
destination = args.first || source.sub(/#{TEMPLATE_EXTNAME}$/, "")
|
111
115
|
|
112
116
|
source = File.expand_path(find_in_source_paths(source.to_s))
|
113
|
-
context = instance_eval("binding")
|
117
|
+
context = config.delete(:context) || instance_eval("binding")
|
114
118
|
|
115
119
|
create_file destination, nil, config do
|
116
|
-
content =
|
117
|
-
|
120
|
+
content = CapturableERB.new(::File.binread(source), nil, "-", "@output_buffer").tap do |erb|
|
121
|
+
erb.filename = source
|
122
|
+
end.result(context)
|
123
|
+
content = yield(content) if block
|
118
124
|
content
|
119
125
|
end
|
120
126
|
end
|
@@ -134,7 +140,10 @@ class Bundler::Thor
|
|
134
140
|
return unless behavior == :invoke
|
135
141
|
path = File.expand_path(path, destination_root)
|
136
142
|
say_status :chmod, relative_to_original_destination_root(path), config.fetch(:verbose, true)
|
137
|
-
|
143
|
+
unless options[:pretend]
|
144
|
+
require "fileutils"
|
145
|
+
FileUtils.chmod_R(mode, path)
|
146
|
+
end
|
138
147
|
end
|
139
148
|
|
140
149
|
# Prepend text to a file. Since it depends on insert_into_file, it's reversible.
|
@@ -154,7 +163,7 @@ class Bundler::Thor
|
|
154
163
|
#
|
155
164
|
def prepend_to_file(path, *args, &block)
|
156
165
|
config = args.last.is_a?(Hash) ? args.pop : {}
|
157
|
-
config
|
166
|
+
config[:after] = /\A/
|
158
167
|
insert_into_file(path, *(args << config), &block)
|
159
168
|
end
|
160
169
|
alias_method :prepend_file, :prepend_to_file
|
@@ -176,7 +185,7 @@ class Bundler::Thor
|
|
176
185
|
#
|
177
186
|
def append_to_file(path, *args, &block)
|
178
187
|
config = args.last.is_a?(Hash) ? args.pop : {}
|
179
|
-
config
|
188
|
+
config[:before] = /\z/
|
180
189
|
insert_into_file(path, *(args << config), &block)
|
181
190
|
end
|
182
191
|
alias_method :append_file, :append_to_file
|
@@ -200,7 +209,30 @@ class Bundler::Thor
|
|
200
209
|
#
|
201
210
|
def inject_into_class(path, klass, *args, &block)
|
202
211
|
config = args.last.is_a?(Hash) ? args.pop : {}
|
203
|
-
config
|
212
|
+
config[:after] = /class #{klass}\n|class #{klass} .*\n/
|
213
|
+
insert_into_file(path, *(args << config), &block)
|
214
|
+
end
|
215
|
+
|
216
|
+
# Injects text right after the module definition. Since it depends on
|
217
|
+
# insert_into_file, it's reversible.
|
218
|
+
#
|
219
|
+
# ==== Parameters
|
220
|
+
# path<String>:: path of the file to be changed
|
221
|
+
# module_name<String|Class>:: the module to be manipulated
|
222
|
+
# data<String>:: the data to append to the class, can be also given as a block.
|
223
|
+
# config<Hash>:: give :verbose => false to not log the status.
|
224
|
+
#
|
225
|
+
# ==== Examples
|
226
|
+
#
|
227
|
+
# inject_into_module "app/helpers/application_helper.rb", ApplicationHelper, " def help; 'help'; end\n"
|
228
|
+
#
|
229
|
+
# inject_into_module "app/helpers/application_helper.rb", ApplicationHelper do
|
230
|
+
# " def help; 'help'; end\n"
|
231
|
+
# end
|
232
|
+
#
|
233
|
+
def inject_into_module(path, module_name, *args, &block)
|
234
|
+
config = args.last.is_a?(Hash) ? args.pop : {}
|
235
|
+
config[:after] = /module #{module_name}\n|module #{module_name} .*\n/
|
204
236
|
insert_into_file(path, *(args << config), &block)
|
205
237
|
end
|
206
238
|
|
@@ -285,10 +317,13 @@ class Bundler::Thor
|
|
285
317
|
#
|
286
318
|
def remove_file(path, config = {})
|
287
319
|
return unless behavior == :invoke
|
288
|
-
path
|
320
|
+
path = File.expand_path(path, destination_root)
|
289
321
|
|
290
322
|
say_status :remove, relative_to_original_destination_root(path), config.fetch(:verbose, true)
|
291
|
-
|
323
|
+
if !options[:pretend] && File.exist?(path)
|
324
|
+
require "fileutils"
|
325
|
+
::FileUtils.rm_rf(path)
|
326
|
+
end
|
292
327
|
end
|
293
328
|
alias_method :remove_dir, :remove_file
|
294
329
|
|
@@ -301,16 +336,29 @@ class Bundler::Thor
|
|
301
336
|
@output_buffer.concat(string)
|
302
337
|
end
|
303
338
|
|
304
|
-
def capture(*args
|
305
|
-
with_output_buffer {
|
339
|
+
def capture(*args)
|
340
|
+
with_output_buffer { yield(*args) }
|
306
341
|
end
|
307
342
|
|
308
|
-
def with_output_buffer(buf = "") #:nodoc:
|
309
|
-
|
343
|
+
def with_output_buffer(buf = "".dup) #:nodoc:
|
344
|
+
raise ArgumentError, "Buffer can not be a frozen object" if buf.frozen?
|
345
|
+
old_buffer = output_buffer
|
346
|
+
self.output_buffer = buf
|
310
347
|
yield
|
311
348
|
output_buffer
|
312
349
|
ensure
|
313
350
|
self.output_buffer = old_buffer
|
314
351
|
end
|
352
|
+
|
353
|
+
# Bundler::Thor::Actions#capture depends on what kind of buffer is used in ERB.
|
354
|
+
# Thus CapturableERB fixes ERB to use String buffer.
|
355
|
+
class CapturableERB < ERB
|
356
|
+
def set_eoutvar(compiler, eoutvar = "_erbout")
|
357
|
+
compiler.put_cmd = "#{eoutvar}.concat"
|
358
|
+
compiler.insert_cmd = "#{eoutvar}.concat"
|
359
|
+
compiler.pre_cmd = ["#{eoutvar} = ''.dup"]
|
360
|
+
compiler.post_cmd = [eoutvar]
|
361
|
+
end
|
362
|
+
end
|
315
363
|
end
|
316
364
|
end
|
@@ -22,11 +22,8 @@ class Bundler::Thor
|
|
22
22
|
# end
|
23
23
|
#
|
24
24
|
def insert_into_file(destination, *args, &block)
|
25
|
-
|
26
|
-
|
27
|
-
else
|
28
|
-
data, config = args.shift, args.shift
|
29
|
-
end
|
25
|
+
data = block_given? ? block : args.shift
|
26
|
+
config = args.shift
|
30
27
|
action InjectIntoFile.new(self, destination, data, config)
|
31
28
|
end
|
32
29
|
alias_method :inject_into_file, :insert_into_file
|
@@ -39,9 +36,9 @@ class Bundler::Thor
|
|
39
36
|
|
40
37
|
@behavior, @flag = if @config.key?(:after)
|
41
38
|
[:after, @config.delete(:after)]
|
42
|
-
|
43
|
-
|
44
|
-
|
39
|
+
else
|
40
|
+
[:before, @config.delete(:before)]
|
41
|
+
end
|
45
42
|
|
46
43
|
@replacement = data.is_a?(Proc) ? data.call : data
|
47
44
|
@flag = Regexp.escape(@flag) unless @flag.is_a?(Regexp)
|
@@ -56,7 +53,13 @@ class Bundler::Thor
|
|
56
53
|
replacement + '\0'
|
57
54
|
end
|
58
55
|
|
59
|
-
|
56
|
+
if exists?
|
57
|
+
replace!(/#{flag}/, content, config[:force])
|
58
|
+
else
|
59
|
+
unless pretend?
|
60
|
+
raise Bundler::Thor::Error, "The file #{ destination } does not appear to exist"
|
61
|
+
end
|
62
|
+
end
|
60
63
|
end
|
61
64
|
|
62
65
|
def revoke!
|
@@ -94,12 +97,11 @@ class Bundler::Thor
|
|
94
97
|
# Adds the content to the file.
|
95
98
|
#
|
96
99
|
def replace!(regexp, string, force)
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
end
|
100
|
+
return if pretend?
|
101
|
+
content = File.read(destination)
|
102
|
+
if force || !content.include?(replacement)
|
103
|
+
content.gsub!(regexp, string)
|
104
|
+
File.open(destination, "wb") { |file| file.write(content) }
|
103
105
|
end
|
104
106
|
end
|
105
107
|
end
|
@@ -14,11 +14,11 @@ class Bundler::Thor
|
|
14
14
|
autoload :Group, "bundler/vendor/thor/lib/thor/group"
|
15
15
|
|
16
16
|
# Shortcuts for help.
|
17
|
-
HELP_MAPPINGS = %w
|
17
|
+
HELP_MAPPINGS = %w(-h -? --help -D)
|
18
18
|
|
19
19
|
# Bundler::Thor methods that should not be overwritten by the user.
|
20
|
-
THOR_RESERVED_WORDS = %w
|
21
|
-
action add_file create_file in_root inside run run_ruby_script
|
20
|
+
THOR_RESERVED_WORDS = %w(invoke shell options behavior root destination_root relative_root
|
21
|
+
action add_file create_file in_root inside run run_ruby_script)
|
22
22
|
|
23
23
|
TEMPLATE_EXTNAME = ".tt"
|
24
24
|
|
@@ -41,7 +41,7 @@ class Bundler::Thor
|
|
41
41
|
#
|
42
42
|
# config<Hash>:: Configuration for this Bundler::Thor class.
|
43
43
|
#
|
44
|
-
def initialize(args = [], local_options = {}, config = {})
|
44
|
+
def initialize(args = [], local_options = {}, config = {})
|
45
45
|
parse_options = self.class.class_options
|
46
46
|
|
47
47
|
# The start method splits inbound arguments at the first argument
|
@@ -52,18 +52,21 @@ class Bundler::Thor
|
|
52
52
|
command_options = config.delete(:command_options) # hook for start
|
53
53
|
parse_options = parse_options.merge(command_options) if command_options
|
54
54
|
if local_options.is_a?(Array)
|
55
|
-
array_options
|
55
|
+
array_options = local_options
|
56
|
+
hash_options = {}
|
56
57
|
else
|
57
58
|
# Handle the case where the class was explicitly instantiated
|
58
59
|
# with pre-parsed options.
|
59
|
-
array_options
|
60
|
+
array_options = []
|
61
|
+
hash_options = local_options
|
60
62
|
end
|
61
63
|
|
62
64
|
# Let Bundler::Thor::Options parse the options first, so it can remove
|
63
65
|
# declared options from the array. This will leave us with
|
64
66
|
# a list of arguments that weren't declared.
|
65
67
|
stop_on_unknown = self.class.stop_on_unknown_option? config[:current_command]
|
66
|
-
|
68
|
+
disable_required_check = self.class.disable_required_check? config[:current_command]
|
69
|
+
opts = Bundler::Thor::Options.new(parse_options, hash_options, stop_on_unknown, disable_required_check)
|
67
70
|
self.options = opts.parse(array_options)
|
68
71
|
self.options = config[:class_options].merge(options) if config[:class_options]
|
69
72
|
|
@@ -148,6 +151,21 @@ class Bundler::Thor
|
|
148
151
|
!!check_unknown_options
|
149
152
|
end
|
150
153
|
|
154
|
+
# If you want to raise an error when the default value of an option does not match
|
155
|
+
# the type call check_default_type!
|
156
|
+
# This is disabled by default for compatibility.
|
157
|
+
def check_default_type!
|
158
|
+
@check_default_type = true
|
159
|
+
end
|
160
|
+
|
161
|
+
def check_default_type #:nodoc:
|
162
|
+
@check_default_type ||= from_superclass(:check_default_type, false)
|
163
|
+
end
|
164
|
+
|
165
|
+
def check_default_type? #:nodoc:
|
166
|
+
!!check_default_type
|
167
|
+
end
|
168
|
+
|
151
169
|
# If true, option parsing is suspended as soon as an unknown option or a
|
152
170
|
# regular argument is encountered. All remaining arguments are passed to
|
153
171
|
# the command as regular arguments.
|
@@ -155,6 +173,12 @@ class Bundler::Thor
|
|
155
173
|
false
|
156
174
|
end
|
157
175
|
|
176
|
+
# If true, option set will not suspend the execution of the command when
|
177
|
+
# a required option is not provided.
|
178
|
+
def disable_required_check?(command_name) #:nodoc:
|
179
|
+
false
|
180
|
+
end
|
181
|
+
|
158
182
|
# If you want only strict string args (useful when cascading thor classes),
|
159
183
|
# call strict_args_position! This is disabled by default to allow dynamic
|
160
184
|
# invocations.
|
@@ -205,7 +229,7 @@ class Bundler::Thor
|
|
205
229
|
# ==== Errors
|
206
230
|
# ArgumentError:: Raised if you supply a required argument after a non required one.
|
207
231
|
#
|
208
|
-
def argument(name, options = {})
|
232
|
+
def argument(name, options = {})
|
209
233
|
is_thor_reserved_word?(name, :argument)
|
210
234
|
no_commands { attr_accessor name }
|
211
235
|
|
@@ -219,11 +243,13 @@ class Bundler::Thor
|
|
219
243
|
|
220
244
|
remove_argument name
|
221
245
|
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
246
|
+
if required
|
247
|
+
arguments.each do |argument|
|
248
|
+
next if argument.required?
|
249
|
+
raise ArgumentError, "You cannot have #{name.to_s.inspect} as required argument after " \
|
250
|
+
"the non-required argument #{argument.human_name.inspect}."
|
251
|
+
end
|
252
|
+
end
|
227
253
|
|
228
254
|
options[:required] = required
|
229
255
|
|
@@ -343,7 +369,7 @@ class Bundler::Thor
|
|
343
369
|
#
|
344
370
|
def all_commands
|
345
371
|
@all_commands ||= from_superclass(:all_commands, Bundler::Thor::CoreExt::OrderedHash.new)
|
346
|
-
@all_commands.merge(commands)
|
372
|
+
@all_commands.merge!(commands)
|
347
373
|
end
|
348
374
|
alias_method :all_tasks, :all_commands
|
349
375
|
|
@@ -467,20 +493,18 @@ class Bundler::Thor
|
|
467
493
|
alias_method :public_task, :public_command
|
468
494
|
|
469
495
|
def handle_no_command_error(command, has_namespace = $thor_runner) #:nodoc:
|
470
|
-
if has_namespace
|
471
|
-
|
472
|
-
else
|
473
|
-
fail UndefinedCommandError, "Could not find command #{command.inspect}."
|
474
|
-
end
|
496
|
+
raise UndefinedCommandError, "Could not find command #{command.inspect} in #{namespace.inspect} namespace." if has_namespace
|
497
|
+
raise UndefinedCommandError, "Could not find command #{command.inspect}."
|
475
498
|
end
|
476
499
|
alias_method :handle_no_task_error, :handle_no_command_error
|
477
500
|
|
478
501
|
def handle_argument_error(command, error, args, arity) #:nodoc:
|
479
|
-
|
502
|
+
name = [command.ancestor_name, command.name].compact.join(" ")
|
503
|
+
msg = "ERROR: \"#{basename} #{name}\" was called with ".dup
|
480
504
|
msg << "no arguments" if args.empty?
|
481
505
|
msg << "arguments " << args.inspect unless args.empty?
|
482
506
|
msg << "\nUsage: #{banner(command).inspect}"
|
483
|
-
|
507
|
+
raise InvocationError, msg
|
484
508
|
end
|
485
509
|
|
486
510
|
protected
|
@@ -513,14 +537,13 @@ class Bundler::Thor
|
|
513
537
|
padding = options.map { |o| o.aliases.size }.max.to_i * 4
|
514
538
|
|
515
539
|
options.each do |option|
|
516
|
-
|
517
|
-
|
518
|
-
|
540
|
+
next if option.hide
|
541
|
+
item = [option.usage(padding)]
|
542
|
+
item.push(option.description ? "# #{option.description}" : "")
|
519
543
|
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
end
|
544
|
+
list << item
|
545
|
+
list << ["", "# Default: #{option.default}"] if option.show_default?
|
546
|
+
list << ["", "# Possible values: #{option.enum.join(', ')}"] if option.enum
|
524
547
|
end
|
525
548
|
|
526
549
|
shell.say(group_name ? "#{group_name} options:" : "Options:")
|
@@ -531,7 +554,7 @@ class Bundler::Thor
|
|
531
554
|
# Raises an error if the word given is a Bundler::Thor reserved word.
|
532
555
|
def is_thor_reserved_word?(word, type) #:nodoc:
|
533
556
|
return false unless THOR_RESERVED_WORDS.include?(word.to_s)
|
534
|
-
|
557
|
+
raise "#{word.inspect} is a Bundler::Thor reserved word and cannot be defined as #{type}"
|
535
558
|
end
|
536
559
|
|
537
560
|
# Build an option and adds it to the given scope.
|
@@ -541,7 +564,7 @@ class Bundler::Thor
|
|
541
564
|
# options<Hash>:: Described in both class_option and method_option.
|
542
565
|
# scope<Hash>:: Options hash that is being built up
|
543
566
|
def build_option(name, options, scope) #:nodoc:
|
544
|
-
scope[name] = Bundler::Thor::Option.new(name, options)
|
567
|
+
scope[name] = Bundler::Thor::Option.new(name, options.merge(:check_default_type => check_default_type?))
|
545
568
|
end
|
546
569
|
|
547
570
|
# Receives a hash of options, parse them and add to the scope. This is a
|
@@ -566,7 +589,7 @@ class Bundler::Thor
|
|
566
589
|
elsif command = all_commands[name.to_s] # rubocop:disable AssignmentInCondition
|
567
590
|
commands[name.to_s] = command.clone
|
568
591
|
else
|
569
|
-
|
592
|
+
raise ArgumentError, "You supplied :for => #{name.inspect}, but the command #{name.inspect} could not be found."
|
570
593
|
end
|
571
594
|
end
|
572
595
|
alias_method :find_and_refresh_task, :find_and_refresh_command
|
@@ -649,7 +672,7 @@ class Bundler::Thor
|
|
649
672
|
|
650
673
|
# SIGNATURE: The hook invoked by start.
|
651
674
|
def dispatch(command, given_args, given_opts, config) #:nodoc:
|
652
|
-
|
675
|
+
raise NotImplementedError
|
653
676
|
end
|
654
677
|
end
|
655
678
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
class Bundler::Thor
|
2
|
-
class Command < Struct.new(:name, :description, :long_description, :usage, :options)
|
2
|
+
class Command < Struct.new(:name, :description, :long_description, :usage, :options, :ancestor_name)
|
3
3
|
FILE_REGEXP = /^#{Regexp.escape(File.dirname(__FILE__))}/
|
4
4
|
|
5
5
|
def initialize(name, description, long_description, usage, options = nil)
|
@@ -33,24 +33,26 @@ class Bundler::Thor
|
|
33
33
|
rescue ArgumentError => e
|
34
34
|
handle_argument_error?(instance, e, caller) ? instance.class.handle_argument_error(self, e, args, arity) : (raise e)
|
35
35
|
rescue NoMethodError => e
|
36
|
-
handle_no_method_error?(instance, e, caller) ? instance.class.handle_no_command_error(name) : (
|
36
|
+
handle_no_method_error?(instance, e, caller) ? instance.class.handle_no_command_error(name) : (raise e)
|
37
37
|
end
|
38
38
|
|
39
39
|
# Returns the formatted usage by injecting given required arguments
|
40
40
|
# and required options into the given usage.
|
41
41
|
def formatted_usage(klass, namespace = true, subcommand = false)
|
42
|
-
if
|
42
|
+
if ancestor_name
|
43
|
+
formatted = "#{ancestor_name} ".dup # add space
|
44
|
+
elsif namespace
|
43
45
|
namespace = klass.namespace
|
44
|
-
formatted = "#{namespace.gsub(/^(default)/, '')}:"
|
46
|
+
formatted = "#{namespace.gsub(/^(default)/, '')}:".dup
|
45
47
|
end
|
46
|
-
formatted
|
48
|
+
formatted ||= "#{klass.namespace.split(':').last} ".dup if subcommand
|
47
49
|
|
48
|
-
formatted ||= ""
|
50
|
+
formatted ||= "".dup
|
49
51
|
|
50
52
|
# Add usage with required arguments
|
51
53
|
formatted << if klass && !klass.arguments.empty?
|
52
54
|
usage.to_s.gsub(/^#{name}/) do |match|
|
53
|
-
match << " " << klass.arguments.map
|
55
|
+
match << " " << klass.arguments.map(&:usage).compact.join(" ")
|
54
56
|
end
|
55
57
|
else
|
56
58
|
usage.to_s
|
@@ -88,7 +90,7 @@ class Bundler::Thor
|
|
88
90
|
end
|
89
91
|
|
90
92
|
def sans_backtrace(backtrace, caller) #:nodoc:
|
91
|
-
saned = backtrace.reject { |frame| frame =~ FILE_REGEXP || (frame =~ /\.java:/ && RUBY_PLATFORM =~ /java/) || (frame =~
|
93
|
+
saned = backtrace.reject { |frame| frame =~ FILE_REGEXP || (frame =~ /\.java:/ && RUBY_PLATFORM =~ /java/) || (frame =~ %r{^kernel/} && RUBY_ENGINE =~ /rbx/) }
|
92
94
|
saned - caller
|
93
95
|
end
|
94
96
|
|
@@ -105,7 +107,7 @@ class Bundler::Thor
|
|
105
107
|
error.message =~ /^undefined method `#{name}' for #{Regexp.escape(instance.to_s)}$/
|
106
108
|
end
|
107
109
|
end
|
108
|
-
Task = Command
|
110
|
+
Task = Command
|
109
111
|
|
110
112
|
# A command that is hidden in help messages but still invocable.
|
111
113
|
class HiddenCommand < Command
|
@@ -113,7 +115,7 @@ class Bundler::Thor
|
|
113
115
|
true
|
114
116
|
end
|
115
117
|
end
|
116
|
-
HiddenTask = HiddenCommand
|
118
|
+
HiddenTask = HiddenCommand
|
117
119
|
|
118
120
|
# A dynamic command that handles method missing scenarios.
|
119
121
|
class DynamicCommand < Command
|
@@ -129,5 +131,5 @@ class Bundler::Thor
|
|
129
131
|
end
|
130
132
|
end
|
131
133
|
end
|
132
|
-
DynamicTask = DynamicCommand
|
134
|
+
DynamicTask = DynamicCommand
|
133
135
|
end
|