rack-locale-root-redirect 0.2 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +7 -0
- data/README.md +4 -0
- data/lib/rack/locale-root-redirect.rb +1 -1
- data/lib/rack/{locale_root_redirect.rb → locale_root_redirect/middleware.rb} +0 -2
- data/lib/rack/locale_root_redirect/version.rb +5 -0
- data/rack-locale-root-redirect.gemspec +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8187cbaffe5c68b17137a3821afc0cf97919e990
|
4
|
+
data.tar.gz: 8188855266c792a228793cb03f7763efa2f955fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b365b9236a9ea8a1687d5cc6073ddb258fcd119b6d80735843647698aa7b21fa7c765ee19a547cbee9cf8623e314481832449cdb66ee69ef43b01ea231c863f7
|
7
|
+
data.tar.gz: b5dbcc01be179937e3ca70c9c0cae5c178eb6dd0c56be74f4865d45e4d3b8c53a8a748e7234bade4132f107ad6b49a1982c9a84af996b2f3d3852952d2b00da3
|
data/.travis.yml
ADDED
data/README.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Rack::LocaleRootRedirect
|
2
2
|
|
3
|
+
[![Build Status](https://travis-ci.org/mirego/rack-locale-root-redirect.png?branch=master)](https://travis-ci.org/mirego/rack-locale-root-redirect)
|
4
|
+
[![Coverage Status](https://coveralls.io/repos/mirego/rack-locale-root-redirect/badge.png)](https://coveralls.io/r/mirego/rack-locale-root-redirect)
|
5
|
+
[![Ruby Gem](https://badge.fury.io/rb/rack-locale-root-redirect.png)](https://rubygems.org/gems/microscope)
|
6
|
+
|
3
7
|
`Rack::LocaleRootRedirect` redirects requests to `"/"` based on the `Accept-Language` HTTP header.
|
4
8
|
|
5
9
|
## Installation
|
@@ -1 +1 @@
|
|
1
|
-
require 'rack/locale_root_redirect'
|
1
|
+
require 'rack/locale_root_redirect/middleware'
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
lib = File.expand_path('../lib', __FILE__)
|
3
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'rack/
|
4
|
+
require 'rack/locale_root_redirect/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |gem|
|
7
7
|
gem.name = 'rack-locale-root-redirect'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-locale-root-redirect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rémi Prévost
|
@@ -76,12 +76,14 @@ extra_rdoc_files: []
|
|
76
76
|
files:
|
77
77
|
- .gitignore
|
78
78
|
- .rspec
|
79
|
+
- .travis.yml
|
79
80
|
- Gemfile
|
80
81
|
- LICENSE.md
|
81
82
|
- README.md
|
82
83
|
- Rakefile
|
83
84
|
- lib/rack/locale-root-redirect.rb
|
84
|
-
- lib/rack/locale_root_redirect.rb
|
85
|
+
- lib/rack/locale_root_redirect/middleware.rb
|
86
|
+
- lib/rack/locale_root_redirect/version.rb
|
85
87
|
- rack-locale-root-redirect.gemspec
|
86
88
|
- spec/rack/locale_root_redirect_spec.rb
|
87
89
|
- spec/spec_helper.rb
|