Show more

I put it in a file called `~/bin/test-diff` and mark it as executable.

A script to run tests changed since master, pretty handy when checking PRs:

test_runner = File.exists?("Gemfile") ? "bundle exec " : ""
test_runner += if File.exists?("config/application.rb")
"rails test"
elsif File.directory?("spec")
"rspec"
elsif File.directory?("test")
"ruby -Itest"
else
"ruby"
end
changed_test_files = `git log --name-only --pretty=oneline --full-index master..HEAD`.split.select { |f| f =~ /\Atest|spec/ }
exec "#{test_runner} #{changed_test_files.join(' ')}"

A quick thanks again to the very kind folks and companies who are sponsor the ruby.social instance and help keep the lights on here.

If you'd like to join them, it's super easy, and every little bit is appreciated: patreon.com/join/rubysocial

A couple of great talks from (amazing that they're up so quick, too!)

A branch in time (by @tekin): youtube.com/watch?v=1NoNTqank_

Representations count (by @tomstuart): youtube.com/watch?v=ej-W956YQN

James Adam boosted

Hi all! I'm new here. I've been programming in Ruby for a bit (about two years) and love working in the language. Looking for new people to follow, so if you reply here, I'll follow you!

James Adam boosted

@travis For me, the benefits of a super helpful git log and blame workflow vastly outweighs the challenges of coordinating rebasing feature branches.

And over time it encourages us to be more mindful of the commits we create in the first place, making them cleaning and more coherent from the outset.

James Adam boosted

Want to experience the lemurs and learn Ruby like you've never learned it before? My talk, "Reducing Enumerable - An Illustrated Adventure", is now live!

Learn about reduce and functional programming from a merry band of cartoon lemurs.

youtube.com/watch?v=x3b9KlzjJN

Ten years ago, I sat around a fire with some friends after a disappointing big-budget conference, and decided to see if we could do something different. From that seed grew Ruby Manor -- can't believe we've been doing it for a decade!

rubymanor.org/#when

twitter.com/rubymanor/status/1

James Adam boosted

via the birdsite, avdi is giving away free 1 year subscriptions to ruby tapas to interested female devs twitter.com/avdi/status/104570

James Adam boosted

has anyone used GraphQL with a Ruby backend? how was the experience?

For the first time in quite a while, I wrote a non-conference-talk-transcript blog post! I wanted to share a little about the text editor I’ve been using, and gather a few things together that I wish I’d known when I picked it up.

Getting Started with Spacemacs: interblah.net/getting-started-

James Adam boosted

so I've been playing with composable validations

Lovely talk by @tekin about the benefits of investing time in keeping a clean and useful history, particularly the tips at the end.

vimeo.com/280579162

James Adam boosted

Hello Ruby Folks, Goldstar (where I work) is hiring Rails developers in Portland, OR or Pasadena, CA. Please reach out if your interested. We aren't looking for remote folks right now.

James Adam boosted

I am struggling to become a Ruby, JS developer later in life. It's been harder than I thought to rearrange my life to make room for this change. Any one out there have any tips? I'd love to find a solid mentor.

Don't worry @mperham, :sidekiq: will stay 😄

(although you could be extra nice by becoming a super supporting anyway 😉 )

The Ruby.social Patreon now has a couple of benefits available for supporters:

Super supporters can now nominate a custom emoji which will be added to the instance for their (any anyone else's) use! :ruby:

Companies/bigger organisations can now also show their support of Ruby.social with a logo and link from the homepage.

Find out more:

patreon.com/rubysocial

James Adam boosted

I’m looking for Ruby developers who have an app idea, but have never managed to get it built & in the App Store. If that sounds like you, let me know and I’ll put you on the list for my upcoming webinar.

James Adam boosted
James Adam boosted

Hey y’all. My name is Graham and I’m a Ruby developer from North Carolina, glad to be here!

Show more
Ruby.social

A Mastodon instance for Rubyists & friends