-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Devkit requirement undocumented #1543
Comments
Would you mind submitting a PR for both of them? The README update would be a good start, but I also like the idea of better error message. Thank you! |
What other alternatives have you considered for windows users? The DevKit was never meant to become a runtime requirement for MRI on windows. It's primary purpose is to enable building native gems on windows for RubyInstaller users. As such, when it is properly installed, we built it so that a RubyGems plugin brings the toolchain on and off Frankly, this is a terrible precedent you are considering for paperclip. You're essentially saying that in order to use the paperclip gem on windows, the user must ensure they have some minimal unix-like runtime environment. It's not enough to have installed MRI or another Ruby, but now you require a user to properly hack (with no unintended side-effects) their windows system so it looks more like unix to provide just Ruby can be a decent multi-platform environment, but decisions like this lead down the path to turning Ruby into a unix-only environment. If other gems like That said, I understand tradeoffs have to be made. Multi-platform is hard, but creating a hard runtime dependency on the DevKit (or ensuring I'd like to see you investigate a few more alternatives. For example, are there ways of gracefully degrading capabilities so that paperclip still functions "well enough" on windows without requiring unix emulation? Anything in stdlib's io/file routines to help with a "good enough" fallback on windows for spoof detection? I'm guessing not or you already would have implemented it 😸 |
@jonforums please don't get us wrong. We always aim for being multi-platform compatible. However, because of the security concern, we overlooked that the change broke Windows compatibility. "Multi-platform is hard" is never, ever, an excuse for us to break the multi-platform compatibility. There's some suggestion on #1523 that might be interesting to see if it could be a good platform-independent to This open-source project, like another open-source project, have limited resource. For me, this is the first time in months that I can work on Paperclip. We'd love if you could help us finding an alternative, or helping us bring back the compatibility for Windows user. |
The mimemagic gem does look like a good alternative especially if it remains actively maintained. Being a pure-ruby gem is good for MRI on Windows and JRuby. I wonder if any of the main |
Using a timer utility for windows from => https://github.com/thecodeshop/w32time
To jumpstart a quick usage test, how about tweaking paperclip here with a bit of |
Fixed in attached PR. Thank you all! |
I on Windows 7 and hadn't added my devkit to system PATH because the path is automagically enhanced when building gems. But lately I discovered that paperclip needs devkit binaries in order to work. Without devkit, I was getting this error while trying to upload an image file:
this is probably due to:
https://github.com/thoughtbot/paperclip/blob/master/lib/paperclip/media_type_spoof_detector.rb#L63
please do either of these:
The text was updated successfully, but these errors were encountered: