Skip to content

Commit

Permalink
Bump to 0.9.15
Browse files Browse the repository at this point in the history
  • Loading branch information
glebm committed May 2, 2017
1 parent 6119819 commit 82b2ea9
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
25 changes: 25 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
## v0.9.15

Adds new config options to the built-in scanners to enable simpler support for non-standard messages and receivers.

Example, the [`it` gem](https://github.com/iGEL/it) support:

```ruby
# lib/i18n/tasks/it.rb
I18n::Tasks.add_scanner(
'::I18n::Tasks::Scanners::RubyAstScanner',
receiver_messages: [nil, AST::Node.new(:const, [nil, :It])].product(%i[it]),
only: %w[*.rb]
)
I18n::Tasks.add_scanner(
'::I18n::Tasks::Scanners::PatternWithScopeScanner',
translate_call: /(?<=^|[^\w'\-.]|[^\w'\-]It\.|It\.)it/,
exclude: %w[*.rb]
)
```

```yaml
# config/i18n-tasks.yml.erb
<% require './lib/my_custom_scanner' %>
```

## v0.9.14

* AST scanner: support nested `t` calls in ruby files.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ i18n-tasks can be used with any project using the ruby [i18n gem][i18n-gem] (def
Add i18n-tasks to the Gemfile:

```ruby
gem 'i18n-tasks', '~> 0.9.14'
gem 'i18n-tasks', '~> 0.9.15'
```

Copy the default [configuration file](#configuration):
Expand Down
2 changes: 1 addition & 1 deletion lib/i18n/tasks/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module I18n
module Tasks
VERSION = '0.9.14'
VERSION = '0.9.15'
end
end

0 comments on commit 82b2ea9

Please sign in to comment.