ruby_audit 1.2.0 → 1.3.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
- SHA1:
3
- metadata.gz: a37c98041a8f0f867ac25c7d9294035612adf005
4
- data.tar.gz: 6315f1277b519e00030dde661ce471eba79366d4
2
+ SHA256:
3
+ metadata.gz: 529f49e7e88c457cb4c29a4aace7564b7753d2252541d61a4383110e6a7e8b48
4
+ data.tar.gz: cd616a710742a529c9782f032980e3d6c350aab2e6bff3c683b5886d2123e39e
5
5
  SHA512:
6
- metadata.gz: c5f92890f816a5a5c496081c097051fd7d889db1503fc245893db3029efb7e0da1a1282428f1da45f1db28c09d0c81143e4583d9e42f1655ed0ddea8cf33323c
7
- data.tar.gz: 2814899f17162b460a87751ee2639cf12150c4302de7d9f71e60da7f2e31c4c935fa3ed96b397934ddac6161147cfd8942ceded675999b65056dd8b71e210633
6
+ metadata.gz: ce3763a7c324c47adf80a8558e6b3f11ed579730f7ebca3a726e40bd3a23ee98928c7f3dc6c3fc63823010a9cdc2c56672c4e58a6cb2a6cf1118ef7bfcbcf9d5
7
+ data.tar.gz: aab0478eb61ab75e739d6197394cf0bd6dac75bf96f66c94cd115329a510f82f0917837374d226266cec043383759b59ce3cebd904d0df9858532354cc5b140c
@@ -1 +1 @@
1
- 2.4.2
1
+ 2.7.1
@@ -1,10 +1,9 @@
1
1
  language: ruby
2
2
  cache: bundler
3
3
  rvm:
4
- - 2.1.10
5
- - 2.2.8
6
- - 2.3.5
7
- - 2.4.2
4
+ - 2.5.8
5
+ - 2.6.6
6
+ - 2.7.1
8
7
  branches:
9
8
  only:
10
9
  - master
@@ -5,6 +5,29 @@ This project adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [1.3.0] - 2020-07-01
9
+
10
+ ### Added
11
+
12
+ * Added Ruby 2.5, 2.6, and 2.7 to the Travis matrix
13
+ * Added the ability to ignore an advisory by its GHSA identifier
14
+
15
+ ### Changed
16
+
17
+ * Bumped the bundler-audit version to 0.7
18
+ * Bumped the Ruby version for development to 2.7.1
19
+ * Bumped the Pry version for development to 0.13
20
+ * Bumped the Rake version for development to 13
21
+ * Bumped the Rspec version for development to 3.9
22
+ * Bumped the RuboCop version for development to 0.86
23
+ * Bumped the Timecop verison for development to 0.9
24
+ * RuboCop fixes
25
+
26
+ ### Removed
27
+
28
+ * Removed Ruby 2.1 through 2.4 from the Travis matrix
29
+ * Removed the explicit Bundler dependency for development, since it is now included with RubyGems
30
+
8
31
  ## [1.2.0] - 2017-09-21
9
32
 
10
33
  ### Added
@@ -43,7 +66,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
43
66
 
44
67
  * Initial Release
45
68
 
46
- [Unreleased]: https://github.com/civisanalytics/ruby_audit/compare/v1.2.0...HEAD
69
+ [Unreleased]: https://github.com/civisanalytics/ruby_audit/compare/v1.3.0...HEAD
70
+ [1.3.0]: https://github.com/civisanalytics/ruby_audit/compare/v1.2.0...v1.3.0
47
71
  [1.2.0]: https://github.com/civisanalytics/ruby_audit/compare/v1.1.0...v1.2.0
48
72
  [1.1.0]: https://github.com/civisanalytics/ruby_audit/compare/v1.0.1...v1.1.0
49
73
  [1.0.1]: https://github.com/civisanalytics/ruby_audit/compare/v1.0.0...v1.0.1
data/README.md CHANGED
@@ -51,7 +51,8 @@ $ ruby-audit check -n
51
51
  ## Development
52
52
 
53
53
  After checking out the repo, run `bin/setup` to install dependencies.
54
- Then, run `rake spec` to run the tests.
54
+ You'll also want to run `git submodule update --init` to populate the ruby-advisory-db
55
+ submodule used for testing. Then, run `rake spec` to run the tests.
55
56
  You can also run `bin/console` for an interactive prompt that will allow you to experiment.
56
57
 
57
58
  To install this gem onto your local machine, run `bundle exec rake install`.
@@ -55,6 +55,7 @@ module RubyAudit
55
55
  def check_for_stale_database
56
56
  database = Database.new
57
57
  return unless database.size == 89
58
+
58
59
  # bundler-audit 0.4.0 comes bundled with an old verison of
59
60
  # ruby-advisory-db that has 89 advisories and NO advisories for Ruby
60
61
  # or RubyGems. If #size == 89, the database has never been updated.
@@ -59,10 +59,7 @@ module RubyAudit
59
59
 
60
60
  specs.each do |spec|
61
61
  @database.send("check_#{type}".to_sym, spec) do |advisory|
62
- unless ignore.include?(advisory.cve_id) ||
63
- ignore.include?(advisory.osvdb_id)
64
- yield UnpatchedGem.new(spec, advisory)
65
- end
62
+ yield UnpatchedGem.new(spec, advisory) unless ignore.intersect?(advisory.identifiers.to_set)
66
63
  end
67
64
  end
68
65
  end
@@ -1,3 +1,3 @@
1
1
  module RubyAudit
2
- VERSION = '1.2.0'.freeze
2
+ VERSION = '1.3.0'.freeze
3
3
  end
@@ -1,11 +1,11 @@
1
- lib = File.expand_path('../lib', __FILE__)
1
+ lib = File.expand_path('lib', __dir__)
2
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
  require 'ruby_audit/version'
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'ruby_audit'
7
7
  spec.version = RubyAudit::VERSION
8
- spec.authors = ['Jeff Cousens']
8
+ spec.authors = ['Jeff Cousens, Mike Saelim']
9
9
  spec.email = ['opensource@civisanalytics.com']
10
10
 
11
11
  spec.summary = 'Checks Ruby and RubyGems against known vulnerabilities.'
@@ -22,11 +22,10 @@ Gem::Specification.new do |spec|
22
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
23
  spec.require_paths = ['lib']
24
24
 
25
- spec.add_dependency 'bundler-audit', '~> 0.6.0'
26
- spec.add_development_dependency 'bundler', '~> 1.11'
27
- spec.add_development_dependency 'pry', '~> 0.10.3'
28
- spec.add_development_dependency 'rake', '~> 11.2'
29
- spec.add_development_dependency 'rspec', '~> 3.5'
30
- spec.add_development_dependency 'rubocop', '~> 0.50.0'
31
- spec.add_development_dependency 'timecop', '~> 0.8.0'
25
+ spec.add_dependency 'bundler-audit', '~> 0.7.0'
26
+ spec.add_development_dependency 'pry', '~> 0.13.0'
27
+ spec.add_development_dependency 'rake', '~> 13.0'
28
+ spec.add_development_dependency 'rspec', '~> 3.9'
29
+ spec.add_development_dependency 'rubocop', '~> 0.86.0'
30
+ spec.add_development_dependency 'timecop', '~> 0.9.1'
32
31
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_audit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
- - Jeff Cousens
7
+ - Jeff Cousens, Mike Saelim
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-21 00:00:00.000000000 Z
11
+ date: 2020-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler-audit
@@ -16,98 +16,84 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.6.0
19
+ version: 0.7.0
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
- version: 0.6.0
27
- - !ruby/object:Gem::Dependency
28
- name: bundler
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '1.11'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '1.11'
26
+ version: 0.7.0
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: pry
43
29
  requirement: !ruby/object:Gem::Requirement
44
30
  requirements:
45
31
  - - "~>"
46
32
  - !ruby/object:Gem::Version
47
- version: 0.10.3
33
+ version: 0.13.0
48
34
  type: :development
49
35
  prerelease: false
50
36
  version_requirements: !ruby/object:Gem::Requirement
51
37
  requirements:
52
38
  - - "~>"
53
39
  - !ruby/object:Gem::Version
54
- version: 0.10.3
40
+ version: 0.13.0
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: rake
57
43
  requirement: !ruby/object:Gem::Requirement
58
44
  requirements:
59
45
  - - "~>"
60
46
  - !ruby/object:Gem::Version
61
- version: '11.2'
47
+ version: '13.0'
62
48
  type: :development
63
49
  prerelease: false
64
50
  version_requirements: !ruby/object:Gem::Requirement
65
51
  requirements:
66
52
  - - "~>"
67
53
  - !ruby/object:Gem::Version
68
- version: '11.2'
54
+ version: '13.0'
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: rspec
71
57
  requirement: !ruby/object:Gem::Requirement
72
58
  requirements:
73
59
  - - "~>"
74
60
  - !ruby/object:Gem::Version
75
- version: '3.5'
61
+ version: '3.9'
76
62
  type: :development
77
63
  prerelease: false
78
64
  version_requirements: !ruby/object:Gem::Requirement
79
65
  requirements:
80
66
  - - "~>"
81
67
  - !ruby/object:Gem::Version
82
- version: '3.5'
68
+ version: '3.9'
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: rubocop
85
71
  requirement: !ruby/object:Gem::Requirement
86
72
  requirements:
87
73
  - - "~>"
88
74
  - !ruby/object:Gem::Version
89
- version: 0.50.0
75
+ version: 0.86.0
90
76
  type: :development
91
77
  prerelease: false
92
78
  version_requirements: !ruby/object:Gem::Requirement
93
79
  requirements:
94
80
  - - "~>"
95
81
  - !ruby/object:Gem::Version
96
- version: 0.50.0
82
+ version: 0.86.0
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: timecop
99
85
  requirement: !ruby/object:Gem::Requirement
100
86
  requirements:
101
87
  - - "~>"
102
88
  - !ruby/object:Gem::Version
103
- version: 0.8.0
89
+ version: 0.9.1
104
90
  type: :development
105
91
  prerelease: false
106
92
  version_requirements: !ruby/object:Gem::Requirement
107
93
  requirements:
108
94
  - - "~>"
109
95
  - !ruby/object:Gem::Version
110
- version: 0.8.0
96
+ version: 0.9.1
111
97
  description: RubyAudit checks your current version of Ruby and RubyGems against known
112
98
  security vulnerabilities (CVEs), alerting you if you are using an insecure version.
113
99
  It complements bundler-audit, providing complete coverage for your Ruby stack.
@@ -159,8 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
159
145
  - !ruby/object:Gem::Version
160
146
  version: '0'
161
147
  requirements: []
162
- rubyforge_project:
163
- rubygems_version: 2.6.13
148
+ rubygems_version: 3.1.2
164
149
  signing_key:
165
150
  specification_version: 4
166
151
  summary: Checks Ruby and RubyGems against known vulnerabilities.