-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gem json is binary, but 1.8.3 does not have a published binary. What are my options? #62
Comments
You can put releasy in your development group in the gemfile? Not really sure - don't remember having this issue, but so long since I used Releasy myself - what Ruby version are you using? |
I tried it both on 2.0 and 1.9.3-p551. |
1.9.3 is what Releasy was developed to support (though also tested on 1.8.7), so that should be fine! |
Shouldn't really require json unless you are using 1.8.7, since json is built in for 1.9 What exactly is pulling in json gem (look at your Gemfile.lock), because Releasy doesn't need it directly. |
Adding releasy to the gemfile, in the development group worked! I still have the issue with json (1.8.3). HTTParty and ActiveSupport use it. I don't know how to get around that. |
When I do
So does it mean I would need one the version with mswin?
|
Yeah, that is odd. As I say, though, neither of those apps ACTUALLY NEED the json gem unless they are on 1.8.7...bah! Not sure what to suggest! |
I don't see what you mean by " neither of those apps ACTUALLY NEED the json gem unless they are on 1.8.7". You mean they could do without this more recent version? In httparty gemspec: It's just that 1.1.x seems so old, isn't it weird that there aren't more recent precompiled versions for windows? |
I mean that in 1.8.7 "json" was a separate gem. Since 1.9, json has been included in the Ruby release, so isn't needed to be installed as a gem (and is a direct replacement, so you can use require 'json' in both cases of standard library and gem). |
Ok I see, didn't know that. Well, I guess one choice I have is to get rid of ActiveSupport which is mainly included for convenience, and use a different lib to make http requests... Do you have any idea how easy it is to keep my tiny app as is, and use jruby to get a jar that would work on windows by any chance? (thanks for the quick answers btw) |
Not a clue. You could just use ocra, of course, if all you are doing is windows build on a windows machine (or use a Windows VM for the build for ocra or releasy). I'm surprised there isn't a better method for building exe in Ruby yet - I stopped using Ruby several years ago now and just use Python for work (which is why Releasy hasn't seen any love for Ruby 2.0+ 😊 ) Using something like restclient instead of httpparty is an option, though removing activesupport isn't ideal if you've used it any amount. |
I've personally tried Python a few times and like ruby much more. I guess the biggest difference is the community. Anyways, I've used ActiveSupport for things like ActiveConcern and convenience methods, removing it wouldn't be terrible. My issue with Ocra is that I would have LOVED not to have to setup a ruby env on windows. I just hate it ^^. Thanks for your help. |
The biggest difference for me is that I can find work using python ;) Sorry I couldn't be more helpful! |
What are my options? A LOT of gems have this as a dependency I think.
Plus, let's say I get rid of all of them, then I get the same message for
libxml-ruby
. The thing is, thislibxml-ruby
is added to my gemfile because of releasy dependencies.So I removed releasy from my gemfile and installed it with
gem install releasy
(and it appears in gem list releasy). But when I runrake build
, I getcannot load such file -- releasy
.Any ideas what so ever? Thanks 👍
The text was updated successfully, but these errors were encountered: