Permalink
Browse files

first commit

  • Loading branch information...
0 parents commit 5a60bd5da489585bc5a182048c1373713f3e0cbc @banister committed Mar 12, 2011
Showing 3,043 changed files with 3,044 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
No changes.
@@ -0,0 +1,7 @@
+Makefile
+*.so
+*.o
+*.def
+doc/
+pkg/
+.yardoc/
@@ -0,0 +1 @@
+--markup markdown
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.
@@ -0,0 +1,56 @@
+pry-doc
+===========
+
+(C) John Mair (banisterfiend) 2010
+
+FIXME: _tagline_
+
+FIXME: _description goes here_
+
+* Install the [gem](https://rubygems.org/gems/pry-doc): `gem install pry-doc`
+* Read the [documentation](http://rdoc.info/github/banister/pry-doc/master/file/README.md)
+* See the [source code](http://github.com/banister/pry-doc)
+
+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.
@@ -0,0 +1,68 @@
+dlext = Config::CONFIG['DLEXT']
+direc = File.dirname(__FILE__)
+
+begin
+ require 'bones'
+rescue LoadError
+ abort '### Please install the "bones" gem ###'
+end
+
+PROJECT_NAME = "pry-doc"
+
+require 'rake/clean'
+require 'rake/gempackagetask'
+require "#{direc}/lib/#{PROJECT_NAME}/version"
+
+CLOBBER.include("**/*.#{dlext}", "**/*~", "**/*#*", "**/*.log", "**/*.o")
+CLEAN.include("ext/**/*.#{dlext}", "ext/**/*.log", "ext/**/*.o",
+ "ext/**/*~", "ext/**/*#*", "ext/**/*.obj", "**/*#*", "**/*#*.*",
+ "ext/**/*.def", "ext/**/*.pdb", "**/*_flymake*.*", "**/*_flymake")
+
+def apply_spec_defaults(s)
+ s.name = PROJECT_NAME
+ s.summary = "FIX ME"
+ s.version = PryDoc::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.has_rdoc = 'yard'
+ s.files = Dir["ext/**/extconf.rb", "ext/**/*.h", "ext/**/*.c", "lib/**/*.rb",
+ "test/*.rb", "HISTORY", "README.md", "Rakefile"]
+end
+
+desc "run tests"
+task :test do
+ sh "bacon -k #{direc}/test/test.rb"
+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 "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("#{direc}/pkg") do
+ Dir["*.gem"].each do |gemfile|
+ sh "gem push #{gemfile}"
+ end
+ end
+end
+
+
@@ -0,0 +1,77 @@
+# pry-doc.rb
+# (C) John Mair (banisterfiend); MIT license
+
+direc = File.dirname(__FILE__)
+
+require "#{direc}/pry-doc/version"
+require "yard"
+
+if RUBY_VERSION =~ /1.9/
+ YARD::Registry.load_yardoc("#{File.dirname(__FILE__)}/pry-doc/core_docs_19")
+else
+ YARD::Registry.load_yardoc("#{File.dirname(__FILE__)}/pry-doc/core_docs_18")
+end
+
+class Pry
+ module MethodInfo
+
+ @doc_cache = {}
+ class << self; attr_reader :doc_cache; end
+
+ def self.receiver_notation_for(meth)
+ if meth.owner.name
+ #klassinst, klass = '#', meth.owner.name
+ "#{meth.owner.name}##{meth.name}"
+ else
+ #klassinst, klass = '.', meth.owner.to_s[/#<.+?:(.+?)>/, 1]
+ "#{meth.owner.to_s[/#<.+?:(.+?)>/, 1]}.#{meth.name}"
+ end
+ end
+
+ # Retrieve the YARD object that contains the method data.
+ # @param [Method, UnboundMethod] meth The method object.
+ # @return [YARD::CodeObjects::MethodObject] The YARD data for the method.
+ def self.yard_object_for(meth)
+ return nil if is_eval_method?(meth)
+ cache(meth)
+
+ obj = YARD::Registry.at(receiver_notation_for(meth))
+
+ # Stupidly, YARD thinks that some methods are on Object when
+ # they're actually on Kernel; so try again on Object if Kernel fails.
+ if obj.nil? && meth.owner == Kernel
+ obj = YARD::Registry.at("Object##{meth.name}")
+ end
+
+ obj
+ end
+
+ def self.is_eval_method?(meth)
+ file, _ = meth.source_location
+
+ if file =~ /(\(.*\))|<.*>/
+ return true
+ end
+ false
+ end
+
+ # Cache the file that holds the method or return true if file is
+ # already cached. Return false if the method cannot be cached -
+ # i.e is a C method.
+ # @param [Method, UnboundMethod] meth The method object.
+ # @return [Boolean] Whether the cache was successful.
+ def self.cache(meth)
+ file, _ = meth.source_location
+ return if !file
+ return if is_eval_method?(meth)
+ return if doc_cache[File.expand_path(file)]
+
+ log.enter_level(Logger::FATAL) do
+ YARD.parse(file)
+ end
+ doc_cache[File.expand_path(file)] = true
+ end
+ end
+end
+
+
@@ -0,0 +1,40 @@
+range.c f56591088e2ec8b25ee20ba71e5d4f7bd6cebd80
+lex.c 2fb09da4fd0e597e908a758b2cb8861791d77fe0
+st.c de730738519f9d314642d643605daf0032cde5e8
+sprintf.c 38e24ae2792f3f0c788c12930f24df8967386584
+struct.c aeeb1c59b8feced0cb0ab5c8f2bb0f7db949294c
+util.c bf0f10904a55eb132e1dbff76abbfaa5c0b9645a
+re.c 0c7fb7c27754745b224b5d68e6f9360a2c27c392
+version.c 09c81d814237aa4c9d91b315336bf2998506b84b
+dmydln.c deae68321fe218cbece2c778eeee2cb1ed07f9dc
+object.c 63320c4caf35debfcea26701f38e552f0783a591
+random.c 49191bb7edda1923b7964c87356c65d7ce539929
+class.c 254e814ebb75cf1104927821200b014557755c27
+enum.c b25337156929ead15069399fb3f877d77dd84d0f
+compar.c 3cc33a5da41a461486f6c94d1a13c3d6f6af2491
+array.c 306a01939123a5e84b4967a70a857a64dfe55dd9
+numeric.c c3ab075b4360c127ae1d6f0a4c77195ca63ffaf5
+inits.c 9ca3e88702cfbaff13952b422a357c5b5d0a2c9d
+enumerator.c 8ebf946bb338cb5337ea05c2a0abff241243ad58
+main.c ca4ccfe720cc9b09e6bdc4adda8822cd28e97ef4
+pack.c 46f347e026df35603757f1ee88f9e5600089107a
+process.c 1f405125e81953e5f5ccfcadc0fbf23653849563
+string.c 7e436a583b230a560609f136eaa9a90eb8393323
+dmyext.c 0a5f623323d12032746f4b954fd362cce8139d4e
+regex.c 5ce25e880652ba773da3dcf4fd3773ad93536c5d
+time.c 52012e930b3683b70745c9ac46e765449fc59e02
+dir.c e81a961fc1ee266aa151270f54024e1e7a2bb5d4
+signal.c d82b5d5225baaa152d513090715303cf3a471efd
+error.c 027ab87587753aac879a87d14aed68ac469609ae
+hash.c 90a48add85816a628c4b7e84f34f181d3772e781
+dln.c 488c3f8d5989c8c0640dd0fb4dc14dbe29dfd292
+io.c 2fc691c76efad88f77da987e8720f54477fba70e
+variable.c feba3d4dbfb850e55e9c85d548be0eef01732b05
+file.c 5f8f03c9d63600dba17d07d5a7ed8ddf464e2049
+ruby.c d7be35d486d8b283761260ddc340d831fd6fb302
+prec.c 405d264141d7ee55ff51dbc17d4838d65066ce83
+bignum.c 34dbe3ba01a899937f92a441cced0e22a6036aa8
+math.c 958af177feac771f4f58efd124e5ea7b18da11c7
+marshal.c 0be9f8ddc3f3e8f7d6369c0ee6b557a9c354a701
+eval.c 58f7f1e768c09122e491cc122468a3cf5aa95669
+gc.c 7e688ca3d4dd056559de10ba5d38f18759889f2d
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.

0 comments on commit 5a60bd5

Please sign in to comment.