announcement-test/temp_file/Gemfile

284 lines
7.5 KiB
Ruby
Raw Normal View History

2022-08-30 02:51:32 +00:00
begin
require ::File.expand_path('../app/helpers/bundler_helper.rb', __FILE__)
extend BundlerHelper
rescue LoadError
2023-04-08 06:00:35 +00:00
def bundler_with_clean_env(&block)
if block_given?
2022-08-30 02:51:32 +00:00
if Bundler.respond_to?(:with_unbundled_env)
2023-04-08 06:00:35 +00:00
Bundler.with_unbundled_env(&block)
2022-08-30 02:51:32 +00:00
else
2023-04-08 06:00:35 +00:00
Bundler.with_clean_env(&block)
2022-08-30 02:51:32 +00:00
end
2023-04-08 06:00:35 +00:00
end
2022-08-30 02:51:32 +00:00
end
end
2020-02-14 14:31:52 +00:00
source 'https://rubygems.org'
#update all site!!!!!!!!
2021-02-07 06:50:41 +00:00
if $0.to_s.scan('bundle').length==0
2022-08-30 02:51:32 +00:00
self.bundler_with_clean_env{
# Deprecated: bundle show => bundle list, bundle show gem => bundle info gem --path
# Tested: bundler >= 1.17 will have bundle info and bundle list
flag = system("bundle info announcement --path >/dev/null 2>&1 || bundle show announcement >/dev/null 2>&1")
2021-02-07 06:50:41 +00:00
system("bundle install") if !flag
}
end
2023-04-08 02:16:30 +00:00
gem 'multipart-post', '1.2'
2022-06-12 05:21:12 +00:00
gem 'oauth2', '1.4.7'
2022-09-26 01:38:42 +00:00
gem 'rack-protection', '2.2.2'
2022-04-13 15:31:07 +00:00
if RUBY_VERSION.to_f <= 2.1
2022-09-02 11:01:22 +00:00
gem 'addressable', '2.8.0'
2022-04-13 15:42:34 +00:00
gem 'concurrent-ruby', '1.1.9'
2022-04-13 15:52:16 +00:00
gem 'signet', '0.11.0'
2022-04-13 16:11:45 +00:00
gem 'representable', '3.0.4'
2022-04-13 16:17:53 +00:00
gem 'webrick', '1.3.1'
2022-04-13 16:21:39 +00:00
gem 'httparty', '0.19.1'
2022-04-13 15:31:07 +00:00
else
2022-09-02 11:01:22 +00:00
gem 'addressable'
2022-04-13 15:31:07 +00:00
gem 'concurrent-ruby'
2022-04-13 15:52:16 +00:00
gem 'signet'
2022-04-13 16:11:45 +00:00
gem 'representable'
2022-04-13 16:17:53 +00:00
gem 'webrick'
2022-04-13 16:23:30 +00:00
#store api
2022-04-13 16:21:39 +00:00
gem 'httparty'
2022-04-13 15:31:07 +00:00
end
2024-02-24 06:54:42 +00:00
gem 'proxifier', git: 'http://gitlab.tp.rulingcom.com/core/ruby-proxifier.git'
2022-10-17 03:37:39 +00:00
gem 'net-smtp-proxy'
2020-02-14 14:31:52 +00:00
#built in modules
eval(File.read(File.dirname(__FILE__) + '/built_in_extensions.rb'))
#modules installed from the store
2021-03-26 14:38:17 +00:00
unless File.exist?(File.dirname(__FILE__) + '/downloaded_extensions.rb')
2021-11-20 14:58:24 +00:00
File.open(File.dirname(__FILE__) + '/downloaded_extensions.rb','w+'){|f| f.write ""}
2021-03-26 14:38:17 +00:00
end
2020-02-14 14:31:52 +00:00
eval(File.read(File.dirname(__FILE__) + '/downloaded_extensions.rb'))
2023-04-08 15:12:29 +00:00
if File.exist?(File.dirname(__FILE__) + '/extra_gems.rb')
2020-02-14 14:31:52 +00:00
eval(File.read(File.dirname(__FILE__) + '/extra_gems.rb'))
end
#ask
2020-05-29 08:19:38 +00:00
gem 'rucaptcha',git: 'http://gitlab.tp.rulingcom.com/chiu/rucaptcha.git'
2020-05-28 14:16:58 +00:00
gem 'repost',git: 'http://gitlab.tp.rulingcom.com/chiu/repost-master.git'
gem 'payment_settup',git: 'http://gitlab.tp.rulingcom.com/chiu/payment_settup.git'
2020-02-14 14:31:52 +00:00
#caching observers
# gem 'mongoid-observers'
#desktop
# gem 'angularjs-rails', '~> 1.2.20'
# gem 'angular-ui-bootstrap-rails', '~> 0.11.0'
# gem 'jquery_mousewheel_rails', '~> 3.1.11.3'
2023-04-08 15:12:29 +00:00
gem 'process_shared', git: 'http://gitlab.tp.rulingcom.com/core/process_shared'
gem 'fugit', '1.9.0' #fix sytax error dependency for rufus
2022-03-16 15:53:28 +00:00
if RUBY_VERSION.to_f == 2.1
2023-04-08 15:12:29 +00:00
gem 'faraday', '0.15.4'
# gem 'declarative','0.0.10'
2022-03-16 15:53:28 +00:00
gem 'mime-types','~>3.3.1'
gem 'mimemagic','0.3.9'
gem 'public_suffix','~>3.1.1'
gem "connection_pool","2.2.3"
#social gems
gem 'phantomjs','~>2.1.1.0'
gem "omniauth-google-oauth2"
# source "https://gitlab.tp.rulingcom.com/api/packages/library/rubygems" do
# source "https://gitlab.tp.rulingcom.com/api/packages/library/rubygems" do
# gem 'googleauth', "0.14.0"
# end
# source "https://gitlab.tp.rulingcom.com/api/packages/library/rubygems" do
# gem 'google-apis-core', "0.4.2"
# gem 'google-apis-generator', "0.4.1"
# gem 'google-api-client', "0.53.0"
# end
2022-03-16 15:53:28 +00:00
gem 'googleauth', git: 'http://gitlab.tp.rulingcom.com/chiu/google-auth-library-ruby.git'
gem 'google-api-client', git: 'http://gitlab.tp.rulingcom.com/chiu/google-api-ruby-client.git'
2022-03-16 15:53:28 +00:00
#rails gem
gem 'rake','~> 12.3.3'
gem 'sassc-rails', '~>1.3.0'
2023-07-03 04:22:37 +00:00
gem 'sprockets-rails', '~> 2.0'
gem 'rails', '4.2.11.3'
2022-03-16 15:53:28 +00:00
gem 'sanitize', '~> 4.6.6'
#assets and templates
#gem 'sass-rails', '~> 4.0.2'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.0.0'
gem 'jquery-rails'
gem 'jquery-ui-rails', "5.0.0"
gem 'normalize-rails', '~> 3.0.1'
#password
gem 'bcrypt-ruby', '~> 3.1.5'
#json
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0', group: :doc
gem 'spring', '~> 1.7.2', group: :development
gem 'active_model_serializers'
#parser
gem 'nokogiri', '~> 1.7.0.1'
#database
# gem 'mongoid', github: "mongoid/mongoid"
gem 'bson', '~> 4.5.0'
gem 'mongo', '~> 2.10.5'
gem 'mongoid', '~> 5.4.1'
# sockets
# gem "websocket-rails"
#file uploading and carrierwave
gem "mini_magick", "3.5.0"
gem 'carrierwave', '1.3.4'
gem 'carrierwave-mongoid','~> 1.4.0', :require => 'carrierwave/mongoid'
2022-03-16 15:53:28 +00:00
gem 'zip-zip'
gem 'kaminari', '~> 1.0.1'
gem 'kaminari-mongoid', '~> 0.1.0'
gem 'impressionist', '1.5.1'
gem 'chartkick', '~> 2.3.5'
gem 'usagewatch_ext'
gem 'ckeditor', '~> 4.2.4'
gem 'unicorn', '~> 6.0.0'
gem 'zhconv'
gem 'time_difference'
gem 'execjs', '~> 2.7.0'
# gem 'therubyracer'
gem 'duktape'
2022-03-16 15:53:28 +00:00
#excel
gem 'axlsx_rails'
gem 'spreadsheet'
gem 'rubyXL'
#form helpers
gem 'dynamic_form'
#development related gems
group :development do
gem 'better_errors', '>= 2.8.1', '< 2.8.2'
# gem 'guard-bundler'
# gem 'guard-rails'
gem 'rails_layout'
gem 'rb-fchange', :require=>false
gem 'rb-fsevent', :require=>false
gem 'rb-inotify', '~> 0.9.10', :require=>false
gem 'byebug', '~> 9.0.6'
gem "binding_of_caller"
2023-03-29 04:13:12 +00:00
gem 'rails-dev-boost'
2022-03-16 15:53:28 +00:00
end
#testing gems
group :test do
gem "minitest", '~>5.11.3'
gem 'minitest-spec-rails'
end
else
2023-04-08 15:12:29 +00:00
gem 'sorted_set'
gem 'faraday'
gem 'ffi', '1.14.2'
# gem 'declarative'
2022-03-16 15:53:28 +00:00
gem 'mime-types'
gem 'mimemagic'
gem 'public_suffix'
gem "connection_pool"
#social gems
gem 'phantomjs','2.1.1.0'
gem "omniauth-google-oauth2"
gem 'googleauth'
gem 'google-api-client'
#rails gem
gem 'rake'
gem 'sassc-rails', '2.1.2'
gem 'sanitize'
#gem 'faraday'
#assets and templates
#gem 'sass-rails', '~> 4.0.2'
gem 'uglifier'
gem 'coffee-rails'
gem 'jquery-rails'
gem 'jquery-ui-rails'
gem 'normalize-rails'
#password
gem 'bcrypt-ruby'
gem 'sprockets', '3.7.2'
gem 'sprockets-rails', '2.3.3'
#json
gem 'jbuilder'
gem 'sdoc', group: :doc
2023-08-23 02:56:19 +00:00
gem 'spring', '3.1.1', group: :development
2022-03-16 15:53:28 +00:00
gem 'active_model_serializers', '~> 0.10.0'
gem 'railties'
gem 'rss'
#parser
2024-02-24 06:54:42 +00:00
if RUBY_VERSION.to_f >= 3.0
gem 'nokogiri', '~> 1.16', '>= 1.16.2'
gem 'json'
else
gem 'nokogiri', '~> 1.8.5'
gem 'json', '2.6.1'
end
2022-03-16 15:53:28 +00:00
gem 'actionpack-page_caching'
#database
# gem 'mongoid', github: "mongoid/mongoid"
gem 'bson'#, '~> 4.5.0'
2022-07-13 16:11:42 +00:00
gem 'mongo', '2.15.1' #last version support for mongodb 2.6
2022-03-16 15:53:28 +00:00
gem 'mongoid'
# sockets
# gem "websocket-rails"
#file uploading and carrierwave
gem "mini_magick"
gem 'carrierwave'#, '0.11.2'
2022-03-16 15:53:28 +00:00
gem 'carrierwave-mongoid', :require => 'carrierwave/mongoid'
gem 'zip-zip'
gem 'kaminari'
gem 'kaminari-mongoid'
2022-03-23 11:20:31 +00:00
gem 'impressionist', git: 'http://gitlab.tp.rulingcom.com/chiu/impressionist'
2022-03-16 15:53:28 +00:00
gem 'chartkick'
gem 'usagewatch_ext'
gem 'ckeditor', '~> 4.2.4'
2022-03-26 10:44:28 +00:00
gem 'unicorn', '~> 6.1.0'
2022-03-16 15:53:28 +00:00
gem 'zhconv'
gem 'time_difference'
#gem 'execjs'
#gem 'therubyracer'
#gem 'mini_racer'
gem 'duktape'
#excel
gem 'axlsx_rails'
gem 'spreadsheet'
gem 'rubyXL'
#form helpers
gem 'dynamic_form'
#development related gems
group :development do
#gem 'better_errors'
# gem 'guard-bundler'
# gem 'guard-rails'
gem 'rails_layout'
gem 'rb-fchange', :require=>false
gem 'rb-fsevent', :require=>false
gem 'rb-inotify', :require=>false
gem 'byebug'
#gem "binding_of_caller"
end
#testing gems
group :test do
gem "minitest"
gem 'minitest-spec-rails'
end
2023-04-08 06:00:35 +00:00
if RUBY_VERSION.to_f < 3
gem 'rails', '5.2.7'
else
gem 'rails', '7.0.4.3'
end
2023-04-08 02:16:30 +00:00
end
gem 'net_http_unix'
gem 'roda', '3.66.0'
gem 'roda-proxy', git: 'http://gitlab.tp.rulingcom.com/chiu/roda-proxy'
gem "rails-reverse-proxy", git: "http://gitlab.tp.rulingcom.com/chiu/rails-reverse-proxy"
2023-05-11 14:22:56 +00:00
gem 'loofah', '2.20.0' #bind the latest work version to avoid crash