(Source: Spotify)

0 notes

Awesome gem for recurring sidekiq jobs

Awesome gem for recurring sidekiq jobs

[sidetiq](

class Worker1
    include Sidekiq::Worker
    include Sidetiq::Schedulable

    recurrence { secondly }

    def perform(*args)
    end
end

This gem is using ice_cube gem for using methods like weekly, secondly

0 notes

Use direnv for extending PATH by ./bin folder of the rails project

Use direnv for extending PATH by ./bin folder of the rails project

 direnv edit .

Now add this hook for loading the ./bin folder

export PATH=`pwd`/bin:$PATH

Now everytime when you are going to cd to the project it will automatically extend the PATH by ./bin folder and you can run scripts without bundle exec because it has already binstubs

Generate bin stubs you can use this alias:

alias="bundle install --binstubs --path vendor/bundle"

0 notes

Use spring with guard together

Use spring with guard together

Today I’ve started to use spring instead of the spark gem. It’s working great for the rails console, spec, guard.

I added gems:

gem 'spring'
gem 'spring-commands-rspec'
gem 'spring-guard'

Then I’ve rebuild the binstubs:

spring binstub rails rake rspec

And setup the guard file using the spring configuration:

guard init spring

Now it’s working quite fast for me. It’s really awesome that I can get the routes and access to the rails console in few seconds instead of waiting…

0 notes

scriptonia turned 4 today!

scriptonia turned 4 today!

(Source: assets)

0 notes

(Source: Spotify)

0 notes

Custom validator for angularjs

0 notes