Skip to content

Commit

Permalink
Fixing scores to use relative filepath.
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg MacWilliam committed Apr 6, 2015
1 parent 66e7602 commit 2678229
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions lib/gemoji-parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@ def rehash!
# - Options: rehash:boolean
def unicode_regex(opts={})
return @unicode_regex if defined?(@unicode_regex) && !opts[:rehash]

scores = JSON.parse(File.read 'db/scores.json')

scores_file = File.expand_path('../../db/scores.json', __FILE__)
scores = File.open(scores_file, 'r:UTF-8') { |data| JSON.parse(data.read) }
pattern = []

Emoji.all.each do |emoji|
Expand Down
2 changes: 1 addition & 1 deletion lib/gemoji-parser/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module EmojiParser
VERSION = "1.3.0"
VERSION = "1.3.1"
end

0 comments on commit 2678229

Please sign in to comment.