mobile-fu 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eec8e6c6d23829759304cd7265e7ec8f15ba159e
4
- data.tar.gz: 766d897636d26203c5fa56f16c3ae1aa933bdb37
3
+ metadata.gz: 2baf64bbd0b25b8b035e267fbf395ab0febf61aa
4
+ data.tar.gz: 6d69f8abef1d41d6c0137200b44b96908ee55659
5
5
  SHA512:
6
- metadata.gz: f113d5ca4f26d7e11e79185485202144cf4154edaf220df8b88da24b9e98ea2c4bdc8b6e0ceedf273707b17682fe84f2d4225a91f3f8067298c360d8bf78e25e
7
- data.tar.gz: 6a634c597c1b1b3054bff34d1b3a6bbb832e3795044dddf50343c5ee7f08b87c68fb4dec4a0b7b30286461b48dbeb698c0b5175afa262616cb10016f7baa8167
6
+ metadata.gz: 1f4e53cbf1c3e422d31aa204519156206bae8105cf7e4f5e5ffb9ce4c6912176a99aa3dc00f99c6cc7237ec53b4c019b600edb45d57a393a072ff11e52c75e3f
7
+ data.tar.gz: 7e8907ac7d37ffbc368bf40b959a2c48e8607c94572059be14bf5a95587e7bcf8a258a85c942d7290fd84b829c0602c65dff5afe66329a7498569c7648a49290
@@ -128,10 +128,10 @@ module ActionController
128
128
  # 'Tablet' view.
129
129
 
130
130
  def set_mobile_format
131
- if request.format.html? && !mobile_action? && is_mobile_device? && !request.xhr?
131
+ if request.format.html? && mobile_action? && is_mobile_device? && !request.xhr?
132
132
  request.format = :mobile unless session[:mobile_view] == false
133
133
  session[:mobile_view] = true if session[:mobile_view].nil?
134
- elsif request.format.html? && !mobile_action? && is_tablet_device? && !request.xhr?
134
+ elsif request.format.html? && mobile_action? && is_tablet_device? && !request.xhr?
135
135
  request.format = :tablet unless session[:tablet_view] == false
136
136
  session[:tablet_view] = true if session[:tablet_view].nil?
137
137
  end
@@ -179,7 +179,7 @@ module ActionController
179
179
  # See #has_mobile_fu_for
180
180
  def mobile_action?
181
181
  if self.class.instance_variable_get("@mobile_include_actions").nil? #Now we know we dont have any includes, maybe excludes?
182
- return mobile_exempt?
182
+ return !mobile_exempt?
183
183
  else
184
184
  self.class.instance_variable_get("@mobile_include_actions").try(:include?, params[:action].to_sym)
185
185
  end
@@ -1,3 +1,3 @@
1
1
  module MobileFu
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mobile-fu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brendan Lim
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-04 00:00:00.000000000 Z
12
+ date: 2013-06-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails