wurfl-lite-middleware 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  class WURFL
2
2
  class Middleware
3
- VERSION = "1.0.3"
3
+ VERSION = "1.0.4"
4
4
  end
5
5
  end
@@ -5,7 +5,7 @@ class WURFL
5
5
  class Middleware
6
6
  def initialize( app )
7
7
  @app = app
8
- @wurfl = ENV.has_key?( 'WURFL_XML' ) ? WURFL.new( ENV[ 'WURFL_XML' ] ) : WURFL.new
8
+ @wurfl = ENV.has_key?( 'WURFL_XML' ) ? WURFL.new( ENV[ 'WURFL_XML' ].split(',') ) : WURFL.new
9
9
  end
10
10
  def call( env )
11
11
  env['WURFL'] = @wurfl[ env[ 'HTTP_USER_AGENT' ] ]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 3
9
- version: 1.0.3
8
+ - 4
9
+ version: 1.0.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Clive Crous
@@ -107,7 +107,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
- hash: 48551283
110
+ hash: -920031103
111
111
  segments:
112
112
  - 0
113
113
  version: "0"
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  requirements:
117
117
  - - ">="
118
118
  - !ruby/object:Gem::Version
119
- hash: 48551283
119
+ hash: -920031103
120
120
  segments:
121
121
  - 0
122
122
  version: "0"