pry-doc 0.13.0pre4 → 0.13.0pre5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/lib/pry-doc/pry_ext/show_source_with_c_internals/code_fetcher.rb +8 -2
- data/lib/pry-doc/version.rb +1 -1
- data/spec/fixtures/c_source/tags +1 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f872bce3e04d0a69a2f94f7f313bd1e40aa6d277
|
4
|
+
data.tar.gz: 7899c022f111e2df35b809df0c305718a1f51dff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad820d5efb9af61de51a966abee440b8bbdf791d2ad41558a0e0649a9e0e41104806419b1d638365b047d01b6c2217a5902763861f890931a1614004066ca2b3
|
7
|
+
data.tar.gz: a37abe53d2eea113a2ca7ff18320b030c7d8ac550a4970a8ac2b1c05d84d2ad4ceb3d7ebca381b4c38e34b6b4c9641d97e20bf8e0c6493a06d1bfc25d372203b
|
data/Rakefile
CHANGED
@@ -14,7 +14,7 @@ require "#{direc}/lib/#{PROJECT_NAME}/version"
|
|
14
14
|
|
15
15
|
desc "generate fixture etags"
|
16
16
|
task :etags do
|
17
|
-
sh 'etags spec/fixtures/c_source/*.c -o spec/fixtures/c_source/tags'
|
17
|
+
sh 'etags --no-members spec/fixtures/c_source/*.c -o spec/fixtures/c_source/tags'
|
18
18
|
end
|
19
19
|
desc "reinstall gem"
|
20
20
|
task :reinstall => :gems do
|
@@ -91,16 +91,22 @@ module Pry::CInternals
|
|
91
91
|
@tagfile ||= File.read(File.join(ruby_source_folder, "tags"))
|
92
92
|
end
|
93
93
|
|
94
|
+
def self.check_for_error(message)
|
95
|
+
raise Pry::CommandError, message if $?.to_i != 0
|
96
|
+
end
|
97
|
+
|
94
98
|
def self.install_and_setup_ruby_source
|
95
|
-
puts "Downloading and setting up Ruby #{ruby_version} source..."
|
99
|
+
puts "Downloading and setting up Ruby #{ruby_version} source in attempt to resolve symbol..."
|
96
100
|
FileUtils.mkdir_p(ruby_source_folder)
|
97
101
|
FileUtils.cd(File.dirname(ruby_source_folder)) do
|
98
102
|
%x{ curl -L https://github.com/ruby/ruby/archive/v#{ruby_version}.tar.gz | tar xzvf - > /dev/null 2>&1 }
|
103
|
+
check_for_error("curl")
|
99
104
|
end
|
100
105
|
|
101
106
|
FileUtils.cd(ruby_source_folder) do
|
102
107
|
puts "Generating tagfile!"
|
103
|
-
%x{ find . -type f -name "*.[chy]" | etags -
|
108
|
+
%x{ find . -type f -name "*.[chy]" | etags - --no-members -o tags }
|
109
|
+
check_for_error("find | etags")
|
104
110
|
end
|
105
111
|
puts "...Finished!"
|
106
112
|
end
|
data/lib/pry-doc/version.rb
CHANGED
data/spec/fixtures/c_source/tags
CHANGED