Checking for Windows support#4
Conversation
check for Windows support
|
Thanks for this! Can you add the windows gem into the dependencies of the Gemspec? Maybe something like this will work: please try it before pushing, I don't have a windows machine and this is just a wild guess 😉 |
|
Ok, I'll try to have a look at it next weekend. Regards |
|
Perfect. Thanks again! |
|
Just a quick note: I am moving to Berlin in the next few days. Maybe I won't be able to answer as quickly as I usually do. But I am really looking forward to this patch. |
|
Finally I found the time to add Windows specific reference gems to jeweler task in Rakefile. I tried the resulting gem on Ubuntu12.04 and Win7. Regards |
|
Have you tried the version I mentioned in my comment? Did you have problems with that? |
|
No problem with your version, but it will result in two different gems: one windows specific and one for all other environments. That is because 'spec.add_dependency' will be evaluated at gem build time and in order to make it work you need to set 'spec.platform' to a value different than Gem::Platform::Ruby, which will result in a special gem version for this particular 'platform' string (http://docs.rubygems.org/read/chapter/20#platform). Regards |
|
Does your approach work with bundler? Do you see the win32console in the Gemfile.lock of projects using that gem? Sorry for all the questions, but my gut has problems with your solution. |
|
No problem ;-) I'll try it next weekend. |
|
@vermluh have you found time to test the bundler gemfile? |
|
I'm sorry, but I totally missed it due to lots of other projects going on. Apologizing once more |
|
No worries. |
|
You were right. Bundler somehow seems to ignore gem extensions, whereas using simple Regards |
Hi,
I'm using SimpleProgressbar in an Windows Environment. Therefor I'm checking whether 'win32console' gem was installed, because otherwise the console output will be kind of strange ;-)
Regards