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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1881606ef44a9609f795c8e3d56e11baa446910e
4
- data.tar.gz: 53e0b9a8c5a57afffff1751fd9f34d1e8b353164
3
+ metadata.gz: 8187cbaffe5c68b17137a3821afc0cf97919e990
4
+ data.tar.gz: 8188855266c792a228793cb03f7763efa2f955fc
5
5
  SHA512:
6
- metadata.gz: bf52f7c8c5eb66f40d073953fea0ae499d48477b7e707a46fc324480e5e15945e89b969dd50e10fe6082c935beb41b9c4485310622b92cb9eba798772d932dfc
7
- data.tar.gz: 327c039d77f5666750c6a0eb39e8caf6396d918fbfbe6fdbb6cf5e3639c2de8e8eed4b53ca48316dc50cf1544775fcdee4ec8cf5e2bfa53c5e601240da0a15d2
6
+ metadata.gz: b365b9236a9ea8a1687d5cc6073ddb258fcd119b6d80735843647698aa7b21fa7c765ee19a547cbee9cf8623e314481832449cdb66ee69ef43b01ea231c863f7
7
+ data.tar.gz: b5dbcc01be179937e3ca70c9c0cae5c178eb6dd0c56be74f4865d45e4d3b8c53a8a748e7234bade4132f107ad6b49a1982c9a84af996b2f3d3852952d2b00da3
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ language: ruby
2
+
3
+ rvm:
4
+ - 2.0.0
5
+ - 1.9.3
6
+
7
+ script: "echo 'DO IT' && bundle exec rake spec"
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'
@@ -2,8 +2,6 @@ require 'rack/accept'
2
2
 
3
3
  module Rack
4
4
  class LocaleRootRedirect
5
- VERSION = '0.2'
6
-
7
5
  def initialize(app, locales = {})
8
6
  @locales = locales
9
7
  @available_locales = locales.keys.map(&:to_s)
@@ -0,0 +1,5 @@
1
+ module Rack
2
+ class LocaleRootRedirect
3
+ VERSION = '0.2.1'
4
+ end
5
+ end
@@ -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/locale-root-redirect'
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: '0.2'
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