Energetic Ion Acceleration by Small-scale Solar Wind Flux Ropes