background preloader

Ruby

Facebook Twitter

Twitter

Rspec. More stuff in ruby. Rvideo - Project Hosting on Google Code. RVideo is a Ruby library inspects and processes video and audio files by providing an interface to free Unix tools like ffmpeg.

rvideo - Project Hosting on Google Code

Installing Installation is a little involved. First, install the gem: sudo gem install rvideo Next, install ffmpeg and (possibly) other related libraries. Sudo port install ffmpeg Or, for a better build (recommended), add additional video- and audio-related libraries, like this: sudo port install ffmpeg +lame +libogg +vorbis +faac +faad +xvid +x264 +a52 Most package management systems include a build of ffmpeg, but many include a poor build.

If you want to create Flash Video files, also install flvtool2: sudo gem install flvtool2 Once ffmpeg and RVideo are installed, you’re set. Ruby Brasil - Guia do Usuário - Parte 5. The Ruby Language FAQ. Os melhores livros de Ruby : self. Quatro dias de Ruby On Rails – Primeiro dia » Blog do Urubatan. O a Phusion construiu um interpretador melhor do Ruby 1.8. Publicado por Rafael Rosa em 21 de December de 2009.

o a Phusion construiu um interpretador melhor do Ruby 1.8

Nome do Jogo. 7 coisas que você precisa conhecer no RSpec. O RSpec é um framework bastante completo e, por isso mesmo, muitas coisas são desconhecidas por grande parte dos desenvolvedores.

7 coisas que você precisa conhecer no RSpec

Neste artigo, você conhecerá 7 coisas que irão mudar a maneira como você utiliza o RSpec. Subject O RSpec possui um método muito útil chamado subject, que retorna uma instância da classe que está sendo utilizada como contexto do exemplo. describe User do it { should_not be_admin } end. Raakt - The Ruby Accessibility Analysis Kit - RAAKT. Raakt is a web accessibility analysis tool that makes it easy to integrate basic accessibility evaluation early in the development process.

Raakt - The Ruby Accessibility Analysis Kit - RAAKT

This means that you will save time (and money) as basic technical accessibility issues can be caught automatically as part of your automated test procedure. What separates Raakt from other accessibility evaluation tools is that only Tests that are machine verifiable are included. Text processing with Ruby. On the same page as Perl or Python, Ruby has great capabilities to be a powerful text processing language.

Text processing with Ruby

This article briefly talks about the textual data processing abilities of Ruby and how you can use it to efficiently handle different formats of textual data, whether CSV data or XML data. Ruby strings Strings in Ruby are a powerful way to hold, compare, and manipulate textual data. In Ruby, String is a class that you can instantiate by invoking String::new or by just assigning a literal value. When you assign values to Strings, you can use a pair of single quotes (') to enclose the value, or a pair of double quotes ( "" ). Listing 1 is an example.

Listing 1. Net-ssh. Learn Ruby on Rails: the Ultimate Beginner's Tutorial [Ruby & Rails] Ruby on Rails is the web development framework of the moment, powering GitHub, Twitter, Hulu and many more successful apps and websites.

Learn Ruby on Rails: the Ultimate Beginner's Tutorial [Ruby & Rails]

The arrival of Rails 4 is the perfect time to learn it. SitePoint’s newest ebook, ‘Jump Start Rails’, from Andy Hawthorne, will get you up to speed with Ruby on Rails in just a weekend. 7 coisas que voc precisa conhecer no RSpec Simples Ideias. Por Nando Vieira. O RSpec é um framework bastante completo e, por isso mesmo, muitas coisas são desconhecidas por grande parte dos desenvolvedores.

7 coisas que voc precisa conhecer no RSpec Simples Ideias. Por Nando Vieira.

Neste artigo, você conhecerá 7 coisas que irão mudar a maneira como você utiliza o RSpec. Subject O RSpec possui um método muito útil chamado subject, que retorna uma instância da classe que está sendo utilizada como contexto do exemplo. describe User do it { should_not be_admin } end. “On Rake” by John Barnette. I’ve been reading a lot of Rakefiles lately, and it’s obvious that the folks writing them think of Rake as An Engine For Encapsulating Tasks.

“On Rake” by John Barnette

That’s fine, but it’s only part of what Rake can do. I Do Declare Rake is all about resolving dependencies. It’s about being declarative, not imperative. Especially when dealing with files and directories, this can make a huge difference. Desc "Make sure your database.yml is in place"task :wheres_your_database_yml do unless File.exists? (This is from technicalpickles’ dude-wheres-your-database-yml, a nice little Rails plugin for automatically installing a database.yml file the first time a new contributor runs Rake. This says, “Hey, if there’s not a config/database.yml file, create it by copying config/database.yml.example. Rails in a Nutshell. Rails Framework Documentation. My top 7 RSpec best practices. I use RSpec in all my projects.

My top 7 RSpec best practices

It’s really hard to overemphasize how helpful it is and how much easier becomes your life if you have good specs coverage. But its outstanding flexibility enables many ways to make your specs awful: horribly slow, over-bloated, even non-readable sometimes. I do not want to teach you BDD and RSpec here, but instead I will give you some ideas how to improve your specs quality and increase efficiency of your BDD workflow. 1. Use before :all block carefully Sometimes it looks like a good idea to create a test data in before :all block. Another option is to move your before :all blocks to before :each to make them rolled back automatically. 2. Ruby Application Archive. RIOT - testing ruby. Ruby at ThoughtWorks.

ThoughtWorks started using Ruby for production projects in 2006, from then till the end of 2008 we had done 41 ruby projects.

Ruby at ThoughtWorks

In preparation for a talk at QCon I surveyed these projects to examine what lessons we can draw from the experience. I describe our thoughts so far on common questions about Ruby's productivity, speed and maintainability. So far our conclusions are that Ruby is a viable platform that should be seriously considered for many forms of applications - in particular web applications using Ruby on Rails. I also go through some technical lessons, including some thoughts on testing with Active Record.

ThoughtWorks, my employer, is primarily a software delivery company. A few people, however, had started experimenting with LAMP scripting languages, in particular Ruby. During these three years we've learned a lot about Ruby in practice. I've divided the article into three parts. Rails Wiki => Rails Wiki. Sipper - Create any callflow. Welcome to SIPr SIPr, pronounced as Sipper is an open source SIP application testing framework with simple objective of making the life of SIP developer and tester easier.

With SIPr you can not only create complex SIP and converged application call flows, but create them with ease. Our motto is - "Create any call flow - no exceptions" Show it to me Seeing is believing. What do I need to use it? SIPr test cases and controllers are written in pure Ruby, which is a joy to write, but you don't need to be a Ruby expert to use it. Tutorial, videos, articles, screencast to learn technology" Ruby Plus Free Ruby and Rails Screencasts. Recursos em Português - Guru-SP. Slides da minha apresentação no Rails Summit 2009 - couchdb couchrest rails rails summit railssummit. Screencasts. Nome do Jogo – Vídeos. 7 Apresentações da WindyCityRails 2009 Conference. Lucas Catón » [Tutorial] Traduzir rotas do Ruby on Rails com o plugin translate_routes.

Neste tutorial vou ensinar como traduzir rotas no Ruby on Rails, usando um plugin chamado translate_routes. No Rails, uma boa prática é usar o inglês para nomear controllers, models, views, layouts, helpers, etc. O problema é que às vezes não fica legal deixar as URLs em inglês, principalmente quando você vai desenvolver um site estático (um site institucional por exemplo), o seu cliente pode não gostar. É aí que entra o plugin “translate_routes”. Nós traduziremos somente as URLs públicas, porém todo código backend não será afetado. Ah! Atenção: os comandos de terminal que são usados neste tutorial foram feitos no Linux, embora pouca coisa mude no Mac ou no Windows. Então, mãos à obra: 1. 2. 3. 4. Better Ruby through Functional Programming by Dean Wampler. Rails Shell Application in 10 easy steps.

Learning Rails Free Online Course, Learn to Build Web Applications with Ruby on Rails. The Learning Rails Online Course is written and produced by Michael Slater and Christopher Haupt, who run BuildingWebApps.com and Webvanta, which provides a hosted CMS based on Ruby on Rails. Michael Slater Michael has been building web applications exclusively with Rails since the fall of 2006. He has led software development teams at Adobe and Fotiva and is a well-known speaker and author. During the years he ran the Microprocessor Report newsletter, Michael presented hundreds of seminars. Christopher Haupt. Getting Started. 15 recomendações para aumentar a qualidade do seu código Rails. Publicado por Rafael Rosa em 07 de October de 2009 O Checklist de qualidade para Ruby on Rails (em inglês) é uma lista com 15 recomendações escritas por Matthew Paul Moore que devem ser seguidas por desenvolvedores Rails para aumentar a qualidade do código de suas aplicações.

Essa lista já tem 1 ano, então é anterior ao Rails 2.2 e 2.3, mas voltou a aparecer nos rankings dos sites de bookmarking social, e achei que valia a pena trazê-lo a tona. O Guia (comovente) de Ruby do Why. Gedit com cara de TextMate. Atualizado em: 19/03/2010 Para desenvolver com Ruby on Rails em Linux uma boa alternativa para editores de texto é o Gedit com alguns plugins. Longe de ficar igual ao TextMate, mas digamos que assim dá um “gostinho a mais” para escrever alguns códigos, logicamente o intuito aqui não é mudar a “cara” do Gedit somente, mas sim utilizar algumas ferramentas para tornar mais ágil o desenvolvimento, como atalhos, auto-completar de textos, busca rápida de arquivos dentro do projeto, etc. Rails Envy.

Professional Screencast Tutorials. Guru-SP.