Elbridge Gerry was governor of Massachusetts well before Tammany Hall even existed. He was one of Massachusetts’ delagates to the Constitutional Convention in 1783. A political cartoon way back in the days when he was governor showed a map of a proposed congressional district with lizardlike features added, labelled a “Gerry-mander”.
Since then, the situation has remained much the same, with a Democratic state legislature recently considering a plan to redistrict Democratic congressman Marty Meehan out of his seat.
All this has nothing to do with jury-rigging, though.