Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

active_device

  • Loading branch information...
commit dec4a357106d9a0c583a39aecddf46fd5f246e79 1 parent e93d19c
@shenoudab authored
Showing with 48 additions and 0 deletions.
  1. +48 −0 Rakefile~
  2. BIN  pkg/active_device-1.0.0.gem
View
48 Rakefile~
@@ -0,0 +1,48 @@
+require 'rubygems'
+require 'rake'
+require 'rake/testtask'
+require 'rake/rdoctask'
+
+desc 'Default: run unit tests.'
+task :default => :test
+
+desc 'Test the active_device plugin.'
+Rake::TestTask.new(:test) do |t|
+ t.libs << 'lib'
+ t.libs << 'test'
+ t.pattern = 'test/**/*_test.rb'
+ t.verbose = true
+end
+
+desc 'Generate documentation for the active_device plugin.'
+Rake::RDocTask.new(:rdoc) do |rdoc|
+ rdoc.rdoc_dir = 'rdoc'
+ rdoc.title = 'ActiveDevice'
+ rdoc.options << '--line-numbers' << '--inline-source'
+ rdoc.rdoc_files.include('README')
+ rdoc.rdoc_files.include('lib/**/*.rb')
+end
+
+PKG_FILES = FileList[ '[a-zA-Z]*', 'generators/**/*', 'lib/**/*', 'rails/**/*', 'tasks/**/*', 'test/**/*' ]
+
+spec = Gem::Specification.new do |s|
+ s.name = "active_device"
+ s.version = "1.0.0"
+ s.authors = ["Shenouda Bertel"]
+ s.description = "Device UserAgent Detector"
+ s.email = "sbertel@mobithought.com"
+ s.homepage = "http://mobithought.com/"
+ s.files = PKG_FILES.to_a
+ s.require_paths = ["lib"]
+ s.rubyforge_project = "active_device"
+ s.rubygems_version = "1.3.5"
+ s.summary = "Mobile Device Detector"
+ s.platform = Gem::Platform::RUBY
+ s.has_rdoc = false
+ s.extra_rdoc_files = ["README"]
+end
+
+desc 'Turn this plugin into a gem.'
+Rake::GemPackageTask.new(spec) do |pkg|
+ pkg.gem_spec = spec
+end
View
BIN  pkg/active_device-1.0.0.gem
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.