yavdb 0.1.2 → 0.2.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 88f69241f60d5d1d44adc23cba9bfb76a3e107a5
4
- data.tar.gz: c9ff608510d6b73a537d480a78269f0cf0e476a0
3
+ metadata.gz: 0456b740ca7498c1a4cc0d0a755177b712f39f29
4
+ data.tar.gz: e387eb2621c70d002a549eabf15b7f9d66c95cd2
5
5
  SHA512:
6
- metadata.gz: dd85c616f9e807f7aa8bc7d3e93de9bda508afb0bb7acf17ae6574a7606accf81724357e345a4934212470fe91e572c363721e683cf2cc8f4c25175d1b39cfec
7
- data.tar.gz: cb744c53e895aa9358ed94b2bc5f6f6fc31d6fbf69b4bf4a115638de09549cd76b3d67686ab9e1eb89a87f5513f989fc55640645f4d019dad57432de2573fae2
6
+ metadata.gz: 4afd27e8f088b8547bad61a60b27c6eea08adf860a1d45cd8da9fbab06019e0392a79900022c497f70478dd8dd4788fbcda07f14d6826d191a1143dfee7670e9
7
+ data.tar.gz: ca580fb02920012aa20376aff408d1dd6a2cff60167d58294232123991c837c61f1f44cb1fdeb8c1fc28cf95d414f2cc305500664b719f79597a67015304cf36
data/.circleci/config.yml CHANGED
@@ -4,45 +4,52 @@ jobs:
4
4
  build-lint-test:
5
5
  working_directory: ~/yavdb
6
6
  docker:
7
- - image: circleci/ruby:2.3.7
7
+ - image: circleci/ruby:2.3.7
8
8
  steps:
9
- - checkout
10
-
11
- - name: Install Bundler Version
12
- type: shell
13
- command: gem install bundler -v 1.16
14
-
15
- - name: Restore cache
16
- type: cache-restore
17
- key: yavdb-{{ checksum "Gemfile.lock" }}
18
-
19
- - name: Bundle Install
20
- type: shell
21
- command: bundle install --path /tmp/vendor/bundle
22
-
23
- - name: Save bundler cache
24
- type: cache-save
25
- key: yavdb-{{ checksum "Gemfile.lock" }}
26
- paths:
27
- - /tmp/vendor/bundle
28
- - ~/.yavdb/cache
29
-
30
- - name: Save yavdb cache
31
- type: cache-save
32
- key: yavdb-cache-1
33
- paths:
34
- - ~/.yavdb/cache
35
-
36
- - name: Rubocop
37
- type: shell
38
- command: bundle exec rubocop
39
-
40
- - name: Tests
41
- type: shell
42
- command: bundle exec rake
9
+ - checkout
10
+
11
+ - name: Install Bundler Version
12
+ type: shell
13
+ command: gem install bundler -v 1.16
14
+
15
+ - name: Restore gem cache
16
+ type: cache-restore
17
+ keys:
18
+ - gem-yavdb-{{ checksum "Gemfile.lock" }}
19
+ - gem-yavdb
20
+
21
+ - name: Restore yavdb cache
22
+ type: cache-restore
23
+ keys:
24
+ - crawler-yavdb-cache-1
25
+ - crawler-yavdb-cache
26
+
27
+ - name: Bundle Install
28
+ type: shell
29
+ command: bundle install --path /tmp/vendor/bundle
30
+
31
+ - name: Save bundler cache
32
+ type: cache-save
33
+ key: gem-yavdb-{{ checksum "Gemfile.lock" }}
34
+ paths:
35
+ - /tmp/vendor/bundle
36
+
37
+ - name: Rubocop
38
+ type: shell
39
+ command: bundle exec rubocop
40
+
41
+ - name: Tests
42
+ type: shell
43
+ command: bundle exec rake
44
+
45
+ - name: Save yavdb cache
46
+ type: cache-save
47
+ key: crawler-yavdb-cache-1
48
+ paths:
49
+ - ~/.yavdb/cache
43
50
 
44
51
  workflows:
45
52
  version: 2
46
53
  test-and-publish:
47
54
  jobs:
48
- - build-lint-test
55
+ - build-lint-test
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- yavdb (0.1.2)
4
+ yavdb (0.2.0)
5
5
  json (~> 2.1)
6
6
  kramdown (~> 1.17)
7
7
  oga (~> 2.15)
@@ -102,8 +102,10 @@ module YAVDB
102
102
  vulnerable_versions = advisory_page.css('.custom-affected-versions').text.strip
103
103
  vulnerable_versions = if vulnerable_versions.empty? || vulnerable_versions == 'ALL'
104
104
  ['*']
105
- else
105
+ elsif ['maven', 'nuget', 'pypi'].include?(package_manager)
106
106
  [vulnerable_versions]
107
+ else
108
+ [vulnerable_versions.gsub(',', ' && ')]
107
109
  end
108
110
 
109
111
  sidebar_data = parse_side_bar(advisory_page)
data/lib/yavdb/version.rb CHANGED
@@ -16,6 +16,6 @@
16
16
 
17
17
  module YAVDB
18
18
 
19
- VERSION = '0.1.2'
19
+ VERSION = '0.2.0'
20
20
 
21
21
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yavdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Fernandes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-29 00:00:00.000000000 Z
11
+ date: 2018-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler