Hi there,
From your symptoms it seems that you are suffering from some inflammation of the ribs which can be due to any infection.Other causes could be any respiratory infection, pleurisy,nerve entrapment etc. Gall bladder disease symptoms are steady gnawing pain in the upper right abdomen near the rib cage, which can be severe and can radiate to the upper back. Reflux disease, ulcerative colitis, diverticulitis, H pylori infection are few other causes of your symptoms. Few patients with biliary colic may have pain behind the breast bone, nausea, vomiting etc. Ultrasound or other imaging techniques can usually detect gallstones. You may take nonsteroidal anti-inflammatory medications such as ibuprofen or naproxen. A personal history and physical examination form mainstay of diagnosis. Hope it helps.
Best wishes and regards!