The clip was filmed by two cameras and the couple's three-year-old daughter witnessed the shooting.
His girlfriend and the mother of his two children, Monalisa Perez, now 20, pleaded guilty in December to second-degree manslaughter in his death. For starters, she will be on probation for 10 years and is banned from ever possessing a firearm again.
Perez was pregnant at the time of the failed YouTube stunt, and the couple already had one child. She was sentenced to six months' imprisonment.
Prosecutors said it was clear that the idea for the stunt came from Ruiz, which was the reason for the short sentence.
She added: "All the insane stuff will [be] on his channel and mine. will be our family life!" He was holding an encyclopaedia to his chest while Perez stood about 30 centimetres away from him. However, the bullet went through the book.
Perez shot her boyfriend with a Desert Eagle pistole, described as "one of the world's most powerful semiautomatic handguns" on a retailer website.
Louise Slaughter, oldest member of Congress, dies at 88
House minority leader Nancy Pelosi praised Slaughter's leadership as a bridge builder and her dedication to her constituency. Congresswoman Slaughter was a fierce advocate for Western New York and the progressive, Democratic values of New York State.
20-year-old Monalisa Perez hit the headlines back in June when she and partner Pedro Ruiz made a decision to film a risky stunt involving a gun that accidentally resulted in his death. She told them that Ruiz wanted to make a video of Perez shooting a book, while he held it in front of him because he believed the book would be thick enough to stop the bullet. "It's all on recording".
Before performing the stunt Perez tweeted: 'Me and Pedro are probably going to shoot one of the most unsafe videos ever.
"HIS idea not MINE", she said.
The couple had been posting video blogs, "pranks" and "challenges" to their YouTube channel for several months before the June 2017 shooting. The channel remains live almost nine months since the shooting and it has drawn millions of views since Ruiz's death. The prosecution and defense also filed objections to having cameras present.
Also as part of the sentence the judge said MonaLisa could never profit off the shooting death of her boyfriend.
The judge added that along with the law, he was guided by "common decency and old-fashioned common sense" in not letting the media take advantage of "that infamy" that befell Ruiz and Perez because of "an ill-conceived video stunt".