I've been continuing the work on my Ruby JSON serialization gem. While there are still a few more features that I'm considering, based on user needs, the benchmarks I've done are showing extremely promising results.

It's at least 2x faster than all other Ruby-based alternatives. Shout out to Panko Serializer for being _slightly_ faster in some cases with its C bindings.

If anyone wants to give it a whirl, head to https://github.com/spellbook-technology/transmutation.

#ruby #rails #ams #panko #serializer #json

GitHub - spellbook-technology/transmutation: JSON serialization and opinionated serializer lookup

JSON serialization and opinionated serializer lookup - spellbook-technology/transmutation

GitHub
Master Python https://leanpub.com/b/masterpython by Noah Gift and Alfredo Deza is the featured bundle of ebooks 📚 on the Leanpub homepage! https://leanpub.com #Python #Devops #SoftwareEngineering #AutomatedSoftwareTesting #NodeJs #Ruby #Go #R #CloudComputing #books #ebooks
Master Python

Learn to master Python with this bundle. Be part of the #onemillion2021 project where one million people get trained on Cloud Computing, Data and Python globally by 2021.

Leanpub

Have spent the evening writing a bunch of ruby for Doorkeeper to make it possible to add additional client authentication mechanisms: https://github.com/doorkeeper-gem/doorkeeper/pull/1772/

Essentially we should be able to support all of these methods, either in core or via extensions: https://www.iana.org/assignments/oauth-parameters/oauth-parameters.xhtml#token-endpoint-auth-method

#ruby #doorkeepergem

Add Client Authentication Mechanisms Registry by ThisIsMissEm · Pull Request #1772 · doorkeeper-gem/doorkeeper

Summary In #1770, I realised that really we do need the ability for extensions to be able to register additional client authentication mechanisms. This implements a strategy similar to that of the ...

GitHub

Understanding Ruby’s `tap` — A Powerful Debugging and Configuration Tool

https://hsps.in/post/ruby-tap-method/

Discussions: https://discu.eu/q/https://hsps.in/post/ruby-tap-method/

#programming #ruby

Understanding Ruby’s `tap` — A Powerful Debugging and Configuration Tool

Ruby’s Object#tap is a small but powerful method that often goes unnoticed. It allows you to “tap into” a method chain, perform some operation, and return the original object—regardless of what the block inside returns. This makes it particularly useful for debugging, configuration, or inserting side effects without breaking the flow of your code. A Simple Use Case: Debugging Take the following example: 1 n = [1,2,3].map { _1 % 2 }.map { _1 * 10 } This returns [10, 0, 10]. But what if that’s not what you expected? You might want to inspect the result of the first map: 1 2 3 4 n = [1,2,3].map { _1 % 2 } puts n.inspect n = n.map { _1 * 10 } puts n.inspect Using tap, we can make this more elegant: 1 2 3 4 n = [1, 2, 3].map { _1 % 2 } .tap { puts _1.inspect } .map { _1 * 10 } .tap { puts _1.inspect }

Harisankar P S | Ruby on Rails Developer

I've seen a change in behaviour of Hash.ruby2_keywords_hash? in JRuby v10 manifested as some test failures in this Mocha CI build:

https://app.circleci.com/pipelines/github/freerange/mocha/857/workflows/99ea71bc-a02f-4f35-aeac-6e61b2c97a33/jobs/12856

I’ve managed to narrow things down a bit in the example in this issue:

https://github.com/jruby/jruby/issues/8784

Anyone else seeing this?

#ruby #jruby #keyword

New #Nanoc version! 4.13.4 brings a handful of improvements: https://nanoc.app/release-notes/

The nanoc-checking gem has also been updated with neat-looking parallelism.

#Ruby #StaticSiteGenerator #StaticSiteGenerators #ssg

Nanoc » Release notes

Tejas' Blog - Adding IP restriction to Rack app for specific accounts

Thoughts and learnings on writing better software

Pre-build a Secure Authentication Layer with Authentication Zero for Ruby on Rails | AppSignal Blog

Let's build a configurable generator that equips your Ruby on Rails app with an authentication scaffold.

Let’s talk about Type Coercion in Ruby

It’s a bit unusual to talk about type coercion in Ruby. Being a dynamically typed “message passing” language you generally don’t need to think about types to...

A title for your blog
GitHub - samanthaoldenburg/swank-decorators: Python-inspired decorators for Ruby

Python-inspired decorators for Ruby. Contribute to samanthaoldenburg/swank-decorators development by creating an account on GitHub.

GitHub