There is likely nothing wrong with your Ruger. Since the mag is, I'm guessing, still in the gun, you can't pull the mainspring out. Try this instead. With the muzzle angled down, pull the trigger and use a quick motion to thrust the gun forward and then kind of snap it back. Almost like you are going to throw it down muzzle first but the stop at the last second. Hold the trigger in the entire time. First time taking mine apart with Ruger's BS mag disconnect I had the exact same issue. Mag jammed in the gun, bolt stuck and cannot disassemble it. I tried flipping it forward and something moved inside freeing it up.
Once you get her free, look at it and try to understand the function of all the parts. It is a confusing gun, but I have torn mine down to the frame many times and if you understand it, then it becomes simple. Replacing the mag disconnect with two small washers will make it very easy to tear down and put back together. I also removed the loaded chamber indicator and modified the bolt release so that you can slingshot it. These are not permenent mods and you can save the original parts and replace them at any time if you wish. I should add, that with no mag disconnect the mags fly out when you hit the release.