Advertisement
Guest User

Gemfile

a guest
Oct 26th, 2023
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.04 KB | None | 0 0
  1. source 'https://rubygems.org'
  2.  
  3. if Gem::Version.new(Bundler::VERSION) < Gem::Version.new('1.5.0')
  4. abort "Redmine requires Bundler 1.5.0 or higher (you're using #{Bundler::VERSION}).\nPlease update with 'gem update bundler'."
  5. end
  6.  
  7. gem "rails", "4.2.7.1"
  8. gem "addressable", "2.4.0" if RUBY_VERSION < "2.0"
  9. gem "jquery-rails", "~> 3.1.4"
  10. gem "coderay", "~> 1.1.1"
  11. gem "builder", ">= 3.0.4"
  12. gem "request_store", "1.0.5"
  13. gem "mime-types", (RUBY_VERSION >= "2.0" ? "~> 3.0" : "~> 2.99")
  14. gem "protected_attributes"
  15. gem "actionpack-action_caching"
  16. gem "actionpack-xml_parser"
  17. gem "roadie-rails", "~> 1.1.1"
  18. gem "roadie", "~> 3.2.1"
  19. gem "mimemagic"
  20.  
  21. gem "nokogiri", (RUBY_VERSION >= "2.1" ? "~> 1.7.2" : "~> 1.6.8")
  22. gem "i18n", "~> 0.7.0"
  23. gem "ffi", "1.9.14", :platforms => :mingw if RUBY_VERSION < "2.0"
  24.  
  25. # Request at least rails-html-sanitizer 1.0.3 because of security advisories
  26. gem "rails-html-sanitizer", ">= 1.0.3"
  27.  
  28. # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
  29. gem 'tzinfo-data', platforms: [:mingw, :x64_mingw, :mswin, :jruby]
  30. gem "rbpdf", "~> 1.19.3"
  31.  
  32. # Optional gem for LDAP authentication
  33. group :ldap do
  34. gem "net-ldap", "~> 0.12.0"
  35. end
  36.  
  37. # Optional gem for OpenID authentication
  38. group :openid do
  39. gem "ruby-openid", "~> 2.3.0", :require => "openid"
  40. gem "rack-openid"
  41. end
  42.  
  43. platforms :mri, :mingw, :x64_mingw do
  44. # Optional gem for exporting the gantt to a PNG file, not supported with jruby
  45. group :rmagick do
  46. gem "rmagick", ">= 2.14.0"
  47. end
  48.  
  49. # Optional Markdown support, not for JRuby
  50. group :markdown do
  51. gem "redcarpet", "~> 3.3.2"
  52. end
  53. end
  54.  
  55. platforms :jruby do
  56. # jruby-openssl is bundled with JRuby 1.7.0
  57. gem "jruby-openssl" if Object.const_defined?(:JRUBY_VERSION) && JRUBY_VERSION < '1.7.0'
  58. gem "activerecord-jdbc-adapter", "~> 1.3.2"
  59. end
  60.  
  61. # Include database gems for the adapters found in the database
  62. # configuration file
  63. require 'erb'
  64. require 'yaml'
  65. database_file = File.join(File.dirname(__FILE__), "config/database.yml")
  66. if File.exist?(database_file)
  67. database_config = YAML::load(ERB.new(IO.read(database_file)).result)
  68. adapters = database_config.values.map {|c| c['adapter']}.compact.uniq
  69. if adapters.any?
  70. adapters.each do |adapter|
  71. case adapter
  72. when 'mysql2'
  73. gem "mysql2", "~> 0.3.18", :platforms => [:mri, :mingw, :x64_mingw]
  74. gem "activerecord-jdbcmysql-adapter", :platforms => :jruby
  75. when 'mysql'
  76. gem "activerecord-jdbcmysql-adapter", :platforms => :jruby
  77. when /postgresql/
  78. gem "pg", "~> 0.18.1", :platforms => [:mri, :mingw, :x64_mingw]
  79. gem "activerecord-jdbcpostgresql-adapter", :platforms => :jruby
  80. when /sqlite3/
  81. gem "sqlite3", (RUBY_VERSION < "2.0" && RUBY_PLATFORM =~ /mingw/ ? "1.3.12" : "~>1.3.12"),
  82. :platforms => [:mri, :mingw, :x64_mingw]
  83. gem "jdbc-sqlite3", ">= 3.8.10.1", :platforms => :jruby
  84. gem "activerecord-jdbcsqlite3-adapter", :platforms => :jruby
  85. when /sqlserver/
  86. gem "tiny_tds", "~> 0.7.0", :platforms => [:mri, :mingw, :x64_mingw]
  87. gem "activerecord-sqlserver-adapter", :platforms => [:mri, :mingw, :x64_mingw]
  88. else
  89. warn("Unknown database adapter `#{adapter}` found in config/database.yml, use Gemfile.local to load your own database gems")
  90. end
  91. end
  92. else
  93. warn("No adapter found in config/database.yml, please configure it first")
  94. end
  95. else
  96. warn("Please configure your config/database.yml first")
  97. end
  98.  
  99. group :development do
  100. gem "rdoc", "~> 4.3"
  101. gem "yard"
  102. end
  103.  
  104. group :test do
  105. gem "minitest"
  106. gem "rails-dom-testing"
  107. gem "mocha"
  108. gem "simplecov", "~> 0.9.1", :require => false
  109. # For running UI tests
  110. gem "capybara"
  111. gem "selenium-webdriver", "~> 2.53.4"
  112. end
  113.  
  114. local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
  115. if File.exists?(local_gemfile)
  116. eval_gemfile local_gemfile
  117. end
  118.  
  119. # Load plugins' Gemfiles
  120. Dir.glob File.expand_path("../plugins/*/{Gemfile,PluginGemfile}", __FILE__) do |file|
  121. eval_gemfile file
  122. end
  123.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement