Logo Rails Bling
Logo Inverted Logo
  • Categories
  • agile
  • async
  • bundler
  • development
  • evented
  • federation
  • floss
  • git
  • Go
  • howto
  • humanitarian
  • logging
  • maintenance
  • management
  • refugees
  • resque
  • rspec
  • ruby
  • security
  • threaded
  • tools
Hero Image
Generate Gem Checksums

The example script on the RubyGems Guides Security page is short and sweet, and left a lot of work for me to do. require 'digest/sha2' built_gem_path = 'pkg/gemname-version.gem' checksum = Digest::SHA512.new.hexdigest(File.read(built_gem_path)) checksum_path = 'checksum/gemname-version.gem.sha512' File.open(checksum_path, 'w' ) {|f| f.write(checksum) } # add and commit 'checksum_path' It doesn’t create SHA-256 checksums, which are the only ones displayed on the gem’s landing page at RubyGems.org. There is also a rake task (rake build:checksum) which only creates an SHA-256 checksum.

October 11, 2023 Read
Hero Image
RequireBench: When do you use it?

RequireBench: When do you use it? Upgrading an old application, I encountered the following code. # Uncomment the following monkey patch to debug "SystemStackError: stack level too deep" during boot up module Kernel def require_and_print(string) puts string require_original(string) end alias_method :require_original, :require alias_method :require, :require_and_print end This is what require_bench was written for. You don’t need to add hacks like this to your code anymore! OK, but why is the gem better than the hack?

April 15, 2023 Read
Hero Image
Put the D in DVCS

The problem with a Monopoly in a Decentralized ecosystem… It kills the ecosystem. Oh hello GitHub, I didn’t notice you standing there. We need the D in DVCS But how do you get it? Pushing to multiple source code hosts needs to be as easy as git push all. This process was primarily derived from a much more in depth StackOverflow. $ git clone git://original/repo.git $ git remote -v origin git://original/repo.

December 17, 2022 Read
Hero Image
How to Repair an Old Gem (Part 5) - Rakefile & RuboCop LTS

Checkout Part 1, Part 2, Part 3, and Part 4 of the series first! In the early days of writing Ruby libraries there were many patterns, and it took time to discover problems with each, if any. By 2009 (well after the release of Ruby 1.8.7) it had become clear using the statement require "rubygems" from inside a rubygem library is problematic. So we’ll rip it out of the os source!

December 11, 2022 Read
Hero Image
How to Repair an Old Gem (Part 4) - Upgrade Autotest

Checkout Part 1, Part 2, and Part 3 of the series first! The ancient, venerable, and useful autotest gem died, but was reborn as rspec-autotest. Let’s migrate the library to use it! We still use the old .autotest hook file, but we replace the old contents: # autotest config for rspec # see: https://github.com/rspec/rspec/wiki/autotest Autotest.add_hook(:initialize) {|at| at.add_exception %r{^\.git} # ignore Version Control System at.add_exception %r{^pkg} # ignore gem pkg dir # at.

December 11, 2022 Read
Hero Image
How to Repair an Old Gem (Part 3) - Upgrade RSpec

Checkout Part 1, and Part 2 of the series first! Now that we can bundle install, and have a passing test suite with a very old version of RSpec, we need to upgrade RSpec. This is most easily done with a tool called transpec. Before we can setup transpec we need to upgrade to a minimum version of Ruby. Some generic requirements are: RSpec must be at least 2.14 or later.

December 11, 2022 Read
Hero Image
I'm Leaving Github

I Am Using GitHub Under Protest Github decided to sponsor me, because they rely on my tools. In spite of that, I’m leaving. Why? I certainly do not have the spare-time to move hundreds of projects to a new home… but I’m getting started. Some Issues A recent proposal to extend Github-flavored Markdown (ref) Literally breaks regular markdown syntax of links in headings. English-only Incompatible with Semantic HTML (POSH) (by abusing the blockquote tag; this also raises issues of accessibility) Incompatible with existing Markdown standards proposals Ignores the community-centered approach to extending Markdown, which, ironically, Github started Contributes to vendor lock-in.

July 10, 2022 Read
Hero Image
How to Repair an Old Gem (Part 2) - Bundler

Checkout Part 1 of the series first! When I started working on this os repair project a fresh checkout of the source code would not bundle install. I was able to fix the problem, but these issues are like peeling an onion. After fixing bundler the tests would not run, and how can you merge a PR if the test suite hasn’t been run? The critical change for bundler is removing the os gem from being a dependency of the os gem.

May 5, 2022 Read
Hero Image
New Release of oauth: Version 0.5.8

oauth version 0.5.8 is Released Project Ruby Oauth name, license, docs version & downloads dependencies & linting unit tests coverage & maintainability resources Spread ~♡ⓛⓞⓥⓔ♡~ 🌏 👼 💻 🌹 0.5.8 2021-11-10 Added Added more documentation files to packaged gem, e.g. SECURITY.md, CODE_OF_CONDUCT.md Fixed Removed reference to RUBY_VERSION from gemspec, as it depends on rake release, which is problematic on some ruby engines. (by @pboling)

November 10, 2021 Read
Hero Image
New Release of oauth: Version 0.5.7

oauth version 0.5.7 is Released Project Ruby Oauth name, license, docs version & downloads dependencies & linting unit tests coverage & maintainability resources Spread ~♡ⓛⓞⓥⓔ♡~ 🌏 👼 💻 🌹 0.5.7 2021-11-02 Added Setup Rubocop (#205, #208 by @pboling) Added CODE_OF_CONDUCT.md (#217, #218 by @pboling) Added FUNDING.yml (#217, #218 by @pboling) Added Client Certificate Options: :ssl_client_cert and :ssl_client_key (#136, #220 by @pboling) Handle a nested array of hashes in OAuth::Helper.normalize (#80, #221 by @pboling) Changed Switch from TravisCI to Github Actions (#202, #207, #176 by @pboling) Upgrade webmock to v3.

November 3, 2021 Read
Hero Image
Maintaining oauth

A Ruby wrapper for the OAuth 1.0 protocol Status Project Ruby Oauth name, license, docs version & downloads dependencies & linting unit tests coverage & maintainability resources Spread ~♡ⓛⓞⓥⓔ♡~ 🌏 👼 💻 🌹 What This is a RubyGem for implementing both OAuth 1.0 clients and servers in Ruby applications. See the OAuth 1.0 spec http://oauth.net/core/1.0/ See the sibling gem oauth2 for OAuth 2.0 implementations in Ruby. Installation Add this line to your application’s Gemfile:

November 2, 2021 Read
Hero Image
New Release of oauth2: Version 1.4.5

oauth2 version 1.4.5 is Released The oauth2 gem team has been working on preparing a version 2.0.0 for release. It will have some minor breaking changes, and some important bug fixes. It will have code cleanup, and new features. But for many people version 1.4.x has been working fine, and all they need is a new version, warts and all, which fixes some bugs, adds some features, and allows them to upgrade some dependencies, particularly jwt and faraday.

March 18, 2020 Read
  • ««
  • «
  • 1
  • 2
  • 3
  • 4
  • 5
  • »
  • »»
Navigation
  • About
  • Skills
  • Experience
  • Projects
Contact me:
  • peter.boling a@t gmail.com
  • +1-925-252-5351

Toha Theme Logo Toha (tweaked by @pboling)
© 2024 Peter Boling
CC BY-SA 4.0
Powered by Hugo Logo