gemfile

Can't find 'jquery-ui' Rails 3.2

左心房为你撑大大i 提交于 2019-11-30 16:29:43
I have been looking everywhere to figure out this problem. I already downgraded the jquery-rails gem to 2.3.0 in my gemfile. But when I include jquery-ui in application.js I still get the Sprokets::FileNotFound error. couldn't find file 'jquery-ui' (in /home/richard/projects/pickaxe/mini-projects/depot-app/app/assets/javascripts/application.js:14) This is my application.js file: // This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets

Can't find 'jquery-ui' Rails 3.2

跟風遠走 提交于 2019-11-30 16:04:42
问题 I have been looking everywhere to figure out this problem. I already downgraded the jquery-rails gem to 2.3.0 in my gemfile. But when I include jquery-ui in application.js I still get the Sprokets::FileNotFound error. couldn't find file 'jquery-ui' (in /home/richard/projects/pickaxe/mini-projects/depot-app/app/assets/javascripts/application.js:14) This is my application.js file: // This is a manifest file that'll be compiled into application.js, which will include all the files // listed

rails 5.0.0 when installing “nio4r” : Failed to build gem native extension

a 夏天 提交于 2019-11-30 13:45:32
Here is the logs: http://pastebin.com/CAgur9xd Installing nio4r 1.2.1 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. C:/RailsInstaller/Ruby2.2.0/bin/ruby.exe -r ./siteconf20160720-8272-c88sgk.rb extconf.rb --with-cflags=-std=c99 checking for unistd.h... *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt

What does the ~> symbol mean in a bundler Gemfile?

社会主义新天地 提交于 2019-11-30 08:10:29
My question is pretty much in the title. e.g. in the default Gemfile created with a Rails 3.1 app; gem 'sass-rails', '~> 3.1.5' It seems like I should know this already but I can't find any reference to it on the Bundler website. Tim Brandes From the bundler website: The specifier ~> has a special meaning, best shown by example: '~> 2.0.3' is identical to '>= 2.0.3 ' and '< 2.1.' '~> 2.1' is identical to '>= 2.1' and '< 3.0' . '~> 2.2.beta' will match prerelease versions like '2.2.beta.12' . See http://gembundler.com/gemfile.html and http://guides.rubygems.org/patterns/#pessimistic-version

Troubles with git and Gemfile.lock

坚强是说给别人听的谎言 提交于 2019-11-30 04:16:24
I keep running into the following error with my Gemfile.lock whenever I want to do a git pull or checkout a new branch. error: Your local changes to the following files would be overwritten by merge: Gemfile.lock Please, commit your changes or stash them before you can merge. Aborting The problem is that I can't figure out how to fix it. Stashing the file doesn't work -- the local changes just stay there for some reason. I've also tried running git checkout -- Gemfile.lock to discard the changes, but that doesn't work either -- the local changes just stay there. I've also tried creating a new

Can I force a gem's dependencies in gemfile?

痞子三分冷 提交于 2019-11-30 01:14:02
问题 If there are two gems, A and B . A1.0.0 depends on B1.0.0 . In my Gemfile: gem 'A', '~> 1.0.0' Then run bundle . It will generate a Gemfile.lock like: A (1.0.0) B (1.0.0) But if I want to force A to use B1.0.1 , what's the best practice? Moreover, if the B1.0.1 is not release but a github tag? 回答1: You'll need to explicitly specify the B gem in your Gemfile to use a git repository or another version. As long as A 1.0.0 is compatible with B 1.0.1 you'll be fine. If it is only compatible with B

How to find unused gems in my Gemfile

天大地大妈咪最大 提交于 2019-11-29 20:56:33
How to find unused gems in my Gemfile, so that I can cleanup references which are no longer used. I doubt if there is an automated way to find unused gems in the Gemfile. For someone who has built the application over time, it should be easy to manually identify gems that were discarded along the way for some reason or the other. For a legacy application inherited from someone else, it is a much difficult task to manually identify unused gems. If there is comprehensive test coverage for the system, it would help in removing unused gems by trial and error, while ensuring that the tests pass at

rails 5.0.0 when installing “nio4r” : Failed to build gem native extension

拥有回忆 提交于 2019-11-29 19:20:03
问题 Here is the logs: http://pastebin.com/CAgur9xd Installing nio4r 1.2.1 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. C:/RailsInstaller/Ruby2.2.0/bin/ruby.exe -r ./siteconf20160720-8272-c88sgk.rb extconf.rb --with-cflags=-std=c99 checking for unistd.h... *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration

Your Ruby version is 2.1.0, but your Gemfile specified 2.0.0

浪尽此生 提交于 2019-11-29 11:55:57
In my Gemfile I specified ruby version 2.0.0: ruby '2.0.0' But my console tells me I have 2.1.0dev: $ ruby -v ruby 2.1.0dev (2013-09-16 trunk 42951) [x86_64-darwin12.4.0] I am using rbenv and it tells my I don't have 2.1.0 installed, $ rbenv versions system * 2.0.0-dev Bundle update or bundle install says: "Your Ruby version is 2.1.0, but your Gemfile specified 2.0.0" but using 'rbenv local 2.0.0-dev' leaves me with ruby 2.1.0dev again. Furthermore: $ rbenv global 2.0.0-dev $ cat ~/.bash_profile: export PATH="$HOME/.rbenv/bin:$PATH" if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi

What does the ~> symbol mean in a bundler Gemfile?

*爱你&永不变心* 提交于 2019-11-29 10:43:10
问题 My question is pretty much in the title. e.g. in the default Gemfile created with a Rails 3.1 app; gem 'sass-rails', '~> 3.1.5' It seems like I should know this already but I can't find any reference to it on the Bundler website. 回答1: From the bundler website: The specifier ~> has a special meaning, best shown by example: '~> 2.0.3' is identical to '>= 2.0.3 ' and '< 2.1.' '~> 2.1' is identical to '>= 2.1' and '< 3.0' . '~> 2.2.beta' will match prerelease versions like '2.2.beta.12' . See