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