Week #8 rails-erd, Week #9 state_machine - Ruby Gem of the Week Series @ Planet Ruby

Hello,

   I've published new gems in the Ruby Gem of the Week series [1] (w/
web feed [2] that presents a new Ruby library every week on Thursday
on Planet Ruby.

   The latest gems presented include:

  - Week #9 - state_machine(s) gem - model processes and work flows
with finite state machines (FSM) and automata theory
  - Week #8 - rails-erd gem - generate entity-relationship diagrams
(ERD) for your activerecord models

  Happy Planet. Cheers.

PS: Have your say! Guest posts or ideas and suggestions about gems
more than welcome.

[1] http://planetruby.github.io/gems
[2] http://planetruby.github.io/gems/feed.xml

q:which gem is recommended for state machine
   state_machine or state_machines (note plularl) ?

  the first has lots of downloads accor to rubygems.org but it also
has been inactive for 2 years.
  the latter has very few downloads yet has been very active since start of year

both are of the same author btw.

thanks gerald for the updates.
best regards --botp

···

On Fri, Feb 27, 2015 at 1:48 AM, Gerald Bauer <gerald.bauer@gmail.com> wrote:

  - Week #9 - state_machine(s) gem - model processes and work flows
[1] Best of Ruby Gems Series | Ruby Digital Identity & Metaverse Week 2022, September 5th to September 11st - 7 Days of Ruby (Profile Picture & Avatar Character Generation) Gems ++ Best of Ruby Gems Series
[2] Best of Cancel Culture - Case Studies of Code of Conduct Out-Of-Control Power Abuse and Permanently Banning

Hello,
   The "old" state_machine gem (note: no plural) is the "original" it
works up-to ActiveRecord 4.0.x. Last update sometime 2013 - the
"original" developer - Aaron Pfeifer - so far is missing in action
without a public announcement.

  Thus, some forks started and the best chance looks like the
state_machines gem started by Abdelkader Boudih - it's also more
modular (e.g. ActiveRecord or ActiveModel or Mongoid etc. support are
add-on gems/plugins - but it is still pretty new (just a couple of
weeks). It's supposed to work w/ ActiveRecord 4.1 and up. If that
sound's too complicated - there are many state machine gems as
alternatives.

  You might track the spree-contrib/state-machine fork [1] (and see
what "winner/fork" spree will support) because spree actually uses the
gem in production for the checkout procedure etc. and, thus, have an
interest in keeping it up-to-date with new versions of ActiveRecord.

Cheers.

[1] https://github.com/spree-contrib/state_machine