Blades and Bullets is an attack against the same target, within 2"; It isn't a spell; so doesn't follow the normal rules of shooting. So while the gun is a ranged weapon, it is not using the normal gun rules, it is using the spell with its 2" range and the fact that it is a spell to make 2 attacks, (one with each weapon) ignoring the normal rules for both melee and ranged. This is the same for the spell bullets and blades, allowing for a longarm sword strike from 8" away.