Skip to content

Commit

Permalink
Merge pull request #1 from nvdk/force-utf8
Browse files Browse the repository at this point in the history
Force utf8
  • Loading branch information
erikap authored Aug 29, 2018
2 parents 3a2cb19 + 1e9ff7c commit 82667da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM semtech/mu-ruby-template:2.4.0-ruby2.3
FROM semtech/mu-ruby-template:2.10.0-ruby2.5
MAINTAINER Aad Versteden <[email protected]>
# see https://github.com/mu-semtech/mu-ruby-template for more info
4 changes: 2 additions & 2 deletions web.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def filename
end

def content
@content ||= File.open(self.location).read
@content ||= File.open(self.location, 'r:UTF-8').read
end

def executed?
Expand Down Expand Up @@ -78,7 +78,7 @@ def to_s
def execute_migrations
locations = Dir.glob('/data/migrations/**/*.sparql')
locations += Dir.glob('/data/migrations/**/*.ttl')

migrations = locations.map { |location| Migration.new location }
migrations.sort! do |a,b|
# I'm assuming no numbers will be in the path, this may be wrong
Expand Down

0 comments on commit 82667da

Please sign in to comment.