mobile_fu-rails3 1.0.3 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
@@ -56,9 +56,9 @@ module MobileFu
|
|
56
56
|
# Determines the request format based on whether the device is mobile or if
|
57
57
|
# the user has opted to use either the 'Standard' view or 'Mobile' view.
|
58
58
|
def set_mobile_format
|
59
|
-
|
60
|
-
|
61
|
-
request.format =
|
59
|
+
session[:mobile_view] ||= is_mobile_device? ? true : false
|
60
|
+
if session[:mobile_view] and request.format.html? and not request.xhr?
|
61
|
+
request.format = :mobile
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
Binary file
|
data/mobile_fu-rails3.gemspec
CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "mobile_fu-rails3"
|
6
|
-
s.version = "1.0.
|
6
|
+
s.version = "1.0.5"
|
7
7
|
s.authors = ["Brendan Lim", "Jori Hardman"]
|
8
8
|
s.email = ["brendangl@gmail.com", "jorihardman@gmail.com"]
|
9
9
|
s.homepage = "https://github.com/jyro215/mobile-fu"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mobile_fu-rails3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,12 +10,12 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2011-
|
13
|
+
date: 2011-08-05 00:00:00.000000000 -07:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rails
|
18
|
-
requirement: &
|
18
|
+
requirement: &2165422520 !ruby/object:Gem::Requirement
|
19
19
|
none: false
|
20
20
|
requirements:
|
21
21
|
- - ! '>='
|
@@ -23,7 +23,7 @@ dependencies:
|
|
23
23
|
version: 3.0.0
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
|
-
version_requirements: *
|
26
|
+
version_requirements: *2165422520
|
27
27
|
description: This is a rewrite of the mobile-fu gem using Rails 3 railties.
|
28
28
|
email:
|
29
29
|
- brendangl@gmail.com
|
@@ -42,7 +42,7 @@ files:
|
|
42
42
|
- lib/mobile_fu/helper_methods.rb
|
43
43
|
- lib/mobile_fu/mobilized_styles.rb
|
44
44
|
- lib/mobile_fu/railtie.rb
|
45
|
-
- mobile_fu-rails3-1.0.
|
45
|
+
- mobile_fu-rails3-1.0.4.gem
|
46
46
|
- mobile_fu-rails3.gemspec
|
47
47
|
has_rdoc: true
|
48
48
|
homepage: https://github.com/jyro215/mobile-fu
|
data/mobile_fu-rails3-1.0.2.gem
DELETED
Binary file
|