Ruby 2.2
by Vít Ondruch
Hi everybody,
Since Ruby 2.2 is going to be released during Christmas and -preview1
release is imminent (this Wednesday?), it is probably time to start
looking into its packaging. So here is the updated .spec file [1] and
scratch build [2], which can be finally build on all platforms. Sorry,
no Copr for you, since Ruby's build fails there due to old RHEL kernel :/.
What has changed from packaging point of view? Luckily, not much, but
here are a few bullets which comes to my mind:
* RPM 4.12 introduces new %load function, which is used to load RPM
macros during RPM build. This allowed to drop my custom RPM macro [3].
On the other hand, you'll be able to build the Ruby only on F21+
(luckily, you should be able to build SRPM everywhere).
* The RubyGems filesystem was not explicit enough, so there might be
something accidentally packages. This is now more explicit, so we should
be safer.
* Ruby now ships with MiniTest and Test::Unit. The very good news is
that they are installed so far as a regular gems. This means that you
have to always specify them in your Gemfile, if you are using Bundler,
but this is generally step in good direction. I hope that upstream will
not change their mind :) Due to this change, we have new subpackages
rubygem-test-unit (and rubygem-power_assert, which is now Test::Unit's
dependency). No more %{_bindir}/testrb (but nobody is using it these
days anyway, right? ;)
* Some prevailing test failures were resolved, some others introduced,
but hopefully they'll get resolved prior stable release.
Generally, I'd say that not much has changed since 2.1, which is good news.
Please test the packaging if you can and let me know about any issues
you encountered.
Also, if you have any other suggestions about Ruby packaging in general,
what we could improve etc, this is probably good time to share. It seems
that OpenSUSE guys are improving their packaging, so you might want to
get some inspiration there [4, 5, 6] ;)
Vít
[1] http://pkgs.fedoraproject.org/cgit/ruby.git/log/?h=private-ruby-2.2
[2] http://koji.fedoraproject.org/koji/taskinfo?taskID=7578843
[3]
http://pkgs.fedoraproject.org/cgit/ruby.git/commit/?h=private-ruby-2.2&id...
[4] https://build.opensuse.org/package/show/home:darix:ruby/ruby-common
[5] https://build.opensuse.org/package/show/home:darix:ruby/ruby2.2
[6] https://github.com/openSUSE/gem2rpm/commits/master
2 months, 2 weeks
Ruby on Rails 4.2 landed in Rawhide, 22
by Josef Stribny
Hi all,
I finished the work on the Ruby on Rails 4.2 change[0]. Rails 4.2 is now built for Fedora Rawhide and 22.
The most significant additions in 4.2 are:
- Active Job
- Asynchronous mails
- Adequate Record
- Web Console
- Foreign key support
- GlobalID
Check the release notes[1] for details.
You can help to test the new update as follows:
su -c "yum install rubygem-{rails,sqlite3,coffee-rails,sass-rails,uglifier,jquery-rails,turbolinks,jbuilder,therubyracer,sdoc,spring,byebug,web-console}"
rails new app --skip-bundle && cd app
sed -i "s|# gem 'therubyracer'|gem 'therubyracer'|" Gemfile
rails s
I would also like to thank Vit for getting some of the new gems to Fedora.
Best Regards
Josef
[0] https://fedoraproject.org/wiki/Changes/Ruby_on_Rails_4.2
[1] http://guides.rubyonrails.org/4_2_release_notes.html
8 years, 9 months
rspec on rawhide upgraded to 3.2.x
by Mamoru TASAKA
Hello, ruby hackers:
I've upgraded rspec related packages to 3.2.x. I guess no significant
changes will happen, however please try them.
Regards,
Mamoru
8 years, 10 months
ruby-2.2.0-5.fc22 is broken
by Vít Ondruch
I have not tested enough the ruby-2.2.0-5.fc22 and it does not work
properly (it cannot list/load gems). I untagged it from f22, so you
should be back to ruby-2.2.0-4.fc22 after repo is regenerated. Sorry for
any inconvenience.
Vít
8 years, 10 months