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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fd492dfe13c09cb7670fd0d7fda310b63f6f4aaf
4
- data.tar.gz: 8e2f80d56db88200b35e49957323f65ff8923e7b
3
+ metadata.gz: f872bce3e04d0a69a2f94f7f313bd1e40aa6d277
4
+ data.tar.gz: 7899c022f111e2df35b809df0c305718a1f51dff
5
5
  SHA512:
6
- metadata.gz: '09e41a9f8fbc1fb92152f444c943a7a1b70697b5d492e629d0f6f98b7e76563df345ac8937814aac5b84d48455d0832ebba2e12ca9a6aea999b9b45fa2ff2bc7'
7
- data.tar.gz: 258d4bc55cfed74cbf1417ac54112f1570862c1389f50c7e24923324b3dd158409a126c73b363661f11228e14ff32b8a689ef598b64226060a8e9cd019171fc1
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 - -o tags }
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
@@ -1,3 +1,3 @@
1
1
  module PryDoc
2
- VERSION = '0.13.0pre4'
2
+ VERSION = '0.13.0pre5'
3
3
  end
@@ -2,7 +2,7 @@
2
2
  goodbye.c,9
3
3
  foo(2,5
4
4
 
5
- hello.c,166
5
+ hello.c,134
6
6
  foo(2,4
7
7
  #define baby 5,19
8
8
  typedef int wassup;9,73
@@ -11,5 +11,3 @@ enum bar 11,94
11
11
  beta,13,114
12
12
  gamma14,122
13
13
  struct baz 17,134
14
- int x;18,147
15
- int y;19,156
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.0pre4
4
+ version: 0.13.0pre5
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Mair (banisterfiend)