enconverter 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -1
- data/VERSION +1 -1
- data/lib/enconverter/enconverter.rb +2 -0
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
|
12
12
|
2, Add it as middleware to your application.rb
|
13
13
|
|
14
|
-
config.middleware.
|
14
|
+
config.middleware.use Rack::Enconverter, :convert => proc {|env|
|
15
15
|
mobile_user_agents = 'palm|nokia|phone|midp|mobi|symbian|chtml|ericsson|minimo'
|
16
16
|
agent = env["HTTP_USER_AGENT"].to_s
|
17
17
|
agent.downcase =~ Regexp.new(mobile_user_agents)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
metadata
CHANGED