Skip to content

Instantly share code, notes, and snippets.

@lagoan
lagoan / era_date_problem_check.rb
Created December 1, 2022 17:22
Script used to generate report on ERA Item's with potential problems in created date field.
# frozen_string_literal: true
# Run report to find items in which dates where modified by adding the month 01
# and/or the day 01
class DateReportGenerator
def initialize
@root_directory = './era_audit/'
# Looking for dates in formats YYYY-MM-DD, YYYY-MM, YYYY
@date_format = /^(\d{4})(?:-(\d{2}))?(?:-(\d{2}))?$/
@errors = []

Keybase proof

I hereby claim:

  • I am lagoan on github.
  • I am lagoan (https://keybase.io/lagoan) on keybase.
  • I have a public key whose fingerprint is B2F5 8D0B BEAF 6704 1004 2384 E90D 3658 B8E7 F464

To claim this, I am signing this object: