Skip to content

Commit de269cf

Browse files
committed
Removed files for gem query
1 parent 9ea4414 commit de269cf

File tree

6 files changed

+0
-927
lines changed

6 files changed

+0
-927
lines changed

Manifest.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,6 @@ lib/rubygems/commands/outdated_command.rb
384384
lib/rubygems/commands/owner_command.rb
385385
lib/rubygems/commands/pristine_command.rb
386386
lib/rubygems/commands/push_command.rb
387-
lib/rubygems/commands/query_command.rb
388387
lib/rubygems/commands/rdoc_command.rb
389388
lib/rubygems/commands/rebuild_command.rb
390389
lib/rubygems/commands/search_command.rb

lib/rubygems/command_manager.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ class Gem::CommandManager
5858
:owner,
5959
:pristine,
6060
:push,
61-
:query,
6261
:rdoc,
6362
:rebuild,
6463
:search,

lib/rubygems/commands/query_command.rb

Lines changed: 0 additions & 43 deletions
This file was deleted.

test/rubygems/test_gem_command_manager.rb

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -287,47 +287,6 @@ def test_process_args_build
287287
assert_equal "foobar.rb", check_options[:args].first
288288
end
289289

290-
# HACK: move to query command test
291-
def test_process_args_query
292-
# capture all query options
293-
check_options = nil
294-
@command_manager["query"].when_invoked do |options|
295-
check_options = options
296-
true
297-
end
298-
299-
# check defaults
300-
Gem::Deprecate.skip_during do
301-
@command_manager.process_args %w[query]
302-
end
303-
assert_nil(check_options[:name])
304-
assert_equal :local, check_options[:domain]
305-
assert_equal false, check_options[:details]
306-
307-
# check settings
308-
check_options = nil
309-
Gem::Deprecate.skip_during do
310-
@command_manager.process_args %w[query --name foobar --local --details]
311-
end
312-
assert_equal(/foobar/i, check_options[:name])
313-
assert_equal :local, check_options[:domain]
314-
assert_equal true, check_options[:details]
315-
316-
# remote domain
317-
check_options = nil
318-
Gem::Deprecate.skip_during do
319-
@command_manager.process_args %w[query --remote]
320-
end
321-
assert_equal :remote, check_options[:domain]
322-
323-
# both (local/remote) domains
324-
check_options = nil
325-
Gem::Deprecate.skip_during do
326-
@command_manager.process_args %w[query --both]
327-
end
328-
assert_equal :both, check_options[:domain]
329-
end
330-
331290
# HACK: move to update command test
332291
def test_process_args_update
333292
# capture all update options

0 commit comments

Comments
 (0)