enconverter 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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.insert_before ActionDispatch::ParamsParser, Rack::Enconverter, :convert => proc {|env|
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
1
+ 0.0.2
@@ -1,3 +1,5 @@
1
+ require 'iconv'
2
+
1
3
  module Rack
2
4
  class Enconverter
3
5
  def initialize(app, options={})
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enconverter
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jinzhu