Skip to content

Commit

Permalink
Update to Ruby 2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
jlduran committed Jan 4, 2019
1 parent da48dd6 commit 0c8c125
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -3,4 +3,5 @@ rvm:
- 2.3
- 2.4
- 2.5
- 2.6
- jruby
3 changes: 2 additions & 1 deletion CHANGELOG.md
Expand Up @@ -2,12 +2,13 @@

### Features
* Your contribution here.
* Add support for Ruby 2.6. \[[#161](https://github.com/kslazarev/numbers_and_words/pull/161)\]
* Drop support for Ruby 2.2.

## 0.11.5 (March 22, 2018)

### Bugs
* Fix Armenian megs capacity words.
* Fix Armenian megs capacity words. \[[#156](https://github.com/kslazarev/numbers_and_words/pull/156)\]

## 0.11.4 (March 20, 2018)

Expand Down
9 changes: 6 additions & 3 deletions spec/support/helpers.rb
Expand Up @@ -4,7 +4,10 @@ def fixture_examples(type, language)
caller(1..1).first =~ /(.*):(\d+)/
dir_name = File.dirname(Regexp.last_match(1))
fixture_file = "#{language}.yml"
YAML.safe_load(File.open(
[dir_name, type.inspect.downcase, 'fixture_examples', fixture_file].join('/')
), [Symbol])
file = File.open([dir_name, type.inspect.downcase, 'fixture_examples', fixture_file].join('/'))
if Gem::Version.new(Psych::VERSION) >= Gem::Version.new('3.1.0.pre1')
YAML.safe_load(file, permitted_classes: [Symbol])
else
YAML.safe_load(file, [Symbol])
end
end

0 comments on commit 0c8c125

Please sign in to comment.