pry-doc-notebook 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +8 -0
- data/.rubocop.yml +18 -0
- data/.travis.yml +7 -0
- data/CHANGELOG.md +3 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +34 -0
- data/README.md +16 -0
- data/Rakefile +10 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/pry-doc-notebook.rb +21 -0
- data/lib/pry-doc-notebook/html_syntax_highlight.rb +96 -0
- data/lib/pry-doc-notebook/version.rb +5 -0
- data/lib/pry-doc-notebook/yri.rb +51 -0
- data/lib/templates/default/docstring/html/setup.rb +14 -0
- data/lib/templates/default/docstring/html/text.erb +1 -0
- data/lib/templates/default/method_details/html/method_signature.erb +25 -0
- data/lib/templates/default/method_details/html/setup.rb +10 -0
- data/lib/templates/default/method_details/html/source.erb +12 -0
- data/pry-doc-notebook.gemspec +49 -0
- data/readme_img/usage.png +0 -0
- metadata +180 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 7759be3468b7ed9e07417614a66148c6ac293794e6f5c6e95401c26a8dbce467
|
4
|
+
data.tar.gz: 808fce6848061a0405c3648ddabad0ab0b55ddeb34babb5428d0d34fb9d308b7
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 69f09adee769eef6bb6cedd569a8f5d5d010e1ec3619a7a111a58efd14caf9772825518da2ae84bd7fab47f655a216e42b77db09faeef17c3447bee680a1fd7a
|
7
|
+
data.tar.gz: 65e17d54e561babe8523306f0a78c6f481900846647ece05fd57479a282ce4674cc249fb280b230a7d66acc9d2f448db6b267132c7f8486f0a279781546f35b1
|
data/.gitignore
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
AllCops:
|
2
|
+
Exclude:
|
3
|
+
- '*.gemspec'
|
4
|
+
|
5
|
+
Layout/EndOfLine:
|
6
|
+
EnforcedStyle: lf
|
7
|
+
|
8
|
+
Style/RedundantReturn:
|
9
|
+
Enabled: false
|
10
|
+
|
11
|
+
Metrics/LineLength:
|
12
|
+
Enabled: false
|
13
|
+
|
14
|
+
Style/Documentation:
|
15
|
+
Enabled: false
|
16
|
+
|
17
|
+
Metrics/MethodLength:
|
18
|
+
Enabled: false
|
data/.travis.yml
ADDED
data/CHANGELOG.md
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
pry-doc-notebook (0.1.0)
|
5
|
+
pry
|
6
|
+
pry-doc
|
7
|
+
yard
|
8
|
+
|
9
|
+
GEM
|
10
|
+
remote: https://rubygems.org/
|
11
|
+
specs:
|
12
|
+
coderay (1.1.2)
|
13
|
+
method_source (0.9.2)
|
14
|
+
minitest (5.12.0)
|
15
|
+
pry (0.12.2)
|
16
|
+
coderay (~> 1.1)
|
17
|
+
method_source (~> 0.9.0)
|
18
|
+
pry-doc (1.0.0)
|
19
|
+
pry (~> 0.11)
|
20
|
+
yard (~> 0.9.11)
|
21
|
+
rake (10.5.0)
|
22
|
+
yard (0.9.20)
|
23
|
+
|
24
|
+
PLATFORMS
|
25
|
+
ruby
|
26
|
+
|
27
|
+
DEPENDENCIES
|
28
|
+
bundler (~> 1.17)
|
29
|
+
minitest (~> 5.0)
|
30
|
+
pry-doc-notebook!
|
31
|
+
rake (~> 10.0)
|
32
|
+
|
33
|
+
BUNDLED WITH
|
34
|
+
1.17.2
|
data/README.md
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
# Pry::Doc::Notebook
|
2
|
+
|
3
|
+
Pry Doc Notebook is a Pry REPL plugin for IRuby Notebook. It provides a `?` commands.
|
4
|
+
With help of the plugin the commands are be able to display documentation with html format.
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
$ gem install pry-doc-notebook
|
9
|
+
|
10
|
+
## Usage
|
11
|
+
|
12
|
+

|
13
|
+
|
14
|
+
## Contributing
|
15
|
+
|
16
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/zheng-yongping/pry-doc-notebook.
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "pry-doc-notebook"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'pry-doc-notebook/version'
|
4
|
+
require_relative 'pry-doc-notebook/yri'
|
5
|
+
require_relative 'pry-doc-notebook/html_syntax_highlight'
|
6
|
+
|
7
|
+
require 'yard'
|
8
|
+
|
9
|
+
module PryDocNotebook
|
10
|
+
YARD::Templates::Engine.register_template_path("#{File.dirname(__FILE__)}/templates")
|
11
|
+
|
12
|
+
Pry::Commands.create_command '?' do
|
13
|
+
group 'Introspection'
|
14
|
+
description 'View yard documentation.'
|
15
|
+
banner YRI::USAGE
|
16
|
+
|
17
|
+
def process(name)
|
18
|
+
YRI.new.display(name)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,96 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'yard'
|
4
|
+
require 'rouge'
|
5
|
+
|
6
|
+
module PryDocNotebook
|
7
|
+
|
8
|
+
class ModifiedPastie < Rouge::CSSTheme
|
9
|
+
# Modified by Rouge::Themes::Pastie
|
10
|
+
# See https://github.com/rouge-ruby/rouge/blob/master/lib/rouge/themes/pastie.rb
|
11
|
+
|
12
|
+
style Comment, :fg => '#408080'
|
13
|
+
style Comment::Preproc, :fg => '#cc0000', :bold => true
|
14
|
+
style Comment::Special, :fg => '#cc0000', :bg => '#fff0f0', :bold => true
|
15
|
+
|
16
|
+
style Error, :fg => '#a61717', :bg => '#e3d2d2'
|
17
|
+
style Generic::Error, :fg => '#aa0000'
|
18
|
+
|
19
|
+
style Generic::Heading, :fg => '#333333'
|
20
|
+
style Generic::Subheading, :fg => '#666666'
|
21
|
+
|
22
|
+
style Generic::Deleted, :fg => '#000000', :bg => '#ffdddd'
|
23
|
+
style Generic::Inserted, :fg => '#000000', :bg => '#ddffdd'
|
24
|
+
|
25
|
+
style Generic::Emph, :italic => true
|
26
|
+
style Generic::Strong, :bold => true
|
27
|
+
|
28
|
+
style Generic::Lineno, :fg => '#888888'
|
29
|
+
style Generic::Output, :fg => '#888888'
|
30
|
+
style Generic::Prompt, :fg => '#555555'
|
31
|
+
style Generic::Traceback, :fg => '#aa0000'
|
32
|
+
|
33
|
+
style Keyword, :fg => '#008800', :bold => true
|
34
|
+
style Keyword::Pseudo, :fg => '#008800'
|
35
|
+
style Keyword::Type, :fg => '#888888', :bold => true
|
36
|
+
|
37
|
+
style Num, :fg => '#0000dd', :bold => true
|
38
|
+
|
39
|
+
style Str, :fg => '#dd2200'
|
40
|
+
style Str::Escape, :fg => '#0044dd'
|
41
|
+
style Str::Interpol, :fg => '#3333bb'
|
42
|
+
style Str::Other, :fg => '#22bb22'
|
43
|
+
#style Str::Regex, :fg => '#008800', :bg => '#fff0ff'
|
44
|
+
# The background color on regex really doesn't look good, so let's drop it
|
45
|
+
style Str::Regex, :fg => '#008800'
|
46
|
+
style Str::Symbol, :fg => '#aa6600'
|
47
|
+
|
48
|
+
style Name::Attribute, :fg => '#336699'
|
49
|
+
style Name::Builtin, :fg => '#003388'
|
50
|
+
style Name::Class, :fg => '#bb0066', :bold => true
|
51
|
+
style Name::Constant, :fg => '#003366', :bold => true
|
52
|
+
style Name::Decorator, :fg => '#555555'
|
53
|
+
style Name::Exception, :fg => '#bb0066', :bold => true
|
54
|
+
style Name::Function, :fg => '#0066bb', :bold => true
|
55
|
+
#style Name::Label, :fg => '#336699', :italic => true
|
56
|
+
# Name::Label is used for built-in CSS properties in Rouge, so let's drop italics
|
57
|
+
style Name::Label, :fg => '#336699'
|
58
|
+
style Name::Namespace, :fg => '#bb0066', :bold => true
|
59
|
+
style Name::Property, :fg => '#336699', :bold => true
|
60
|
+
style Name::Tag, :fg => '#bb0066', :bold => true
|
61
|
+
style Name::Variable, :fg => '#336699'
|
62
|
+
style Name::Variable::Global, :fg => '#dd7700'
|
63
|
+
style Name::Variable::Instance, :fg => '#3333bb'
|
64
|
+
|
65
|
+
style Operator::Word, :fg => '#008800'
|
66
|
+
|
67
|
+
style Text, {}
|
68
|
+
style Text::Whitespace, :fg => '#bbbbbb'
|
69
|
+
end
|
70
|
+
|
71
|
+
YARD::Templates::Helpers::HtmlHelper.class_eval do
|
72
|
+
def respond_to_missing?(name, include_all)
|
73
|
+
if name =~ /^html_syntax_highlight_(\w+)/
|
74
|
+
lang = $1.to_sym
|
75
|
+
return Rouge::Lexers.constants.include?(lang)
|
76
|
+
end
|
77
|
+
super
|
78
|
+
end
|
79
|
+
|
80
|
+
def method_missing(name, *args, &block)
|
81
|
+
if name =~ /^html_syntax_highlight_(\w+)/
|
82
|
+
lang = $1.to_sym
|
83
|
+
if Rouge::Lexers.constants.include?(lang)
|
84
|
+
lexer = Rouge::Lexers.const_get(lang).new
|
85
|
+
formatter = Rouge::Formatters::HTMLInline.new(ModifiedPastie)
|
86
|
+
return formatter.format(lexer.lex(*args))
|
87
|
+
end
|
88
|
+
end
|
89
|
+
super
|
90
|
+
end
|
91
|
+
|
92
|
+
def html_syntax_highlight_ruby(source)
|
93
|
+
html_syntax_highlight_Ruby(source)
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'yard'
|
4
|
+
require 'rubygems'
|
5
|
+
|
6
|
+
module PryDocNotebook
|
7
|
+
class YRI < YARD::CLI::YRI
|
8
|
+
USAGE = <<~USAGE
|
9
|
+
Usage: ? <Path to object>
|
10
|
+
Example: ? String#gsub
|
11
|
+
USAGE
|
12
|
+
|
13
|
+
def display(name)
|
14
|
+
if name.nil? || name.strip.empty?
|
15
|
+
puts USAGE
|
16
|
+
return nil
|
17
|
+
end
|
18
|
+
|
19
|
+
object = find_object(name)
|
20
|
+
if object
|
21
|
+
IRuby.display object.format(format: :html), mime: 'text/html'
|
22
|
+
else
|
23
|
+
puts "No documentation for `#{name}'"
|
24
|
+
end
|
25
|
+
return nil
|
26
|
+
end
|
27
|
+
|
28
|
+
private
|
29
|
+
|
30
|
+
def pry_doc_yardoc_path
|
31
|
+
ruby_version = RUBY_VERSION[0...3].sub!('.', '')
|
32
|
+
pry_doc_path = Gem.loaded_specs['pry-doc'].full_gem_path
|
33
|
+
return "#{pry_doc_path}/lib/pry-doc/docs/#{ruby_version}"
|
34
|
+
end
|
35
|
+
|
36
|
+
def find_object(name)
|
37
|
+
@search_paths.unshift(@cache[name]) if @cache[name]
|
38
|
+
@search_paths.unshift(YARD::Registry.yardoc_file)
|
39
|
+
@search_paths.unshift(pry_doc_yardoc_path)
|
40
|
+
|
41
|
+
@search_paths.each do |path|
|
42
|
+
next unless File.exist?(path)
|
43
|
+
|
44
|
+
YARD::Registry.load(path)
|
45
|
+
obj = try_load_object(name, path)
|
46
|
+
return obj if obj
|
47
|
+
end
|
48
|
+
return nil
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'nokogiri'
|
4
|
+
|
5
|
+
def code_add_border(html)
|
6
|
+
doc = Nokogiri::HTML::DocumentFragment.parse(html)
|
7
|
+
doc.search('pre.code').each do |pre|
|
8
|
+
pre['style'] = 'border: 1px solid #cfcfcf;'\
|
9
|
+
'border-radius: 2px;'\
|
10
|
+
'margin: 0.5em;'\
|
11
|
+
'padding: 0.3em;'
|
12
|
+
end
|
13
|
+
doc.to_html
|
14
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= code_add_border(htmlify(docstring_text)) %>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<h3 class="signature <%= 'first' if @index == 0 %>" id="<%= anchor_for(object) %>">
|
2
|
+
<% if object.tags(:overload).size == 1 %>
|
3
|
+
<%= signature(object.tag(:overload), false) %>
|
4
|
+
<% elsif object.tags(:overload).size > 1 %>
|
5
|
+
<% object.tags(:overload).each do |overload| %>
|
6
|
+
<span class="overload" style="display: block;"><%= signature(overload, false) %></span>
|
7
|
+
<% end %>
|
8
|
+
<% else %>
|
9
|
+
<%= signature(object, false) %>
|
10
|
+
<% end %>
|
11
|
+
|
12
|
+
<% if object.aliases.size > 0 %>
|
13
|
+
<span class="aliases">Also known as:
|
14
|
+
<span class="names"><%= object.aliases.map {|o|
|
15
|
+
"<span id='#{anchor_for(o)}'>" + h(o.name.to_s) + "</span>" }.join(", ") %></span>
|
16
|
+
</span>
|
17
|
+
<% end %>
|
18
|
+
|
19
|
+
<% if owner != object.namespace %>
|
20
|
+
<span class="not_defined_here">
|
21
|
+
Originally defined in <%= object.namespace.type %>
|
22
|
+
<%= linkify object, owner.relative_path(object.namespace) %>
|
23
|
+
</span>
|
24
|
+
<% end %>
|
25
|
+
</h3>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<div class="source_code" style="border: 1px solid #cfcfcf; border-radius: 2px">
|
2
|
+
<table>
|
3
|
+
<tr style="background: inherit;">
|
4
|
+
<td style="border-right: 1px solid #cfcfcf;">
|
5
|
+
<pre class="lines" style="color: #999"><%= "\n\n\n" %><%= h format_lines(object) %></pre>
|
6
|
+
</td>
|
7
|
+
<td style="text-align: left;">
|
8
|
+
<pre class="code"><span class="info file"># File '<%= h object.file %>'<% if object.line %>, line <%= object.line %><% end %></span><%= "\n\n" %><%= html_syntax_highlight object.source, detect_language(object.file) %></pre>
|
9
|
+
</td>
|
10
|
+
</tr>
|
11
|
+
</table>
|
12
|
+
</div>
|
@@ -0,0 +1,49 @@
|
|
1
|
+
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "pry-doc-notebook/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "pry-doc-notebook"
|
8
|
+
spec.version = PryDocNotebook::VERSION
|
9
|
+
spec.authors = ["zheng-yongping"]
|
10
|
+
spec.email = ["zheng-yongping@hotmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Provides YARD and extended documentation support for Pry in IRuby Notebook}
|
13
|
+
spec.description = <<~DESCR
|
14
|
+
Pry Doc Notebook is a Pry REPL plugin for IRuby Notebook. It provides a `?` commands.
|
15
|
+
With help of the plugin the commands are be able to display documentation with html format.
|
16
|
+
DESCR
|
17
|
+
|
18
|
+
spec.homepage = "https://github.com/zheng-yongping/pry-doc-notebook"
|
19
|
+
|
20
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
21
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
22
|
+
if spec.respond_to?(:metadata)
|
23
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
24
|
+
spec.metadata["source_code_uri"] = "https://github.com/zheng-yongping/pry-doc-notebook"
|
25
|
+
spec.metadata["changelog_uri"] = "https://github.com/zheng-yongping/pry-doc-notebook/blob/master/CHANGELOG.md"
|
26
|
+
else
|
27
|
+
raise "RubyGems 2.0 or newer is required to protect against " \
|
28
|
+
"public gem pushes."
|
29
|
+
end
|
30
|
+
|
31
|
+
# Specify which files should be added to the gem when it is released.
|
32
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
33
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
34
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
35
|
+
end
|
36
|
+
spec.bindir = "exe"
|
37
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
38
|
+
spec.require_paths = ["lib"]
|
39
|
+
|
40
|
+
spec.add_development_dependency "bundler", "~> 1.17"
|
41
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
42
|
+
spec.add_development_dependency "minitest", "~> 5.0"
|
43
|
+
|
44
|
+
spec.add_dependency 'yard', '~> 0.9'
|
45
|
+
spec.add_dependency 'pry', '~> 0.12'
|
46
|
+
spec.add_dependency 'pry-doc', '~> 1.0'
|
47
|
+
spec.add_dependency 'rouge', '~> 3.11'
|
48
|
+
spec.add_dependency 'nokogiri', '~> 1.10'
|
49
|
+
end
|
Binary file
|
metadata
ADDED
@@ -0,0 +1,180 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: pry-doc-notebook
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- zheng-yongping
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-09-25 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.17'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.17'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '5.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '5.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: yard
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.9'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.9'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: pry
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0.12'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0.12'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: pry-doc
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rouge
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '3.11'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '3.11'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: nokogiri
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '1.10'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '1.10'
|
125
|
+
description: |
|
126
|
+
Pry Doc Notebook is a Pry REPL plugin for IRuby Notebook. It provides a `?` commands.
|
127
|
+
With help of the plugin the commands are be able to display documentation with html format.
|
128
|
+
email:
|
129
|
+
- zheng-yongping@hotmail.com
|
130
|
+
executables: []
|
131
|
+
extensions: []
|
132
|
+
extra_rdoc_files: []
|
133
|
+
files:
|
134
|
+
- ".gitignore"
|
135
|
+
- ".rubocop.yml"
|
136
|
+
- ".travis.yml"
|
137
|
+
- CHANGELOG.md
|
138
|
+
- Gemfile
|
139
|
+
- Gemfile.lock
|
140
|
+
- README.md
|
141
|
+
- Rakefile
|
142
|
+
- bin/console
|
143
|
+
- bin/setup
|
144
|
+
- lib/pry-doc-notebook.rb
|
145
|
+
- lib/pry-doc-notebook/html_syntax_highlight.rb
|
146
|
+
- lib/pry-doc-notebook/version.rb
|
147
|
+
- lib/pry-doc-notebook/yri.rb
|
148
|
+
- lib/templates/default/docstring/html/setup.rb
|
149
|
+
- lib/templates/default/docstring/html/text.erb
|
150
|
+
- lib/templates/default/method_details/html/method_signature.erb
|
151
|
+
- lib/templates/default/method_details/html/setup.rb
|
152
|
+
- lib/templates/default/method_details/html/source.erb
|
153
|
+
- pry-doc-notebook.gemspec
|
154
|
+
- readme_img/usage.png
|
155
|
+
homepage: https://github.com/zheng-yongping/pry-doc-notebook
|
156
|
+
licenses: []
|
157
|
+
metadata:
|
158
|
+
homepage_uri: https://github.com/zheng-yongping/pry-doc-notebook
|
159
|
+
source_code_uri: https://github.com/zheng-yongping/pry-doc-notebook
|
160
|
+
changelog_uri: https://github.com/zheng-yongping/pry-doc-notebook/blob/master/CHANGELOG.md
|
161
|
+
post_install_message:
|
162
|
+
rdoc_options: []
|
163
|
+
require_paths:
|
164
|
+
- lib
|
165
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
166
|
+
requirements:
|
167
|
+
- - ">="
|
168
|
+
- !ruby/object:Gem::Version
|
169
|
+
version: '0'
|
170
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
171
|
+
requirements:
|
172
|
+
- - ">="
|
173
|
+
- !ruby/object:Gem::Version
|
174
|
+
version: '0'
|
175
|
+
requirements: []
|
176
|
+
rubygems_version: 3.0.3
|
177
|
+
signing_key:
|
178
|
+
specification_version: 4
|
179
|
+
summary: Provides YARD and extended documentation support for Pry in IRuby Notebook
|
180
|
+
test_files: []
|