postmodern

Maintainer of chruby, ruby-install, bundler-audit, digest-crc, spidr, ronin, and more on GitHub!

postmodern boosted:
Dave Copeland :ruby:davetron5000@ruby.social
2025-07-08

I'm not at #RailsConf, but I did just now release a new web framework I've been working on: BrutRB:

brutrb.com

Read about it on my blog, below. It's not like Rails at all. I had fun working on it, will keep working on it, and hope you like it!

naildrivin5.com/blog/2025/07/0

2025-06-29

Is there a website like example.com/, but has multiple URLs and is OK to spider/crawl?

I want to upgrade the examples in spidr's README to websites that wouldn't mind being randomly spidered.
github.com/postmodern/spidr#re

example.com isn't a viable option, because it only has one webpage, so not a very good demonstration of web spidering...

#web #webspiders #webcrawlers #exampledotcom #exampledotnet #demo

2025-06-26

@jasonkarns does it somehow tag the original poster? Also would prefer it deleted the original comment.

2025-06-25

@github should have a "Convert Comment into Issue" option. I keep getting comments on already closed issues for tangentially related errors that should be reported as separate issues.

2025-06-25

Ruby's humble Rake could use a slick website, similar to bundler.io.

github.com/ruby/rake#readme

#ruby #freeprojectidea

2025-06-24

Impressed that ruby-3.5.0-preview1.tar.xz is only 16M and compiles super quickly.

ruby-lang.org/en/news/2025/04/

#ruby

2025-06-24

TIL terminaltrove.com/ a curated list of CLI/TUI utils. Sadly no Ruby CLIs/TUIs listed. We should change that! I still believe Ruby can be used to build powerful CLI/TUI utils; if Python or Node.js can produce popular CLIs/TUIs, no reason why Ruby cannot.

2025-06-23

@alex doesn't work with stock Ruby + RSpec. String does not respond to `in?`.

2025-06-23

Is there a RSpec matcher to expect that a value exists in an Array of expected values? If not, there should be. I don't like inverting my expect() statement to be:

expect(expected_values).to include(subject.thing_i_am_testing) # not ideal

Ideally it would look like:

expect(subject.foo).to eq_any_of(expected_values) # better

#rspec

2025-06-23

Is there any benefit to packaging up common rubocop configuration into a gem (aka inherited_gem) vs. just bundling said gem from git?

Examples:

github.com/ronin-rb/rubocop-ro
github.com/Shopify/ruby-style-

#rubocop

2025-06-23

Is there a way to get deprecation warnings/notifications for projects from GitHub or rubygems.org? I just now discovered, after pushing some minor changes, that the async-io gem was deprecated in favor of io-endpoint 10 months ago; luckily it's just a name change so easy to fix.🤯 Need to improve my dependency monitoring.

#github #ruby

2025-06-22

@bkuhlmann ah just ran into `def foo = puts "..."` confusing rubocop.

2025-06-21

Or what about methods that chain together multiple method calls, passing various arguments to each method call? Is more than one method call per method body too much complexity for an endless method?

def foo(arg,**kwargs) = bar(**kwargs).baz(arg)

vs.

def foo(arg,**kwargs)
bar(**kwargs).baz(arg)
end

#ruby

2025-06-21

What kind of methods should *not* be converted into endless methods? Methods that call `puts`? Methods include `==`? Methods with many args? How complex can a single-line method get before it should not be converted into an endless method?

Personally I think that methods who's body is a single equals comparison (ex: `@foo == 42`) look confusing when converted into an endless method due to the combination of `=` symbols.

def forty_two? = @foo == 42

vs.

def forty_two?
@foo == 42
end

#ruby

2025-06-16

Trying out new Vim colorschemes. Curious what other Rubyists/Crystalers use? I'm looking for a bright theme (aka not pastel) that goes well with a black background. Also want different colors for keywords vs names/identifiers; i.e. `class` and `Foo` should have different colors. Please no colorschemes that set `gui=italic`!

I like molokai, but it uses the same color for keywords and identifiers. I also like abstract, but it uses italics.

#vim

2025-06-09

"the debate about types, TypeScript, and web development is, for example, largely anecdotal gossip not backed by much in terms of structured research – but when you’re trying to answer a question with huge ramifications, you really want proper research."

"This is the original sin of software dev: it’s a pop culture where we’re trained to accept gossip as evidence."

Periodic reminder that blog posts and talks == anecdotes, not proof. Take it with a grain of salt.

baldurbjarnason.com/2025/trust

2025-06-05

StackOverflow is doing their annual survey. Now is your chance to vote for Ruby and hopefully improving Ruby's ranking; and counteracting the "rUbY iS dYiNg" nonsense.

stackoverflow.blog/2025/05/29/

#ruby

2025-06-05

PSA: supply chain attacks (aka forking popular gems, changing the name slightly, and adding malicious code) are starting to show up on rubygems.org more often. Be cautious when adding a new gem to your project. Check who the author is, check the GitHub repository, look at the commit history, etc.
socket.dev/blog/malicious-ruby

#ruby #security #rubysec

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst