Use a Ruby script before applying the Ruby gems patch