Skip to content

v0.1.9

Compare
Choose a tag to compare
@jorgemanrubia jorgemanrubia released this 06 Sep 22:22
· 119 commits to master since this release
  • [NEW] Additional mechanisms to detect reopening forbidden classes. If a forbidden reopening materializes, it will log the command and force exiting from IRB [#28].

    Take this example:

    def my_constant
      ActiveRecord
    end
    
    class my_constant::Base
      def fake_save!(*args)
        puts "ActiveRecord::Base#save! overridden!"
      end
    end

    This code would skip existing static analysis. With the new system, code will run but will raise an error after new methods are added to the class. Because the code executes it exits immediately from IRB after flagging the command.