iron_dome 0.1.0 → 0.1.2
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 +4 -4
- data/README.md +3 -3
- data/lib/iron_dome/reader.rb +1 -1
- data/lib/iron_dome/requester.rb +1 -1
- data/lib/iron_dome/version.rb +1 -1
- metadata +3 -4
- data/iron_dome.gemspec +0 -38
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 553265fff91bc6fb67adeb16e89182b2895f7692934bb0416e57a3ad2c32b138
|
|
4
|
+
data.tar.gz: e89d7904609d52a8e51d45c053f67fa1a99c1adb1c9724068a5ebc825c082566
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d7d5067dc1b8323a6564f8b1aae41f16c35f9ea2a3afb4fd0d679a973f36dabd0013c9e98a860f15fce66041cc0e58fc188815a8c3046a2c8aa06eb374018366
|
|
7
|
+
data.tar.gz: 1363e9613e691ea42c028222f9878d0072c528c9777794cb8a19c9bd841c046266016ba207a05b1bd5620a36bd57c194218873cf81733a05ee9c42c0a5807e54
|
data/README.md
CHANGED
|
@@ -4,20 +4,20 @@
|
|
|
4
4
|
A SCA scanner for ruby applications, read the gemfile.lock verify vulnerabilities use osv database.
|
|
5
5
|
|
|
6
6
|
## Installation
|
|
7
|
-
On root dir of the gem run:
|
|
8
7
|
|
|
9
|
-
$ gem build
|
|
10
8
|
$ gem install iron_dome
|
|
11
9
|
|
|
12
10
|
## Usage
|
|
13
11
|
|
|
14
12
|
After install the gem just run the follow command on main directory of your application
|
|
15
|
-
this directory must have the Gemfile.lock
|
|
13
|
+
this directory must have the Gemfile.lock, you can also run on a ci/cd pipeline.
|
|
16
14
|
|
|
17
15
|
$ iron_dome
|
|
18
16
|
|
|
19
17
|
## Output Example
|
|
18
|
+
|
|
20
19
|

|
|
20
|
+
|
|
21
21
|
## Development
|
|
22
22
|
|
|
23
23
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/lib/iron_dome/reader.rb
CHANGED
|
@@ -41,7 +41,7 @@ module IronDome
|
|
|
41
41
|
def system_output(results)
|
|
42
42
|
# method to call module to output the results on current shell.
|
|
43
43
|
if results.empty?
|
|
44
|
-
puts "No
|
|
44
|
+
puts "No vulnerabilities founded".colorize(:green)
|
|
45
45
|
return
|
|
46
46
|
end
|
|
47
47
|
|
data/lib/iron_dome/requester.rb
CHANGED
|
@@ -5,7 +5,7 @@ require "faraday"
|
|
|
5
5
|
require "concurrent"
|
|
6
6
|
|
|
7
7
|
module IronDome
|
|
8
|
-
# The requester class
|
|
8
|
+
# The requester class responsible to deal with osv database request and result.
|
|
9
9
|
class Requester
|
|
10
10
|
URL = "https://api.osv.dev/v1/query"
|
|
11
11
|
FARADAY_OPTIONS = { headers: { "Content-Type" => "application/json" } }.freeze
|
data/lib/iron_dome/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: iron_dome
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jose Augusto
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-02-
|
|
11
|
+
date: 2024-02-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: colorize
|
|
@@ -83,7 +83,6 @@ files:
|
|
|
83
83
|
- Rakefile
|
|
84
84
|
- exe/iron_dome
|
|
85
85
|
- image.png
|
|
86
|
-
- iron_dome.gemspec
|
|
87
86
|
- lib/iron_dome.rb
|
|
88
87
|
- lib/iron_dome/output.rb
|
|
89
88
|
- lib/iron_dome/reader.rb
|
|
@@ -116,5 +115,5 @@ requirements: []
|
|
|
116
115
|
rubygems_version: 3.5.6
|
|
117
116
|
signing_key:
|
|
118
117
|
specification_version: 4
|
|
119
|
-
summary: A vulnerability scanner for dependencies
|
|
118
|
+
summary: A vulnerability scanner for ruby projects dependencies
|
|
120
119
|
test_files: []
|
data/iron_dome.gemspec
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
require_relative "lib/iron_dome/version"
|
|
4
|
-
|
|
5
|
-
Gem::Specification.new do |spec|
|
|
6
|
-
spec.name = "iron_dome"
|
|
7
|
-
spec.version = IronDome::VERSION
|
|
8
|
-
spec.authors = ["Jose Augusto"]
|
|
9
|
-
spec.email = ["joseaugusto.881@outlook.com"]
|
|
10
|
-
|
|
11
|
-
spec.summary = "A vulnerability scanner for dependencies."
|
|
12
|
-
spec.homepage = "https://github.com/JAugusto42/iron_dome"
|
|
13
|
-
spec.license = "MIT"
|
|
14
|
-
spec.required_ruby_version = ">= 2.6.0"
|
|
15
|
-
|
|
16
|
-
spec.metadata["homepage_uri"] = spec.homepage
|
|
17
|
-
spec.metadata["source_code_uri"] = "https://github.com/JAugusto42/iron_dome"
|
|
18
|
-
spec.metadata["changelog_uri"] = "https://github.com/JAugusto42/iron_dome/CHANGELOG.md"
|
|
19
|
-
|
|
20
|
-
spec.executables << "iron_dome"
|
|
21
|
-
|
|
22
|
-
# Specify which files should be added to the gem when it is released.
|
|
23
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
|
24
|
-
spec.files = Dir.chdir(__dir__) do
|
|
25
|
-
`git ls-files -z`.split("\x0").reject do |f|
|
|
26
|
-
(File.expand_path(f) == __FILE__) ||
|
|
27
|
-
f.start_with?(*%w[bin/ test/ spec/ features/ .git appveyor Gemfile])
|
|
28
|
-
end
|
|
29
|
-
end
|
|
30
|
-
spec.bindir = "exe"
|
|
31
|
-
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
|
32
|
-
spec.require_paths = ["lib"]
|
|
33
|
-
|
|
34
|
-
spec.add_dependency "colorize", "~> 1.1"
|
|
35
|
-
spec.add_dependency "concurrent-ruby", "~> 1.2"
|
|
36
|
-
spec.add_dependency "faraday", "~> 2.9"
|
|
37
|
-
spec.add_dependency "rake", "~> 13.0"
|
|
38
|
-
end
|