Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

refactor to the 'bundler' method of gem structure; away from echoe

  • Loading branch information...
commit eb339894aea8aa5cac3b75c3810821f7422c779b 1 parent c30d292
@drnic drnic authored
View
4 .gitignore
@@ -1,3 +1,5 @@
.config
InstalledFiles
-pkg
+pkg
+*.gem
+.bundle
View
3  Gemfile
@@ -0,0 +1,3 @@
+source "http://rubygems.org"
+
+gemspec
View
29 Gemfile.lock
@@ -0,0 +1,29 @@
+PATH
+ remote: .
+ specs:
+ github (0.4.5)
+ highline (~> 1.5.1)
+ json (~> 1.4.6)
+ text-format (= 1.0.0)
+
+GEM
+ remote: http://rubygems.org/
+ specs:
+ highline (1.5.2)
+ json (1.4.6)
+ rake (0.8.7)
+ rspec (1.3.1)
+ text-format (1.0.0)
+ text-hyphen (~> 1.0.0)
+ text-hyphen (1.0.0)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ github!
+ highline (~> 1.5.1)
+ json (~> 1.4.6)
+ rake
+ rspec (= 1.3.1)
+ text-format (= 1.0.0)
View
26 Rakefile
@@ -1,27 +1,5 @@
-require 'rubygems'
-require 'rake'
-
-begin
- require 'echoe'
-
- Echoe.new('github', '0.4.5') do |p|
- p.rubyforge_name = 'github'
- p.summary = "The official `github` command line helper for simplifying your GitHub experience."
- p.description = "The official `github` command line helper for simplifying your GitHub experience."
- p.url = "http://github.com/"
- p.author = ['Chris Wanstrath', 'Kevin Ballard', 'Scott Chacon', 'Dr Nic Williams']
- p.email = "drnicwilliams@gmail.com"
- p.dependencies = [
- "text-format >=1.0.0",
- "highline ~>1.5.1",
- "json >=1.2.0"
- ]
- end
-
-rescue LoadError => boom
- puts "You are missing a dependency required for meta-operations on this gem."
- puts "#{boom.to_s.capitalize}."
-end
+require "bundler/setup"
+Bundler::GemHelper.install_tasks
# add spec tasks, if you have rspec installed
begin
View
28 github-gem.gemspec
@@ -0,0 +1,28 @@
+# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+require "github/version"
+
+Gem::Specification.new do |s|
+ s.name = "github"
+ s.version = GitHub::VERSION
+ s.platform = Gem::Platform::RUBY
+ s.authors = ['Chris Wanstrath', 'Kevin Ballard', 'Scott Chacon', 'Dr Nic Williams']
+ s.email = ["drnicwilliams@gmail.com"]
+ s.homepage = "http://github/defunkt/github-gem"
+ s.summary = "The official `github` command line helper for simplifying your GitHub experience."
+ s.description = "The official `github` command line helper for simplifying your GitHub experience."
+
+ s.rubyforge_project = "github"
+
+ 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"]
+
+ s.add_dependency "text-format", "1.0.0"
+ s.add_dependency "highline", "~> 1.5.1"
+ s.add_dependency "json", "~> 1.4.6"
+
+ s.add_development_dependency "rake"
+ s.add_development_dependency "rspec", "1.3.1"
+end
View
3  lib/github/version.rb
@@ -0,0 +1,3 @@
+module GitHub
+ VERSION = "0.4.5"
+end
Please sign in to comment.
Something went wrong with that request. Please try again.