aslon_mobile2 0.1.2 → 0.1.3

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.
@@ -1,4 +1,6 @@
1
- module ApplicationHelper
1
+
2
+
3
+ module AslonMobile2Helper
2
4
  # List of mobile agents, from mobile_fu (https://github.com/brendanlim/mobile-fu)
3
5
  #
4
6
  MOBILE_USER_AGENTS = 'palm|blackberry|nokia|phone|midp|mobi|symbian|chtml|ericsson|minimo|' +
@@ -9,7 +11,7 @@ module ApplicationHelper
9
11
  'mobile|maemo|fennec'
10
12
 
11
13
  def is_mobile_request?
12
- request.user_agent.to_s.downcase =~ /#{MOBILE_USER_AGENTS}/
14
+ request.user_agent.to_s.downcase =~ /#{MOBILE_USER_AGENTS}/
13
15
  end
14
16
  end
15
17
 
@@ -3,6 +3,7 @@ require "aslon_mobile2/version"
3
3
  module AslonMobile2
4
4
  # Your code goes here...
5
5
  class Engine < Rails::Engine
6
+ #isolate_namespace AslonMobile2
6
7
  #config.mount_at = '/'
7
8
  end
8
9
  end
@@ -1,3 +1,3 @@
1
1
  module AslonMobile2
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aslon_mobile2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -25,7 +25,7 @@ files:
25
25
  - README.md
26
26
  - Rakefile
27
27
  - app/assets/javascripts/jquery.mobile.simpledialog2.min.js
28
- - app/helpers/application_helper.rb
28
+ - app/helpers/aslon_mobile2_helper.rb
29
29
  - app/views/layouts/_alerte_mobile.html.erb
30
30
  - aslon_mobile2.gemspec
31
31
  - lib/aslon_mobile2.rb