Permalink
Browse files

Creating an install generator

  • Loading branch information...
0 parents commit 3942690a12c5f80ba1daef4cadcef366a42326d1 @svileng svileng committed Jan 21, 2012
Showing with 49 additions and 0 deletions.
  1. +4 −0 .gitignore
  2. +4 −0 Gemfile
  3. +1 −0 Rakefile
  4. +24 −0 announcements.gemspec
  5. +5 −0 lib/announcements.rb
  6. +3 −0 lib/announcements/version.rb
  7. +8 −0 lib/generators/install/install_generator.rb
@@ -0,0 +1,4 @@
+*.gem
+.bundle
+Gemfile.lock
+pkg/*
@@ -0,0 +1,4 @@
+source "http://rubygems.org"
+
+# Specify your gem's dependencies in announcements.gemspec
+gemspec
@@ -0,0 +1 @@
+require "bundler/gem_tasks"
@@ -0,0 +1,24 @@
+# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+require "announcements/version"
+
+Gem::Specification.new do |s|
+ s.name = "announcements"
+ s.version = Announcements::VERSION
+ s.authors = ["Svilen Gospodinov"]
+ s.email = ["svilen@gospodinov.co.uk"]
+ s.homepage = ""
+ s.summary = %q{TODO: Write a gem summary}
+ s.description = %q{TODO: Write a gem description}
+
+ s.rubyforge_project = "announcements"
+
+ s.files = `git ls-files`.split("\n")
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+ s.require_paths = ["lib"]
+
+ # specify any dependencies here; for example:
+ # s.add_development_dependency "rspec"
+ # s.add_runtime_dependency "rest-client"
+end
@@ -0,0 +1,5 @@
+require "announcements/version"
+
+module Announcements
+ # Your code goes here...
+end
@@ -0,0 +1,3 @@
+module Announcements
+ VERSION = "0.0.1"
+end
@@ -0,0 +1,8 @@
+module Announcements
+ class InstallGenerator < Rails:Generators:Base
+ desc <<-DESC
+ Description:
+ Blablabla
+ DESC
+ end
+end

0 comments on commit 3942690

Please sign in to comment.