license_finder 6.8.1 → 6.8.2

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: b09e0ff0c5e115f24278e8d4e759562c10c8abf7c70920622c535ae21649c1cb
4
- data.tar.gz: a357081ca1404d7f2575c90035f4b564ff5cc5036965f5ce071506767088df8d
3
+ metadata.gz: 6280c04b3b05215777ec6e3db87cdff9766dfb6d53a699142710817c09b41335
4
+ data.tar.gz: 3643643ad824644d608e4e6015a34c0de2892c217efe603d7fa66ec937bdeff9
5
5
  SHA512:
6
- metadata.gz: 0f67f90622514f6a7bae4dc3a501558ae59aec3ed8c221a0255d5106b956d836c1b98bcc8fbcd7bfd22e1023d30223c0b04088da162b79eccf7b37541a455730
7
- data.tar.gz: 8dd8c22b3adfd01aa9ddeb91504ce5b9103d429e5ef61cade5f9c30477a5d68497ac192d640005e6c82ed2640d6faa45aa7775f7db7a1c9a0605d49b1c0a372e
6
+ metadata.gz: fc5928a7331d5012b13a87d0fb218fe8141c561e63ba8230e453a65bd206339d9cb593724e810ecd46f7dce231ab16d466df44a119bae1a4d64f00c0518dddaa
7
+ data.tar.gz: 28fbde267804e39d141ad54cd71df26693b2857870be8a5d37a84a04202f25db6398e4e8f216f302e17ecf52daf5810f3db7682712c7a9a1249fb93544ff06a3
@@ -1,3 +1,5 @@
1
+ # [6.8.2] / 2020-09-08
2
+
1
3
  # [6.8.1] / 2020-08-13
2
4
 
3
5
  # [6.8.0] / 2020-08-06
@@ -912,3 +914,4 @@ Bugfixes:
912
914
  [6.7.0]: https://github.com/pivotal/LicenseFinder/compare/v6.6.2...v6.7.0
913
915
  [6.8.0]: https://github.com/pivotal/LicenseFinder/compare/v6.7.0...v6.8.0
914
916
  [6.8.1]: https://github.com/pivotal/LicenseFinder/compare/v6.8.0...v6.8.1
917
+ [6.8.2]: https://github.com/pivotal/LicenseFinder/compare/v6.8.1...v6.8.2
data/Dockerfile CHANGED
@@ -159,7 +159,7 @@ RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 4F4EA0AAE5
159
159
  apt-get update &&\
160
160
  apt-get install -y php7.4-cli &&\
161
161
  php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" &&\
162
- php -r "if (hash_file('sha384', 'composer-setup.php') === 'e5325b19b381bfd88ce90a5ddb7823406b2a38cff6bb704b0acc289a09c8128d4a8ce2bbafcd1fcbdc38666422fe2806') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" &&\
162
+ php -r "if (hash_file('sha384', 'composer-setup.php') === '8a6138e2a05a8c28539c9f0fb361159823655d7ad2deecb371b04a83966c61223adc522b0189079e3e9e277cd72b8897') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" &&\
163
163
  php composer-setup.php &&\
164
164
  php -r "unlink('composer-setup.php');" &&\
165
165
  mv composer.phar /usr/bin/composer
data/VERSION CHANGED
@@ -1 +1 @@
1
- 6.8.1
1
+ 6.8.2
@@ -10,8 +10,8 @@ module LicenseFinder
10
10
  SPECIAL_DOUBLE_QUOTES = /[“”„«»]/.freeze
11
11
  ALPHABET_ORDERED_LIST = /\\\([a-z]\\\)\\\s/.freeze
12
12
  ALPHABET_ORDERED_LIST_OPTIONAL = '(\([a-z]\)\s)?'
13
- LIST_BULLETS = /(\d{1,2}\\\.|\\\*)\\\s/.freeze
14
- LIST_BULLETS_OPTIONAL = '(\d{1,2}.|\*)?\s*'
13
+ LIST_BULLETS = /(\d{1,2}\\\.|\\\*|\\\-)\\\s/.freeze
14
+ LIST_BULLETS_OPTIONAL = '(\d{1,2}.|\*|\-)?\s*'
15
15
  NEWLINE_CHARACTER = /\n+/.freeze
16
16
  QUOTE_COMMENT_CHARACTER = /^\s*\>+/.freeze
17
17
  ESCAPED_QUOTES = /\\\"/.freeze
@@ -38,7 +38,6 @@ module LicenseFinder
38
38
 
39
39
  def dep_version
40
40
  @dep_version ||= begin
41
- version_prefix_re = Regexp.new('^v')
42
41
  dep_version_unformatted.sub(version_prefix_re, '')
43
42
  end
44
43
  end
@@ -81,10 +80,6 @@ module LicenseFinder
81
80
  dep =~ word_re
82
81
  end
83
82
 
84
- def word_re
85
- @word_re ||= Regexp.new('^\w+$')
86
- end
87
-
88
83
  def dep_repo_valid?
89
84
  set?(dep_repo_unformatted) &&
90
85
  URI.parse(dep_repo)
@@ -96,12 +91,24 @@ module LicenseFinder
96
91
  if dep_version =~ version_re
97
92
  Gem::Version.correct?(dep_version)
98
93
  else
99
- dep_version =~ word_re
94
+ dep_version =~ word_dot_re
100
95
  end
101
96
  end
102
97
 
103
98
  def version_re
104
99
  @version_re ||= Regexp.new('\d+\.\d+\.\d+')
105
100
  end
101
+
102
+ def version_prefix_re
103
+ @version_prefix_re ||= Regexp.new('^v')
104
+ end
105
+
106
+ def word_re
107
+ @word_re ||= Regexp.new('^\w+$')
108
+ end
109
+
110
+ def word_dot_re
111
+ @word_dot_re ||= Regexp.new('^[.\w]+$')
112
+ end
106
113
  end
107
114
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: license_finder
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.8.1
4
+ version: 6.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Collins
@@ -27,7 +27,7 @@ authors:
27
27
  autorequire:
28
28
  bindir: bin
29
29
  cert_chain: []
30
- date: 2020-08-13 00:00:00.000000000 Z
30
+ date: 2020-09-08 00:00:00.000000000 Z
31
31
  dependencies:
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: bundler