[ANN] rubygems-update 1.8.0

E

Eric Hodel

rubygems-update version 1.8.0 has been released!

* <http://rubygems.org>
* <http://docs.rubygems.org>
* <http://help.rubygems.org>
* <http://github.com/rubygems>
* <http://rubyforge.org/projects/rubygems>

RubyGems is a package management framework for Ruby.

This gem is an update for the RubyGems software. You must have an
installation of RubyGems before this update can be applied.

See Gem for information on RubyGems (or `ri Gem`)

To upgrade to the latest RubyGems, run:

$ gem update --system # you might need to be an administrator or root

See UPGRADING.rdoc for more details and alternative instructions.

-----

If you don't have RubyGems installed, your can still do it manually:

* Download from: https://rubygems.org/pages/download
* Unpack into a directory and cd there
* Install with: ruby setup.rb # you may need admin/root privilege

For more details and other options, see:

ruby setup.rb --help

=3D=3D=3D 1.8.0 / 2011-04-34

This release focused on properly encapsulating functionality. Most of =
this
work focused on moving functionality out of Gem::SourceIndex and
Gem::GemPathSearcher into Gem::Specification where it belongs.

After installing RubyGems 1.8.0 you will see deprecations when loading =
your
exsting gems. Run `gem pristine --all --no-extensions` to regenerate =
your
gem specifications safely.

Currently RubyGems does not save the build arguments used to build gems =
with
extensions. You will need to run `gem pristine gem_with_extension --
--build-arg` to regenerate a gem with an extension where it requires =
special
build arguments.

See also:

http://blog.zenspider.com/2011/05/rubygems-18-is-coming.html

* 24(+) Deprecations (WOOT!):

* DependencyList.from_source_index deprecated the source_index =
argument.
* Deprecated Dependency.new(/regex/).
* Deprecated Gem.searcher.
* Deprecated Gem.source_index and Gem.available?
* Deprecated Gem: activate_dep, activate_spec, activate,
report_activate_error, and required_location.
* Deprecated Gem::all_partials
* Deprecated Gem::cache_dir
* Deprecated Gem::cache_gem
* Deprecated Gem::default_system_source_cache_dir
* Deprecated Gem::default_user_source_cache_dir
* Deprecated Platform#empty?
* Deprecated Specification.cache_gem
* Deprecated Specification.installation_path
* Deprecated Specification.loaded, loaded?, and loaded=3D
* Deprecated all of Gem::SourceIndex.
* Deprecated all of Gem::GemPathSearcher.
* Deprecated Gem::Specification#default_executable.

* 2 major enhancements:

* Gem::SourceIndex functionality has been moved to Gem::Specification.
Gem::SourceIndex is completely disconnected from Gem::Specification
* Refactored GemPathSearcher entirely out. RIPMF

* 41 minor enhancements:

* Added CommandManager#unregister_command
* Added Dependency#matching_specs + to_specs.
* Added Dependency#to_spec
* Added Gem.pre_reset_hook/s and post_reset_hook/s.
* Added GemCommand.reset to reinitialize the singleton
* Added Specification#activate.
* Added Specification#activated, activated=3D, and activated?
* Added Specification#base_dir.
* Added Specification#bin_dir and bin_file.
* Added Specification#cache_dir and cache_file. Aliased cache_gem.
* Added Specification#doc_dir and ri_dir.
* Added Specification#find(name_or_dep, *requirements).
* Added Specification#gem_dir and gems_dir.
* Added Specification#spec_dir and spec_file.
* Added Specification.add_spec, add_specs, and remove_spec.
* Added Specification.all=3D. If you use this, we will light you on =
fire.
* Added Specification.all_names.
* Added Specification.dirs and dirs=3D. dirs=3D resets.
* Added Specification.find_all_by_name(name, *reqs)
* Added Specification.latest_specs. SO TINY!
* Added TestCase#all_spec_names to help clean up tests
* Added TestCase#assert_path_exists and refute_path_exists. Will move =
to
minitest.
* Gem.sources no longer tries to load sources gem. Only uses =
default_sources.
* Installer no longer accepts a source_index option.
* More low-level integration.
* Removed Gem::FileOperations since it is a dummy class
* Removed a comment because I am dumb
* Removed pkgs/sources/lib/sources.rb
* Revamped indexer to mostly not use SourceIndex (legacy index =
requires it).
* Rewrote our last functional test suite to be happy and fast
* RubyGems is now under the Ruby License or the MIT license
* Specification#=3D=3D now only checks name, version, and platform.
* Specification#authors=3D now forcefully flattens contents (bad =
rspec! no
cookie!)
* Specification#eql? checks all fields.
* Specification#installation_path no longer raises if it hasn't been
activated.
* Specification#validate now ensures that authors is not empty.
* TestCase.util_setup_spec_fetcher no longer returns a SourceIndex.
* Uninstaller no longer passes around SourceIndex instances
* Warn on loading bad spec array values (ntlm-http gem has nil in its =
cert
chain)
* `gem pristine` now accepts --no-executables to skip restoring gems =
with
extensions.
* `gem pristine` can now restore multiple gems.

* 6 bug fixes:

* DependencyInstaller passed around a source_index instance but used
Gem.source_index.
* Fixed Platform#=3D=3D and #hash so instances may be used as hash =
keys.
* Fixed broken Specification#original_platform. It should never be =
nil.
* Gem::Text#format_text now strips trailing whitespace
* Normalize LOAD_PATH with File.expand_path
* `gem build` errors should exit 1.
* `gem pristine` can now restore non-latest gems where the cached gem =
was
removed.
 
R

Roger Pack

* 24(+) Deprecations (WOOT!):

As a note, running

$ gem rdoc flickraw

with 1.8.1 shows lots of deprecation warnings, which was a bit
unexpected.
Cheers!
-r
 
R

Roger Pack

After installing RubyGems 1.8.0 you will see deprecations when loading
your
exsting gems. Run `gem pristine --all --no-extensions` to regenerate
your
gem specifications safely.


Also as note, after running the above command, I still get this message:

NOTE: Gem::Specification#default_executable= is deprecated with no
replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from
C:/installs/Ruby187/lib/ruby/gems/1.8/specifications/ruby-prof-0.10.4.gemspec:10.

So I guess it doesn't update the specs for outdated gems?
Cheers!
-r
 
R

Ryan Davis

=20
=20
Also as note, after running the above command, I still get this = message:
=20
NOTE: Gem::Specification#default_executable=3D is deprecated with no=20=
replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable=3D called from=20
= C:/installs/Ruby187/lib/ruby/gems/1.8/specifications/ruby-prof-0.10.4.gems=
pec:10.
=20
So I guess it doesn't update the specs for outdated gems?

--no-extensions skips gems with extensions...
 
R

Ryan Davis

=20
As a note, running
=20
$ gem rdoc flickraw
=20
with 1.8.1 shows lots of deprecation warnings, which was a bit=20
unexpected.

That's an oversight on my part. Looks like we don't have tests for that =
command. :/

Can you file a ticket?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top