Skip to content
This repository has been archived by the owner on Jan 8, 2022. It is now read-only.

Commit

Permalink
Merge pull request #222 from sul-dlss/update-ruby
Browse files Browse the repository at this point in the history
Update ruby version in .ruby-version
  • Loading branch information
mjgiarlo committed Nov 13, 2018
2 parents 5731fd8 + 72930c6 commit 086e7cc
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.3.4
2.5.3
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ before_install:

rvm:
- 2.5.3
- 2.3.4

script: bundle exec rake ci
2 changes: 1 addition & 1 deletion app/mailers/hydrus_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def host

def self.process_user_list(users)
users.split(',').map do |user|
user =~ /.+@.+\..+/ ? user.strip : "#{user.strip}@stanford.edu"
user.match?(/.+@.+\..+/) ? user.strip : "#{user.strip}@stanford.edu"
end
end
end
2 changes: 1 addition & 1 deletion app/models/hydrus/item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ def version_description
def is_initial_version(opts = {})
return true if current_version == '1'
return false if opts[:absolute]
version_tag =~ /\Av1\.0\./ ? true : false
version_tag.match?(/\Av1\.0\./) ? true : false
end

# Takes a string.
Expand Down
2 changes: 1 addition & 1 deletion lib/validators/uri_validator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ def validate_each(object, attribute, value)
configuration = { message: 'is invalid or not responding', format: URI::regexp(%w(http https)) }
configuration.update(options)

if value =~ configuration[:format]
if value.match?(configuration[:format])
begin # check header response
case Net::HTTP.get_response(URI.parse(value))
when Net::HTTPSuccess then true
Expand Down
11 changes: 5 additions & 6 deletions spec/support/rubydora_transactions_monkeypatch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,12 @@ def rollback_fixtures(fixtures)
without_transactions do
# First, purge everything that was modified.
aps.each do |p|
begin
repository.purge_object(pid: p)
solr.delete_by_id p
#run_hook(:after_rollback, :pid => p, :method => :ingest)
rescue
end
repository.purge_object(pid: p)
solr.delete_by_id p
#run_hook(:after_rollback, :pid => p, :method => :ingest)
rescue
end

# Then restore the fixtures to their original state.
fixtures.each do |p, foxml|
next unless fps.include?(p)
Expand Down

0 comments on commit 086e7cc

Please sign in to comment.