Advanced Capistrano usage

Posted by Dmytro Shteflyuk on under Development (9,059 views)

spacer

One of the most important parts of a development process is an application deployment. There are many tools developed to make this process easy and painless: from the simple inploy to a complex all-in-one chef-based solutions. My tool of choice is Capistrano, simple and incredibly flexible piece of software. Today I’m going to talk about some advanced Capistrano usage scenarios.

Read the rest of entry »

Tagged with campfire, capistrano, deployment, passenger, Ruby & Rails

2 Comments

Submitting a patch to the Open Source project: composite_primary_keys

Posted by Dmytro Shteflyuk on under Ruby & Rails (11,819 views)

spacer

Not so far ago I have found a weird bug in the Open Source Ruby gem called composite_primary_keys, occurred when you specify :primary_key option for has_one or has_many association. There are two ways to get it fixed: submit an issue and wait till someone will work out this problem or fix it by yourself and then pull request to get the patch merged into the core. This is a great library and I use it in almost all my project, so I decided to help the author and fix this bug by myself. Here I will show you how to do that.

Read the rest of entry »

Tagged with composite_primary_keys, gems, opensource, ruby, Ruby & Rails

My top 7 RSpec best practices

Posted by Dmytro Shteflyuk on under Ruby & Rails (58,345 views)

spacer

I use RSpec in all my projects. 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.

Read the rest of entry »

Tagged with factory, fixtures, mock, rails, rake, RSpec, ruby

20 Comments

Weekly Link Dump #2

Posted by Dmytro Shteflyuk on under Links · spacer (9,740 views)

Time to post some interesting stuff I’ve found in Internet last week. Today we going to talk about CSS font stacks, Ruby structs, extract_options! method came from Active Support, bash scripting, software version control visualization.

Read the rest of entry »

Tagged with bash, css, cvs, font, git, gource, linkdump, rails, ruby, scripting, struct, visualization

Weekly Link Dump #1

Posted by Dmytro Shteflyuk on under Links (7,449 views)

This is a first link dump in this blog, where I will list all interesting links that I have found in Internet. I plan to post link dumps once a week, so stay tuned to read most useful stuff with no effort. Todays topics are: organizing your CSS, top mistakes made by WordPress plugins authors, ways MySQL uses indexes, and the git version control advantages over the Subversion.

Read the rest of entry »

Tagged with css, git, linkdump, MySQL, performance, plugins, subversion, WordPress

Previous page
 
gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.