Project

General

Profile

Unable install plugins on ubuntu 16.04 ยป Gemfile.txt

Surendra Ganne, 2017-05-17 14:27

 
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.8", git: "git://github.com/rails/rails.git", branch: "4-2-stable"
8
gem "jquery-rails", "~> 4.0"
9
gem "coderay", "~> 1.1.0"
10
gem "builder", ">= 3.0.4"
11
gem "request_store", "~> 1.1"
12
gem "mime-types"
13
gem "protected_attributes"
14
gem "actionpack-action_caching"
15
gem "actionpack-xml_parser"
16
gem "roadie-rails"
17

    
18
# Request at least nokogiri 1.6.7.2 because of security advisories
19
gem "nokogiri", ">= 1.6.7.2"
20

    
21
# Request at least rails-html-sanitizer 1.0.3 because of security advisories
22
gem "rails-html-sanitizer", ">= 1.0.3"
23

    
24
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
25
gem 'tzinfo-data', platforms: [:mingw, :x64_mingw, :mswin, :jruby]
26
gem "rbpdf", "~> 1.19.0"
27

    
28
# Optional gem for LDAP authentication
29
group :ldap do
30
  gem "net-ldap", "~> 0.8"
31
end
32

    
33
# Optional gem for OpenID authentication
34
group :openid do
35
  gem "ruby-openid", "~> 2.3", :require => "openid"
36
  gem "rack-openid"
37
end
38

    
39
platforms :mri, :mingw, :x64_mingw do
40
  # Optional gem for exporting the gantt to a PNG file, not supported with jruby
41
  group :rmagick do
42
    gem "rmagick", ">= 2.14.0"
43
  end
44

    
45
  # Optional Markdown support, not for JRuby
46
  group :markdown do
47
    gem "redcarpet", "~> 3.2"
48
  end
49
end
50

    
51
platforms :jruby do
52
  # jruby-openssl is bundled with JRuby 1.7.0
53
  gem "jruby-openssl" if Object.const_defined?(:JRUBY_VERSION) && JRUBY_VERSION < '1.7.0'
54
  gem "activerecord-jdbc-adapter", "~> 1.3.2"
55
end
56

    
57
# Include database gems for the adapters found in the database
58
# configuration file
59
require 'erb'
60
require 'yaml'
61

    
62
seen_adapters = {}
63
Dir['{config,instances/*/config}/database.yml'].select do |f|
64
  File.exists?(f)
65
end.each do |database_file|
66
  database_config = YAML::load(ERB.new(IO.read(database_file)).result)
67
  adapters = database_config.values.map {|c| c['adapter']}.compact.uniq
68
  if adapters.any?
69
    adapters.each do |adapter|
70
      next if seen_adapters[adapter]
71
      seen_adapters[adapter] = true
72
      case adapter
73
      when 'mysql2'
74
        gem "mysql2", "~> 0.4.6", :platforms => [:mri, :mingw, :x64_mingw]
75
        gem "activerecord-jdbcmysql-adapter", :platforms => :jruby
76
      when 'mysql'
77
        gem "activerecord-jdbcmysql-adapter", :platforms => :jruby
78
      when /postgresql/
79
        gem "pg", "~> 0.18.1", :platforms => [:mri, :mingw, :x64_mingw]
80
        gem "activerecord-jdbcpostgresql-adapter", :platforms => :jruby
81
      when /sqlite3/
82
        gem "sqlite3", :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.6.2", :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
end
96

    
97
local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
98
if File.exists?(local_gemfile)
99
  eval_gemfile local_gemfile
100
end
101

    
102
# Load plugins' Gemfiles
103
Dir.glob File.expand_path("../plugins/*/{Gemfile,PluginGemfile}", __FILE__) do |file|
104
  eval_gemfile file
105
end
    (1-1/1)