pry-doc 0.13.4 → 0.13.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4dc34490bf3602ab9a0e1ceb908c2832fa57b595
|
4
|
+
data.tar.gz: 90d48f62fa7fe2d8d76f027bada60f2f21053cb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1fb2e9e3eef41468a2fe0197b8b5682209caf339c037dd639976303c61839dbe39cb3b42d7a49a21ba15d44f5b732ea90e275acac32803e4ef5f44d0aa38dbd
|
7
|
+
data.tar.gz: c34a7ad63c5d73fc96991f0ece09efacdc50b23f097a4b5b83c7464963d6eaa995e7e27a081b824fe62498e1de74c1d38657778c85c2151e805f2672d2e4c558
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,12 @@ Pry Doc changelog
|
|
3
3
|
|
4
4
|
### master
|
5
5
|
|
6
|
+
### [v0.13.5][v0.13.5] (November 8, 2018)
|
7
|
+
|
8
|
+
* Fixed deprecation warnings emitted by Pry v0.12.0
|
9
|
+
([#87](https://github.com/pry/pry-doc/pull/87))
|
10
|
+
* Fixed MRI 2.0 regression ([#88](https://github.com/pry/pry-doc/pull/88))
|
11
|
+
|
6
12
|
### [v0.12.0][v0.12.0] (January 21, 2018)
|
7
13
|
|
8
14
|
* Added suport for Ruby 2.5 docs ([#75](https://github.com/pry/pry-doc/pull/75))
|
@@ -87,3 +93,4 @@ Pry Doc changelog
|
|
87
93
|
[v0.11.0]: https://github.com/pry/pry-doc/releases/tag/v0.11.0
|
88
94
|
[v0.11.1]: https://github.com/pry/pry-doc/releases/tag/v0.11.1
|
89
95
|
[v0.12.0]: https://github.com/pry/pry-doc/releases/tag/v0.12.0
|
96
|
+
[v0.13.5]: https://github.com/pry/pry-doc/releases/tag/v0.13.5
|
@@ -17,7 +17,7 @@ module Pry::CInternals
|
|
17
17
|
attr_accessor :file_name
|
18
18
|
attr_reader :ruby_source_folder
|
19
19
|
|
20
|
-
def initialize(file_name
|
20
|
+
def initialize(file_name: nil, content: nil, ruby_source_folder: nil)
|
21
21
|
@ruby_source_folder = ruby_source_folder
|
22
22
|
@content = content
|
23
23
|
@file_name = file_name
|
@@ -44,7 +44,7 @@ module Pry::CInternals
|
|
44
44
|
end
|
45
45
|
|
46
46
|
def full_path_for(file_name)
|
47
|
-
if
|
47
|
+
if windows?
|
48
48
|
# windows etags already has the path expanded, wtf
|
49
49
|
file_name
|
50
50
|
else
|
@@ -52,6 +52,14 @@ module Pry::CInternals
|
|
52
52
|
end
|
53
53
|
end
|
54
54
|
|
55
|
+
def windows?
|
56
|
+
if Gem::Version.new(Pry::VERSION) < Gem::Version.new("0.12.0")
|
57
|
+
Pry::Platform.windows?
|
58
|
+
else
|
59
|
+
Pry::Helpers::Platform.windows?
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
55
63
|
def symbol_type_for(symbol)
|
56
64
|
if symbol =~ /#\s*define/
|
57
65
|
:macro
|
@@ -25,18 +25,34 @@ module Pry::CInternals
|
|
25
25
|
private
|
26
26
|
|
27
27
|
def set_platform_specific_commands
|
28
|
-
if
|
28
|
+
if windows?
|
29
29
|
self.curl_cmd = "curl -k --fail -L -O https://github.com/ruby/ruby/archive/v#{ruby_version}.zip " +
|
30
30
|
"& 7z -y x v#{ruby_version}.zip"
|
31
31
|
self.etag_binary = File.join(PryDoc.root, "libexec/windows/etags")
|
32
32
|
self.etag_cmd = %{dir /b /s *.c *.h *.y | "#{etag_binary}" - --no-members}
|
33
33
|
else
|
34
34
|
self.curl_cmd = "curl --fail -L https://github.com/ruby/ruby/archive/v#{ruby_version}.tar.gz | tar xzvf - 2> /dev/null"
|
35
|
-
self.etag_binary =
|
35
|
+
self.etag_binary = linux? ? File.join(PryDoc.root, "libexec/linux/etags-#{arch}") : "etags"
|
36
36
|
self.etag_cmd = "find . -type f -name '*.[chy]' | #{etag_binary} - --no-members"
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
40
|
+
def windows?
|
41
|
+
if Gem::Version.new(Pry::VERSION) < Gem::Version.new("0.12.0")
|
42
|
+
Pry::Platform.windows?
|
43
|
+
else
|
44
|
+
Pry::Helpers::Platform.windows?
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
def linux?
|
49
|
+
if Gem::Version.new(Pry::VERSION) < Gem::Version.new("0.12.0")
|
50
|
+
Pry::Platform.linux?
|
51
|
+
else
|
52
|
+
Pry::Helpers::Platform.linux?
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
40
56
|
def ask_for_install
|
41
57
|
print "Identifier not found - do you want to install CRuby sources to attempt to resolve the identifier there?" +
|
42
58
|
"\nThis allows the lookup of C internals Y/N "
|
data/lib/pry-doc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pry-doc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.13.
|
4
|
+
version: 0.13.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Mair (banisterfiend)
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: yard
|
@@ -168,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
168
168
|
version: '0'
|
169
169
|
requirements: []
|
170
170
|
rubyforge_project:
|
171
|
-
rubygems_version: 2.6.
|
171
|
+
rubygems_version: 2.6.13
|
172
172
|
signing_key:
|
173
173
|
specification_version: 4
|
174
174
|
summary: Provides YARD and extended documentation support for Pry
|