TIL about the name_of_person gem. Pretty cool!
🇧🇷 Senior developer @ thoughtbot.
📝 Blogging @ https://tbot.io/blog/matheus
💎 Organizer of http://rubydf.com
🇧🇷 Senior developer @ thoughtbot.
📝 Blogging @ https://tbot.io/blog/matheus
💎 Organizer of http://rubydf.com
TIL about the name_of_person gem. Pretty cool!
If you're building a PWA with Rails don't forget to ensure that you're rendering valid JSON on routes like /manifest.json.
I've added a test for that:
There has been a push towards fixtures for a while, but this global shared state is hurting me. It's hard to know which records are available for any given test, or if I should just modify a particular record for the current test. You change one thing, it breaks a test elsewhere.
How are y'all managing that? It seems messy.
I'm used to `[]` and even `-@` being methods, but I expected `!` to be a language concept.
Even if you override it, `unless` won't use it (so `unless` doesn't desugar to `if + !`).
TIL `!` is a method in Ruby:
```
true.! # => false
```
You can even override it
```
class A
def !@ = true
end
!A.new # => true
```
Although I can't think where that would be useful.
🚀 Just released a new version of https://github.com/MatheusRich/end_of_life
Changes:
- Archived repos are skipped by default.
- The results are also sorted by most recently updated (likely the ones you care most).
- Requires Ruby >= 3.2