bibliothecary 5.6.2 → 6.0.0

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
  SHA256:
3
- metadata.gz: be6b3116c97d68a5f4311d19d5acf98618e5da7498c618ac297e1a56fe771dad
4
- data.tar.gz: b087f87e42174c28681cc176fe13a68b2e980d5f2f8b10af848c53ce6c4f8dea
3
+ metadata.gz: 935cbd8787482396ccc60336f384f873e3a8b00776f90c65d6371d210ed4db62
4
+ data.tar.gz: e44a452c0d267f0be2be07fd283819fc920dd6e6ec72f1e571373bbccc2edd65
5
5
  SHA512:
6
- metadata.gz: db123853b0991e4a98bfbb0319e6592f7c6e36e424aaa771f4c3f71a31b175cf3c88a50dc447bfd73f71d1128ffcf505378316eaf6d71bfe6d8f890597d990be
7
- data.tar.gz: e54ef5a1f40c8a797a6a0b4d811cac33eb2d80f18bf7cd87c3699c609ec6b7d32db6d861a093eba79d04e0ae5a7f6f5e46d3d1c54016268589551bb071032e6a
6
+ metadata.gz: 120b368ed812d188291666c23a3611ac9e6e6448aa7acd65f207148db2ed585664f3e649f92f6803858d6c89dc823a9c291178e2a39381f737dafe317a0e43a9
7
+ data.tar.gz: 2a8afdf930ef8b387682c67580428744040e1e5b5deab1dfc4737c256d3dc06515b0b3aeb4af25160b523ac7583c76d343445cf86383820dada6fa9eb6d56985
data/.travis.yml CHANGED
@@ -1,7 +1,9 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.3.3
4
- - 2.4.0
3
+ - 2.4.2
4
+ - 2.5.0
5
5
  cache: bundler
6
+ before_install:
7
+ - gem update --system
6
8
  script:
7
9
  - bundle exec rake spec && bundle exec codeclimate-test-reporter
@@ -39,7 +39,7 @@ module Bibliothecary
39
39
  json.map do |dependency|
40
40
  {
41
41
  name: dependency['name'],
42
- version: dependency['version'],
42
+ requirement: dependency['version'],
43
43
  type: dependency["type"]
44
44
  }
45
45
  end
@@ -25,7 +25,7 @@ module Bibliothecary
25
25
  dependencies.map do |dependency|
26
26
  {
27
27
  name: dependency[0],
28
- version: dependency[1],
28
+ requirement: dependency[1],
29
29
  type: "runtime"
30
30
  }
31
31
  end
@@ -31,7 +31,7 @@ module Bibliothecary
31
31
  dep = dependency.match(REQUIRE_REGEXP)
32
32
  {
33
33
  name: dep[1],
34
- version: dep[2] || '*',
34
+ requirement: dep[2] || '*',
35
35
  type: name.downcase
36
36
  }
37
37
  end
@@ -25,7 +25,7 @@ module Bibliothecary
25
25
  json.map do |name, version|
26
26
  {
27
27
  name: name,
28
- version: version,
28
+ requirement: version,
29
29
  type: "runtime"
30
30
  }
31
31
  end
@@ -38,7 +38,7 @@ module Bibliothecary
38
38
  json.map do |name, info|
39
39
  {
40
40
  name: name,
41
- version: info['version'],
41
+ requirement: info['version'],
42
42
  type: "runtime"
43
43
  }
44
44
  end
@@ -64,7 +64,7 @@ module Bibliothecary
64
64
  next unless name =~ (/[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+(\.[A-Za-z0-9_-])?\:[A-Za-z0-9_-]/)
65
65
  {
66
66
  name: name,
67
- version: dependency["version"],
67
+ requirement: dependency["version"],
68
68
  type: dependency["type"]
69
69
  }
70
70
  end.compact
@@ -52,7 +52,7 @@ module Bibliothecary
52
52
  manifest.packages.locate('package').map do |dependency|
53
53
  {
54
54
  name: dependency.id,
55
- version: dependency.version,
55
+ requirement: dependency.version,
56
56
  type: 'runtime'
57
57
  }
58
58
  end
@@ -65,7 +65,7 @@ module Bibliothecary
65
65
  packages = manifest.locate('ItemGroup/PackageReference').map do |dependency|
66
66
  {
67
67
  name: dependency.Include,
68
- version: dependency.Version,
68
+ requirement: dependency.Version,
69
69
  type: 'runtime'
70
70
  }
71
71
  end
@@ -79,7 +79,7 @@ module Bibliothecary
79
79
  manifest.package.metadata.dependencies.locate('dependency').map do |dependency|
80
80
  {
81
81
  name: dependency.id,
82
- version: dependency.attributes[:version] || '*',
82
+ requirement: dependency.attributes[:version] || '*',
83
83
  type: 'runtime'
84
84
  }
85
85
  end
@@ -93,7 +93,7 @@ module Bibliothecary
93
93
  packages = lines.select { |line| package_version_re.match(line) }.map { |line| package_version_re.match(line) }.map do |match|
94
94
  {
95
95
  name: match[:name].strip,
96
- version: match[:version],
96
+ requirement: match[:version],
97
97
  type: 'runtime'
98
98
  }
99
99
  end
@@ -20,7 +20,7 @@ module Bibliothecary
20
20
  version = "#{dependency['version']['lowerBound']} - #{dependency['version']['upperBound']}"
21
21
  {
22
22
  name: name,
23
- version: version,
23
+ requirement: version,
24
24
  type: 'runtime'
25
25
  }
26
26
  end
@@ -1,3 +1,3 @@
1
1
  module Bibliothecary
2
- VERSION = "5.6.2"
2
+ VERSION = "6.0.0"
3
3
  end
data/lib/sdl_parser.rb CHANGED
@@ -11,7 +11,7 @@ class SdlParser
11
11
  parse.children('dependency').inject([]) do |deps, dep|
12
12
  deps.push({
13
13
  name: dep.value,
14
- version: dep.attribute('version') || ">= 0",
14
+ requirement: dep.attribute('version') || ">= 0",
15
15
  type: type,
16
16
  })
17
17
  end.uniq
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bibliothecary
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.6.2
4
+ version: 6.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Nesbitt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-03 00:00:00.000000000 Z
11
+ date: 2018-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: toml-rb