rubygems

Deploy error ruby on rails Don't know how to build task 'assets:precompile'?

送分小仙女□ 提交于 2021-02-10 14:24:05
问题 I try to run on Digitalocean cap production deploy but i got this this error 00:42 deploy:assets:precompile 01 $HOME/.rbenv/bin/rbenv exec bundle exec rake assets:precompile 01 rake aborted! 01 Don't know how to build task 'assets:precompile' (See the list of available tasks with rake -… 01 /home/deploy/RubyProject/shared/bundle/ruby/2.6.0/gems/rake-13.0.1/exe/rake:27:in <top (requi… 01 /home/deploy/.rbenv/versions/2.6.6/bin/bundle:23:in load' 01 /home/deploy/.rbenv/versions/2.6.6/bin/bundle

Sass is not working & Can't install ruby-sass on macOS Catalina

可紊 提交于 2021-02-07 08:30:38
问题 Ruby sass is not working after upgrading to macOS Catalina beta. When I run sudo gem install sass , I'm getting an error: ERROR: Error installing sass: ERROR: Failed to build gem native extension. current directory: /Library/Ruby/Gems/2.6.0/gems/ffi-1.11.1/ext/ffi_c /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I /Library/Ruby/Site/2.6.0 -r ./siteconf20191007-37566-177grvx.rb extconf.rb mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby

undefined method `reset' for RDoc::TopLevel:Class when installing a new Ruby gem

南笙酒味 提交于 2021-02-06 10:44:14
问题 For example, $ gem install netaddr Fetching: netaddr-1.5.1.gem (100%) Successfully installed netaddr-1.5.1 ERROR: While executing gem ... (NoMethodError) undefined method `reset' for RDoc::TopLevel:Class The NoMethodError exception keeps being raised when I install any new gem. I googled about it and searched issues in RDoc and RubyGems GitHub repositories, but had no luck. My Ruby version is $ ruby -v ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin15] The RubyGems version is $ gem -v

Sinatra and Grape API together?

五迷三道 提交于 2021-02-05 20:16:32
问题 I've been reading around and I found this micro-framework called Grape for ruby. I am currently using Sinatra to handle the web interface but I would also like to implement Grape to handle the API aspect of the app. I can't find any helpful suggestions to this topic. The grape documentation says "Grape is a REST-like API micro-framework for Ruby. It's designed to run on Rack or complement existing web application frameworks such as Rails and Sinatra by providing a simple DSL to easily develop

Sinatra and Grape API together?

≡放荡痞女 提交于 2021-02-05 20:11:40
问题 I've been reading around and I found this micro-framework called Grape for ruby. I am currently using Sinatra to handle the web interface but I would also like to implement Grape to handle the API aspect of the app. I can't find any helpful suggestions to this topic. The grape documentation says "Grape is a REST-like API micro-framework for Ruby. It's designed to run on Rack or complement existing web application frameworks such as Rails and Sinatra by providing a simple DSL to easily develop

MAC M1 capacitor 打包 cocoapods ffi 报错

心已入冬 提交于 2021-01-31 09:02:04
**背景:使用quasar capacitor 打包IOS ** 报错: LoadError - dlsym(0x7fab3772ae70, Init_ffi_c): symbol not found - /Library/Ruby/Gems/2.6.0/gems/ffi-1.14.2/lib/ffi_c.bundle /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require' /Library/Ruby/Gems/2.6.0/gems/ffi-1.14.2/lib/ffi.rb:6:in `rescue in <top (required)>' 网上找了很多资料都是说要重新安装cocoapods ffi库 反复测试无效 发现他们有的报的错是dlopen的错跟我的这个不一样 鄙人报的是dlsym错 走头无路之下 只好去github 上冲浪找ffi源码

How to push a dockerized project on heroku

限于喜欢 提交于 2021-01-29 08:20:53
问题 hope you are fine! Actually, I have a dockerized rails API I'm working on.& I have to push it on Heroku. I add pg gem to my production environment & move MySql gem to the development environment group :development, :test do # Call 'byebug' anywhere in the code to stop execution and get a console gem 'byebug', platforms: [:mri, :mingw, :x64_mingw] # Adds support for Capybara system testing and selenium driver gem 'capybara', '~> 2.13' gem 'selenium-webdriver' gem 'mocha' gem 'webmock' gem

Debugging rails-latex gem on Heroku | ActionView::Template::Error rails-latex failed

核能气质少年 提交于 2021-01-29 06:39:21
问题 Problem: I have a Rails app which generates a pdf via the rails-latex gem. It works just fine on rails s and heroku local . However, trying to use the pdf-generation-link on Heroku throws me We're sorry, but something went wrong. Using heroku logs --tail yields me: Rendered sheets/show.pdf.erb within layouts/application (3.4ms) Running 'pdflatex -halt-on-error -shell-escape -interaction=batchmode input' in /app/tmp/rails-latex/4--3678030941334020140 1 times... Completed 500 Internal Server

Ruby on Rails 4.1.8 Gem::LoadError for mysql2 gem

寵の児 提交于 2021-01-29 05:51:50
问题 I picked up a 4 year old project written in Ruby 2.1.3 and Rails 4.1.8 . Very few of the gems were versioned but I've managed to get the project running locally by installing mysql2 0.3.20 as suggested in multiple other threads. Doing this required me to (on MacOS) downgrade openssl and mysql with brew install mysql@57 and brew install openssl@10 . I could then install mysql2 with by passing the correct libraries to it: gem install mysql2 -v 0.3.20 -- --with-mysql-config=/usr/local/opt/mysql

Ruby on Rails 4.1.8 Gem::LoadError for mysql2 gem

|▌冷眼眸甩不掉的悲伤 提交于 2021-01-29 05:49:20
问题 I picked up a 4 year old project written in Ruby 2.1.3 and Rails 4.1.8 . Very few of the gems were versioned but I've managed to get the project running locally by installing mysql2 0.3.20 as suggested in multiple other threads. Doing this required me to (on MacOS) downgrade openssl and mysql with brew install mysql@57 and brew install openssl@10 . I could then install mysql2 with by passing the correct libraries to it: gem install mysql2 -v 0.3.20 -- --with-mysql-config=/usr/local/opt/mysql