aslon_mobile2 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,6 @@
|
|
1
|
-
|
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
|
-
|
14
|
+
request.user_agent.to_s.downcase =~ /#{MOBILE_USER_AGENTS}/
|
13
15
|
end
|
14
16
|
end
|
15
17
|
|
data/lib/aslon_mobile2.rb
CHANGED
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.
|
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/
|
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
|