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 +4 -4
- data/app/controllers/mirador_rails/locales_controller.rb +1 -1
- data/config/routes.rb +1 -1
- data/lib/mirador_rails/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5349cb2b73733abcb4faa135d93c6915efccedb3
|
4
|
+
data.tar.gz: 3c979062d44520bcbd366e842345bbb8311c4270
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(:
|
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
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.
|
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:
|
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.
|
207
|
+
rubygems_version: 2.6.11
|
208
208
|
signing_key:
|
209
209
|
specification_version: 4
|
210
210
|
summary: Bundling up Mirador for Rails use.
|