http_accept_language 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/VERSION +1 -1
- data/http_accept_language.gemspec +47 -0
- data/lib/http_accept_language.rb +7 -0
- data/rails/init.rb +1 -7
- metadata +14 -6
- data/tasks/http_accept_language_tasks.rake +0 -4
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
pkg
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.1
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{http_accept_language}
|
8
|
+
s.version = "1.0.1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Iain Hecker"]
|
12
|
+
s.date = %q{2010-02-25}
|
13
|
+
s.description = %q{Find out which locale the user preferes by reading the languages they specified in their browser}
|
14
|
+
s.email = %q{iain@iain.nl}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"README.rdoc"
|
17
|
+
]
|
18
|
+
s.files = [
|
19
|
+
".gitignore",
|
20
|
+
"README.rdoc",
|
21
|
+
"Rakefile",
|
22
|
+
"VERSION",
|
23
|
+
"http_accept_language.gemspec",
|
24
|
+
"lib/http_accept_language.rb",
|
25
|
+
"rails/init.rb",
|
26
|
+
"test/http_accept_language_test.rb"
|
27
|
+
]
|
28
|
+
s.homepage = %q{http://github.com/iain/http_accept_language}
|
29
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
30
|
+
s.require_paths = ["lib"]
|
31
|
+
s.rubygems_version = %q{1.3.6}
|
32
|
+
s.summary = %q{Parse the HTTP Accept Language Header}
|
33
|
+
s.test_files = [
|
34
|
+
"test/http_accept_language_test.rb"
|
35
|
+
]
|
36
|
+
|
37
|
+
if s.respond_to? :specification_version then
|
38
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
39
|
+
s.specification_version = 3
|
40
|
+
|
41
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
42
|
+
else
|
43
|
+
end
|
44
|
+
else
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
data/lib/http_accept_language.rb
CHANGED
@@ -50,3 +50,10 @@ module HttpAcceptLanguage
|
|
50
50
|
end
|
51
51
|
|
52
52
|
end
|
53
|
+
if defined?(ActionController::Request)
|
54
|
+
ActionController::Request.send :include, HttpAcceptLanguage
|
55
|
+
elsif defined?(ActionController::AbstractRequest)
|
56
|
+
ActionController::AbstractRequest.send :include, HttpAcceptLanguage
|
57
|
+
elsif defined?(ActionController::CgiRequest)
|
58
|
+
ActionController::CgiRequest.send :include, HttpAcceptLanguage
|
59
|
+
end
|
data/rails/init.rb
CHANGED
@@ -1,7 +1 @@
|
|
1
|
-
|
2
|
-
ActionController::Request.send :include, HttpAcceptLanguage
|
3
|
-
elsif defined?(ActionController::AbstractRequest)
|
4
|
-
ActionController::AbstractRequest.send :include, HttpAcceptLanguage
|
5
|
-
else
|
6
|
-
ActionController::CgiRequest.send :include, HttpAcceptLanguage
|
7
|
-
end
|
1
|
+
require "http_accept_language"
|
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: http_accept_language
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 1
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
version: 1.0.1
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- Iain Hecker
|
@@ -9,7 +14,7 @@ autorequire:
|
|
9
14
|
bindir: bin
|
10
15
|
cert_chain: []
|
11
16
|
|
12
|
-
date: 2010-
|
17
|
+
date: 2010-02-25 00:00:00 +01:00
|
13
18
|
default_executable:
|
14
19
|
dependencies: []
|
15
20
|
|
@@ -22,12 +27,13 @@ extensions: []
|
|
22
27
|
extra_rdoc_files:
|
23
28
|
- README.rdoc
|
24
29
|
files:
|
30
|
+
- .gitignore
|
25
31
|
- README.rdoc
|
26
32
|
- Rakefile
|
27
33
|
- VERSION
|
34
|
+
- http_accept_language.gemspec
|
28
35
|
- lib/http_accept_language.rb
|
29
36
|
- rails/init.rb
|
30
|
-
- tasks/http_accept_language_tasks.rake
|
31
37
|
- test/http_accept_language_test.rb
|
32
38
|
has_rdoc: true
|
33
39
|
homepage: http://github.com/iain/http_accept_language
|
@@ -42,18 +48,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
42
48
|
requirements:
|
43
49
|
- - ">="
|
44
50
|
- !ruby/object:Gem::Version
|
51
|
+
segments:
|
52
|
+
- 0
|
45
53
|
version: "0"
|
46
|
-
version:
|
47
54
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
48
55
|
requirements:
|
49
56
|
- - ">="
|
50
57
|
- !ruby/object:Gem::Version
|
58
|
+
segments:
|
59
|
+
- 0
|
51
60
|
version: "0"
|
52
|
-
version:
|
53
61
|
requirements: []
|
54
62
|
|
55
63
|
rubyforge_project:
|
56
|
-
rubygems_version: 1.3.
|
64
|
+
rubygems_version: 1.3.6
|
57
65
|
signing_key:
|
58
66
|
specification_version: 3
|
59
67
|
summary: Parse the HTTP Accept Language Header
|