gems 列表(rails 插件)

 

source 'http://rubygems.org'

 

gem 'rails', '3.2.6'

 

1.rest-authentication、devise:用户验证插件

2.attachment_fu、carrierwave、Paperclip :文件上传插件

3.random_finders:数据库随机查找辅助插件

4.gruff、ziya、googlecharts、flot(jquery):图表插件

5.typo:博客插件

6.beast:论坛插件

7.will_paginate、kaminari:分页插件

8.acts_as_commentable:评论插件

9.mp3_player、jw-playr-hlpr:mp3播放插件

10.tiny_mce、ckeditor, rails_kindeditor:富文本插件

11.Backup_fu:备份数据库和文件到amazon s3

12:swfupload_fu:多文件上传插件

13.recaptcha:全自动区分计算机和人类的图灵测试,防止注册机和垃圾comment等等

14.white_list_model:white_list helper会encode所有的标签并strip所有的属性以尽可能防止hacker入侵

15.calendar_helper:一个简单的创建HTML日历的插件

16.Globalize2:rails全球化插件

17.rails_upload_progress:rails上传进度条

18.rails-i18n:rails本地化插件

19.themes_for_rails、cheap-themes:rails主题插件

20.Thinking Sphinx:搜索/检索插件      

 

//  第三方验证

gem "omniauth-tqq"

gem "omniauth-sina"

gem "omniauth-renren"

gem "omniauth-douban"

 

gem 'sidekiq'  ||   http://sidekiq.org

邮件发送

  

gem 'mysql2'   ||  https://github.com/brianmario/mysql2 

 

development:
  adapter: mysql2
  encoding: utf8
  database: my_db_name
  username: root
  password: my_password
  host: 127.0.0.1
  port: 3306
  secure_auth: false

 

#$db=Mysql2::Client.new(:username => "root", :host => "127.0.0.1", :database => db_name, :password => "123456")

---------------------------------------------------------------------------------------------------------------------

gem 'sqlite3'  ||   https://github.com/sparklemotion/sqlite3-ruby

 

require "sqlite3"

# Open a database
db = SQLite3::Database.new "test.db"

# Create a database
rows = db.execute <<-SQL
  create table numbers (
    name varchar(30),
    val int
  );

 

---------------------------------------------------------------------------------------------------------------------

gem "devise"   ||       https://github.com/plataformatec/devise

 

rails generate devise MODEL

before_filter :authenticate_user!
user_signed_in?
current_user
user_session

 

---------------------------------------------------------------------------------------------------------------------

 gem 'will_paginate'     ||     https://github.com/mislav/will_paginate

 

# paginate in Active Record now returns a Relation
Post.where(:published=>true).paginate(:page=>params[:page]).order('id DESC')

# the new, shorter page() method
Post.page(params[:page]).order('created_at DESC')

# render page links in the view: 
<%= will_paginate @posts %>

 

---------------------------------------------------------------------------------------------------------------------

 

 

# Could not find a JavaScript runtime.

#for a list of available runtimes. #(ExecJS::RuntimeUnavailable) 

gem 'execjs'       ||       https://github.com/sstephenson/execjs 

gem 'therubyracer'

 

---------------------------------------------------------------------------------------------------------------------

//  中文搜索

gem 'thinking-sphinx'

 ------------------------------------------------------------------------------------------------------------------------------------------------

 gem "redis"

 

gem 'redis-namespace'

gem 'redis-search'

 

------------------------------------------------------------------------------------------------------------------------------------------------

group :assets do

  gem 'sass-rails'

  gem 'coffee-rails'

  gem 'uglifier'

  gem 'bootstrap-sass'

end

------------------------------------------------------------------------------------------------------------------------------------------------ 

gem 'nokogiri'       #Nokogiri::HTML(open(url))

gem 'open-uri'          # open(url)  

gem 'httparty'           #  HTTParty.get(url, :basic_auth => {:username => "admin", :password => "admin"})

 ------------------------------------------------------------------------------------------------------------------------------------------------

gem 'json'                 #JSON.parse(open(URI.encode(api_url)).read) 

---------------------------------------------------------------------

 Rails Composer  | |   https://github.com/RailsApps/rails-composer

 

创建项目的框架

$ rails new myapp -m https://raw.github.com/RailsApps/rails-composer/master/composer.rb -T -O

 

选择项目需要的组件

-------------------------------------------------------------------

gem "carrierwave"   ||    https://github.com/carrierwaveuploader/carrierwave   

http://ruby-china.org/topics/4992

http://railscasts.com/episodes/182-cropping-images?language=zh&view=asciicast

------------------------------------------------------------------

gem 'grape' || https://github.com/intridea/grape

 

 API 插件

-----------------------------------------------------------------

gem install chronic  || sphinx

gem install thinking-sphinx

gem 'activerecord'

gem 'activesupport'    

gem 'multi_xml'

gem 'crack'

gem 'thinking-sphinx'

gem 'typhoeus'

gem 'selenium-webdriveron'

gem 'paperclip'

gem 'rmagick'

gem 'httmultiparty'

#gem 'declarative_authorization'

gem 'tinymce-rails'

#gem 'dynamic_form'

gem 'thin'

gem "awesome_nested_set", "~> 2.1.5"

gem "acts_as_list"

#gem 'fastercsv' # Only required on Ruby 1.8 and below

#gem 'ckeditor'

# Gems used only for assets and not required

# in production environments by default.

 

#gem "bbenezech-nested_form",:require => 'nested_form'

gem "nested_form"

 

gem 'jquery-rails'

 

gem "settingslogic"

gem "juggernaut"

gem "geoip"

gem "httparty"

gem "money"

gem "google_currency"

gem "eu_central_bank"

gem "crack"

gem "rmagick"

gem "carrierwave"

gem 'newrelic_rpm'

 

# Use unicorn as the web server

# gem 'unicorn'

 

# Deploy with Capistrano

# gem 'capistrano'

 

# To use debugger

# gem 'ruby-debug19', :require => 'ruby-debug'

gem "omniauth-oauth"

gem "omniauth"

 

#gem "omniauth_china"

gem 'rmmseg-cpp-huacnlee'

gem 'chinese_pinyin'

gem 'rmmseg-cpp-huacnlee'

 

gem "resque", :require => "resque/server"

gem "resque_mailer"

gem 'resque-status'

 

gem "dynamic_form"

 

group :development,:test do

    gem 'capybara'

    gem 'rspec-rails'

    gem 'rack-test'

    gem 'factory_girl_rails'

    gem 'database_cleaner'

    gem 'spork'

end

group :test do

    gem 'cucumber-rails'

end

gem 'dynamic_sitemaps'

gem 'friendly_id'

gem 'gretel'

========================================

 gem'client_side_validations'  || https://github.com/bcardarella/client_side_validations

 

 

你可能感兴趣的:(Ruby,on,Rails,方面)