Skip to content

Commit

Permalink
version 1
Browse files Browse the repository at this point in the history
  • Loading branch information
steveklabnik committed Feb 4, 2011
0 parents commit 7b37002
Show file tree
Hide file tree
Showing 10 changed files with 60 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
@@ -0,0 +1,4 @@
*.gem
.bundle
Gemfile.lock
pkg/*
5 changes: 5 additions & 0 deletions .rvmrc
@@ -0,0 +1,5 @@
if [[ -n "$rvm_environments_path" && -s "$rvm_environments_path/ruby-1.9.2-p0@teachmehowtomakearubygem" ]] ; then
. "$rvm_environments_path/ruby-1.9.2-p0@teachmehowtomakearubygem"
else
rvm --create "ruby-1.9.2-p0@teachmehowtomakearubygem"
fi
5 changes: 5 additions & 0 deletions .rvmrc.02.03.2011-19:39:24
@@ -0,0 +1,5 @@
if [[ -n "$rvm_environments_path" && -s "$rvm_environments_path/ruby-1.9.2-p0@teachmehowtomakearubygem" ]] ; then
. "$rvm_environments_path/ruby-1.9.2-p0@teachmehowtomakearubygem"
else
rvm --create "ruby-1.9.2-p0@teachmehowtomakearubygem"
fi
4 changes: 4 additions & 0 deletions Gemfile
@@ -0,0 +1,4 @@
source "http://rubygems.org"

# Specify your gem's dependencies in teachmehowtomakearubygem.gemspec
gemspec
2 changes: 2 additions & 0 deletions Rakefile
@@ -0,0 +1,2 @@
require 'bundler'
Bundler::GemHelper.install_tasks
12 changes: 12 additions & 0 deletions bin/teachmehowtomakearubygem
@@ -0,0 +1,12 @@
#!/usr/bin/env ruby

begin
require 'teachmehowtomakearubygem'
require 'launchy'
rescue LoadError
require 'rubygems'
require 'teachmehowtomakearubygem'
require 'launchy'
end

Launchy.open(Teachmehowtomakearubygem::PRESENTATION_URL)
1 change: 1 addition & 0 deletions lib/teachmehowtomakearubygem.rb
@@ -0,0 +1 @@
require 'teachmehowtomakearubygem/base'
3 changes: 3 additions & 0 deletions lib/teachmehowtomakearubygem/base.rb
@@ -0,0 +1,3 @@
module Teachmehowtomakearubygem
PRESENTATION_URL = "http://teachmehowtomakearubygem.heroku.com"
end
3 changes: 3 additions & 0 deletions lib/teachmehowtomakearubygem/version.rb
@@ -0,0 +1,3 @@
module Teachmehowtomakearubygem
VERSION = "0.0.1"
end
21 changes: 21 additions & 0 deletions teachmehowtomakearubygem.gemspec
@@ -0,0 +1,21 @@
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "teachmehowtomakearubygem/version"

Gem::Specification.new do |s|
s.name = "teachmehowtomakearubygem"
s.version = Teachmehowtomakearubygem::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Steve Klabnik"]
s.email = ["steve@steveklabnik.com"]
s.homepage = ""
s.summary = %q{This shows you how to make a gem}
s.description = %q{This shows you how to make a gem}

s.add_dependency "launchy"

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"]
end

0 comments on commit 7b37002

Please sign in to comment.