extended_bundler-errors 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/Gemfile.lock +2 -2
- data/README.md +3 -2
- data/Rakefile +9 -0
- data/cache/index +14 -0
- data/lib/extended_bundler/backports.rb +2 -3
- data/lib/extended_bundler/errors/version.rb +1 -1
- data/lib/extended_bundler/errors.rb +1 -1
- data/lib/extended_bundler/handlers/pg.yml +15 -0
- data/lib/extended_bundler/handlers/sqlite.yml +23 -0
- data/lib/extended_bundler/handlers/sqlite3.yml +1 -0
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d1994ad041affeb22c2b9469f607a25a291c58c7b584a4ba80bc9a1250a6db9
|
4
|
+
data.tar.gz: 92668aefea365088242aeaaa22ec210fb38750806166d309f27dd02984fc3c41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b92995d40fa1d5fbf9862fe6385afd978d3d396ae29ee2497d4f0339427526acc21c9fdcb2b6d2ab5245a112509f4ace540c39d502490ba04332b97bbe7d07c7
|
7
|
+
data.tar.gz: 862fabb62842504df9fbf29590fb3739ae3d986c6dd77c8c76f4883fe8c1948c00fea28ae3967795bf973e349a283a8098b1a7b3bd4164fab04c9a0548f49f14
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -12,11 +12,12 @@ This gem instead will try to match the output of the gem to a series of handlers
|
|
12
12
|
|
13
13
|
Before when RMagick fails to install, you got a verbose log.
|
14
14
|
|
15
|
-
![Before this plugin, RMagick failures were cryptic and confusing](https://user-images.githubusercontent.com/3074765/
|
15
|
+
![Before this plugin, RMagick failures were cryptic and confusing](https://user-images.githubusercontent.com/3074765/55492679-9c61ef80-5605-11e9-83ec-184933916abc.png)
|
16
|
+
|
16
17
|
|
17
18
|
After when it fails to install you get a specific, actionable reason and step-by-step guide on how to handle it.
|
18
19
|
|
19
|
-
![After This Plugin, RMagick has better errors](https://user-images.githubusercontent.com/3074765/
|
20
|
+
![After This Plugin, RMagick has better errors](https://user-images.githubusercontent.com/3074765/55492685-9e2bb300-5605-11e9-9e67-bb555cb2537c.png)
|
20
21
|
|
21
22
|
## Installation
|
22
23
|
|
data/Rakefile
CHANGED
@@ -8,3 +8,12 @@ Rake::TestTask.new(:test) do |t|
|
|
8
8
|
end
|
9
9
|
|
10
10
|
task :default => :test
|
11
|
+
|
12
|
+
task :index_handlers do
|
13
|
+
require 'time'
|
14
|
+
File.open("cache/index", "w") do |f|
|
15
|
+
Dir.glob("lib/extended_bundler/handlers/*.yml") do |file|
|
16
|
+
f.puts("#{file},#{File.mtime(file).iso8601}")
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
data/cache/index
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
lib/extended_bundler/handlers/unf_ext.yml,2018-09-21T09:41:41-04:00
|
2
|
+
lib/extended_bundler/handlers/openssl.yml,2018-09-21T09:41:42-04:00
|
3
|
+
lib/extended_bundler/handlers/http_parser.yml,2018-09-21T09:41:16-04:00
|
4
|
+
lib/extended_bundler/handlers/semian.yml,2018-09-21T09:40:14-04:00
|
5
|
+
lib/extended_bundler/handlers/pg.yml,2018-09-21T09:46:05-04:00
|
6
|
+
lib/extended_bundler/handlers/sqlite3.yml,2018-09-21T09:40:16-04:00
|
7
|
+
lib/extended_bundler/handlers/testing_stuff.yml,2018-09-21T09:40:17-04:00
|
8
|
+
lib/extended_bundler/handlers/mysql2.yml,2018-09-21T09:44:15-04:00
|
9
|
+
lib/extended_bundler/handlers/libv8.yml,2018-09-21T09:40:18-04:00
|
10
|
+
lib/extended_bundler/handlers/testing_stuff_2.yml,2018-09-21T09:40:19-04:00
|
11
|
+
lib/extended_bundler/handlers/gda.yml,2018-09-21T09:40:19-04:00
|
12
|
+
lib/extended_bundler/handlers/rmagick.yml,2018-09-21T09:40:20-04:00
|
13
|
+
lib/extended_bundler/handlers/oj.yml,2018-09-21T09:40:21-04:00
|
14
|
+
lib/extended_bundler/handlers/mini_racer.yml,2018-09-21T09:40:22-04:00
|
@@ -1,10 +1,9 @@
|
|
1
1
|
require 'bundler/version'
|
2
|
+
# We need to make sure ParallelInstaller is defined before we can patch it
|
3
|
+
require 'bundler/installer/parallel_installer'
|
2
4
|
|
3
5
|
# In Bundler <= 1.17, we do not have the `after-install` hook, so monkey patch Bundler to include it
|
4
6
|
if Gem::Version.new(Bundler::VERSION) < Gem::Version.new('1.17')
|
5
|
-
# We need to make sure ParallelInstaller is defined before we can patch it
|
6
|
-
require 'bundler/installer/parallel_installer'
|
7
|
-
|
8
7
|
module Bundler
|
9
8
|
class ParallelInstaller
|
10
9
|
private
|
@@ -58,7 +58,7 @@ It is recommended to:
|
|
58
58
|
next unless version_match?(spec_install.spec.version, handler['versions'])
|
59
59
|
next unless handler['matching'].any? { |m| spec_install.error =~ Regexp.new(m) }
|
60
60
|
spec_install.error = build_error(spec_install, handler)
|
61
|
-
troubleshooted
|
61
|
+
troubleshooted = true
|
62
62
|
end
|
63
63
|
|
64
64
|
if !troubleshooted && spec_install.error.include?('Failed to build gem native extension')
|
@@ -10,3 +10,18 @@
|
|
10
10
|
{{bold:What can I do?}}
|
11
11
|
Linux: {{command:sudo apt-get update && sudo apt-get install postgresql postgresql-contrib}}
|
12
12
|
Mac: {{command:brew install postgresql}}
|
13
|
+
-
|
14
|
+
versions: all
|
15
|
+
matching:
|
16
|
+
- "Can't find the 'libpq-fe.h header"
|
17
|
+
messages:
|
18
|
+
en: |
|
19
|
+
{{bold:What is the problem?}}
|
20
|
+
The PG Gem cannot be installed because a specific header (libpq-fe.h) cannot be found
|
21
|
+
|
22
|
+
{{bold:What can I do?}}
|
23
|
+
Ubuntu/Debian systems: {{command:sudo apt-get update && sudo apt-get install libpq-dev}}
|
24
|
+
Red Hat Linux (RHEL) systems: {{command:yum install postgresql-devel}}
|
25
|
+
Mac: {{command:brew install postgresql}}
|
26
|
+
OpenSuse: {{command:zypper in postgresql-devel}}
|
27
|
+
ArchLinux: {{command:pacman -S postgresql-libs}}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
-
|
2
|
+
versions: all
|
3
|
+
matching:
|
4
|
+
- 'fatal error: sqlite3.h: No such file or directory'
|
5
|
+
messages:
|
6
|
+
en: |
|
7
|
+
{{bold:What is the problem?}}
|
8
|
+
You are missing the SQLite binaries required to install the gem.
|
9
|
+
|
10
|
+
{{bold:What can I do?}}
|
11
|
+
Mac: One of these might help:
|
12
|
+
- {{command:brew install sqlite}}
|
13
|
+
- {{command:brew install ruby-dev}}
|
14
|
+
|
15
|
+
Linux: One of these might help:
|
16
|
+
APT:
|
17
|
+
- {{command:sudo apt-get install ruby-dev}}
|
18
|
+
- {{command:sudo apt-get install libsqlite3-dev}}
|
19
|
+
- {{command:sudo apt-get install make}}
|
20
|
+
|
21
|
+
YUM:
|
22
|
+
- {{command:yum install sqlite3-devel}}
|
23
|
+
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: extended_bundler-errors
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jules2689
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -69,6 +69,7 @@ files:
|
|
69
69
|
- Rakefile
|
70
70
|
- bin/console
|
71
71
|
- bin/setup
|
72
|
+
- cache/index
|
72
73
|
- extended_bundler-errors.gemspec
|
73
74
|
- lib/extended_bundler/backports.rb
|
74
75
|
- lib/extended_bundler/errors.rb
|
@@ -84,6 +85,7 @@ files:
|
|
84
85
|
- lib/extended_bundler/handlers/pg.yml
|
85
86
|
- lib/extended_bundler/handlers/rmagick.yml
|
86
87
|
- lib/extended_bundler/handlers/semian.yml
|
88
|
+
- lib/extended_bundler/handlers/sqlite.yml
|
87
89
|
- lib/extended_bundler/handlers/sqlite3.yml
|
88
90
|
- lib/extended_bundler/handlers/testing_stuff.yml
|
89
91
|
- lib/extended_bundler/handlers/testing_stuff_2.yml
|
@@ -109,8 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
109
111
|
- !ruby/object:Gem::Version
|
110
112
|
version: '0'
|
111
113
|
requirements: []
|
112
|
-
|
113
|
-
rubygems_version: 2.7.6
|
114
|
+
rubygems_version: 3.0.1
|
114
115
|
signing_key:
|
115
116
|
specification_version: 4
|
116
117
|
summary: Extended Errors for Bundler
|