Searched refs:Gem (Results 1 - 25 of 223) sorted by relevance

123456789

/macosx-10.10.1/ruby-106/ruby/
H A Dgem_prelude.rb1 require 'rubygems.rb' if defined?(Gem)
/macosx-10.10.1/ruby-106/ruby/test/rubygems/
H A Dbogussources.rb8 Gem.use_paths("test/mock/gems")
H A Dtest_gem_name_tuple.rb4 class TestGemNameTuple < Gem::TestCase
6 n = Gem::NameTuple.new "a", Gem::Version.new(0), "ruby"
9 n = Gem::NameTuple.new "a", Gem::Version.new(0), nil
12 n = Gem::NameTuple.new "a", Gem::Version.new(0), ""
H A Drubygems_plugin.rb8 class Gem::Commands::InterruptCommand < Gem::Command class
20 Gem::CommandManager.instance.register_command :interrupt
H A Dtest_config.rb4 class TestConfig < Gem::TestCase
8 spec = Gem::Specification.find_by_name("a")
10 assert_equal "#{spec.full_gem_path}/data/a", Gem.datadir('a')
H A Dtest_deprecate.rb6 class TestDeprecate < Gem::TestCase
11 # Gem::Deprecate.saved_warnings.clear
12 @original_skip = Gem::Deprecate.skip
13 Gem::Deprecate.skip = false
19 # Gem::Deprecate.saved_warnings.clear
20 Gem::Deprecate.skip = @original_skip
28 Gem::Deprecate.skip = false
29 assert_equal false, Gem::Deprecate.skip
31 Gem::Deprecate.skip = true
32 assert_equal true, Gem
[all...]
H A Dtest_gem_platform.rb5 class TestGemPlatform < Gem::TestCase
10 assert_equal Gem::Platform.new(%w[x86 darwin 8]), Gem::Platform.local
14 assert Gem::Platform.match(nil), 'nil == ruby'
15 assert Gem::Platform.match(Gem::Platform.local), 'exact match'
16 assert Gem::Platform.match(Gem::Platform.local.to_s), '=~ match'
17 assert Gem::Platform.match(Gem
[all...]
H A Dtest_gem_gem_runner.rb4 class TestGemGemRunner < Gem::TestCase
9 @orig_args = Gem::Command.build_args
15 Gem::Command.build_args = @orig_args
19 Gem.clear_paths
26 Gem.ensure_gem_subdirectories other_gem_path
27 Gem.ensure_gem_subdirectories other_gem_home
37 gr = Gem::GemRunner.new
40 assert_equal [other_gem_path, other_gem_home], Gem.path
41 assert_equal %w[--commands], Gem::Command.extra_args
45 Gem
[all...]
H A Dtest_gem_commands_search_command.rb4 class TestGemCommandsSearchCommand < Gem::TestCase
9 @cmd = Gem::Commands::SearchCommand.new
H A Dtest_gem_commands_mirror.rb4 class TestGemCommandsMirrorCommand < Gem::TestCase
9 @cmd = Gem::Commands::MirrorCommand.new
11 @mirror_specs = Gem::Specification.find_all_by_name('rubygems-mirror').each do |spec|
12 Gem::Specification.remove_spec spec
18 Gem::Specification.add_spec spec
/macosx-10.10.1/ruby-106/ruby/lib/rubygems/
H A Dext.rb12 module Gem::Ext; end module
H A Dexceptions.rb9 class Gem::Exception < RuntimeError class
13 class Gem::CommandLineError < Gem::Exception; end class
15 class Gem::DependencyError < Gem::Exception; end class
17 class Gem::DependencyRemovalException < Gem::Exception; end class
22 class Gem::GemNotInHomeException < Gem::Exception class
26 class Gem class
30 class Gem::EndOfYAMLException < Gem::Exception; end class
36 class Gem::FilePermissionError < Gem::Exception class
50 class Gem::FormatException < Gem::Exception class
54 class Gem::GemNotFoundException < Gem::Exception; end class
56 class Gem::SpecificGemNotFoundException < Gem::GemNotFoundException class
68 class Gem::InstallError < Gem::Exception; end class
72 class Gem::InvalidSpecificationException < Gem::Exception; end class
74 class Gem::OperationNotSupportedError < Gem::Exception; end class
83 class Gem::RemoteError < Gem::Exception; end class
85 class Gem::RemoteInstallationCancelled < Gem::Exception; end class
87 class Gem::RemoteInstallationSkipped < Gem::Exception; end class
91 class Gem::RemoteSourceException < Gem::Exception; end class
93 class Gem::VerificationError < Gem::Exception; end class
99 class Gem::SystemExitException < SystemExit class
[all...]
H A Dinstall_message.rb8 Gem.post_install do |installer|
9 ui = Gem::DefaultUserInteraction.ui
H A Dversion_option.rb10 # Mixin methods for --version and --platform Gem::Command options.
12 module Gem::VersionOption module
18 OptionParser.accept Gem::Platform do |value|
19 if value == Gem::Platform::RUBY then
22 Gem::Platform.new value
26 add_option('--platform PLATFORM', Gem::Platform,
30 Gem.platforms = [Gem::Platform::RUBY]
34 Gem.platforms << value unless Gem
[all...]
H A Dgem_runner.rb14 Gem.load_env_plugins rescue nil
19 # Gem::GemRunner is only intended for internal use by RubyGems itself. It
25 class Gem::GemRunner class
29 @command_manager_class = options[:command_manager] || Gem::CommandManager
30 @config_file_class = options[:config_file] || Gem::ConfigFile
50 config_args = Gem.configuration[command_name]
57 Gem::Command.add_specific_extra_args command_name, config_args
60 cmd.run Gem.configuration.args, build_args
66 Gem.configuration = @config_file_class.new(args)
67 Gem
[all...]
H A Dcompatibility.rb11 module Gem module
16 # Gem::QuickLoader exists in the gem prelude code in ruby 1.9.2 itself.
18 if Gem::GEM_PRELUDE_SUCKAGE and defined?(Gem::QuickLoader) then
19 Gem::QuickLoader.remove
21 $LOADED_FEATURES.delete Gem::QuickLoader.path_to_full_rubygems_library
28 class << Gem
29 remove_method :try_activate if Gem.respond_to?(:try_activate, true)
33 module Gem module
H A Dsource_specific_file.rb1 class Gem::Source::SpecificFile < Gem::Source class
6 @package = Gem::Package.new @path
19 raise Gem::Exception, "Unable to find '#{name}'"
25 raise Gem::Exception, "Unable to download '#{spec.full_name}'"
/macosx-10.10.1/ruby-106/ruby/test/rubygems/rubygems/commands/
H A Dcrash_command.rb1 class Gem::Commands::CrashCommand < Gem::Command class
/macosx-10.10.1/ruby-106/ruby/lib/rubygems/commands/
H A Dmirror_command.rb3 class Gem::Commands::MirrorCommand < Gem::Command class
7 Gem::Specification.find_by_name('rubygems-mirror').activate
8 rescue Gem::LoadError
H A Doutdated_command.rb6 class Gem::Commands::OutdatedCommand < Gem::Command class
8 include Gem::LocalRemoteOptions
9 include Gem::VersionOption
19 Gem::Specification.outdated.sort.each do |name|
20 local = Gem::Specification.find_all_by_name(name).max
21 dep = Gem::Dependency.new local.name, ">= #{local.version}"
22 remotes, _ = Gem::SpecFetcher.fetcher.spec_for_dependency dep
H A Dbuild_command.rb4 class Gem::Commands::BuildCommand < Gem::Command class
26 spec = Gem::Specification.load gemspec
29 Gem::Package.build spec, options[:force]
/macosx-10.10.1/ruby-106/ruby/bin/
H A Dgem12 required_version = Gem::Requirement.new ">= 1.8.7"
14 unless required_version.satisfied_by? Gem.ruby_version then
15 abort "Expected Ruby Version #{required_version}, is #{Gem.ruby_version}"
21 Gem::GemRunner.new.run args
22 rescue Gem::SystemExitException => e
/macosx-10.10.1/ruby-106/ruby/lib/rake/
H A Dgempackagetask.rb13 GemPackageTask = Gem::PackageTask
/macosx-10.10.1/ruby-106/ruby/lib/minitest/
H A Dautorun.rb11 rescue Gem::LoadError
/macosx-10.10.1/ruby-106/ruby/lib/rubygems/ext/
H A Dcmake_builder.rb1 class Gem::Ext::CmakeBuilder < Gem::Ext::Builder class
5 cmd << " #{Gem::Command.build_args.join ' '}" unless Gem::Command.build_args.empty?

Completed in 143 milliseconds

123456789