There are many different foods which can cause problems with gas, such as honeydew, watermelons, and even cantaloupe. Because of the high amounts of water that these foods have in them, they have been known to cause problems with gas and even diarrhea in some cases. Everyone reacts to these foods differently when it comes to not just the taste of them but also the physiological reactions they can cause in the body.
In very warm conditions melons such as these can be a health hazard as they can form pathological microorganisms which can cause all sorts of problems, some of which are stated above. This is why they should be immediately refrigerated when taking home from the grocery store.