Skip to content
Open

2.x #11

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@ require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'

begin
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
gemspec.name = "mobile_fu"
gemspec.summary = "Automatically detect mobile devices that access your Rails application"
gemspec.description = "Want to automatically detect mobile devices that access your Rails application? Mobile Fu allows you to do just that. People can access your site from a Palm, Blackberry, iPhone, iPad, Nokia, etc. and it will automatically adjust the format of the request from :html to :mobile."
gemspec.email = "brendangl@gmail.com"
gemspec.homepage = "http://github.com/brendanlim/mobile-fu"
gemspec.authors = ["Brendan G. Lim"]
end
rescue LoadError
puts "Jeweler not available. Install it with: gem install jeweler"
end

desc 'Default: run unit tests.'
task :default => :test

Expand All @@ -20,3 +34,4 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('lib/**/*.rb')
end

1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.3.0
8 changes: 1 addition & 7 deletions init.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
require File.dirname(__FILE__) + '/lib/mobile_fu_helper.rb'
require File.dirname(__FILE__) + '/lib/mobilized_styles'
require File.dirname(__FILE__) + '/lib/mobile_fu'

ActionView::Base.send(:include, MobileFuHelper)
ActionView::Base.send(:include, MobilizedStyles)
ActionView::Base.send(:alias_method_chain, :stylesheet_link_tag, :mobilization)
require File.dirname(__FILE__)+'/rails/init.rb'
56 changes: 56 additions & 0 deletions mobile_fu.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Generated by jeweler
# DO NOT EDIT THIS FILE DIRECTLY
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
# -*- encoding: utf-8 -*-

Gem::Specification.new do |s|
s.name = %q{mobile_fu}
s.version = "0.3.0"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Brendan G. Lim"]
s.date = %q{2010-10-08}
s.description = %q{Want to automatically detect mobile devices that access your Rails application? Mobile Fu allows you to do just that. People can access your site from a Palm, Blackberry, iPhone, iPad, Nokia, etc. and it will automatically adjust the format of the request from :html to :mobile.}
s.email = %q{brendangl@gmail.com}
s.extra_rdoc_files = [
"README.rdoc"
]
s.files = [
"CHANGELOG",
"MIT-LICENSE",
"README.rdoc",
"Rakefile",
"VERSION",
"init.rb",
"install.rb",
"lib/mobile_fu.rb",
"lib/mobile_fu_helper.rb",
"lib/mobilized_styles.rb",
"mobile_fu.gemspec",
"rails/init.rb",
"spec/mobilized_styles_spec.rb",
"spec/spec.opts",
"spec/spec_helper.rb",
"uninstall.rb"
]
s.homepage = %q{http://github.com/brendanlim/mobile-fu}
s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"]
s.rubygems_version = %q{1.3.7}
s.summary = %q{Automatically detect mobile devices that access your Rails application}
s.test_files = [
"spec/mobilized_styles_spec.rb",
"spec/spec_helper.rb"
]

if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 3

if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
else
end
else
end
end

7 changes: 7 additions & 0 deletions rails/init.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
require File.dirname(__FILE__) + '/../lib/mobile_fu_helper.rb'
require File.dirname(__FILE__) + '/../lib/mobilized_styles'
require File.dirname(__FILE__) + '/../lib/mobile_fu'

ActionView::Base.send(:include, MobileFuHelper)
ActionView::Base.send(:include, MobilizedStyles)
ActionView::Base.send(:alias_method_chain, :stylesheet_link_tag, :mobilization)