Permalink
Browse files

Ran 'bundle gem' to add the basics for creating a gem

  • Loading branch information...
1 parent a5ca604 commit c891a09eb4307c7ae38238f57a1f1213fc0e3d28 @larrywright committed Sep 6, 2012
Showing with 93 additions and 30 deletions.
  1. +16 −3 .gitignore
  2. +4 −13 Gemfile
  3. +22 −0 LICENSE.txt
  4. +20 −14 README.md
  5. +1 −0 Rakefile
  6. +19 −0 Ratpack.gemspec
  7. +3 −0 bin/ratpack
  8. +5 −0 lib/Ratpack.rb
  9. +3 −0 lib/Ratpack/version.rb
View
@@ -1,5 +1,18 @@
-*~*
-config.yml
+*.gem
+*.rbc
+.bundle
+.config
+.yardoc
+Gemfile.lock
+InstalledFiles
+_yardoc
+coverage
+doc/
+lib/bundler/man
+pkg
+rdoc
+spec/reports
+test/tmp
+test/version_tmp
tmp
-log/*.log*
.DS_Store
View
17 Gemfile
@@ -1,13 +1,4 @@
-# A sample Gemfile
-source "http://rubygems.org"
-gem "sinatra"
-gem "mongo_mapper"
-gem "mongomapper_ext"
-gem "bson_ext", :platforms => [:mri_18, :mri_19]
-gem "rake"
-gem "rack"
-gem "haml"
-gem "tux", :platforms => [:mri_18, :mri_19]
-gem "sinatra-reloader"
-gem "sinatra-flash"
-gem 'pry', :group => :development
+source 'https://rubygems.org'
+
+# Specify your gem's dependencies in Ratpack.gemspec
+gemspec
View
@@ -0,0 +1,22 @@
+Copyright (c) 2012 Larry Wright
+
+MIT License
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
@@ -1,23 +1,29 @@
-# Ratpack: Sinatra and Friends
+# Ratpack
-## What This Is
-This is a basic template for a sinatra application. It gives you a basic structure, default gems, and some javascript and css
+TODO: Write a gem description
-This exists because I need a way to try out ideas quickly. I frequently come up with ideas for little apps that I might want to build. I want to be able to try building something quickly, with minimal setup time. That's what Ratpack does. It gives me a basic sinatra setup with some good looking html and css to let me get from crazy idea to prototype in a hurry.
+## Installation
-## The Building Blocks
+Add this line to your application's Gemfile:
-[Mongomapper](http://mongomapper.com/) Mongomapper (and of course MongoDB) are the easiest way to store data. No need to mess with migrations. Even if MongoDB isn't the right database to deploy a producion app on (though it may very well be), it's the fastest way to prototype one. You can always switch to PostgreSQL later on.
+ gem 'Ratpack'
-[Bootstrap](http://twitter.github.com/bootstrap/) Twitter's excellent css framework.
+And then execute:
-[JQuery](http://jquery.org) Best darn Javascript framework around
+ $ bundle
-## What To Do Next
+Or install it yourself as:
-* Git clone this repository
-* rename 'app.rb' to something more meaningful
-* Run `bundle install` to install the gems
-* Change the `MongoMapper.database` to something meaningful in app.rb
-* Build something amazing
+ $ gem install Ratpack
+## Usage
+
+TODO: Write usage instructions here
+
+## Contributing
+
+1. Fork it
+2. Create your feature branch (`git checkout -b my-new-feature`)
+3. Commit your changes (`git commit -am 'Add some feature'`)
+4. Push to the branch (`git push origin my-new-feature`)
+5. Create new Pull Request
View
@@ -0,0 +1 @@
+require "bundler/gem_tasks"
View
@@ -0,0 +1,19 @@
+# -*- encoding: utf-8 -*-
+lib = File.expand_path('../lib', __FILE__)
+$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
+require 'Ratpack/version'
+
+Gem::Specification.new do |gem|
+ gem.name = "Ratpack"
+ gem.version = Ratpack::VERSION
+ gem.authors = ["Larry Wright"]
+ gem.email = ["larrywright@gmail.com"]
+ gem.description = %q{TODO: Write a gem description}
+ gem.summary = %q{TODO: Write a gem summary}
+ gem.homepage = ""
+
+ gem.files = `git ls-files`.split($/)
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
+ gem.require_paths = ["lib"]
+end
View
@@ -0,0 +1,3 @@
+#!/usr/bin/env ruby
+
+require 'ratpack'
View
@@ -0,0 +1,5 @@
+require "Ratpack/version"
+
+module Ratpack
+ # Your code goes here...
+end
View
@@ -0,0 +1,3 @@
+module Ratpack
+ VERSION = "0.0.1"
+end

0 comments on commit c891a09

Please sign in to comment.