Actually in every relationship transparency and sharing of secrets are keys to a strong bound leading to better understanding between the two, but when you have a spouse that's somehow judgemental at almost everything, you will surely be unwilling to reveal certain personal things about yourself to them especially gambling that is being vilified by many as something bad.
If you observe that your partner is judgmental, then you have the responsibility of avoiding what he/she doesn't like. Issues like gambling should have been discussed before any commitments, such as dating or marriage, would commence.
I know women give their partners all the support as gamblers. They even follow their husbands to betting shops to support and encourage them. It will be ideal to marry or date someone compatible with you.