Permalink
Browse files

switch to parka

  • Loading branch information...
1 parent 0d14ea0 commit 0b271b9afa6d6c9fe687f13b7c681787b2c1a350 @ddollar committed Sep 2, 2010
Showing with 79 additions and 154 deletions.
  1. +1 −1 .gitignore
  2. +7 −0 Gemfile
  3. +30 −0 Gemfile.lock
  4. +31 −0 README.md
  5. +0 −27 README.rdoc
  6. +0 −57 Rakefile
  7. +8 −52 github-backup.gemspec
  8. +2 −0 lib/github-backup.rb
  9. +0 −7 test/github-backup_test.rb
  10. +0 −10 test/test_helper.rb
View
@@ -1,4 +1,4 @@
-*.sw?
+.bundle
.DS_Store
coverage
rdoc
View
@@ -0,0 +1,7 @@
+source "http://rubygems.org"
+
+group :development do
+ gem "parka"
+end
+
+gem "octopi", "~> 0.2.8"
View
@@ -0,0 +1,30 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ api_cache (0.2.0)
+ crack (0.1.8)
+ httparty (0.6.1)
+ crack (= 0.1.8)
+ mechanize (1.0.0)
+ nokogiri (>= 1.2.1)
+ mime-types (1.16)
+ nokogiri (1.4.3.1)
+ octopi (0.2.8)
+ api_cache
+ httparty (>= 0.4.5)
+ mechanize (>= 0.9.3)
+ nokogiri (>= 1.3.1)
+ parka (0.4.3)
+ crack
+ rest-client
+ thor
+ rest-client (1.6.1)
+ mime-types (>= 1.16)
+ thor (0.14.0)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ octopi (~> 0.2.8)
+ parka
View
@@ -0,0 +1,31 @@
+# github-backup
+
+Back up your Github repositories locally.
+
+To install it as a Gem, just run:
+
+ $ sudo gem install ddollar-github-backup
+
+To use it:
+
+ $ github-backup ddollar /path/to/my/backup/root
+
+## Authenticated Usage
+
+### Seamless authentication using .gitconfig defaults
+
+You will need a `~/.gitconfig` file in place with a `[github]` section
+
+See: http://github.com/guides/tell-git-your-user-name-and-email-address
+
+## License
+
+MIT License
+
+## Author
+
+David Dollar
+
+## Copyright
+
+Copyright (c) 2010 David Dollar.
View
@@ -1,27 +0,0 @@
-= github-backup
-
-Back up your Github repositories locally.
-
-To install it as a Gem, just run:
-
- $ sudo gem install ddollar-github-backup
-
-To use it:
-
- $ github-backup ddollar /path/to/my/backup/root
-
-== Authenticated Usage
-
-=== Seamless authentication using .gitconfig defaults
-
-You will need a <tt>~/.gitconfig</tt> file in place with a <tt>[github]</tt> section
-
-See: http://github.com/guides/tell-git-your-user-name-and-email-address
-
-== Author
-
-* David Dollar - http://daviddollar.org
-
-== Copyright
-
-Copyright (c) 2009 David Dollar. See LICENSE for details.
View
@@ -1,57 +0,0 @@
-require 'rubygems'
-require 'rake'
-
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |gem|
- gem.name = "github-backup"
- gem.summary = %Q{Backup your Github repositories}
- gem.email = "<ddollar@gmail.com>"
- gem.homepage = "http://github.com/ddollar/github-backup"
- gem.authors = ["David Dollar"]
- gem.add_runtime_dependency 'fcoury-octopi', '= 0.1.0'
- gem.default_executable = 'github-backup'
- end
-
-rescue LoadError
- puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
-end
-
-require 'rake/testtask'
-Rake::TestTask.new(:test) do |test|
- test.libs << 'lib' << 'test'
- test.pattern = 'test/**/*_test.rb'
- test.verbose = true
-end
-
-begin
- require 'rcov/rcovtask'
- Rcov::RcovTask.new do |test|
- test.libs << 'test'
- test.pattern = 'test/**/*_test.rb'
- test.verbose = true
- end
-rescue LoadError
- task :rcov do
- abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
- end
-end
-
-
-task :default => :test
-
-require 'rake/rdoctask'
-Rake::RDocTask.new do |rdoc|
- if File.exist?('VERSION.yml')
- config = YAML.load(File.read('VERSION.yml'))
- version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
- else
- version = ""
- end
-
- rdoc.rdoc_dir = 'rdoc'
- rdoc.title = "github-backup #{version}"
- rdoc.rdoc_files.include('README*')
- rdoc.rdoc_files.include('lib/**/*.rb')
-end
-
View
@@ -1,55 +1,11 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE
-# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
-# -*- encoding: utf-8 -*-
+require "rubygems"
+require "parka/specification"
-Gem::Specification.new do |s|
- s.name = %q{github-backup}
- s.version = "0.3.0"
+Parka::Specification.new do |gem|
+ gem.name = "github-backup"
+ gem.version = Github::Backup::VERSION
+ gem.summary = "Backup your Github repositories"
+ gem.homepage = "http://github.com/ddollar/github-backup"
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["David Dollar"]
- s.date = %q{2009-09-03}
- s.default_executable = %q{github-backup}
- s.email = %q{<ddollar@gmail.com>}
- s.executables = ["github-backup"]
- s.extra_rdoc_files = [
- "LICENSE",
- "README.rdoc"
- ]
- s.files = [
- ".document",
- ".gitignore",
- "LICENSE",
- "README.rdoc",
- "Rakefile",
- "VERSION",
- "bin/github-backup",
- "github-backup.gemspec",
- "lib/github-backup.rb",
- "test/github-backup_test.rb",
- "test/test_helper.rb"
- ]
- s.homepage = %q{http://github.com/ddollar/github-backup}
- s.rdoc_options = ["--charset=UTF-8"]
- s.require_paths = ["lib"]
- s.rubygems_version = %q{1.3.5}
- s.summary = %q{Backup your Github repositories}
- s.test_files = [
- "test/github-backup_test.rb",
- "test/test_helper.rb"
- ]
-
- if s.respond_to? :specification_version then
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
- s.specification_version = 3
-
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
- s.add_runtime_dependency(%q<fcoury-octopi>, ["= 0.1.0"])
- else
- s.add_dependency(%q<fcoury-octopi>, ["= 0.1.0"])
- end
- else
- s.add_dependency(%q<fcoury-octopi>, ["= 0.1.0"])
- end
+ gem.executables = "github-backup"
end
View
@@ -5,6 +5,8 @@ module Github; end
class Github::Backup
+ VERSION = "0.4.0"
+
include Octopi
attr_reader :backup_root, :debug, :username
@@ -1,7 +0,0 @@
-require 'test_helper'
-
-class GithubBackupTest < Test::Unit::TestCase
- should "probably rename this file and start testing for real" do
- flunk "hey buddy, you should probably rename this file and start testing for real"
- end
-end
View
@@ -1,10 +0,0 @@
-require 'rubygems'
-require 'test/unit'
-require 'shoulda'
-
-$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
-$LOAD_PATH.unshift(File.dirname(__FILE__))
-require 'github-backup'
-
-class Test::Unit::TestCase
-end

0 comments on commit 0b271b9

Please sign in to comment.