In math, a unary operation is an operation with a single input. In Ruby, a unary operator is an operator which only takes a single 'argument' in the form of a receiver. For example, the - on -5 or ! on !true. In contrast, a binary operator, such as in 2 + 3, deals with two arguments. Here, 2 and 3 (which become one receiver and one argument in a method call to +). Ruby only has a handful of unary
Ruby Weekly is a weekly newsletter covering the latest Ruby and Rails news. The Ruby standard library (a.k.a. stdlib) is a collection of Ruby libraries that, at one time or another, have been considered useful enough to include with the MRI Ruby implementation by standard. Due to the popularity of these libraries, other Ruby implementations have then tended to re-implement or include the standard
Ruby Weekly is a weekly newsletter covering the latest Ruby and Rails news. Recently, there have been many screencasts of people coding things in real time. Yesterday, Ryan Bigg released a video of him implementing Conway's Game of Life from scratch by reading through the 'rules' and then using RSpec to take a test driven approach to fleshing out the functionality. Ryan is a Ruby Hero and technica
Ruby Weekly is a weekly newsletter covering the latest Ruby and Rails news. On August 1, 2011, Ruby 1.9.3 preview 1 was released. The final version isn't yet out (as of September 23) but Ruby 1.9.3 is going to be the next, full production-level release of MRI Ruby. But what's the deal with 1.9.3 (and its successors, Ruby 1.9.4 and 2.0)? Keep reading! The Summary Ruby 1.9.3 is a relatively minor im
Ruby Weekly is a weekly newsletter covering the latest Ruby and Rails news. Despite RSpec's awesomeness, Test::Unit remains the most popular Ruby testing tool out there outside of Rails apps. I've recently been code walking through a lot of Ruby libraries for my Ruby Reloaded course and the typical arrangement is Test::Unit, sometimes coupled with Shoulda or Contest for some extra syntactic sweetn
Ruby Weekly is a weekly newsletter covering the latest Ruby and Rails news. Rails 3 is great. RSpec 2 is great. And Ruby 1.9.2 is really great. Getting them all running together and quickly, however, isn't entirely straightforward. In this post I demonstrate how to get everything ticking over along with automatically running, super-snappy test runs. The ultimate outcome is using Ruby 1.9.2 (though
Ruby Weekly is a weekly newsletter covering the latest Ruby and Rails news. A few months ago, Ruby Inside wrote about using Spork with RSpec 2 and Rails 3 in order to get a more sprightly spec run. Unfortunately, using the techniques in the article with our fledgling codebase's test suite left us with somewhat disappointing results, so I decided to dig deeper and see if I could do better. Note: Th
Ruby Weekly is a weekly newsletter covering the latest Ruby and Rails news. Official project sites should set the benchmark for standards relating to that project in terms of the best quality and most up to date news updates, documentation, download links, tutorials, and so forth. On this front, Ruby's official site at ruby-lang.org is doing a bad job (in the English language variant, at least). U
Ruby Weekly is a weekly newsletter covering the latest Ruby and Rails news. Ruby on Rails' creator David Heinemeier Hansson is currently at RailsConf 2011 along with hundreds of other Ruby and Rails developers. In a first for RailsConf, there's a live stream of some of the event which is was embedded below so you could watch DHH's keynote. DHH's keynote starts started at around 9.15am Eastern on M
Ruby Weekly is a weekly newsletter covering the latest Ruby and Rails news. Maybe I'm weird (actually, there's no maybe about it) but when I first heard about Rails 3.1 getting CoffeeScript and Sass out of the box, I wanted to see how it worked and how smooth the process would be. So like quite a few people on IRC I've seen, I installed edge Rails (currently 3.1.0-beta) and got playing. (Yes, it's
Ruby Weekly is a weekly newsletter covering the latest Ruby and Rails news. As an outspoken and opinionated guy, David Heinemeier Hansson (a.k.a. DHH), creator of Rails, is no stranger to a little bit of controversy. He frequently sets off interesting debates on Twitter from his @dhh account. The latest is, perhaps, the most involved yet and has been rattling on for a couple of hours today. So wha
Ruby Weekly is a weekly newsletter covering the latest Ruby and Rails news. Yes, I'm sad enough to have had this in my calendar for some time but.. it's Ruby's 18th "birthday" today! Happy Birthday Ruby! While this means it can drink, vote, and otherwise join its slightly older friends Perl (24) and Python (21) in the nightclubs of Europe, I was surprised to learn that coming of age in Japan is at
Two Security Vulnerabilities Force 3 New Releases of MRI Ruby 1.8.7, 1.9.1, and 1.9.2 It's been a dies horribilis for MRI Ruby today with two new security vulnerabilities forcing the release of 3 new recommended production versions of the de facto official Ruby interpreter. The first, a vulnerability in FileUtils.remove_entry_secure affects both 1.8 and 1.9 branches, while the second, a $SAFE mode
Ruby Weekly is a weekly newsletter covering the latest Ruby and Rails news. Ryan Davis has announced the release of RubyGems 1.5.0. It comes just a month after the release of 1.4 which, notoriously, didn't work with Ruby 1.9.2. These problems have now all been ironed out and Ruby 1.8 and 1.9 users alike can safely upgrade (fingers crossed). RubyGems is the popular (and official - as of Ruby 1.9) R
Ruby Weekly is a weekly newsletter covering the latest Ruby and Rails news. Eloy Duran (of the Dutch Rails consultancy Fingertips) has put together an interesting side project: a WebKit plugin written in MacRuby. His 'MacRubyWebKitPluginExample' project on GitHub is a short, self contained example of how to pull it off, so it's worth checking out if you want to do something similar. Eloy's example
Ruby Weekly is a weekly newsletter covering the latest Ruby and Rails news. You may imagine that the ruby-core mailing list is a 24/7 programming disco dealing with core Ruby implementation topics.. but no, it's usually a low-traffic list with calm discussion of bugs and patches. This week, however, some Interesting Stuff™ has happened and the kimono has been lifted on a few issues including, nota
Ruby Weekly is a weekly newsletter covering the latest Ruby and Rails news. VCR is a library by Myron Marston that records your test suite's HTTP interactions so that they can be quickly replayed during future test runs. The big win is that you get predictable, quick and accurate tests. If you need to update the data, just delete the fixtures VCR generates and you're good to go. On the surface, VC
Ruby Weekly is a weekly newsletter covering the latest Ruby and Rails news. Been missing esteemed rapper and author Coolio (real name Tony Arcieri) recently? He's been busy studying Ruby and building Cool.io (or GitHub repo), a Node.js and Sinatra inspired "event framework" for Ruby powered by libev. Think EventMachine but with a cuter, Sinatra-style API. cool.io isn't exactly new, though, it's a
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く