bundler-path-build-ext 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 2cb971191322c3c6db9f1db8836438edcf1fbc6b7f41c4d5b782c3fc32e360db
4
+ data.tar.gz: c311b6d28e96cd1739e471402efdcad4fba012e0d73f9970912d456c6569f0b5
5
+ SHA512:
6
+ metadata.gz: c68487087ce66a7ea55a54439c2c237df370945527bd2d551659899dddc37460b1ed72e3fd921226da087d336879b892a4568aaa01c1624c97ef297b3ea74177
7
+ data.tar.gz: 17baf539117d27240f40ae9f5b26f38eec0873ea90c7fa63af46e1aa3dbb69fc517ed15114aa486cad1a95fca80635f5b46a150a453ff61e09b1e2ee694ece77
data/.gitignore ADDED
@@ -0,0 +1,7 @@
1
+ pkg
2
+ tmp
3
+ .DS_Store
4
+
5
+ *.bundle
6
+ *.o
7
+ *.so
data/Gemfile ADDED
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec
4
+
5
+ gem "rake", "~> 12.0"
data/Gemfile.lock ADDED
@@ -0,0 +1,19 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ bundler-path-build-ext (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ rake (12.3.3)
10
+
11
+ PLATFORMS
12
+ x86_64-darwin-17
13
+
14
+ DEPENDENCIES
15
+ bundler-path-build-ext!
16
+ rake (~> 12.0)
17
+
18
+ BUNDLED WITH
19
+ 2.2.3
data/LICENSE ADDED
@@ -0,0 +1,28 @@
1
+ Copyright (c) 2021, pganalyze Team <team@pganalyze.com>
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without
5
+ modification, are permitted provided that the following conditions are met:
6
+
7
+ * Redistributions of source code must retain the above copyright notice, this
8
+ list of conditions and the following disclaimer.
9
+
10
+ * Redistributions in binary form must reproduce the above copyright notice,
11
+ this list of conditions and the following disclaimer in the documentation
12
+ and/or other materials provided with the distribution.
13
+
14
+ * Neither the name of pganalyze nor the names of its contributors may be used
15
+ to endorse or promote products derived from this software without specific
16
+ prior written permission.
17
+
18
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
22
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28
+ POSSIBILITY OF SUCH DAMAGE.
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
@@ -0,0 +1,21 @@
1
+ require_relative 'lib/bundler-path-build-ext/version'
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = "bundler-path-build-ext"
5
+ spec.version = BundlerPathBuildExt::VERSION
6
+ spec.authors = ["pganalyze Team"]
7
+ spec.email = ["team@pganalyze.com"]
8
+
9
+ spec.summary = ''
10
+ spec.description = ''
11
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
12
+
13
+ # Specify which files should be added to the gem when it is released.
14
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
15
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
16
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
+ end
18
+ spec.bindir = "exe"
19
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
+ spec.require_paths = ["lib"]
21
+ end
@@ -0,0 +1,28 @@
1
+ require "bundler-path-build-ext/version"
2
+
3
+ Bundler::Plugin.add_hook(Bundler::Plugin::Events::GEM_AFTER_INSTALL) do |spec_install|
4
+ spec = spec_install.spec
5
+ if spec.source.instance_of?(Bundler::Source::Path) && !spec.extensions.empty?
6
+ puts format('Building native extensions for %s %s in source tree at %s', spec.name, spec.version, spec.source.expanded_original_path)
7
+
8
+ # If our current Bundler root path is identical with the base dir, add a "tmp/" directory to place extension build results in
9
+ if spec.base_dir == Bundler.root
10
+ spec.base_dir = File.join(spec.base_dir, 'tmp')
11
+ # Reset cached values for extension_dir (which is derived from base_dir)
12
+ spec.extension_dir = nil
13
+ spec.instance_variable_set(:@bundler_extension_dir, nil) # see bundler/lib/bundler/rubygems_ext.rb
14
+ end
15
+
16
+ # Build and install extensions
17
+ #
18
+ # This already gets called with disable_extensions: true by the path source, but we need
19
+ # the extensions to be built and installed.
20
+ installer = Bundler::Source::Path::Installer.new(
21
+ spec,
22
+ env_shebang: false,
23
+ disable_extensions: false,
24
+ build_args: nil
25
+ )
26
+ installer.post_install
27
+ end
28
+ end
@@ -0,0 +1,3 @@
1
+ module BundlerPathBuildExt
2
+ VERSION = "0.1.0"
3
+ end
data/plugins.rb ADDED
@@ -0,0 +1,2 @@
1
+ require 'bundler-path-build-ext'
2
+
metadata ADDED
@@ -0,0 +1,51 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bundler-path-build-ext
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - pganalyze Team
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2021-08-14 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: ''
14
+ email:
15
+ - team@pganalyze.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - ".gitignore"
21
+ - Gemfile
22
+ - Gemfile.lock
23
+ - LICENSE
24
+ - Rakefile
25
+ - bundler-path-build-ext.gemspec
26
+ - lib/bundler-path-build-ext.rb
27
+ - lib/bundler-path-build-ext/version.rb
28
+ - plugins.rb
29
+ homepage:
30
+ licenses: []
31
+ metadata: {}
32
+ post_install_message:
33
+ rdoc_options: []
34
+ require_paths:
35
+ - lib
36
+ required_ruby_version: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 2.3.0
41
+ required_rubygems_version: !ruby/object:Gem::Requirement
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ requirements: []
47
+ rubygems_version: 3.0.3
48
+ signing_key:
49
+ specification_version: 4
50
+ summary: ''
51
+ test_files: []