divining_rod 0.3.0 → 0.3.1
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.markdown +2 -1
- data/VERSION +1 -1
- data/divining_rod.gemspec +1 -1
- data/lib/divining_rod.rb +1 -1
- data/spec/basic_spec.rb +1 -1
- metadata +1 -1
data/README.markdown
CHANGED
@@ -36,7 +36,8 @@ _app/controllers/mobile\_controller.rb_
|
|
36
36
|
|
37
37
|
def detect_mobile_type
|
38
38
|
# If the profile isn't matched it defaults to request.format
|
39
|
-
@profile = DiviningRod::Profile.new(request)
|
39
|
+
@profile = DiviningRod::Profile.new(request)
|
40
|
+
request.format = @profile.format
|
40
41
|
end
|
41
42
|
|
42
43
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.1
|
data/divining_rod.gemspec
CHANGED
data/lib/divining_rod.rb
CHANGED
data/spec/basic_spec.rb
CHANGED
@@ -66,7 +66,7 @@ describe DiviningRod do
|
|
66
66
|
describe "without a default definition" do
|
67
67
|
|
68
68
|
before :each do
|
69
|
-
@request = mock("rails_request", :user_agent => 'Foo Fone')
|
69
|
+
@request = mock("rails_request", :user_agent => 'Foo Fone', :format => :html)
|
70
70
|
DiviningRod::Matchers.clear_definitions
|
71
71
|
DiviningRod::Matchers.define do |map|
|
72
72
|
map.ua /iPhone/, :webkit, :tags => [:iphone, :youtube, :geolocate]
|