Example:
The ruby script "TwitterConverter.rb" connects to the twitter api and subscribes to the TwitterStream.
Problem:
The script runs on a local Windows machine that sits behind a corporate proxy. Hypothetically, the script doesn't support proxy configuration.
What I've tried so far
1. I ran the script on my notebook, with the proxy disabled - the script worked fine
2. I've researched on the topic "How to start a ruby script with proxy" - without any success
3. I've set the environment variables correctly (http_proxy, https_proxy, both lower- and uppercase. https://user:pw@proxy.domain.com:port)
Question:
How can I start a ruby script with a proxy? The solution should be within the code. (Solutions for Windows settings are appreciated, but off-topic)