Project

nomadic

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Mobile browser detection library for Ruby
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

>= 0
 Project Readme

Nomadic¶ ↑

Mobile browser detection library for Ruby

Adapted from Wikipedia: en.wikipedia.org/wiki/List_of_user_agents_for_mobile_phones and zytrax.com: www.zytrax.com/tech/web/mobile_ids.html

Usage¶ ↑

if Nomadic.mobile?(request.env)

# action for mobile agents

else

# action for non-mobile agents

end

Note on Patches/Pull Requests¶ ↑

  • Fork the project.

  • Make your feature addition or bug fix.

  • Add tests for it. This is important so I don’t break it in a future version unintentionally.

  • Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)

  • Send me a pull request. Bonus points for topic branches.

Copyright © 2009 Steve Hoeksema.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See LICENSE for more details.

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <www.gnu.org/licenses/>.