Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Initial commit

  • Loading branch information...
commit 0fef369c3aa258b942e5c0fa7a2bd461830c6224 0 parents
@walle authored
5 .gitignore
@@ -0,0 +1,5 @@
+pkg/
+doc/
+.yardoc/
+Gemfile.lock
+.DS_Store
6 .travis.yml
@@ -0,0 +1,6 @@
+script: "rake"
+rvm:
+ - 1.8.7
+ - 1.9.2
+ - ree
+
13 Gemfile
@@ -0,0 +1,13 @@
+source :rubygems
+gemspec
+
+group :test do
+ gem 'yard'
+ gem 'guard'
+ gem 'guard-rspec'
+ if RUBY_PLATFORM =~ /linux/i
+ gem 'rb-inotify'
+ gem 'libnotify'
+ end
+end
+
6 Guardfile
@@ -0,0 +1,6 @@
+guard 'rspec', :version => 2 do
+ watch(%r{^spec/.+_spec\.rb})
+ watch(%r{^lib/(.+)\.rb}) { |m| "spec/#{m[1]}_spec.rb" }
+ watch('spec/spec_helper.rb') { "spec" }
+end
+
20 LICENSE
@@ -0,0 +1,20 @@
+Copyright (c) 2011 Fredrik Wallgren
+
+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.
+
20 README.textile
@@ -0,0 +1,20 @@
+h1. gas - manage your git author accounts
+
+"!http://travis-ci.org/walle/gas.png!":http://travis-ci.org/walle/gas
+
+h2. Description
+
+h2. Installation
+
+The best way to install gas is with RubyGems:
+
+bc. $ [sudo] gem install gas
+
+You can install from source:
+
+bc. $ cd gas/
+$ bundle
+$ rake install
+
+h2. Running
+
19 Rakefile
@@ -0,0 +1,19 @@
+require 'rake'
+
+require 'bundler'
+Bundler::GemHelper.install_tasks
+
+begin
+ require 'rspec/core/rake_task'
+
+ RSpec::Core::RakeTask.new do |t|
+ t.rspec_opts = %w(-fd -c)
+ end
+rescue LoadError
+ desc message = %{"gem install rspec --pre" to run the specs}
+ task(:spec) { abort message }
+end
+
+task :default => :spec
+task :test => :spec
+
20 bin/gas
@@ -0,0 +1,20 @@
+#!/usr/bin/env ruby
+
+require 'thor'
+
+class GasRunner < Thor
+
+ default_task :show
+
+ desc "show", "Shows your authors"
+ def show
+ puts 'authors'
+ end
+
+ desc 'help', 'Prints help'
+ def help
+ puts 'Help'
+ end
+end
+
+GasRunner.start
30 gas.gemspec
@@ -0,0 +1,30 @@
+lib = File.expand_path("../lib", __FILE__)
+$:.unshift lib unless $:.include? lib
+
+require "gas/version"
+
+Gem::Specification.new do |s|
+ s.name = "gas"
+ s.version = Gas::Version
+ s.authors = "Fredrik Wallgren"
+ s.email = "fredrik.wallgren@gmail.com"
+ s.homepage = "https://github.com/walle/gas"
+ s.summary = ""
+ s.description = "..."
+
+ s.rubyforge_project = s.name
+
+ s.rdoc_options = ["--charset=UTF-8"]
+ s.extra_rdoc_files = %w[README.textile LICENSE]
+
+ s.add_dependency 'thor', '~> 0.14.6'
+
+ s.add_development_dependency 'rspec'
+ s.add_development_dependency 'rr'
+ s.add_development_dependency 'bundler'
+
+ s.files = Dir.glob("{bin,lib,spec,config}/**/*") + ['LICENSE', 'README.textile']
+ s.executables = ['gas']
+ s.require_path = ['lib']
+end
+
7 lib/gas.rb
@@ -0,0 +1,7 @@
+# encoding: utf-8
+
+require 'gas/version'
+
+module Gas
+
+end
8 lib/gas/version.rb
@@ -0,0 +1,8 @@
+# encoding: utf-8
+
+module Gas
+
+ Version = '0.1.0'
+
+end
+
6 spec/spec_helper.rb
@@ -0,0 +1,6 @@
+# encoding: utf-8
+
+RSpec.configure do |config|
+ config.mock_with :rr
+end
+
Please sign in to comment.
Something went wrong with that request. Please try again.