Preheat oven to 350 degrees. Put 12 paper liners into a standard muffin pan.
In a medium bowl, add the flour, baking powder, salt, cinnamon and ginger. Stir together with a whisk. Set aside.
In a large bowl, add the butter. Beat the butter with an electric mixer on medium speed until soft and creamy (around 2 minutes). Add the sugar and beat on medium speed until light and fluffy (around 2 minutes). Add the egg and vanilla extract and beat until combined (around 1 minute).
Add half the flour mixture and beat on low speed until combined. Add the buttermilk and mix until just combined. Add remaining flour mixture and mix until just barely combined. With a rubber spatula, fold in the shredded apple and its juices.
Pour the batter equally into the 12 lined muffin cups. Bake in the oven for 20 to 25 minutes or until a toothpick inserted in the center comes out clean. Cool for 5 minutes before removing the cupcakes from the pan and cooling on a wire rack.