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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2bf0f89bf880b05cabeb65922390eedc28b3063a
4
- data.tar.gz: 7eff6cd385dd096dad5388a2989e97e3a4246fe9
3
+ metadata.gz: df9222d58b349995187809bb425ed3987b0991fa
4
+ data.tar.gz: a0fbd294d33059b88be9e723e65127d1bea489b8
5
5
  SHA512:
6
- metadata.gz: b454f850a9688865c18b8ddaf5a0131cf19b3b674c91eb26e017c965816ddf4cdfc68263285e483522fa288f78879eadeb00d8e7a8cac29f5997f5d0e46a1204
7
- data.tar.gz: a1bde2f69700d8e5161120905a516c074a6cfe62a6e18b1e819ceaffa9523c66de8b3b2b647596eb0fcda073a07761eda47e4c98135e345a871168cac7dc419d
6
+ metadata.gz: 78e6b130bb20bb3a8cac640410fcde8f4a38c4073e07f6e8d0d4cd03079da6968a685c4d1d331dace18abc9f885a42af93706ceb29e24f9c76030c51d2c16c16
7
+ data.tar.gz: b74ee0ff8efa9570acd7653662188b6202b26c1906f09476b6e7ec675f445a3bd9fafc464f89fcdf264ffadabd43851628838bc460cea8606fe4b74f44d2a73b
@@ -15,6 +15,12 @@ module PryDoc
15
15
 
16
16
  YARD::Registry.load_yardoc(path)
17
17
  end
18
+
19
+ def self.root
20
+ @root ||= File.expand_path(File.dirname(__dir__))
21
+ end
22
+
23
+ root
18
24
  end
19
25
 
20
26
  PryDoc.load_yardoc(RUBY_VERSION[0...3].sub!('.', ''))
@@ -84,7 +84,7 @@ module Pry::CInternals
84
84
  end
85
85
 
86
86
  def self.tagfile
87
- tags = File.join(ruby_source_folder, "tags")
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]' | etags - --no-members -o tags"
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!"
@@ -1,3 +1,3 @@
1
1
  module PryDoc
2
- VERSION = '0.13.0pre11'
2
+ VERSION = '0.13.0pre12'
3
3
  end
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.0pre11
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