ecs_bundler 1.0.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 +7 -0
- data/.document +5 -0
- data/.ecsrc.json +5 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/Gemfile +14 -0
- data/Gemfile.lock +139 -0
- data/LICENSE.txt +20 -0
- data/README.md +62 -0
- data/Rakefile +48 -0
- data/VERSION +1 -0
- data/bin/ecs_bundler +14 -0
- data/ecs_bundler.gemspec +98 -0
- data/lib/ecs_bundler/bundler_scanner/repository_finder.rb +75 -0
- data/lib/ecs_bundler/bundler_scanner.rb +33 -0
- data/lib/ecs_bundler/config.rb +37 -0
- data/lib/ecs_bundler/project_specification.rb +29 -0
- data/lib/ecs_bundler/rest_client.rb +58 -0
- data/lib/ecs_bundler/scan.rb +32 -0
- data/lib/ecs_bundler/version.rb +6 -0
- data/lib/ecs_bundler.rb +63 -0
- data/spec/fixtures/.ecsrc.json +5 -0
- data/spec/fixtures/config.json +5 -0
- data/spec/lib/ecs_bundler/bundler_scanner/repository_finder_spec.rb +15 -0
- data/spec/lib/ecs_bundler/bundler_scanner_spec.rb +44 -0
- data/spec/lib/ecs_bundler/config_spec.rb +36 -0
- data/spec/lib/ecs_bundler/project_specification_spec.rb +43 -0
- data/spec/lib/ecs_bundler/rest_client_spec.rb +51 -0
- data/spec/lib/ecs_bundler/scan_spec.rb +38 -0
- data/spec/lib/ecs_bundler_spec.rb +50 -0
- data/spec/spec_helper.rb +39 -0
- metadata +218 -0
@@ -0,0 +1,32 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module ECSBundler
|
4
|
+
# Scan model
|
5
|
+
class Scan
|
6
|
+
API_PATH = '/api/v1'.freeze
|
7
|
+
CREATE_PATH = '/scans'.freeze
|
8
|
+
attr_accessor :id, :data
|
9
|
+
attr_reader :message
|
10
|
+
|
11
|
+
def initialize(data)
|
12
|
+
@data = data
|
13
|
+
end
|
14
|
+
|
15
|
+
def save
|
16
|
+
create unless id
|
17
|
+
self
|
18
|
+
end
|
19
|
+
|
20
|
+
private
|
21
|
+
|
22
|
+
def create
|
23
|
+
ECSBundler.rest_client.post("#{API_PATH}#{CREATE_PATH}", data){ |_, response, message| @id, @message = response['scanId'], message }
|
24
|
+
end
|
25
|
+
|
26
|
+
class << self
|
27
|
+
def create(data)
|
28
|
+
Scan.new(data).save
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
data/lib/ecs_bundler.rb
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module ECSBundler
|
4
|
+
autoload :BundlerScanner, 'ecs_bundler/bundler_scanner'
|
5
|
+
autoload :Config, 'ecs_bundler/config'
|
6
|
+
autoload :ProjectSpecification, 'ecs_bundler/project_specification'
|
7
|
+
autoload :RestClient, 'ecs_bundler/rest_client'
|
8
|
+
autoload :Scan, 'ecs_bundler/scan'
|
9
|
+
autoload :VERSION, 'ecs_bundler/version'
|
10
|
+
class BundlerScanner
|
11
|
+
autoload :RepositoryFinder, 'ecs_bundler/bundler_scanner/repository_finder'
|
12
|
+
end
|
13
|
+
|
14
|
+
class << self
|
15
|
+
# Return config class
|
16
|
+
def config
|
17
|
+
@@config ||= Config.new
|
18
|
+
end
|
19
|
+
|
20
|
+
# Return rest-client class
|
21
|
+
def rest_client(options = {})
|
22
|
+
@@rest_client ||= RestClient.new(options)
|
23
|
+
end
|
24
|
+
|
25
|
+
# Run cli application
|
26
|
+
def run_cli
|
27
|
+
require 'cli'
|
28
|
+
settings = ::CLI.new do
|
29
|
+
version(ECSBundler::VERSION)
|
30
|
+
option :apiKey, short: :k, description: 'api key'
|
31
|
+
option :userName, short: :u, description: 'user name'
|
32
|
+
option :url, description: 'Base url'
|
33
|
+
option :project, short: :p, description: 'Project name'
|
34
|
+
option :config, short: :c, description: 'Config path'
|
35
|
+
end.parse!
|
36
|
+
run(settings.to_h.compact)
|
37
|
+
end
|
38
|
+
|
39
|
+
# Run application
|
40
|
+
def run(options = {})
|
41
|
+
config.load(options[:config] ? options[:config] : nil)
|
42
|
+
options = config.data.merge(options)
|
43
|
+
validate_options!(options)
|
44
|
+
rest_client(options)
|
45
|
+
scan = Scan.create(BundlerScanner.run)
|
46
|
+
if scan.id
|
47
|
+
print "ecs-bundler successfully transferred scan to server: scanId => #{scan.id}\n"
|
48
|
+
else
|
49
|
+
print "ecs-bundler error transferring scan: #{scan.message}\n"
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
private
|
54
|
+
|
55
|
+
# validate options
|
56
|
+
def validate_options!(options)
|
57
|
+
if !options[:userName] || !options[:apiKey]
|
58
|
+
raise "Please provide a 'userName' and 'apiKey' property in credentials file('#{Config::FILE_NAME}')."
|
59
|
+
end
|
60
|
+
raise "Please provide a 'project' property in credentials file('#{Config::FILE_NAME}')." unless options[:project]
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
RSpec.describe ECSBundler::BundlerScanner::RepositoryFinder do
|
6
|
+
let(:url) { 'https://github.com/eacg-gmbh/ecs-bundler' }
|
7
|
+
let(:repository_finder) { ECSBundler::BundlerScanner::RepositoryFinder }
|
8
|
+
|
9
|
+
describe '.url' do
|
10
|
+
it { expect(repository_finder.url(OpenStruct.new(name: 'actioncable'))).to eq 'https://github.com/rails/rails' }
|
11
|
+
it { expect(repository_finder.url(OpenStruct.new(name: 'test', homepage: url))).to eq url }
|
12
|
+
it { expect(repository_finder.url(OpenStruct.new(name: 'test', homepage: '', description: "description with url #{url} ."))).to eq url }
|
13
|
+
it { expect(repository_finder.url(OpenStruct.new(name: 'test', homepage: '', description: ''))).to be_nil }
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
RSpec.describe ECSBundler::BundlerScanner do
|
6
|
+
let(:project_specification) { ECSBundler::ProjectSpecification.new }
|
7
|
+
let(:scanner) { ECSBundler::BundlerScanner }
|
8
|
+
|
9
|
+
describe '.run' do
|
10
|
+
it 'return correct result' do
|
11
|
+
expect_any_instance_of(ECSBundler::ProjectSpecification).to receive(:runtime_dependencies).and_return([])
|
12
|
+
allow(ECSBundler.config).to receive(:[]).with(:project).and_return('Test')
|
13
|
+
result = scanner.run
|
14
|
+
expect(result).to include(project: 'Test', module: 'Test', moduleId: 'bundler:Test')
|
15
|
+
expect(result).to have_key(:dependencies)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
describe '.specification_to_h' do
|
20
|
+
it do
|
21
|
+
expect(project_specification).to receive(:runtime_dependencies).and_return([])
|
22
|
+
allow(ECSBundler.config).to receive(:[]).with(:project).and_return('actioncable')
|
23
|
+
result = scanner.send(:specification_to_h, project_specification)
|
24
|
+
expect(result).to include(
|
25
|
+
name: 'actioncable',
|
26
|
+
key: 'bundler:actioncable',
|
27
|
+
description: nil,
|
28
|
+
private: true,
|
29
|
+
licenses: [],
|
30
|
+
homepageUrl: nil,
|
31
|
+
repoUrl: 'https://github.com/rails/rails',
|
32
|
+
versions: [ECSBundler::VERSION],
|
33
|
+
dependencies: []
|
34
|
+
)
|
35
|
+
end
|
36
|
+
|
37
|
+
it 'call specification_to_h to dependency spec' do
|
38
|
+
allow_any_instance_of(ECSBundler::ProjectSpecification).to receive(:runtime_dependencies).and_return([])
|
39
|
+
expect(project_specification).to receive(:runtime_dependencies).and_return([OpenStruct.new(to_spec: ECSBundler::ProjectSpecification.new)])
|
40
|
+
allow(ECSBundler.config).to receive(:[]).with(:project).and_return('actioncable')
|
41
|
+
expect(scanner.send(:specification_to_h, project_specification)[:dependencies].count).to eq(1)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
RSpec.describe ECSBundler::Config do
|
6
|
+
let(:config) { ECSBundler::Config.new }
|
7
|
+
|
8
|
+
describe '#new' do
|
9
|
+
it { expect(config.data).to be_an_instance_of(Hash) }
|
10
|
+
%i[url project apiKey userName userAgent].each do |key|
|
11
|
+
it { expect(config.data).to have_key(key) }
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
describe '#load' do
|
16
|
+
it do
|
17
|
+
config.load(RSpec.root.join('fixtures'))
|
18
|
+
expect(config[:userName]).to eq('userName')
|
19
|
+
end
|
20
|
+
|
21
|
+
it do
|
22
|
+
config.load(RSpec.root.join('fixtures/config.json'))
|
23
|
+
expect(config[:userName]).to eq('userNameConf')
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
describe '#[]' do
|
28
|
+
it { expect(config[:userAgent]).to match(ECSBundler.name) }
|
29
|
+
it { expect(config[:userAgent]).to eq(config.data[:userAgent]) }
|
30
|
+
end
|
31
|
+
|
32
|
+
describe '#get_default_options' do
|
33
|
+
it { expect(config.send(:get_default_options)).to be_an_instance_of(Hash) }
|
34
|
+
it { expect(config.send(:get_default_options)).to eq(config.data) }
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
RSpec.describe ECSBundler::ProjectSpecification do
|
6
|
+
let(:project_specification) { ECSBundler::ProjectSpecification.new }
|
7
|
+
|
8
|
+
describe '#name' do
|
9
|
+
it 'eq rails application name' do
|
10
|
+
without_partial_double_verification do
|
11
|
+
rails = double
|
12
|
+
stub_const 'Rails', rails
|
13
|
+
expect(rails).to receive(:application).and_return(ECSBundler::ProjectSpecification.new)
|
14
|
+
expect(ECSBundler::ProjectSpecification).to receive(:parent).and_return(ECSBundler)
|
15
|
+
expect(project_specification.name).to eq(ECSBundler.name)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
it do
|
20
|
+
expect(ECSBundler.config).to receive(:[]).with(:project).and_return('Test *&^project')
|
21
|
+
expect(project_specification.name).to eq('Test-project')
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
%i[description license homepage].each do |key|
|
26
|
+
describe "##{key}" do
|
27
|
+
it { expect(project_specification.send(key)).to be_nil }
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
describe '#version' do
|
32
|
+
it { expect(project_specification.version).to eq(ECSBundler::VERSION) }
|
33
|
+
end
|
34
|
+
|
35
|
+
describe '#runtime_dependencies' do
|
36
|
+
it do
|
37
|
+
bundler = double
|
38
|
+
expect(Bundler).to receive(:load).and_return(bundler)
|
39
|
+
expect(bundler).to receive(:current_dependencies).and_return('result')
|
40
|
+
expect(project_specification.runtime_dependencies).to eq('result')
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
RSpec.describe ECSBundler::Scan do
|
6
|
+
let(:options) { { userAgent: 'userAgent', apiKey: 'apiKey', userName: 'userName', url: 'url' } }
|
7
|
+
let(:rest_client) { ECSBundler::RestClient.new(options) }
|
8
|
+
|
9
|
+
describe '#new' do
|
10
|
+
it { expect(rest_client.options).to eq(options) }
|
11
|
+
end
|
12
|
+
|
13
|
+
describe '#headers' do
|
14
|
+
it { expect(rest_client.headers).to be_an_instance_of(Hash) }
|
15
|
+
it { expect(rest_client.headers).to include(content_type: :json, accept: :json, 'User-Agent' => 'userAgent', 'X-ApiKey' => 'apiKey', 'X-User' => 'userName') }
|
16
|
+
end
|
17
|
+
|
18
|
+
describe '#respond_to_missing?' do
|
19
|
+
it { expect(rest_client.respond_to?(:get)).to be_truthy }
|
20
|
+
it { expect(rest_client.respond_to?(:post)).to be_truthy }
|
21
|
+
it { expect(rest_client.respond_to?(:poster)).to be_falsey }
|
22
|
+
end
|
23
|
+
|
24
|
+
describe '#method_missing' do
|
25
|
+
it do
|
26
|
+
expect(::RestClient::Request).to receive(:execute).with(method: :get, url: 'url/get', payload: nil, headers: rest_client.headers)
|
27
|
+
rest_client.get('/get')
|
28
|
+
end
|
29
|
+
|
30
|
+
it do
|
31
|
+
data = { test: 1 }
|
32
|
+
expect(::RestClient::Request).to receive(:execute).with(method: :post, url: 'url/post', payload: data.to_json, headers: rest_client.headers)
|
33
|
+
rest_client.post('/post', data)
|
34
|
+
end
|
35
|
+
|
36
|
+
it { expect { rest_client.check('/post') }.to raise_error(NoMethodError) }
|
37
|
+
|
38
|
+
it do
|
39
|
+
body = { 'info' => 'info message', 'messages' => [{ 'message' => 'message#1' }] }
|
40
|
+
response = double
|
41
|
+
allow(response).to receive(:code).and_return(400)
|
42
|
+
expect(response).to receive(:body).and_return(body.to_json)
|
43
|
+
expect(::RestClient::Request).to receive(:execute).and_yield(response)
|
44
|
+
rest_client.post('/post', {}) do |result_response, parsed_response, message|
|
45
|
+
expect(result_response).to eq response
|
46
|
+
expect(parsed_response).to eq body
|
47
|
+
expect(message).to eq '400 Bad Request, info message, message#1'
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
RSpec.describe ECSBundler::Scan do
|
6
|
+
let(:data) { { name: 'test name' } }
|
7
|
+
let(:scan) { ECSBundler::Scan.new(data) }
|
8
|
+
|
9
|
+
describe '#new' do
|
10
|
+
it { expect(scan.data).to eq(data) }
|
11
|
+
end
|
12
|
+
|
13
|
+
describe '#save' do
|
14
|
+
after { scan.save }
|
15
|
+
|
16
|
+
it { expect(scan).to receive(:create) }
|
17
|
+
it do
|
18
|
+
scan.id = 1
|
19
|
+
expect(scan).to_not receive(:create)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
describe '#create' do
|
24
|
+
it 'call rest-client post' do
|
25
|
+
without_partial_double_verification do
|
26
|
+
expect(ECSBundler.rest_client).to receive(:post).with("#{ECSBundler::Scan::API_PATH}#{ECSBundler::Scan::CREATE_PATH}", data)
|
27
|
+
scan.send(:create)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
describe '.create' do
|
33
|
+
it 'create instance and call save method' do
|
34
|
+
expect_any_instance_of(ECSBundler::Scan).to receive(:save)
|
35
|
+
ECSBundler::Scan.create(data)
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
require 'cli'
|
5
|
+
|
6
|
+
RSpec.describe ECSBundler do
|
7
|
+
describe '.config' do
|
8
|
+
it { expect(ECSBundler.config).to be_an_instance_of(ECSBundler::Config) }
|
9
|
+
end
|
10
|
+
|
11
|
+
describe '.rest_client' do
|
12
|
+
it { expect(ECSBundler.rest_client).to be_an_instance_of(ECSBundler::RestClient) }
|
13
|
+
end
|
14
|
+
|
15
|
+
describe '.run_cli' do
|
16
|
+
it 'call run with no options' do
|
17
|
+
expect_any_instance_of(::CLI).to receive(:parse!).and_return(userName: nil)
|
18
|
+
expect(ECSBundler).to receive(:run).with({})
|
19
|
+
ECSBundler.run_cli
|
20
|
+
end
|
21
|
+
|
22
|
+
it 'call run with options' do
|
23
|
+
expect_any_instance_of(::CLI).to receive(:parse!).and_return(userName: 'userName')
|
24
|
+
expect(ECSBundler).to receive(:run).with(userName: 'userName')
|
25
|
+
ECSBundler.run_cli
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
describe '.run' do
|
30
|
+
it do
|
31
|
+
expect(ECSBundler::BundlerScanner).to receive(:run).and_return({})
|
32
|
+
expect(ECSBundler::Scan).to receive(:create).and_return(OpenStruct.new(id: 1))
|
33
|
+
expect(ECSBundler).to receive(:print).with(/successfully.*scanId => 1/)
|
34
|
+
ECSBundler.run(config: RSpec.root.join('fixtures'))
|
35
|
+
end
|
36
|
+
|
37
|
+
it do
|
38
|
+
expect(ECSBundler::BundlerScanner).to receive(:run).and_return({})
|
39
|
+
expect(ECSBundler::Scan).to receive(:create).and_return(OpenStruct.new(id: nil, message: 'MESSAGE'))
|
40
|
+
expect(ECSBundler).to receive(:print).with(/error.*scan: MESSAGE/)
|
41
|
+
ECSBundler.run(config: RSpec.root.join('fixtures'))
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
describe '.validate_options!' do
|
46
|
+
it { expect { ECSBundler.send(:validate_options!, {}) }.to raise_error RuntimeError, /Please provide a 'userName' and 'apiKey'/ }
|
47
|
+
it { expect { ECSBundler.send(:validate_options!, userName: 'userName', apiKey: 'apiKey') }.to raise_error RuntimeError, /Please provide a 'project' property/ }
|
48
|
+
it { expect { ECSBundler.send(:validate_options!, userName: 'userName', apiKey: 'apiKey', project: 'project') }.to_not raise_error }
|
49
|
+
end
|
50
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'simplecov'
|
4
|
+
|
5
|
+
module ::RSpec
|
6
|
+
module_function
|
7
|
+
|
8
|
+
def root
|
9
|
+
@spec_root ||= Pathname.new(__dir__)
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
SimpleCov.start do
|
14
|
+
load_profile 'test_frameworks'
|
15
|
+
|
16
|
+
at_exit do
|
17
|
+
SimpleCov.result.format!
|
18
|
+
puts "Click to open report file://#{RSpec.root.join('../').realpath}/coverage/index.html#_AllFiles"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
require 'bundler/setup'
|
23
|
+
require 'ecs_bundler'
|
24
|
+
|
25
|
+
RSpec.configure do |config|
|
26
|
+
# Enable flags like --only-failures and --next-failure
|
27
|
+
config.example_status_persistence_file_path = '.rspec_status'
|
28
|
+
|
29
|
+
# Disable RSpec exposing methods globally on `Module` and `main`
|
30
|
+
config.disable_monkey_patching!
|
31
|
+
|
32
|
+
config.expect_with :rspec do |c|
|
33
|
+
c.syntax = :expect
|
34
|
+
end
|
35
|
+
|
36
|
+
config.mock_with :rspec do |mocks|
|
37
|
+
mocks.verify_partial_doubles = true
|
38
|
+
end
|
39
|
+
end
|
metadata
ADDED
@@ -0,0 +1,218 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ecs_bundler
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Anatolii Varanytsia
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-06-07 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: cli
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.3.1
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 1.3.1
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rest-client
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 2.0.2
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 2.0.2
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: jeweler
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 2.3.5
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 2.3.5
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rdoc
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 5.1.0
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 5.1.0
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '3.4'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '3.4'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rspec-mocks
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rubocop
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: shoulda
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: simplecov
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
description: Module for Bundler allowing the transfer of package dependencies to ECS
|
154
|
+
for further legal and vulnerability analysis. See https://ecs.eacg.de for a detailed
|
155
|
+
service description.
|
156
|
+
email: prizrack13@mail.ru
|
157
|
+
executables:
|
158
|
+
- ecs_bundler
|
159
|
+
extensions: []
|
160
|
+
extra_rdoc_files:
|
161
|
+
- LICENSE.txt
|
162
|
+
- README.md
|
163
|
+
files:
|
164
|
+
- ".document"
|
165
|
+
- ".ecsrc.json"
|
166
|
+
- ".rspec"
|
167
|
+
- ".travis.yml"
|
168
|
+
- Gemfile
|
169
|
+
- Gemfile.lock
|
170
|
+
- LICENSE.txt
|
171
|
+
- README.md
|
172
|
+
- Rakefile
|
173
|
+
- VERSION
|
174
|
+
- bin/ecs_bundler
|
175
|
+
- ecs_bundler.gemspec
|
176
|
+
- lib/ecs_bundler.rb
|
177
|
+
- lib/ecs_bundler/bundler_scanner.rb
|
178
|
+
- lib/ecs_bundler/bundler_scanner/repository_finder.rb
|
179
|
+
- lib/ecs_bundler/config.rb
|
180
|
+
- lib/ecs_bundler/project_specification.rb
|
181
|
+
- lib/ecs_bundler/rest_client.rb
|
182
|
+
- lib/ecs_bundler/scan.rb
|
183
|
+
- lib/ecs_bundler/version.rb
|
184
|
+
- spec/fixtures/.ecsrc.json
|
185
|
+
- spec/fixtures/config.json
|
186
|
+
- spec/lib/ecs_bundler/bundler_scanner/repository_finder_spec.rb
|
187
|
+
- spec/lib/ecs_bundler/bundler_scanner_spec.rb
|
188
|
+
- spec/lib/ecs_bundler/config_spec.rb
|
189
|
+
- spec/lib/ecs_bundler/project_specification_spec.rb
|
190
|
+
- spec/lib/ecs_bundler/rest_client_spec.rb
|
191
|
+
- spec/lib/ecs_bundler/scan_spec.rb
|
192
|
+
- spec/lib/ecs_bundler_spec.rb
|
193
|
+
- spec/spec_helper.rb
|
194
|
+
homepage: http://github.com/eacg-gmbh/ecs-bundler
|
195
|
+
licenses:
|
196
|
+
- MIT
|
197
|
+
metadata: {}
|
198
|
+
post_install_message:
|
199
|
+
rdoc_options: []
|
200
|
+
require_paths:
|
201
|
+
- lib
|
202
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
203
|
+
requirements:
|
204
|
+
- - ">="
|
205
|
+
- !ruby/object:Gem::Version
|
206
|
+
version: '0'
|
207
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
208
|
+
requirements:
|
209
|
+
- - ">="
|
210
|
+
- !ruby/object:Gem::Version
|
211
|
+
version: '0'
|
212
|
+
requirements: []
|
213
|
+
rubyforge_project:
|
214
|
+
rubygems_version: 2.6.9
|
215
|
+
signing_key:
|
216
|
+
specification_version: 4
|
217
|
+
summary: Module for Bundler allowing the transfer of package dependencies to ECS
|
218
|
+
test_files: []
|