bundix 2.0.9 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bundix/source.rb +6 -2
- data/lib/bundix/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 488d15d60c84d0135b90f862ff64711cf8f813c7
|
4
|
+
data.tar.gz: 6362dd81f99f13083cd471e66b47f7492b285ff0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b946fd4555b93beefd8f6d744606cad04ac9a56a10691e4fe02b4cd223e03d3febde7ef81fe7a11c3880faaebfb6673c98f27c25d8cc14e4d5d2e025d4ad178f
|
7
|
+
data.tar.gz: 346c78b7a0d56fccccce86cfccf07d30bb58622036ebb97d1e2af8ff88279c0ada0b48b24607e2e203db0ec60ed73c35178375e704232e7d638ade88306e9750
|
data/lib/bundix/source.rb
CHANGED
@@ -18,6 +18,7 @@ class Bundix
|
|
18
18
|
|
19
19
|
def nix_prefetch_url(*args)
|
20
20
|
sh(NIX_PREFETCH_URL, '--type', 'sha256', *args)
|
21
|
+
.force_encoding('UTF-8')
|
21
22
|
rescue
|
22
23
|
nil
|
23
24
|
end
|
@@ -52,8 +53,11 @@ class Bundix
|
|
52
53
|
|
53
54
|
def fetch_remote_hash(spec, remote)
|
54
55
|
uri = "#{remote}/gems/#{spec.name}-#{spec.version}.gem"
|
55
|
-
nix_prefetch_url(uri)
|
56
|
-
|
56
|
+
result = nix_prefetch_url(uri).force_encoding('UTF-8')
|
57
|
+
result[SHA256_32]
|
58
|
+
rescue => e
|
59
|
+
puts "ignoring error during fetching: #{e}"
|
60
|
+
puts e.backtrace
|
57
61
|
nil
|
58
62
|
end
|
59
63
|
|
data/lib/bundix/version.rb
CHANGED
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bundix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael 'manveru' Fellinger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.11'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.11'
|
27
27
|
description: Creates Nix packages from Gemfiles.
|
@@ -32,9 +32,9 @@ extensions: []
|
|
32
32
|
extra_rdoc_files: []
|
33
33
|
files:
|
34
34
|
- bin/bundix
|
35
|
-
- lib/bundix.rb
|
36
35
|
- lib/bundix/source.rb
|
37
36
|
- lib/bundix/version.rb
|
37
|
+
- lib/bundix.rb
|
38
38
|
homepage: https://github.com/manveru/bundix
|
39
39
|
licenses:
|
40
40
|
- MIT
|
@@ -45,17 +45,17 @@ require_paths:
|
|
45
45
|
- lib
|
46
46
|
required_ruby_version: !ruby/object:Gem::Requirement
|
47
47
|
requirements:
|
48
|
-
- -
|
48
|
+
- - '>='
|
49
49
|
- !ruby/object:Gem::Version
|
50
50
|
version: '0'
|
51
51
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- -
|
53
|
+
- - '>='
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '0'
|
56
56
|
requirements: []
|
57
57
|
rubyforge_project:
|
58
|
-
rubygems_version: 2.
|
58
|
+
rubygems_version: 2.0.14.1
|
59
59
|
signing_key:
|
60
60
|
specification_version: 4
|
61
61
|
summary: Creates Nix packages from Gemfiles.
|