In a rectangle, the difference between the sum of the adjacent sides and the diagonal is half the length of the longer side. What is the ratio of the shorter to the longer side?