mobile_rails 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,13 +11,13 @@ module MobileRails
11
11
 
12
12
  def set_mobile_request
13
13
  if mobile?
14
- session[:mobile] = true if session[:mobile].nil?
14
+ session[:mobile_session] = 1 if session[:mobile_session].nil?
15
15
  request.format = :mobile if mobile_session?
16
16
  end
17
17
  end
18
18
 
19
19
  def mobile_session?
20
- session[:mobile] == true
20
+ session[:mobile_session] == 1
21
21
  end
22
22
  end
23
23
  module ClassMethods
@@ -1,3 +1,3 @@
1
1
  module MobileRails
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mobile_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-12-13 00:00:00.000000000Z
12
+ date: 2011-12-15 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70191330651940 !ruby/object:Gem::Requirement
16
+ requirement: &70160946059820 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70191330651940
24
+ version_requirements: *70160946059820
25
25
  description: Gem for easy creation of mobile enabled rails app.
26
26
  email:
27
27
  - zyinghai@gmail.com