aaalex-detect_mobiles 0.0.3 → 0.0.4
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.
- data/HISTORY +14 -0
- data/README +6 -3
- metadata +4 -2
data/HISTORY
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
*** version 0.0.4 2008-07-08
|
|
2
|
+
added Mime-Types addition to README
|
|
3
|
+
added HISTORY file
|
|
4
|
+
|
|
5
|
+
*** version 0.0.3 2008-07-07
|
|
6
|
+
nicer README file
|
|
7
|
+
moved code into module Aaalex
|
|
8
|
+
|
|
9
|
+
*** version 0.0.2 2008-07-06
|
|
10
|
+
made automatic Gem generation work on GitHub
|
|
11
|
+
|
|
12
|
+
*** version 0.0.1 2008-07-06
|
|
13
|
+
extracted the code from RoR application into seperate Gem
|
|
14
|
+
put on GitHub
|
data/README
CHANGED
|
@@ -11,10 +11,13 @@ responds_to block and in the views.
|
|
|
11
11
|
|
|
12
12
|
Usage Example
|
|
13
13
|
=============
|
|
14
|
-
install the gem
|
|
15
|
-
add the
|
|
14
|
+
* install the gem
|
|
15
|
+
* add the MIME types to config/initializers/mime_types.rb
|
|
16
|
+
Mime::Type.register_alias "text/html", :iphone
|
|
17
|
+
Mime::Type.register_alias "text/html", :mobile
|
|
18
|
+
* add the gem to your config/environment.rb
|
|
16
19
|
-> config.gem "detect_mobiles"
|
|
17
|
-
add the before_filter to your controller
|
|
20
|
+
* add the before_filter to your controller
|
|
18
21
|
|
|
19
22
|
class ApplicationController < ActionController::Base
|
|
20
23
|
before_filter :detect_mobiles
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aaalex-detect_mobiles
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alex Peuchert
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2008-07-
|
|
12
|
+
date: 2008-07-08 00:00:00 -07:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies: []
|
|
15
15
|
|
|
@@ -22,10 +22,12 @@ extensions: []
|
|
|
22
22
|
extra_rdoc_files:
|
|
23
23
|
- README
|
|
24
24
|
- MIT-LICENSE
|
|
25
|
+
- HISTORY
|
|
25
26
|
files:
|
|
26
27
|
- lib/detect_mobiles.rb
|
|
27
28
|
- README
|
|
28
29
|
- MIT-LICENSE
|
|
30
|
+
- HISTORY
|
|
29
31
|
has_rdoc: true
|
|
30
32
|
homepage: http://github.com/aaalex/detect_mobile
|
|
31
33
|
post_install_message:
|