forked from sanger/sequencescape
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gemfile
218 lines (184 loc) · 7.05 KB
/
Gemfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
# frozen_string_literal: true
source 'https://rubygems.org'
group :default do
gem 'bootsnap'
gem 'rails', '~> 5.1.7'
# Used by bootstrap, not used directly. Added here to allow us to pin the version.
# Can be removed once we're no longer compiling assets on the servers.
# We're currently pinning to keep ruby-racer support. THe suggested alternative
# mini-racer doesn't compile on the old machines.
gem 'autoprefixer-rails', '< 9.0.0'
# State machine
gem 'aasm'
gem 'configatron'
gem 'formtastic'
gem 'rest-client' # curb substitute.
# Caching, primarily of batch.xml Can be removed once our xml interfaces are retired.
gem 'actionpack-page_caching'
# Legacy support for parsing XML into params
gem 'actionpack-xml_parser'
gem 'activeresource'
# Provides bulk insert capabilities
gem 'activerecord-import'
gem 'mysql2', platforms: :mri
gem 'spreadsheet'
gem 'will_paginate'
# Will paginate clashes awkwardly with bootstrap
gem 'carrierwave'
gem 'net-ldap'
gem 'will_paginate-bootstrap'
# Provides eg. error_messages_for previously in rails 2, now deprecated.
gem 'dynamic_form'
gem 'daemons'
gem 'puma'
# We pull down a slightly later version as there are commits on head
# which we depend on, but don't have an official release yet.
# This is mainly https://github.com/resgraph/acts-as-dag/commit/be2c0179983aaed44fda0842742c7abc96d26c4e
gem 'acts-as-dag', github: 'resgraph/acts-as-dag', branch: '5e185dddff6563ee9ee92611555cd9d9a519d280'
# For background processing
# Locked for ruby version
gem 'delayed_job_active_record'
gem 'irods_reader', '>=0.0.2',
github: 'sanger/irods_reader'
# For the API level
gem 'cancan'
gem 'json'
gem 'multi_json'
gem 'rack-acceptable', require: 'rack/acceptable'
gem 'sinatra', require: false
gem 'uuidtools'
# API v2
# Pinned to 0.9.0
# We apply some monkey patches to this which aren't compatible with later version
# I've done some preliminary work here:
# https://github.com/JamesGlover/sequencescape/tree/depfu/update/jsonapi-resources-0.9.5
# but not only is there a failing test, but performance was tanking in a few places
# due to not correctly eager loading dependencies on nested resources.
gem 'jsonapi-resources', '0.9.0'
# Bunny is a RabbitMQ client.
gem 'bunny'
gem 'bootstrap', '< 4.2.1' # Pinned to 4.2.1 while we are dependent on older GCCs.
gem 'coffee-rails'
gem 'jquery-rails'
gem 'jquery-tablesorter'
gem 'jquery-ui-rails'
gem 'sass-rails'
gem 'select2-rails'
# Temporarily pin to earlier version
# Newer versions on font-awesome switch to sassc which will not
# compile on our older servers due to gcc version. We can update this
# as soon as we're migrated off the metal.
gem 'font-awesome-sass', '< 5.0.13'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
gem 'therubyracer', platforms: :mri
# Pat of the JS assets pipleine
gem 'uglifier', '>= 1.0.3'
# Excel file generation
# Note: We're temporarily using out own for of the project to make use of a few changes
# which have not yet been merged into a proper release. (Latest release 2.0.1 at time of writing)
# Future releases SHOULD contain the changes made in our fork, and should be adopted as soon as
# reasonable once they are available. The next version looks like it may be v3.0.0, so be
# aware of possible breaking changes.
gem 'axlsx', github: 'sanger/axlsx', branch: 'v2.0.2sgr'
# Excel file reading
gem 'roo'
# Used in XML generation.
gem 'builder'
gem 'sanger_barcode_format', github: 'sanger/sanger_barcode_format', branch: 'development'
# Provides null db adapter, that blocks access to remote database
# (in our case used for Agresso db in non-production environments)
gem 'activerecord-nulldb-adapter', require: false
# Allow simple connection pooling on non-database connections
# Using it to maintain our warren's of bunnies.
# Or the connection pool of RabbitMQ channels to get technical
gem 'connection_pool'
gem 'rack-cors', require: 'rack/cors'
# Adds easy conversions between units
gem 'ruby-units'
# Easy colour coding of console output.
gem 'rainbow'
end
group :warehouse do
# Used to connect to oracle databases for some data import
gem 'ruby-oci8', platforms: :mri
# No ruby-oci8, (Need to use Oracle JDBC drivers Instead)
# any newer version requires ruby-oci8 => 2.0.1
gem 'activerecord-oracle_enhanced-adapter'
end
group :development do
gem 'flay', require: false
gem 'flog', require: false
# Detect n+1 queries
gem 'bullet'
# Automatically generate documentation
gem 'yard', require: false
# Enforces coding styles and detects some bad practices
gem 'rubocop', require: false
gem 'rubocop-performance'
gem 'rubocop-rails'
gem 'rubocop-rspec', require: false
# MiniProfiler allows you to see the speed of a request conveniently on the page.
# It also shows the SQL queries performed and allows you to profile a specific block of code.
gem 'rack-mini-profiler'
# find unused routes and controller actions by runnung `rake traceroute` from CL
gem 'traceroute'
gem 'travis'
end
group :development, :test, :cucumber do
gem 'pry'
gem 'pry-stack_explorer'
end
group :profile do
# Ruby prof requires a separate environments so that is can run in production like mode.
gem 'ruby-prof'
end
group :test do
gem 'rspec-rails', require: false
# Rails performance tests
gem 'rails-perftest'
gem 'rspec-collection_matchers' # Provides matchers for dealing with arrays
gem 'test-prof'
# Provides json expectations for rspec. Makes test more readable,
# and test failures more descriptive.
gem 'rspec-json_expectations', require: false
# It is needed to use #assigns(attribute) in controllers tests
gem 'rails-controller-testing'
# Temporarily lock minitest to a specific version due to incompatibilities
# with rails versions.
gem 'minitest', '5.10.3'
gem 'minitest-profiler'
gem 'rspec_junit_formatter'
end
group :test, :cucumber do
gem 'capybara'
gem 'capybara-selenium'
gem 'database_cleaner'
gem 'factory_bot_rails', require: false
gem 'jsonapi-resources-matchers', require: false
gem 'launchy', require: false
gem 'mocha', require: false # avoids load order problems
gem 'nokogiri', require: false
gem 'shoulda-context', require: false
gem 'shoulda-matchers', require: false
gem 'simplecov', require: false
gem 'timecop', require: false
# Simplifies shared transactions between server and test threads
# See: http://technotes.iangreenleaf.com/posts/the-one-true-guide-to-database-transactions-with-capybara.html
# Essentially does two things:
# - Patches rails to share a database connection between threads while Testing
# - Pathes rspec to ensure capybara has done its stuff before killing the connection
gem 'transactional_capybara'
end
group :cucumber do
gem 'cucumber'
gem 'cucumber-rails', require: false
gem 'knapsack'
gem 'mime-types'
gem 'rubyzip'
gem 'webmock'
end
group :deployment do
gem 'exception_notification'
gem 'gmetric', '~>0.1.3'
gem 'whenever', require: false
end