bibliothecary 6.8.7 → 6.8.8

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: b57d105d77f298ae9422bf7b707a60f8d19665de761fa75945d1970d0b822772
4
- data.tar.gz: c50de4684a5a94f5b5cc384767bc010649b9c2343c66096a1b372802ffafc730
3
+ metadata.gz: 9a942d8a210e009f17a359b9ead9049423c091d9609d6d1770eb79fc47fb16d6
4
+ data.tar.gz: bd1f6a3f7d3652981ee46002fe3466480c9bf9d08c7dc1dbd5bffab3698e21a0
5
5
  SHA512:
6
- metadata.gz: e60f8a2e31b858dd28c9ea21b21385d0eb461116af15933d3efa94613385c359158ef1da431de3b28005bcc9b25701a942b3a347c862c440fc0d1b398e3501ac
7
- data.tar.gz: 5a2d8a89194ef61b59c1dc3ec9735a53cf12eccc74b312433d7cef78897d47cde1799aa203e6f89d184da0fb5388d87117f95b87a0e6d8f2ebcec6ddc4aa715d
6
+ metadata.gz: af583cc0c0dea0e280a3b28c30a9bbda9413331e76d1bfd0eba6908d209b43893cd2677acdb6113d498833514b0656cd57a0014f4949a48d1d276a629838acba
7
+ data.tar.gz: e8f49049133561c3fdfeb48d692736e407457943f19668251f75c5db93fae1276540754e7f0a6b0986f80f303e81a7df72ecb1dbf03c48f05d81b0e1f2057922
@@ -1 +1 @@
1
- 2.5.1
1
+ 2.6.6
@@ -1,11 +1,10 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.5.1
3
+ - 2.6.6
4
4
  cache: bundler
5
5
  before_install:
6
6
  - gem update --system
7
- - gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
8
- - gem install bundler -v '< 2'
7
+ - gem install bundler
9
8
  script:
10
9
  - bundle exec rake spec && bundle exec codeclimate-test-reporter
11
10
  notifications:
@@ -28,7 +28,6 @@ Gem::Specification.new do |spec|
28
28
  spec.add_dependency "strings-ansi"
29
29
  spec.add_dependency "strings"
30
30
 
31
- spec.add_development_dependency "bundler", "~> 1.11"
32
31
  spec.add_development_dependency "pry"
33
32
  spec.add_development_dependency "rake", "~> 12.0"
34
33
  spec.add_development_dependency "rspec", "~> 3.0"
@@ -7,12 +7,13 @@ module Bibliothecary
7
7
  include Bibliothecary::Analyser
8
8
 
9
9
  GPM_REGEXP = /^(.+)\s+(.+)$/
10
- GOMOD_REGEX = /^(.+)\s+(.+)$/
11
- GOMOD_IGNORABLE_REGEX = /^(module\s|require\s+\(|go\s|\))/m
10
+ GOMOD_REGEX = /^(require\s+)?(.+)\s+(.+)$/
11
+ GOMOD_IGNORABLE_REGEX = /^(\/\/|module\s|go\s|exclude\s|replace\s|require\s+\(|\))/m
12
12
  GOSUM_REGEX = /^(.+)\s+(.+)\s+(.+)$/
13
13
 
14
14
  def self.mapping
15
15
  {
16
+ # Go Modules (recommended)
16
17
  match_filename("go.mod") => {
17
18
  kind: 'manifest',
18
19
  parser: :parse_go_mod
@@ -21,6 +22,7 @@ module Bibliothecary
21
22
  kind: 'lockfile',
22
23
  parser: :parse_go_sum
23
24
  },
25
+ # Glide (unmaintained: https://github.com/Masterminds/glide#go-modules)
24
26
  match_filename("glide.yaml") => {
25
27
  kind: 'manifest',
26
28
  parser: :parse_glide_yaml
@@ -29,6 +31,7 @@ module Bibliothecary
29
31
  kind: 'lockfile',
30
32
  parser: :parse_glide_lockfile
31
33
  },
34
+ # Godep (unmaintained: https://github.com/tools/godep)
32
35
  match_filename("Godeps/Godeps.json") => {
33
36
  kind: 'manifest',
34
37
  parser: :parse_godep_json
@@ -37,6 +40,7 @@ module Bibliothecary
37
40
  kind: 'manifest',
38
41
  parser: :parse_gpm
39
42
  },
43
+ # Govendor (unmaintained: https://github.com/kardianos/govendor)
40
44
  match_filename("vendor/manifest") => {
41
45
  kind: 'manifest',
42
46
  parser: :parse_gb_manifest
@@ -45,6 +49,7 @@ module Bibliothecary
45
49
  kind: 'manifest',
46
50
  parser: :parse_govendor
47
51
  },
52
+ # Go dep (deprecated: https://github.com/golang/dep#dep)
48
53
  match_filename("Gopkg.toml") => {
49
54
  kind: 'manifest',
50
55
  parser: :parse_dep_toml
@@ -112,8 +117,8 @@ module Bibliothecary
112
117
  next if line.match(GOMOD_IGNORABLE_REGEX)
113
118
  if match = line.gsub(/(\/\/(.*))/, '').match(GOMOD_REGEX)
114
119
  deps << {
115
- name: match[1].strip,
116
- requirement: match[2].strip || '*',
120
+ name: match[2].strip,
121
+ requirement: match[3].strip || '*',
117
122
  type: 'runtime'
118
123
  }
119
124
  end
@@ -1,3 +1,3 @@
1
1
  module Bibliothecary
2
- VERSION = "6.8.7"
2
+ VERSION = "6.8.8"
3
3
  end
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: 6.8.7
4
+ version: 6.8.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Nesbitt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-13 00:00:00.000000000 Z
11
+ date: 2020-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: toml-rb
@@ -136,20 +136,6 @@ dependencies:
136
136
  - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
- - !ruby/object:Gem::Dependency
140
- name: bundler
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - "~>"
144
- - !ruby/object:Gem::Version
145
- version: '1.11'
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - "~>"
151
- - !ruby/object:Gem::Version
152
- version: '1.11'
153
139
  - !ruby/object:Gem::Dependency
154
140
  name: pry
155
141
  requirement: !ruby/object:Gem::Requirement
@@ -302,7 +288,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
302
288
  - !ruby/object:Gem::Version
303
289
  version: '0'
304
290
  requirements: []
305
- rubygems_version: 3.0.4
291
+ rubygems_version: 3.0.3
306
292
  signing_key:
307
293
  specification_version: 4
308
294
  summary: Find and parse manifests