Slideshare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our User Agreement and Privacy Policy.

Slideshare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our Privacy Policy and User Agreement for details.

8.
Packaging and Disribution(2)
• gemcutter.org:
• https://github.com/rubygems/gemcutter
• You can use `gem yank` command after you did invoke `gem i gemcutter`.
• rubygems.org:
• gemcutter.org was renamed to rubygems.org.
• bundler:
• 2010: Released to 1.0.0 version.

9.
A History of Ruby(Short Ver.)
• Ruby 1.8.7 bundled a lot of library named standard library a.k.a stdlib.
• Ruby 1.9.x bundled rubygems that is ruby library packaging and distributing.
• Many of libraries was born after that. Example for rspec, nokogiri, rake and thor. It’s
start time for Ruby language and library ecosystems.
• First Authors of famous library is burnout.
• Some of useful gems are changed maintainers of second generation.
• Ruby 2.4, 2.5
2013
2017
2009
2008

11.
What’s Standard library?
• We called its “標準添付ライブラリ” in Japanese.
• It needs to `require` difference from embedded libraries like
String, Thread, etc.
• https://tech.pepabo.com/2017/09/11/rubykaigi-2017/
• It can be used without Bundler or RubyGems

19.
Security release
We hard to fix and release these security issue. so all of release
maintainer are volunteer work.
But If your Ruby supports Default gems/Bundled gems, You can
upgrade these gems without upgrading ruby interpreter.

22.
JRuby integration
• We need to support Java
implementation now.
• I guarantee compatibility for
other implementation used
by Travis.
In current status, It
compatibility was breaking.
Because It’s beta status.

25.
Current status of rdoc
• I moved canonical repository to ruby/rdoc.
• I handle a project of rdoc and management releases(not
product management)
• Our official tracker named “bugs.ruby-lang.org” is high
threshold. But GitHub resolve this by pull requests.
VS

29.
Why separated the test framework?
The following libraries uses minitest directly in Ruby 2.3:
• rubygems
• rdoc
Other libraries uses test-unit. rubygems and rdoc are developed
at github.com/rubygems/rubygems and github.com/ruby/rdoc.
We need to support these libraries and their tests.

30.
A problem of test-unit/minitest
• It has difference behaviors and namespace from released
gems that are test-unit and minitest.
• [Bug #9660] test/unit, minitest & bundler
• We gave up to maintain compatibility with released gems.
• But @zenspider said “I AM against shipping ruby without a
testing library.”

32.
Make in Ruby
Rake is a Make-like program implemented in Ruby. Tasks and
dependencies are speciﬁed in standard Ruby syntax.
task :awesome do
puts :bar
end
task beat: [:awesome] do
puts :buzz
end
task default: :beat

33.
ruby/rake
•Rake was originally created by Jim Weirich, who unfortunately
passed away in February 2014.
•This repository was originally hosted at github.com/
jimweirich/rake, It has been moved to github.com/ruby/rake by
@drbrain
•Rake adopted SemVer policy. (v0.9.x to v10.x.y)
•@drbrain and @hsbt maintain ruby/rake now.

34.
Concerns of bundled gems
• We couldn’t support to compile C extension on Bundled gems.
• Bundled gems couldn’t support cross compilation.
Ex. We need to make Date gem to bundled gem before extracted
from ruby core.

35.
Concerns of bundled gems(2)
We need test suite for bundled gem with ruby trunk.
• https://gist.github.com/unak/a80b03d9a33de59bedb52e2711410e0d
• https://github.com/ko1/rubyhackchallenge/issues/25
No one guarantee work bundled gems and develop version of
ruby.

37.
Gemiﬁcation for standard library
https://bugs.ruby-lang.org/issues/5481
• We extracted stdlibs like net-telnet, xmlrpc, rake to bundled
gems.
• These are extracted under the https://github.com/ruby/ . And
shipped on rubygems.org
• Other gems are also extracted at the future.

38.
What’s problem of Gamiﬁcation?
• It issue size is too big for human.
• I resolved it used default gems and bundled gems.
• We can promote standard libraries to default gems, after that
we promote it to bundled gems.
• I am moving toward the ﬁnal goal for Gemiﬁcation.

44.
What’s rubygems
RubyGems is a package management framework for Ruby.
• rubygems/rubygems.org:
• The Ruby community's gem host.
• rubygems.org is maintain by infrastructure team of rubygems. It is different
team from rubygems cli team.
• rubygems/rubygems:
• Command line tool of rubygems
• Rubygems are created by Seattle.rb

45.
Current problem of rubygems
Bundler team funded RubyTogether take over rubygems/
rubygems
In the past, We easily discuss maintenance plan and policy
about ruby and rubygems to @tenderlove and @drbrain.
I hard to backport a patch to rubygems from ruby core. Because
these patch only need ruby trunk. It is needless stable versions.

47.
ﬁddle
fiddle is standard library for wrapper of libffi. But fiddle
was already reserved another implementation(https://
github.com/bsm/fiddle) on rubygems.org
I did coordinate to transfer above namespace and
override CRuby implementation(https://github.com/ruby/
fiddle) now.

48.
What we will do?
I must offer to transfer ownership of these gems to
rubygems.org and overwrite it used by ruby stdlib.
My plan for reserved gems:
・Transfer request to owners of reserved gems.
・Removed gemification gems from blacklist on rubygems.org.
・Override reserved gems by standard libraries.

59.
Summary of Today’s talk
• I described about a standard libraries of the Ruby language.
• I introduced speciﬁcation of default gems/bundled gems of
Ruby.
• I shared current status of Rubygems and Gemiﬁcation
projects.
• I shared my plan towards Ruby 3.0.