mirador_rails 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 37698face185261739943733f1aa57dca115a012
4
- data.tar.gz: ee7dffcfc2c9930b2631cc36d0b6b6da135ef9d8
3
+ metadata.gz: 5349cb2b73733abcb4faa135d93c6915efccedb3
4
+ data.tar.gz: 3c979062d44520bcbd366e842345bbb8311c4270
5
5
  SHA512:
6
- metadata.gz: 0da50eea1102561e0445db2e623a70760c853a76aadeee904179e7049c8ad1cb2ae614da3b91d5528a8a05734f0e282ee62376ac687df9b9387adc3b4e0724eb
7
- data.tar.gz: 319d13f42ee03421edec2d1a1f39b778c60fc8841fa74e66391cabffed0b7e211319030a894198c4e313e17c7debb75e7b6572c8d90ef09abf1506c2018cc0d3
6
+ metadata.gz: 203b3d2100563d814e530e1993e6a271eba828955906c2f637cbb9fa9f45e44e6a57af674cedb16ae9d04cb712e7e83d5fb0bce381e4a8fea30b00c60423db90
7
+ data.tar.gz: d48730002207f5e7c6d0aa0234bbd76328df7a1224321761f3a90801ae5356e8d45b5ed0ed87519e4dd752f8da53e18c4b15b50f754078c8848c4904161bb7e2
@@ -2,7 +2,7 @@ module MiradorRails
2
2
  class LocalesController < ::ApplicationController
3
3
 
4
4
  def locale
5
- language = params.fetch(:locale) { I18n.default_locale.to_s }
5
+ language = params.fetch(:id) { I18n.default_locale.to_s }
6
6
  locale = MiradorRails::Locale.new(language)
7
7
  render json: locale.file_source
8
8
  rescue MiradorRails::Exceptions::LocaleNotFound
data/config/routes.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  MiradorRails::Engine.routes.draw do
2
- match '/:locale/translation',
2
+ match '/:id/translation',
3
3
  to: 'mirador_rails/locales#locale',
4
4
  via: :get,
5
5
  as: :locales,
@@ -1,3 +1,3 @@
1
1
  module MiradorRails
2
- VERSION = '0.7.0'
2
+ VERSION = '0.8.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mirador_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jack Reed
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-10-12 00:00:00.000000000 Z
11
+ date: 2018-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: font-awesome-rails
@@ -204,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
204
204
  version: '0'
205
205
  requirements: []
206
206
  rubyforge_project:
207
- rubygems_version: 2.6.14
207
+ rubygems_version: 2.6.11
208
208
  signing_key:
209
209
  specification_version: 4
210
210
  summary: Bundling up Mirador for Rails use.