Skip to content

Commit

Permalink
Moving to MiniTest
Browse files Browse the repository at this point in the history
  • Loading branch information
rking authored and rking@sharpsaw.org committed Nov 8, 2012
1 parent 49da643 commit 50a5a18
Show file tree
Hide file tree
Showing 11 changed files with 295 additions and 282 deletions.
51 changes: 1 addition & 50 deletions .gitignore
@@ -1,50 +1 @@
# rcov generated
coverage
coverage.data

# rdoc generated
rdoc

# yard generated
doc
.yardoc

# bundler
.bundle

# jeweler generated
pkg

# Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
#
# * Create a file at ~/.gitignore
# * Include files you want ignored
# * Run: git config --global core.excludesfile ~/.gitignore
#
# After doing this, these files will be ignored in all your git projects,
# saving you from having to 'pollute' every project you touch with them
#
# Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
#
# For MacOS:
#
#.DS_Store

# For TextMate
#*.tmproj
#tmtags

# For emacs:
#*~
#\#*
#.\#*

# For vim:
#*.swp

# For redcar:
#.redcar

# For rubinius:
#*.rbc
README.html
*.gem
14 changes: 5 additions & 9 deletions Gemfile
@@ -1,16 +1,12 @@
source "http://rubygems.org"
gem 'pry'
gem 'pry-doc' # Not strictly a "dependency", but I think I like it here.
gemspec

# Add dependencies to develop your gem here.
# Include everything needed to run rake, tests, features, etc.
group :development do
gem "rspec"
gem "yard"
gem "rdoc"
gem "bundler"
gem "guard"
gem "guard-rspec"
gem "jeweler", "~> 1.8.3"
gem 'pry-full'
gem 'yard'
gem 'rdoc'
gem 'bundler'
# TODO gem "rcov", ">= 0"
end
115 changes: 87 additions & 28 deletions Gemfile.lock
@@ -1,54 +1,113 @@
PATH
remote: .
specs:
pry-docmore (0.0.1)
pry
pry-doc

GEM
remote: http://rubygems.org/
specs:
awesome_print (1.1.0)
binding_of_caller (0.6.8)
bond (0.4.2)
coderay (1.0.6)
columnize (0.3.6)
debugger (1.1.4)
columnize (>= 0.3.1)
debugger-linecache (~> 1.1.1)
debugger-ruby_core_source (~> 1.1.3)
debugger-linecache (1.1.2)
debugger-ruby_core_source (>= 1.1.1)
debugger-ruby_core_source (1.1.3)
diff-lcs (1.1.3)
ffi (1.0.11)
git (1.2.5)
guard (1.0.2)
ffi (>= 0.5.0)
thor (~> 0.14.6)
guard-rspec (0.7.0)
guard (>= 0.10.0)
jeweler (1.8.3)
bundler (~> 1.0)
git (>= 1.2.5)
rake
rdoc
diffy (2.0.8)
eventmachine (1.0.0)
grit (2.5.0)
diff-lcs (~> 1.1)
mime-types (~> 1.15)
posix-spawn (~> 0.3.6)
highline (1.6.15)
interception (0.2)
jist (1.0.1)
json
json (1.7.0)
method_source (0.7.1)
mime-types (1.19)
nokogiri (1.5.5)
plymouth (0.3.2)
pry-exception_explorer (>= 0.1.7)
posix-spawn (0.3.6)
pry (0.9.9.4)
coderay (~> 1.0.5)
method_source (~> 0.7.1)
slop (>= 2.4.4, < 3)
pry-awesome_print (9.6.5)
awesome_print (~> 1.1.0)
pry-debugger (0.2.0)
debugger (~> 1.1.3)
pry (~> 0.9.9)
pry-developer_tools (0.1.1)
pry (>= 0.9.8.pre, < 0.11)
pry-doc (0.4.1)
pry (>= 0.9.0)
yard (~> 0.7.4)
rake (0.9.2.2)
pry-editline (1.1.1)
pry-exception_explorer (0.1.9)
pry-stack_explorer (>= 0.3.9)
pry-full (0.6)
bond
jist
plymouth
pry-awesome_print
pry-debugger
pry-developer_tools
pry-doc
pry-editline
pry-exception_explorer
pry-git
pry-highlight
pry-pretty-numeric
pry-remote-em
pry-rescue
pry-stack_explorer
pry-syntax-hacks
pry-theme
pry-git (0.2.3)
diffy
grit
pry (>= 0.9.8)
pry-highlight (0.0.1)
coderay
json
nokogiri
pry
pry-pretty-numeric (0.1.1)
pry
pry-remote-em (0.7.3)
eventmachine
highline
pry (~> 0.9)
pry-rescue (0.8)
interception
pry
pry-stack_explorer (0.4.6)
binding_of_caller (~> 0.6.2)
pry-syntax-hacks (0.0.6)
pry (>= 0.9.8)
pry-theme (0.1.3)
json
rdoc (3.12)
json (~> 1.4)
rspec (2.10.0)
rspec-core (~> 2.10.0)
rspec-expectations (~> 2.10.0)
rspec-mocks (~> 2.10.0)
rspec-core (2.10.0)
rspec-expectations (2.10.0)
diff-lcs (~> 1.1.3)
rspec-mocks (2.10.1)
slop (2.4.4)
thor (0.14.6)
yard (0.7.5)

PLATFORMS
ruby

DEPENDENCIES
bundler
guard
guard-rspec
jeweler (~> 1.8.3)
pry
pry-doc
pry-docmore!
pry-full
rdoc
rspec
yard
6 changes: 0 additions & 6 deletions Guardfile

This file was deleted.

37 changes: 4 additions & 33 deletions Rakefile
@@ -1,34 +1,8 @@
# encoding: utf-8

require 'rubygems'
require 'bundler'
begin
Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
$stderr.puts e.message
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
require 'rake'

require 'jeweler'
Jeweler::Tasks.new do |gem|
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
gem.name = "pry-docmore"
gem.homepage = "http://github.com/ryanjosephking/pry-docmore"
gem.license = "MIT"
gem.summary = %Q{Beyond pry-doc: keywords, dollar-vars, etc.}
gem.description = %Q{So things like `? alias` work from within pry. Scope is pretty much open beyond that... send in your ideas.}
gem.email = "pry-docmore@sharpsaw.org"
gem.authors = %w(rking banisterfiend)
# dependencies defined in Gemfile
end
Jeweler::RubygemsDotOrgTasks.new

require 'rspec/core'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |spec|
spec.pattern = FileList['spec/**/*_spec.rb']
task :i => :interact_here
task :interact_here do
sh *%w(bundle exec pry -Ilib -rpry-docmore) + ARGV[1..-1]
end

# TODO
Expand All @@ -37,7 +11,4 @@ end
# spec.rcov = true
#end

task :default => :spec

require 'yard'
YARD::Rake::YardocTask.new
task :default => :tests
11 changes: 10 additions & 1 deletion lib/pry-docmore.rb
@@ -1,8 +1,17 @@
# encoding: utf-8
require 'pry'
class Pry
class Docmore
Pry.commands.command ',?', 'Doc more — see global/keyword info' do
Pry.commands.command '/?' do
Pry.output.puts Pry::Docmore.explain arg_string.strip
prev = Pry.commands.entries.find do |cmd, inst| cmd == 'show-doc' end[1]
p prev
blk = prev.instance_variable_get :@block
p blk
blk.call arg_string
end

Pry.commands.command ',?', 'Doc more — see global/keyword info' do
end
def self.find_docs pattern
input = Dir['pry-docmore.wiki/*.md'].map do |file_name|
Expand Down
19 changes: 19 additions & 0 deletions pry-docmore.gemspec
@@ -0,0 +1,19 @@
# encoding: utf-8

Gem::Specification.new do |gem|
gem.version = '0.0.1'
gem.name = 'pry-docmore'
gem.summary = 'Documents keywords and special vars. Currently uses the `,?` command, but soon plain `?`'
gem.description = `cd pry-docmore.wiki/; echo Ruby*`.
gsub(/Ruby (?:Global|Keyword):?\s*/, '').
gsub(/\(Dollar[^)]+\)/, '').
gsub(/\.md/, '').
gsub(/\s+/, ' ')
puts 'Desc is: ' + gem.description
gem.license = 'CC0'
gem.homepage = 'https://github.com/rking/pry-docmore/wiki'
gem.email = 'pry-docmore@sharpsaw.org'
gem.authors = %w(☈king)
%w(pry pry-doc).each {|e| gem.add_dependency e}
gem.files = Dir['{lib,pry-docmore.wiki}/**/*']
end
2 changes: 1 addition & 1 deletion pry-docmore.wiki
Submodule pry-docmore.wiki updated from f200fc to 63051f

0 comments on commit 50a5a18

Please sign in to comment.