Skip to content

Instantly share code, notes, and snippets.

@atmos
Created September 9, 2010 05:51
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atmos/571450 to your computer and use it in GitHub Desktop.
Save atmos/571450 to your computer and use it in GitHub Desktop.
➜ ~ bundle gem hassox
create hassox/Gemfile
create hassox/Rakefile
create hassox/.gitignore
create hassox/hassox.gemspec
create hassox/lib/hassox.rb
create hassox/lib/hassox/version.rb
Initializating git repo in /Users/atmos/hassox
➜ ~ cd hassox
➜ hassox git:(master) ✗ git add .
➜ hassox git:(master) ✗ git commit -m "initial import"
[master (root-commit) 0d07e23] initial import
6 files changed, 37 insertions(+), 0 deletions(-)
create mode 100644 .gitignore
create mode 100644 Gemfile
create mode 100644 Rakefile
create mode 100644 hassox.gemspec
create mode 100644 lib/hassox.rb
create mode 100644 lib/hassox/version.rb
➜ hassox git:(master) git diff
diff --git a/hassox.gemspec b/hassox.gemspec
index 8d06a18..194796d 100644
--- a/hassox.gemspec
+++ b/hassox.gemspec
@@ -5,16 +5,16 @@ Gem::Specification.new do |s|
s.name = "hassox"
s.version = Hassox::VERSION
s.platform = Gem::Platform::RUBY
- s.authors = []
- s.email = []
+ s.authors = [ 'Corey Donohoe' ]
+ s.email = [ 'atmos@atmos.org' ]
s.homepage = "http://rubygems.org/gems/hassox"
- s.summary = "TODO: Write a gem summary"
- s.description = "TODO: Write a gem description"
+ s.summary = "An example gem for Hassox"
+ s.description = "http://gist.github.com/571450"
s.required_rubygems_version = ">= 1.3.6"
s.rubyforge_project = "hassox"
- s.add_development_dependency "bundler", ">= 1.0.0"
+ s.add_dependency "warden", "~> 0.10.0"
s.files = `git ls-files`.split("\n")
s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
➜ hassox git:(master) ✗ git add hassox.gemspec
➜ hassox git:(master) ✗ git commit -m "bare essentials"
[master 8966a03] bare essentials
1 files changed, 5 insertions(+), 5 deletions(-)
➜ hassox git:(master) ✗ rake build
(in /Users/atmos/hassox)
hassox 0.0.1 built to pkg/hassox-0.0.1.gem
➜ hassox git:(master) ✗ gem push pkg/hassox-0.0.1.gem
➜ hassox git:(master) ✗ git diff
diff --git a/lib/hassox/version.rb b/lib/hassox/version.rb
index ead36fd..05b5ded 100644
--- a/lib/hassox/version.rb
+++ b/lib/hassox/version.rb
@@ -1,3 +1,3 @@
module Hassox
- VERSION = "0.0.1"
+ VERSION = "0.0.2"
end
➜ hassox git:(master) ✗ git add lib/hassox/version.rb
➜ hassox git:(master) ✗ git commit -m "bump the version"
[master 5293231] bump the version
1 files changed, 1 insertions(+), 1 deletions(-)
➜ hassox git:(master) ✗ rake build
(in /Users/atmos/hassox)
hassox 0.0.2 built to pkg/hassox-0.0.2.gem
➜ hassox git:(master) ✗ gem push pkg/hassox-0.0.2.gem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment