Permalink
Browse files

first commit

  • Loading branch information...
0 parents commit 0adc62290cb9b360ee6044463603d040c28662e2 @banister banister committed Dec 12, 2011
Showing with 180 additions and 0 deletions.
  1. 0 .gemtest
  2. +7 −0 .gitignore
  3. +1 −0 .yardopts
  4. 0 CHANGELOG
  5. +25 −0 LICENSE
  6. +56 −0 README.md
  7. +69 −0 Rakefile
  8. +7 −0 lib/pry-exception_explorer.rb
  9. +3 −0 lib/pry-exception_explorer/version.rb
  10. +12 −0 test/test.rb
0 .gemtest
No changes.
7 .gitignore
@@ -0,0 +1,7 @@
+Makefile
+*.so
+*.o
+*.def
+doc/
+pkg/
+.yardoc/
1 .yardopts
@@ -0,0 +1 @@
+--markup markdown
0 CHANGELOG
No changes.
25 LICENSE
@@ -0,0 +1,25 @@
+License
+-------
+
+(The MIT License)
+
+Copyright (c) 2011 John Mair (banisterfiend)
+
+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.
56 README.md
@@ -0,0 +1,56 @@
+pry-exception_explorer
+===========
+
+(C) John Mair (banisterfiend) 2011
+
+FIXME: _tagline_
+
+FIXME: _description goes here_
+
+* Install the [gem](https://rubygems.org/gems/pry-exception_explorer): `gem install pry-exception_explorer`
+* Read the [documentation](http://rdoc.info/github/banister/pry-exception_explorer/master/file/README.md)
+* See the [source code](http://github.com/banister/pry-exception_explorer)
+
+Example: Example description
+--------
+
+Example preamble
+
+ puts "example code"
+
+Features and limitations
+-------------------------
+
+Feature List Preamble
+
+Contact
+-------
+
+Problems or questions contact me at [github](http://github.com/banister)
+
+
+License
+-------
+
+(The MIT License)
+
+Copyright (c) 2011 John Mair (banisterfiend)
+
+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.
69 Rakefile
@@ -0,0 +1,69 @@
+$:.unshift 'lib'
+
+dlext = Config::CONFIG['DLEXT']
+direc = File.dirname(__FILE__)
+
+PROJECT_NAME = "pry-exception_explorer"
+
+require 'rake/clean'
+require 'rake/gempackagetask'
+require "#{PROJECT_NAME}/version"
+
+CLOBBER.include("**/*~", "**/*#*", "**/*.log")
+CLEAN.include("**/*#*", "**/*#*.*", "**/*_flymake*.*", "**/*_flymake",
+ "**/*.rbc", "**/.#*.*")
+
+def apply_spec_defaults(s)
+ s.name = PROJECT_NAME
+ s.summary = "FIX ME"
+ s.version = PryExceptionExplorer::VERSION
+ s.date = Time.now.strftime '%Y-%m-%d'
+ s.author = "John Mair (banisterfiend)"
+ s.email = 'jrmair@gmail.com'
+ s.description = s.summary
+ s.require_path = 'lib'
+ s.homepage = "http://banisterfiend.wordpress.com"
+ s.files = Dir["lib/**/*.rb", "test/*.rb", "CHANGELOG", "README.md", "Rakefile"]
+end
+
+desc "run pry with plugin enabled"
+task :pry do
+ exec("pry -I#{direc}/lib/ -r #{direc}/lib/#{PROJECT_NAME}")
+end
+
+desc "run tests"
+task :test do
+ sh "bacon -Itest -rubygems -a"
+end
+
+namespace :ruby do
+ spec = Gem::Specification.new do |s|
+ apply_spec_defaults(s)
+ s.platform = Gem::Platform::RUBY
+ end
+
+ Rake::GemPackageTask.new(spec) do |pkg|
+ pkg.need_zip = false
+ pkg.need_tar = false
+ end
+end
+
+desc "shorthand for :gems task"
+task :gem => :gems
+
+desc "build all platform gems at once"
+task :gems => [:clean, :rmgems, "ruby:gem"]
+
+desc "remove all platform gems"
+task :rmgems => ["ruby:clobber_package"]
+
+desc "build and push latest gems"
+task :pushgems => :gems do
+ chdir("#{File.dirname(__FILE__)}/pkg") do
+ Dir["*.gem"].each do |gemfile|
+ sh "gem push #{gemfile}"
+ end
+ end
+end
+
+
7 lib/pry-exception_explorer.rb
@@ -0,0 +1,7 @@
+# pry-exception_explorer.rb
+# (C) John Mair (banisterfiend); MIT license
+
+require "pry-exception_explorer/version"
+require "pry"
+
+
3 lib/pry-exception_explorer/version.rb
@@ -0,0 +1,3 @@
+module PryExceptionExplorer
+ VERSION = "0.1.0"
+end
12 test/test.rb
@@ -0,0 +1,12 @@
+direc = File.dirname(__FILE__)
+
+require 'rubygems'
+require "#{direc}/../lib/pry-exception_explorer"
+require 'bacon'
+
+puts "Testing pry-exception_explorer version #{PryExceptionExplorer::VERSION}..."
+puts "Ruby version: #{RUBY_VERSION}"
+
+describe PryExceptionExplorer do
+end
+

0 comments on commit 0adc622

Please sign in to comment.