Skip to content

Commit

Permalink
Remove Spring and cleanup gemfile
Browse files Browse the repository at this point in the history
Spring seems to cause more problems than it solves, so we've
decided to remove it from the tutorials:
https://github.com/rails/spring#removal

As long as we were in the Gemfile, organize things a bit
for better legibility.
  • Loading branch information
mark-dce committed Apr 21, 2018
1 parent b0575d7 commit 32245ab
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 59 deletions.
40 changes: 17 additions & 23 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ git_source(:github) do |repo_name|
"https://github.com/#{repo_name}.git"
end

gem 'hyrax', '2.1.0.beta2'
gem 'riiif', '~> 1.1'

gem 'rsolr', '>= 1.0'
gem 'jquery-rails'
gem 'devise'
gem 'devise-guests', '~> 0.6'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.1.6'
Expand All @@ -26,47 +33,34 @@ gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.5'
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 4.0'
gem 'redis', '~> 3.0'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'

# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development

group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
# Adds support for Capybara system testing and selenium driver
gem 'capybara', '~> 2.13'
gem 'selenium-webdriver'
end

group :development do
# Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
gem 'web-console', '>= 3.3.0'
gem 'listen', '>= 3.0.5', '< 3.2'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
gem 'spring-watcher-listen', '~> 2.0.0'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

gem 'hyrax', '2.1.0.beta2'
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
gem 'capybara', '~> 2.13'
gem 'database_cleaner'
gem 'rspec', "~> 3.5"
gem 'rspec-rails', "~> 3.5"
gem 'shoulda-matchers'
gem 'fcrepo_wrapper'
gem 'solr_wrapper', '>= 0.3'
gem 'selenium-webdriver'
end

gem 'rsolr', '>= 1.0'
gem 'jquery-rails'
gem 'devise'
gem 'devise-guests', '~> 0.6'
group :development, :test do
gem 'fcrepo_wrapper'
gem 'rspec-rails'
end

gem 'riiif', '~> 1.1'
gem 'redis', '~> 3.0'

21 changes: 12 additions & 9 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ GEM
connection_pool (2.2.1)
crass (1.0.4)
daemons (1.2.6)
database_cleaner (1.7.0)
declarative (0.0.10)
declarative-option (0.1.0)
deprecation (1.0.0)
Expand Down Expand Up @@ -600,6 +601,10 @@ GEM
rsolr (2.1.0)
builder (>= 2.1.2)
faraday (>= 0.9.0)
rspec (3.7.0)
rspec-core (~> 3.7.0)
rspec-expectations (~> 3.7.0)
rspec-mocks (~> 3.7.0)
rspec-core (3.7.1)
rspec-support (~> 3.7.0)
rspec-expectations (3.7.0)
Expand Down Expand Up @@ -651,6 +656,8 @@ GEM
rdf-xsd (>= 2.2, < 4.0)
sparql (>= 2.2, < 4.0)
sxp (~> 1.0)
shoulda-matchers (3.1.2)
activesupport (>= 4.0.0)
signet (0.8.1)
addressable (~> 2.3)
faraday (~> 0.9)
Expand Down Expand Up @@ -682,11 +689,6 @@ GEM
sparql-client (2.2.1)
net-http-persistent (>= 2.9, < 4)
rdf (>= 2.2, < 4.0)
spring (2.0.2)
activesupport (>= 4.2)
spring-watcher-listen (2.0.1)
listen (>= 2.7, < 4.0)
spring (>= 1.2, < 3.0)
sprockets (3.7.1)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
Expand Down Expand Up @@ -718,7 +720,7 @@ GEM
tzinfo (1.2.5)
thread_safe (~> 0.1)
uber (0.1.0)
uglifier (4.1.9)
uglifier (4.1.10)
execjs (>= 0.3.0, < 3)
warden (1.2.7)
rack (>= 1.0)
Expand All @@ -741,6 +743,7 @@ DEPENDENCIES
byebug
capybara (~> 2.13)
coffee-rails (~> 4.2)
database_cleaner
devise
devise-guests (~> 0.6)
fcrepo_wrapper
Expand All @@ -753,12 +756,12 @@ DEPENDENCIES
redis (~> 3.0)
riiif (~> 1.1)
rsolr (>= 1.0)
rspec-rails
rspec (~> 3.5)
rspec-rails (~> 3.5)
sass-rails (~> 5.0)
selenium-webdriver
shoulda-matchers
solr_wrapper (>= 0.3)
spring
spring-watcher-listen (~> 2.0.0)
sqlite3
turbolinks (~> 5)
tzinfo-data
Expand Down
5 changes: 0 additions & 5 deletions bin/rails
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
#!/usr/bin/env ruby
begin
load File.expand_path('../spring', __FILE__)
rescue LoadError => e
raise unless e.message.include?('spring')
end
APP_PATH = File.expand_path('../config/application', __dir__)
require_relative '../config/boot'
require 'rails/commands'
5 changes: 0 additions & 5 deletions bin/rake
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
#!/usr/bin/env ruby
begin
load File.expand_path('../spring', __FILE__)
rescue LoadError => e
raise unless e.message.include?('spring')
end
require_relative '../config/boot'
require 'rake'
Rake.application.run
17 changes: 0 additions & 17 deletions bin/spring

This file was deleted.

0 comments on commit 32245ab

Please sign in to comment.