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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2a5a20e856ce625789bf558555c9c3ba342febe0e72ea0aa56f1dbdb8e4c0640
4
- data.tar.gz: 69afa2db663faaa1182a23c8454830d47c05d37c9db3d83591d105b1c0fd91d8
3
+ metadata.gz: 0d1994ad041affeb22c2b9469f607a25a291c58c7b584a4ba80bc9a1250a6db9
4
+ data.tar.gz: 92668aefea365088242aeaaa22ec210fb38750806166d309f27dd02984fc3c41
5
5
  SHA512:
6
- metadata.gz: 27f7e0cbad2dd73d8d67527b4a7d356e10a22bedd973cbc4976aa922e5ec8ad72cb0b5934b13c73849bbe9e99aeeec14cb7be1b66e6b16df5f939a2fc1442d5e
7
- data.tar.gz: eb1597c9dfd25744800e2e1aae31f35c4494642375bc9e8cdbcd9f16a65edbf4044e278808ffc5c8d318f82f3b06695581ff0d40017b297bacf6a8324e72582b
6
+ metadata.gz: b92995d40fa1d5fbf9862fe6385afd978d3d396ae29ee2497d4f0339427526acc21c9fdcb2b6d2ab5245a112509f4ace540c39d502490ba04332b97bbe7d07c7
7
+ data.tar.gz: 862fabb62842504df9fbf29590fb3739ae3d986c6dd77c8c76f4883fe8c1948c00fea28ae3967795bf973e349a283a8098b1a7b3bd4164fab04c9a0548f49f14
data/.gitignore CHANGED
@@ -6,4 +6,5 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
- .byebug_history
9
+ .byebug_history
10
+ cache/index_cache_time
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- extended_bundler-errors (0.3.1)
4
+ extended_bundler-errors (0.3.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -23,4 +23,4 @@ DEPENDENCIES
23
23
  rake (~> 10.0)
24
24
 
25
25
  BUNDLED WITH
26
- 1.16.2
26
+ 1.17.2
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/40488035-c89a6678-5f33-11e8-89fc-f66c054d8765.png)
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/40489293-c8cf8e9a-5f36-11e8-88f5-fceed052aa24.png)
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
@@ -1,6 +1,6 @@
1
1
  module ExtendedBundler
2
2
  module Errors
3
- VERSION = "0.3.1"
3
+ VERSION = "0.3.2"
4
4
  HOMEPAGE = "http://github.com/jules2689/extended_bundler-errors"
5
5
  end
6
6
  end
@@ -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
+
@@ -3,6 +3,7 @@
3
3
  matching:
4
4
  - cannot load such file -- mkmf
5
5
  - sqlite3 is missing
6
+ - sqlite3.h is missing
6
7
  messages:
7
8
  en: |
8
9
  {{bold:What is the problem?}}
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.1
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: 2018-09-21 00:00:00.000000000 Z
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
- rubyforge_project:
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