bundix 2.0.1 → 2.0.2

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/bundix.rb +4 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 17bec9a341ac4202d92ab7bcfaeeee6ba70a54a3
4
- data.tar.gz: 0f4896aa5c2836078f1e12a78fef45290faeb099
3
+ metadata.gz: e21d775a762390b29b9554944009e63c9855c843
4
+ data.tar.gz: 6c1417b070551121bf61613792ba9c294a06f364
5
5
  SHA512:
6
- metadata.gz: 3097c7aff82b2790fba2d1bf52ac20e4f725b0e0f3086ff418b268169e90b69328f59c97df39b32c126d5467430feacd1f9ac8116ea6910e0ea9295f180c2163
7
- data.tar.gz: 93ddef5e2e0bd12d4434e4339a4f2d0715e67bd5b82c2cefdef548e71da37ca936bf418425d3a894496b811c9f42f66b4f28cb782f1a445b451d7b0b4a357af4
6
+ metadata.gz: b671bca22c2d48e67f425ce43e3a0422aeacafe95d668e0f046e4adee8a213f93c8711afd525297b6a14802e1ee0c86a2d606070285d5e05b3ee3b5ede7710ce
7
+ data.tar.gz: 3b754d9f6127e7e0d3c4f1a0091768346935a8a38ba7cd34e86dac4c53d939cd4a83311f11ba7e3d2b7a80aebe65b81304b73e4319fd548c10834d6d0359045a
data/lib/bundix.rb CHANGED
@@ -7,7 +7,7 @@ require 'pp'
7
7
  require_relative 'bundix/source'
8
8
 
9
9
  class Bundix
10
- VERSION = '2.0.1'
10
+ VERSION = '2.0.2'
11
11
 
12
12
  NIX_INSTANTIATE = 'nix-instantiate'
13
13
  NIX_PREFETCH_URL = 'nix-prefetch-url'
@@ -58,9 +58,10 @@ class Bundix
58
58
  end
59
59
 
60
60
  def parse_gemset
61
- return {} unless File.file?(options[:gemset])
61
+ path = File.expand_path(options[:gemset])
62
+ return {} unless File.file?(path)
62
63
  json = Bundix.sh(
63
- NIX_INSTANTIATE, '--eval', '-E', "builtins.toJSON(import #{options[:gemset]})")
64
+ NIX_INSTANTIATE, '--eval', '-E', "builtins.toJSON(import #{path})")
64
65
  JSON.parse(json.strip.gsub(/\\"/, '"')[1..-2])
65
66
  end
66
67
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundix
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael 'manveru' Fellinger