bundler-private_install 0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: d14e9d9670fd955e91921ba1d0a24ca12672e6829a80fec6e5891ac6383576f2
4
+ data.tar.gz: 0ea07d147eb0e420f5c30299053e174fc5fcf3bbc32360a3a66b86cc25535179
5
+ SHA512:
6
+ metadata.gz: dd06612ce22682d85d62a8a8f6626441cd7f45dedcac3dc9aff019d43b2a3b5644e98ef2ad8735285043152e8cefb9a3e5beb1c21dd4ad6611bde510936a19a7
7
+ data.tar.gz: '018bd2aecb4024e80674bdd72dee8e27ae501da627d1326787a3bb5d7879ffd6e60ebe421690b7e0b182a9ab582cd361a8cf6ac6fa66095895a1f08b60d3983a'
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ /Gemfile.lock
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in bundler-private_install.gemspec
4
+ gemspec
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Philipe Fatio
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,7 @@
1
+ # bundler-private_install
2
+
3
+ A Bundler plugin that installs gems in an additional private Gemfile after bundle install.
4
+
5
+ ## License
6
+
7
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,27 @@
1
+ lib = File.expand_path("lib", __dir__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require "bundler/private_install/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "bundler-private_install"
7
+ s.version = Bundler::PrivateInstall::VERSION
8
+ s.authors = ["Philipe Fatio"]
9
+ s.email = ["me@phili.pe"]
10
+ s.summary = %q{A Bundler plugin that installs gems in an additional private Gemfile after bundle install.}
11
+ s.description = s.summary
12
+ s.homepage = "https://github.com/fphilipe/bundler-private_install"
13
+ s.license = "MIT"
14
+
15
+ s.metadata["homepage_uri"] = s.homepage
16
+ s.metadata["source_code_uri"] = s.homepage
17
+ s.metadata["changelog_uri"] = s.homepage + "/blob/master/CHANGELOG.md"
18
+
19
+ # Specify which files should be added to the gem when it is released.
20
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
21
+ s.files = Dir.chdir(File.expand_path('..', __FILE__)) do
22
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|s|features)/}) }
23
+ end
24
+ s.bindir = "exe"
25
+ s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
26
+ s.require_paths = ["lib"]
27
+ end
@@ -0,0 +1,13 @@
1
+ require "bundler/private_install/version"
2
+
3
+ module Bundler
4
+ Plugin.add_hook('after-install-all') do |dependencies|
5
+ return unless SharedHelpers.default_gemfile.basename.to_s == 'Gemfile'
6
+
7
+ `grep --files-with-match --null eval_gemfile Gemfile.*`.split("\x0").each do |file|
8
+ puts nil, "Installing #{file}"
9
+ system(%{cp Gemfile.lock "#{file}.lock"})
10
+ system(%{BUNDLE_GEMFILE="#{file}" bundle install})
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,5 @@
1
+ module Bundler
2
+ module PrivateInstall
3
+ VERSION = "0.1"
4
+ end
5
+ end
@@ -0,0 +1 @@
1
+ require 'bundler/private_install'
metadata ADDED
@@ -0,0 +1,57 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bundler-private_install
3
+ version: !ruby/object:Gem::Version
4
+ version: '0.1'
5
+ platform: ruby
6
+ authors:
7
+ - Philipe Fatio
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-10-20 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: A Bundler plugin that installs gems in an additional private Gemfile
14
+ after bundle install.
15
+ email:
16
+ - me@phili.pe
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - ".gitignore"
22
+ - Gemfile
23
+ - LICENSE.txt
24
+ - README.md
25
+ - Rakefile
26
+ - bundler-private_install.gemspec
27
+ - lib/bundler/private_install.rb
28
+ - lib/bundler/private_install/version.rb
29
+ - plugins.rb
30
+ homepage: https://github.com/fphilipe/bundler-private_install
31
+ licenses:
32
+ - MIT
33
+ metadata:
34
+ homepage_uri: https://github.com/fphilipe/bundler-private_install
35
+ source_code_uri: https://github.com/fphilipe/bundler-private_install
36
+ changelog_uri: https://github.com/fphilipe/bundler-private_install/blob/master/CHANGELOG.md
37
+ post_install_message:
38
+ rdoc_options: []
39
+ require_paths:
40
+ - lib
41
+ required_ruby_version: !ruby/object:Gem::Requirement
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ required_rubygems_version: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: '0'
51
+ requirements: []
52
+ rubygems_version: 3.0.3
53
+ signing_key:
54
+ specification_version: 4
55
+ summary: A Bundler plugin that installs gems in an additional private Gemfile after
56
+ bundle install.
57
+ test_files: []