Skip to content

Commit

Permalink
Merge branch 'release/9.0.0'
Browse files Browse the repository at this point in the history
* release/9.0.0:
  Enable travis cache
  Check for `.empty?` instead of `.any?`
  • Loading branch information
tagliala committed Nov 7, 2020
2 parents af519ae + 12b1413 commit 1418797
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions .travis.yml
@@ -1,6 +1,7 @@
os: linux
dist: bionic
language: ruby
cache: bundler
rvm:
- 2.4.10
- 2.5.8
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,10 @@
# Changelog

## 9.0.0 / 2020-11-07

* [ENHANCEMENT] Check for `empty?` instead of `any?` on available_locales array
* [ENHANCEMENT] Update development dependencies

## 8.2.1 / 2020-11-03

* [ENHANCEMENT] Fix deprecation with URI.parser ([#234](https://github.com/enriclluelles/route_translator/pull/234))
Expand Down
6 changes: 3 additions & 3 deletions lib/route_translator.rb
Expand Up @@ -65,10 +65,10 @@ def reset_config
def available_locales
locales = config.available_locales

if locales.any?
locales.map(&:to_sym)
else
if locales.empty?
I18n.available_locales.dup
else
locales.map(&:to_sym)
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/route_translator/version.rb
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module RouteTranslator
VERSION = '8.2.1'
VERSION = '9.0.0'
end

0 comments on commit 1418797

Please sign in to comment.