Support multiple conditions together with a JS file per locale.
fix typo in readme
~ Add some headings and warning about what to do with/without asset pipeline
[ci skip]
Merge pull request #210 from williamcodes/fix_typo

fix typo in readme
Fix typo
Merge pull request #214 from flash-gordon/patch-1

Fix typo
Do not include locales which are not present in I18n.available_locales. This is important when using gems that include translations for locales you don't want.
~ Add back missing doc about config file
[ci skip]
Merge pull request #207 from codeholic/fix_segments_per_locale_for_v3

Support multiple conditions together with a JS file per locale.
* Change development dependencies `rspec` (locked at `3.*`)
! Fix spec
* Test against MRI 2.1.2 on Travis
Update README and CHANGELOG
Merge remote-tracking branch 'remotes/origin/master' into avail-locales
Fix conflicted spec from recent merge
Fix using multi-star scope with top-level translation key

Given the following locales.yml

:en
  foo: 'Foo'

and the following scope: "*.*.formats"

this error is raised:

Failures:

  1) I18n::JS filters filters translations using multi-star scope
     Failure/Error: result = I18n::JS.scoped_translations("*.*.formats")
     NoMethodError:
       undefined method `has_key?' for "Foo":String
     # ./lib/i18n/js.rb:134:in `filter'
     # ./lib/i18n/js.rb:130:in `block in filter'
     # ./lib/i18n/js.rb:127:in `each'
     # ./lib/i18n/js.rb:127:in
     # `filter'
     # ./lib/i18n/js.rb:130:in
     # `block in filter'
     # ./lib/i18n/js.rb:127:in `each'
     # ./lib/i18n/js.rb:127:in
     # `filter'
     # ./lib/i18n/js.rb:113:in `block in scoped_translations'
     # ./lib/i18n/js.rb:112:in
     # `each'
     # ./lib/i18n/js.rb:112:in `scoped_translations'
     # ./spec/i18n_js_spec.rb:82:in
     # `block (3 levels) in <top (required)>''`

This commit will fix it by type-checking.
~ Update README to clarify the usage of config file
[ci skip]
Document fix for multi-star scope in CHANGELOG.md
Stub config_file in spec_helper instead of config

In spec_helper.rb#set_config(path) the config is stubbed.
We should only stub the config_file (path) instead, so we don't have to
duplicate the code for YAML-parsing.
Given the following i18n-js.yml

```
translations:
<% Widgets.each do |widget| %>
- file: <%= "'app/assets/javascripts/i18n/#{widget.namespace}/%{locale}.js'" %>
  only: <%= "'#{widget.namespace}'" %>
  <% end %>
```

I want "i18n-JS" to execute the included ERB to allow more magic.

This commit will implement this feature and change a minor 'stub' in
spec_helper.rb.
Add erb-hint in CHANGELOG.md