No one is going to lock you up, there are a lot of messed up laws here that are generally overlooked and no one follows them, though I am uncertain as to whether it is legal or not to be openly gay, but if you keep it to yourself you are going to be okay. A friend of mine is gay and another is bisexual, they have been together for some time and they have never had any trouble, though they try to keep it discreet..
If you ever come here you will see that laws here don't mean sh*t most of the time. I laughed aloud when you said "the law seems strict" :D
But I urge you not to go about telling everyone you are gay because most people here are homophobic turds, so please only tell people you trust..
Don't worry about it, you are going to be fine, I have never heard of anyone being charged of being gay or anything of the sort. Best of luck and enjoy your stay.
What if her relatives, if she wishes to stay with them, do not reside in Beirut? If she had to stay in Tripoli or the South will it be so gay-friendly then? Not that I have a bone to pick with you, but telling the girl that it'll be a piece of cake isn't the best way to go if he ends up staying at some of the more "religiously controlled" parts of Lebanon, I'm just sayin'..
Why on Earth did I think she was a guy?
True, but only to a certain extent. I, myself, am a former Muslim, and wouldn't go there if it meant my life :p but you're perfectly right, I just thought it'd be better if I make it clearer to her that there will be different outcomes in different places..