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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 370efee234a34d8ad9ab88aed001e704d441537d
4
- data.tar.gz: 17c025336bd3ece28316d1d53017de6e77c39ee5
3
+ metadata.gz: 51fc39fcfb589ece989811211d7a8ef6679cc4a5
4
+ data.tar.gz: e471e7aa05596d47f4bb50e468cf17d08a87a998
5
5
  SHA512:
6
- metadata.gz: 60bd017f31894d8c332d44bea4d6d998836ccbf216f48159d8d8782b5145d2081bf49f82ef987a20fa4b6b43be88d372cba5496133451f86847b7cde154ea63e
7
- data.tar.gz: 6e4c13572fe3b92d2eca41f8d58cf25843c70a0b0550b8cd21daa8cd6975ac74ca16d136a29cae6d1569d664a29f24393fc3b4e6d82b4b15fb9e1b46d03a8e1d
6
+ metadata.gz: 759d54ba40e218a198e7ec560c2926f31ff9fb7f0471d2fd1f95072580823ceea5c5ff55945591218e2229e16680b2f823bae81a889e1839648c3bd190fae62d
7
+ data.tar.gz: 66019111a11b111797bd78a7cef4b9532c611e7245b19265a688ab7d2f251eaa486a7bcf539c435a409a25ce61a91496709bea9450226e99576ad20058acf91e
data/README.md CHANGED
@@ -11,6 +11,10 @@ dependencies do
11
11
  end
12
12
  ```
13
13
 
14
+ ## RubyGems Compatability
15
+
16
+ There are issues with **rerunning** dependency blocks on machine with RubyGem versions greater than 2.4.5.1.
17
+
14
18
  ## Installation
15
19
 
16
20
  ```bash
@@ -24,7 +24,7 @@ module IRuby
24
24
  end
25
25
 
26
26
  definition = builder.to_definition nil, true
27
- definition.resolve_remotely!
27
+ #definition.resolve
28
28
 
29
29
  definition.specs.each do |spec|
30
30
  if commands = config.delete(spec.name)
@@ -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
@@ -1,5 +1,5 @@
1
1
  module IRuby
2
2
  module Dependencies
3
- VERSION = "2.0.2"
3
+ VERSION = "2.0.3"
4
4
  end
5
5
  end
@@ -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.2
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-12 00:00:00.000000000 Z
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: []