##// END OF EJS Templates
Gemfile: move "ffi" definition to :test group...
Toshi MARUYAMA -
r13715:50a8bd452bfd
parent child
Show More
@@ -1,112 +1,111
1 1 source 'https://rubygems.org'
2 2
3 3 if Gem::Version.new(Bundler::VERSION) < Gem::Version.new('1.5.0')
4 4 abort "Redmine requires Bundler 1.5.0 or higher (you're using #{Bundler::VERSION}).\nPlease update with 'gem update bundler'."
5 5 end
6 6
7 7 gem "rails", "4.2.0"
8 8 gem "jquery-rails", "~> 3.1.1"
9 9 gem "coderay", "~> 1.1.0"
10 10 gem "builder", ">= 3.0.4"
11 11 gem "request_store", "1.0.5"
12 12 gem "mime-types"
13 13 gem "protected_attributes"
14 14 gem "actionpack-action_caching"
15 15 gem "actionpack-xml_parser"
16 16
17 # building ffi 1.9.7 fails in Ubuntu: https://github.com/ffi/ffi/issues/414
18 gem "ffi", "1.9.6"
19
20 17 # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
21 18 gem 'tzinfo-data', platforms: [:mingw, :x64_mingw, :mswin, :jruby]
22 19 gem "rbpdf", "~> 1.18.5"
23 20
24 21 # Optional gem for LDAP authentication
25 22 group :ldap do
26 23 gem "net-ldap", "~> 0.3.1"
27 24 end
28 25
29 26 # Optional gem for OpenID authentication
30 27 group :openid do
31 28 gem "ruby-openid", "~> 2.3.0", :require => "openid"
32 29 gem "rack-openid"
33 30 end
34 31
35 32 platforms :mri, :mingw, :x64_mingw do
36 33 # Optional gem for exporting the gantt to a PNG file, not supported with jruby
37 34 group :rmagick do
38 35 gem "rmagick", ">= 2.0.0"
39 36 end
40 37
41 38 # Optional Markdown support, not for JRuby
42 39 group :markdown do
43 40 gem "redcarpet", "~> 3.1.2"
44 41 end
45 42 end
46 43
47 44 platforms :jruby do
48 45 # jruby-openssl is bundled with JRuby 1.7.0
49 46 gem "jruby-openssl" if Object.const_defined?(:JRUBY_VERSION) && JRUBY_VERSION < '1.7.0'
50 47 gem "activerecord-jdbc-adapter", "~> 1.3.2"
51 48 end
52 49
53 50 # Include database gems for the adapters found in the database
54 51 # configuration file
55 52 require 'erb'
56 53 require 'yaml'
57 54 database_file = File.join(File.dirname(__FILE__), "config/database.yml")
58 55 if File.exist?(database_file)
59 56 database_config = YAML::load(ERB.new(IO.read(database_file)).result)
60 57 adapters = database_config.values.map {|c| c['adapter']}.compact.uniq
61 58 if adapters.any?
62 59 adapters.each do |adapter|
63 60 case adapter
64 61 when 'mysql2'
65 62 gem "mysql2", "~> 0.3.11", :platforms => [:mri, :mingw, :x64_mingw]
66 63 gem "activerecord-jdbcmysql-adapter", :platforms => :jruby
67 64 when 'mysql'
68 65 gem "activerecord-jdbcmysql-adapter", :platforms => :jruby
69 66 when /postgresql/
70 67 gem "pg", "~> 0.17.1", :platforms => [:mri, :mingw, :x64_mingw]
71 68 gem "activerecord-jdbcpostgresql-adapter", :platforms => :jruby
72 69 when /sqlite3/
73 70 gem "sqlite3", :platforms => [:mri, :mingw, :x64_mingw]
74 71 gem "activerecord-jdbcsqlite3-adapter", "1.3.11", :platforms => :jruby
75 72 when /sqlserver/
76 73 gem "tiny_tds", "~> 0.6.2", :platforms => [:mri, :mingw, :x64_mingw]
77 74 gem "activerecord-sqlserver-adapter", :platforms => [:mri, :mingw, :x64_mingw]
78 75 else
79 76 warn("Unknown database adapter `#{adapter}` found in config/database.yml, use Gemfile.local to load your own database gems")
80 77 end
81 78 end
82 79 else
83 80 warn("No adapter found in config/database.yml, please configure it first")
84 81 end
85 82 else
86 83 warn("Please configure your config/database.yml first")
87 84 end
88 85
89 86 group :development do
90 87 gem "rdoc", ">= 2.4.2"
91 88 gem "yard"
92 89 end
93 90
94 91 group :test do
95 92 gem "minitest"
96 93 gem "rails-dom-testing"
97 94 gem "mocha"
98 95 gem "simplecov", "~> 0.9.1", :require => false
99 96 # For running UI tests
100 97 gem "capybara"
101 98 gem "selenium-webdriver"
99 # building ffi 1.9.7 fails in Ubuntu: https://github.com/ffi/ffi/issues/414
100 gem "ffi", "1.9.6"
102 101 end
103 102
104 103 local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
105 104 if File.exists?(local_gemfile)
106 105 eval_gemfile local_gemfile
107 106 end
108 107
109 108 # Load plugins' Gemfiles
110 109 Dir.glob File.expand_path("../plugins/*/{Gemfile,PluginGemfile}", __FILE__) do |file|
111 110 eval_gemfile file
112 111 end
General Comments 0
You need to be logged in to leave comments. Login now