pry-doc 0.13.0pre11 → 0.13.0pre12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pry-doc.rb +6 -0
- data/lib/pry-doc/pry_ext/show_source_with_c_internals/code_fetcher.rb +14 -2
- data/lib/pry-doc/version.rb +1 -1
- data/libexec/linux/etags-32 +0 -0
- data/libexec/linux/etags-64 +0 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df9222d58b349995187809bb425ed3987b0991fa
|
4
|
+
data.tar.gz: a0fbd294d33059b88be9e723e65127d1bea489b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78e6b130bb20bb3a8cac640410fcde8f4a38c4073e07f6e8d0d4cd03079da6968a685c4d1d331dace18abc9f885a42af93706ceb29e24f9c76030c51d2c16c16
|
7
|
+
data.tar.gz: b74ee0ff8efa9570acd7653662188b6202b26c1906f09476b6e7ec675f445a3bd9fafc464f89fcdf264ffadabd43851628838bc460cea8606fe4b74f44d2a73b
|
data/lib/pry-doc.rb
CHANGED
@@ -84,7 +84,7 @@ module Pry::CInternals
|
|
84
84
|
end
|
85
85
|
|
86
86
|
def self.tagfile
|
87
|
-
tags = File.join(ruby_source_folder, "
|
87
|
+
tags = File.join(ruby_source_folder, "TAGS")
|
88
88
|
install_and_setup_ruby_source unless File.exists?(tags)
|
89
89
|
|
90
90
|
@tagfile ||= File.read(tags)
|
@@ -123,8 +123,20 @@ module Pry::CInternals
|
|
123
123
|
end
|
124
124
|
end
|
125
125
|
|
126
|
+
def self.etag_binary
|
127
|
+
@etag_binary ||= if RbConfig::CONFIG['host_os'] =~ /linux/
|
128
|
+
File.join(PryDoc.root, "libexec/linux/etags-#{arch}")
|
129
|
+
else
|
130
|
+
"etags"
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
def self.arch
|
135
|
+
RbConfig::CONFIG['arch'] =~ /i(3|6)86/ ? 32 : 64
|
136
|
+
end
|
137
|
+
|
126
138
|
def self.generate_tagfile
|
127
|
-
find_cmd = "find . -type f -name '*.[chy]' |
|
139
|
+
find_cmd = "find . -type f -name '*.[chy]' | #{etag_binary} - --no-members"
|
128
140
|
|
129
141
|
FileUtils.cd(ruby_source_folder) do
|
130
142
|
puts "Generating tagfile!"
|
data/lib/pry-doc/version.rb
CHANGED
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.0pre12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Mair (banisterfiend)
|
@@ -133,6 +133,8 @@ files:
|
|
133
133
|
- lib/pry-doc/pry_ext/show_source_with_c_internals/code_fetcher.rb
|
134
134
|
- lib/pry-doc/pry_ext/show_source_with_c_internals/symbol_extractor.rb
|
135
135
|
- lib/pry-doc/version.rb
|
136
|
+
- libexec/linux/etags-32
|
137
|
+
- libexec/linux/etags-64
|
136
138
|
- pry-doc.gemspec
|
137
139
|
- spec/fixtures/c_source/goodbye.c
|
138
140
|
- spec/fixtures/c_source/hello.c
|