iruby-dependencies 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/lib/iruby/dependencies/config.rb +1 -1
- data/lib/iruby/dependencies/unload.rb +19 -0
- data/lib/iruby/dependencies/version.rb +1 -1
- data/lib/iruby/dependencies.rb +3 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51fc39fcfb589ece989811211d7a8ef6679cc4a5
|
4
|
+
data.tar.gz: e471e7aa05596d47f4bb50e468cf17d08a87a998
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 759d54ba40e218a198e7ec560c2926f31ff9fb7f0471d2fd1f95072580823ceea5c5ff55945591218e2229e16680b2f823bae81a889e1839648c3bd190fae62d
|
7
|
+
data.tar.gz: 66019111a11b111797bd78a7cef4b9532c611e7245b19265a688ab7d2f251eaa486a7bcf539c435a409a25ce61a91496709bea9450226e99576ad20058acf91e
|
data/README.md
CHANGED
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'bundler'
|
2
|
+
|
3
|
+
# a minor modification of the code from the
|
4
|
+
# bundler-unload gem
|
5
|
+
module Bundler
|
6
|
+
ORIGINAL_SPECS = []
|
7
|
+
|
8
|
+
class << self
|
9
|
+
def unload!
|
10
|
+
if ORIGINAL_SPECS.empty?
|
11
|
+
ORIGINAL_SPECS.concat Gem::Specification._all
|
12
|
+
end
|
13
|
+
|
14
|
+
@load = @definition = nil
|
15
|
+
ENV.replace ORIGINAL_ENV
|
16
|
+
Gem::Specification.all = ORIGINAL_SPECS
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
data/lib/iruby/dependencies.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
require 'bundler'
|
2
1
|
require 'iruby/dependencies/dsl'
|
3
2
|
require 'iruby/dependencies/config'
|
3
|
+
require 'iruby/dependencies/unload'
|
4
4
|
require 'iruby/dependencies/version'
|
5
5
|
|
6
6
|
# require 'mypki' if requested so it is an active gem
|
@@ -22,6 +22,8 @@ module IRuby
|
|
22
22
|
|
23
23
|
# this code is taken from bundler/inline with small changes
|
24
24
|
def self.dependencies verbose: false, &gemfile
|
25
|
+
Bundler.unload!
|
26
|
+
|
25
27
|
Bundler.ui = verbose ? Bundler::UI::Shell.new : nil
|
26
28
|
MyPKI.init if Bundler.settings['dependencies.mypki']
|
27
29
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iruby-dependencies
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kyle King
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: iruby
|
@@ -84,6 +84,7 @@ files:
|
|
84
84
|
- lib/iruby/dependencies.rb
|
85
85
|
- lib/iruby/dependencies/config.rb
|
86
86
|
- lib/iruby/dependencies/dsl.rb
|
87
|
+
- lib/iruby/dependencies/unload.rb
|
87
88
|
- lib/iruby/dependencies/version.rb
|
88
89
|
homepage: https://github.com/kylekyle/iruby-dependencies
|
89
90
|
licenses: []
|