项目是 grape on rails,感觉 rails 有点浪费,想只用 grape 和 activerecord,但是发现用了其他的 gem,比如 carrierwave,doorkeeper,好像是比较依赖 rails.如果不用 rails,哪些 gem 是不能继续用的,或者怎么去配置才能继续用,有没有前辈有经验.@robbin,目前刚看了 robbin 前辈的 grape on rainbows 这个,很有启发. 这些是我用的 gems
source 'https://gems.ruby-china.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.6'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.1.0'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0', group: :doc
# Use ActiveModel has_secure_password
gem 'bcrypt', '~> 3.1.7'
gem 'mysql2'
gem 'kaminari'
gem 'grape', '~>0.16.2'
gem 'grape-active_model_serializers'
gem 'hashie-forbidden_attributes'
gem 'grape-swagger', '~>0.11.0'
gem 'grape-swagger-rails', '~>0.2.1'
gem 'grape-jbuilder'
gem 'rest-client'
gem 'carrierwave'
gem 'carrierwave-aliyun', :github => 'luxious/carrierwave-aliyun'
gem 'settingslogic'
gem 'ransack'
gem 'carrierwave-base64'
gem 'mina', require: false
gem 'puma'
gem 'mina-puma', require: false
gem 'mina-sidekiq', require: false
gem 'bulk_insert'
gem 'chinese_regions_rails'
gem 'redis-rails'
gem 'redis', '~>3.2'
gem 'rucaptcha'
gem 'sidekiq'
gem 'redis-namespace'
gem 'aasm'
gem 'rack-contrib'
gem 'idcard_verity'
gem 'sinatra', :require => false
gem 'whenever', :require => false
gem 'doorkeeper'
gem 'paper_trail'
gem 'skylight'
gem 'aliyun_mns', github: 'luxious/aliyun_mns'
group :development, :test do
end
group :development do
# Access an IRB console on exception pages or by using <%= console %> in views
gem 'web-console', '~> 2.0'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug'
gem 'pry-byebug'
gem 'better_errors'
gem 'pry'
gem 'rails-erd'
gem 'annotate'
gem 'rspec-rails'
end