2016-06-02 15:47:17 +08:00
|
|
|
source 'https://ruby.taobao.org/'
|
2015-04-15 12:30:37 +08:00
|
|
|
|
|
|
|
unless RUBY_PLATFORM =~ /w32/
|
|
|
|
# unix-like only
|
|
|
|
gem 'iconv'
|
2016-06-28 19:19:59 +08:00
|
|
|
if RUBY_PLATFORM =~ /darwin/
|
|
|
|
gem "rmagick", "= 2.15.4" ## osx must be this version
|
2016-07-09 13:39:50 +08:00
|
|
|
elsif RUBY_PLATFORM =~ /linux/
|
2016-07-04 14:43:51 +08:00
|
|
|
#gem "rmagick", "= 2.13.1" ## centos yum install ImageMagick-devel
|
2016-06-28 19:19:59 +08:00
|
|
|
end
|
2016-06-27 16:03:07 +08:00
|
|
|
gem 'certified'
|
2016-06-29 09:14:53 +08:00
|
|
|
gem 'net-ssh', '2.9.1'
|
|
|
|
gem 'jenkins_api_client'
|
|
|
|
gem 'nokogiri'
|
2015-04-15 12:30:37 +08:00
|
|
|
end
|
|
|
|
|
2016-04-26 10:50:54 +08:00
|
|
|
gem 'wechat',path: 'lib/wechat'
|
2015-10-28 15:54:27 +08:00
|
|
|
gem 'grack', path:'lib/grack'
|
2015-08-01 18:48:55 +08:00
|
|
|
gem 'gitlab', path: 'lib/gitlab-cli'
|
2015-06-01 23:10:25 +08:00
|
|
|
gem 'rest-client'
|
2015-05-04 14:58:11 +08:00
|
|
|
gem "mysql2", "= 0.3.18"
|
|
|
|
gem 'redis-rails'
|
2015-04-15 12:36:19 +08:00
|
|
|
gem 'rubyzip'
|
|
|
|
gem 'delayed_job_active_record'#, :group => :production
|
|
|
|
gem 'daemons'
|
2015-04-15 12:30:37 +08:00
|
|
|
gem 'grape', '~> 0.9.0'
|
|
|
|
gem 'grape-entity'
|
2016-04-05 15:54:30 +08:00
|
|
|
gem 'rack-cors', :require => 'rack/cors'
|
2015-04-15 12:30:37 +08:00
|
|
|
gem 'seems_rateable', '~> 1.0.13'
|
2016-03-21 16:02:30 +08:00
|
|
|
gem 'rails', '~> 3.2'
|
2015-04-15 12:30:37 +08:00
|
|
|
gem "jquery-rails", "~> 2.0.2"
|
|
|
|
gem "i18n", "~> 0.6.0"
|
|
|
|
gem 'coderay', '~> 1.1.0'
|
|
|
|
gem "fastercsv", "~> 1.5.0", :platforms => [:mri_18, :mingw_18, :jruby]
|
|
|
|
gem "builder", "3.0.0"
|
|
|
|
gem 'acts-as-taggable-on', '2.4.1'
|
|
|
|
gem 'spreadsheet'
|
|
|
|
gem 'ruby-ole'
|
2015-04-15 12:36:19 +08:00
|
|
|
gem 'rails_kindeditor',path:'lib/rails_kindeditor'
|
2015-07-17 14:17:42 +08:00
|
|
|
gem 'binding_of_caller'
|
2015-10-15 12:04:55 +08:00
|
|
|
gem 'chinese_pinyin'
|
2015-11-26 09:57:53 +08:00
|
|
|
# gem 'sunspot_rails', '~> 1.3.3'
|
|
|
|
# gem 'sunspot_solr'
|
|
|
|
# gem 'sunspot'
|
|
|
|
# gem 'progress_bar'
|
2015-11-27 13:07:09 +08:00
|
|
|
gem 'ansi'
|
2015-11-27 13:09:20 +08:00
|
|
|
|
2015-11-26 09:57:53 +08:00
|
|
|
gem 'kaminari'
|
|
|
|
gem 'elasticsearch-model'
|
|
|
|
gem 'elasticsearch-rails'
|
2015-05-20 17:42:26 +08:00
|
|
|
|
2016-07-28 15:11:04 +08:00
|
|
|
#rails 3.2.22.2 bug
|
2016-08-14 13:46:46 +08:00
|
|
|
gem "test-unit", "~>3.0"
|
2016-04-24 12:48:03 +08:00
|
|
|
|
|
|
|
### profile
|
2016-08-14 13:46:46 +08:00
|
|
|
gem 'oneapm_rpm'
|
2016-04-24 12:48:03 +08:00
|
|
|
|
2015-04-15 12:30:37 +08:00
|
|
|
group :development do
|
|
|
|
gem 'grape-swagger'
|
|
|
|
gem 'better_errors', '~> 1.1.0'
|
2016-05-05 14:06:47 +08:00
|
|
|
# gem "query_reviewer"
|
2016-08-14 13:46:46 +08:00
|
|
|
gem 'rack-mini-profiler', '~> 0.9.3'
|
2015-12-06 10:48:05 +08:00
|
|
|
if RUBY_PLATFORM =~ /w32/
|
|
|
|
gem 'win32console'
|
|
|
|
end
|
2015-04-15 12:30:37 +08:00
|
|
|
end
|
|
|
|
|
2015-12-18 17:16:25 +08:00
|
|
|
group :development, :test do
|
2015-05-20 17:42:26 +08:00
|
|
|
unless RUBY_PLATFORM =~ /w32/
|
|
|
|
gem 'pry-rails'
|
|
|
|
if RUBY_VERSION >= '2.0.0'
|
|
|
|
gem 'pry-byebug'
|
|
|
|
end
|
|
|
|
gem 'pry-stack_explorer'
|
2015-09-06 22:59:27 +08:00
|
|
|
if RUBY_PLATFORM =~ /darwin/
|
|
|
|
gem 'puma'
|
2015-12-18 17:16:25 +08:00
|
|
|
end
|
2015-05-20 17:42:26 +08:00
|
|
|
end
|
2015-04-15 12:30:37 +08:00
|
|
|
|
2015-05-20 17:42:26 +08:00
|
|
|
gem 'rspec-rails', '~> 3.0'
|
|
|
|
gem 'factory_girl_rails'
|
2015-04-15 12:30:37 +08:00
|
|
|
end
|
|
|
|
|
|
|
|
# Gems used only for assets and not required
|
|
|
|
# in production environments by default.
|
|
|
|
group :assets do
|
|
|
|
gem 'sass-rails', '~> 3.2.3'
|
|
|
|
gem 'coffee-rails', '~> 3.2.1'
|
|
|
|
|
|
|
|
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
|
2016-06-24 09:01:12 +08:00
|
|
|
# gem 'therubyracer', :platforms => :ruby
|
2015-04-15 12:30:37 +08:00
|
|
|
|
|
|
|
gem 'uglifier', '>= 1.0.3'
|
|
|
|
end
|
|
|
|
|
|
|
|
# Optional gem for LDAP authentication
|
|
|
|
group :ldap do
|
|
|
|
gem "net-ldap", "~> 0.3.1"
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
# Optional gem for OpenID authentication
|
|
|
|
group :openid do
|
|
|
|
gem "ruby-openid", "~> 2.1.4", :require => "openid"
|
|
|
|
gem "rack-openid"
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
database_file = File.join(File.dirname(__FILE__), "config/database.yml")
|
|
|
|
if File.exist?(database_file)
|
|
|
|
else
|
|
|
|
warn("Please configure your config/database.yml first")
|
|
|
|
end
|
|
|
|
|
|
|
|
# Load plugins' Gemfiles
|
|
|
|
Dir.glob File.expand_path("../plugins/*/Gemfile", __FILE__) do |file|
|
|
|
|
puts "Loading #{file} ..." if $DEBUG # `ruby -d` or `bundle -v`
|
|
|
|
instance_eval File.read(file)
|
|
|
|
end
|