miriamtech-gocd 0.2.3 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/.rubocop.yml +70 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +56 -0
- data/Rakefile +5 -5
- data/bin/rubocop +29 -0
- data/lib/miriamtech/gocd.rb +2 -2
- data/lib/miriamtech/gocd/artifacts.rb +11 -3
- data/lib/miriamtech/gocd/docker.rb +14 -6
- data/lib/miriamtech/gocd/dsl.rb +7 -1
- data/lib/miriamtech/gocd/images.rb +4 -5
- data/lib/miriamtech/gocd/paths.rb +7 -2
- data/lib/miriamtech/gocd/tasks.rb +27 -9
- data/lib/miriamtech/gocd/version.rb +1 -1
- data/miriamtech-gocd.gemspec +21 -17
- metadata +45 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82b62a9341f4185b558cd884679d276a927590e9bf21441d5d48ba3a76008263
|
4
|
+
data.tar.gz: c65cf31ead5aeb01ac0203e9868e6567df69b276ebab508ecd4cf22cb510f5be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29cd1f5d5eb989ab00257bbd0723c1467ac37e4bede60cf6d5f44b4333dd993f1cc0aa03ec5db834729426c890cb694065d91abf1c7ec7ad6ce740ed5ff49f0a
|
7
|
+
data.tar.gz: b3f67cbbf2ccafab37e63315bf5d589b55a8d9df92ead65cc53cfb87a4e1ab9028067f61d40fe288ad222ef0a45d849ad2feb1a258307c968a999be22da98dcb
|
data/.gitignore
CHANGED
data/.rubocop.yml
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
require:
|
2
|
+
- rubocop-minitest
|
3
|
+
|
4
|
+
AllCops:
|
5
|
+
Exclude:
|
6
|
+
- '**/bin/*'
|
7
|
+
- '**/schema.rb'
|
8
|
+
- 'node_modules/**/*'
|
9
|
+
- 'vendor/bundle/**/*'
|
10
|
+
|
11
|
+
Layout/EmptyLineAfterGuardClause:
|
12
|
+
Enabled: false
|
13
|
+
|
14
|
+
Layout/MultilineArrayLineBreaks:
|
15
|
+
Enabled: true
|
16
|
+
|
17
|
+
Layout/MultilineHashKeyLineBreaks:
|
18
|
+
Enabled: true
|
19
|
+
|
20
|
+
Layout/MultilineMethodArgumentLineBreaks:
|
21
|
+
Enabled: true
|
22
|
+
|
23
|
+
Lint/AssignmentInCondition:
|
24
|
+
Enabled: false
|
25
|
+
|
26
|
+
Lint/UnusedBlockArgument:
|
27
|
+
AutoCorrect: false
|
28
|
+
|
29
|
+
Lint/UnusedMethodArgument:
|
30
|
+
AutoCorrect: false
|
31
|
+
|
32
|
+
Metrics/AbcSize:
|
33
|
+
Enabled: false
|
34
|
+
|
35
|
+
Metrics/CyclomaticComplexity:
|
36
|
+
Enabled: false
|
37
|
+
|
38
|
+
Metrics/ClassLength:
|
39
|
+
Exclude:
|
40
|
+
- test/**/*
|
41
|
+
|
42
|
+
Metrics/MethodLength:
|
43
|
+
Exclude:
|
44
|
+
- test/**/*
|
45
|
+
|
46
|
+
Naming/HeredocDelimiterNaming:
|
47
|
+
Enabled: false
|
48
|
+
|
49
|
+
Style/Documentation:
|
50
|
+
Enabled: false
|
51
|
+
|
52
|
+
Style/FrozenStringLiteralComment:
|
53
|
+
Enabled: false
|
54
|
+
|
55
|
+
Style/HashSyntax:
|
56
|
+
Exclude:
|
57
|
+
- Rakefile
|
58
|
+
|
59
|
+
Style/SymbolArray:
|
60
|
+
Exclude:
|
61
|
+
- Rakefile
|
62
|
+
|
63
|
+
Style/TrailingCommaInArguments:
|
64
|
+
EnforcedStyleForMultiline: comma
|
65
|
+
|
66
|
+
Style/TrailingCommaInArrayLiteral:
|
67
|
+
EnforcedStyleForMultiline: comma
|
68
|
+
|
69
|
+
Style/TrailingCommaInHashLiteral:
|
70
|
+
EnforcedStyleForMultiline: comma
|
data/Gemfile
CHANGED
data/Gemfile.lock
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
miriamtech-gocd (0.2.8)
|
5
|
+
rake (>= 10.0)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
ast (2.4.2)
|
11
|
+
diff-lcs (1.4.4)
|
12
|
+
minitest (5.11.3)
|
13
|
+
parallel (1.20.1)
|
14
|
+
parser (3.0.1.0)
|
15
|
+
ast (~> 2.4.1)
|
16
|
+
rainbow (3.0.0)
|
17
|
+
rake (13.0.3)
|
18
|
+
regexp_parser (2.1.1)
|
19
|
+
rexml (3.2.5)
|
20
|
+
rspec-expectations (3.9.2)
|
21
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
22
|
+
rspec-support (~> 3.9.0)
|
23
|
+
rspec-mocks (3.9.1)
|
24
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
25
|
+
rspec-support (~> 3.9.0)
|
26
|
+
rspec-support (3.9.3)
|
27
|
+
rubocop (1.13.0)
|
28
|
+
parallel (~> 1.10)
|
29
|
+
parser (>= 3.0.0.0)
|
30
|
+
rainbow (>= 2.2.2, < 4.0)
|
31
|
+
regexp_parser (>= 1.8, < 3.0)
|
32
|
+
rexml
|
33
|
+
rubocop-ast (>= 1.2.0, < 2.0)
|
34
|
+
ruby-progressbar (~> 1.7)
|
35
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
36
|
+
rubocop-ast (1.4.1)
|
37
|
+
parser (>= 2.7.1.5)
|
38
|
+
rubocop-minitest (0.11.1)
|
39
|
+
rubocop (>= 0.90, < 2.0)
|
40
|
+
ruby-progressbar (1.11.0)
|
41
|
+
unicode-display_width (2.0.0)
|
42
|
+
|
43
|
+
PLATFORMS
|
44
|
+
ruby
|
45
|
+
|
46
|
+
DEPENDENCIES
|
47
|
+
bundler (~> 2.0)
|
48
|
+
minitest (~> 5.0)
|
49
|
+
miriamtech-gocd!
|
50
|
+
rspec-expectations
|
51
|
+
rspec-mocks
|
52
|
+
rubocop
|
53
|
+
rubocop-minitest
|
54
|
+
|
55
|
+
BUNDLED WITH
|
56
|
+
2.0.2
|
data/Rakefile
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
require
|
2
|
-
require
|
1
|
+
require 'bundler/gem_tasks'
|
2
|
+
require 'rake/testtask'
|
3
3
|
|
4
4
|
Rake::TestTask.new(:test) do |t|
|
5
|
-
t.libs <<
|
6
|
-
t.libs <<
|
7
|
-
t.test_files = FileList[
|
5
|
+
t.libs << 'test'
|
6
|
+
t.libs << 'lib'
|
7
|
+
t.test_files = FileList['test/**/*_test.rb']
|
8
8
|
end
|
9
9
|
|
10
10
|
task :default => :test
|
data/bin/rubocop
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
#!/usr/bin/env ruby2.5
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
#
|
5
|
+
# This file was generated by Bundler.
|
6
|
+
#
|
7
|
+
# The application 'rubocop' is installed as part of a gem, and
|
8
|
+
# this file is here to facilitate running it.
|
9
|
+
#
|
10
|
+
|
11
|
+
require "pathname"
|
12
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
13
|
+
Pathname.new(__FILE__).realpath)
|
14
|
+
|
15
|
+
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
16
|
+
|
17
|
+
if File.file?(bundle_binstub)
|
18
|
+
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
19
|
+
load(bundle_binstub)
|
20
|
+
else
|
21
|
+
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
22
|
+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
require "rubygems"
|
27
|
+
require "bundler/setup"
|
28
|
+
|
29
|
+
load Gem.bin_path("rubocop", "rubocop")
|
data/lib/miriamtech/gocd.rb
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
require
|
2
|
-
require
|
1
|
+
require 'miriamtech/gocd/version'
|
2
|
+
require 'miriamtech/gocd/dsl'
|
@@ -1,7 +1,15 @@
|
|
1
1
|
module MiriamTech
|
2
2
|
module GoCD
|
3
3
|
module DSL
|
4
|
-
def
|
4
|
+
def capture_artifacts(prefix = project_name, workdir:, path:)
|
5
|
+
with_artifacts_volume(prefix) do |volume_name|
|
6
|
+
yield "-v #{volume_name}:#{workdir}/#{path}"
|
7
|
+
ensure
|
8
|
+
copy_artifacts_from_volume(volume_name, local_path: path)
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
def with_artifacts_volume(prefix = project_name)
|
5
13
|
artifacts_volume = sanitized_volume_name("#{prefix}#{build_tag}")
|
6
14
|
docker "volume create #{artifacts_volume}"
|
7
15
|
yield artifacts_volume
|
@@ -10,7 +18,7 @@ module MiriamTech
|
|
10
18
|
end
|
11
19
|
|
12
20
|
def copy_artifacts_from_volume(volume, local_path:)
|
13
|
-
container_id = `docker create -v #{volume}:/
|
21
|
+
container_id = `docker create -v #{volume}:/artifacts #{WORKER_IMAGE} cp -a /artifacts /artifacts_tmp`.chomp
|
14
22
|
begin
|
15
23
|
docker "start -i #{container_id}"
|
16
24
|
cd root_path do
|
@@ -24,7 +32,7 @@ module MiriamTech
|
|
24
32
|
private
|
25
33
|
|
26
34
|
def sanitized_volume_name(name)
|
27
|
-
name.gsub(/[^-_
|
35
|
+
name.gsub(/[^-_.A-Za-z0-9]/, '_')
|
28
36
|
end
|
29
37
|
end
|
30
38
|
end
|
@@ -1,8 +1,9 @@
|
|
1
1
|
module MiriamTech
|
2
2
|
module GoCD
|
3
|
+
FALSY_ENV_VALUES = (%w[0 f false n no] + ['']).freeze
|
3
4
|
module DSL
|
4
5
|
def project_name(env = ENV)
|
5
|
-
(env['GO_PIPELINE_NAME'] ||
|
6
|
+
(env['GO_PIPELINE_NAME'] || root_path.basename.to_s).downcase
|
6
7
|
end
|
7
8
|
|
8
9
|
def build_tag(env = ENV)
|
@@ -13,8 +14,14 @@ module MiriamTech
|
|
13
14
|
sh "docker #{string}"
|
14
15
|
end
|
15
16
|
|
17
|
+
def docker_build_arguments(env = ENV)
|
18
|
+
args = ['--force-rm']
|
19
|
+
no_cache_arg = env['DOCKER_BUILD_NO_CACHE']
|
20
|
+
args << '--no-cache' if no_cache_arg && !FALSY_ENV_VALUES.include?(no_cache_arg)
|
21
|
+
args
|
22
|
+
end
|
23
|
+
|
16
24
|
def docker_compose(string)
|
17
|
-
# PIPELINE_NAME = (ENV['GO_PIPELINE_NAME'] || 'ilien').downcase
|
18
25
|
cd root_path do
|
19
26
|
sh "docker-compose -p #{project_name} -f docker-compose.yml #{string}"
|
20
27
|
end
|
@@ -23,12 +30,13 @@ module MiriamTech
|
|
23
30
|
private
|
24
31
|
|
25
32
|
def generate_build_tag(env)
|
26
|
-
|
27
|
-
|
33
|
+
revision = env['GO_PIPELINE_COUNTER']
|
34
|
+
if revision
|
35
|
+
@build_tag = revision ? ":#{revision}" : ''
|
28
36
|
else
|
29
|
-
@build_tag =
|
37
|
+
@build_tag = ''
|
38
|
+
''
|
30
39
|
end
|
31
|
-
env['BUILD_TAG'] = @build_tag
|
32
40
|
end
|
33
41
|
end
|
34
42
|
end
|
data/lib/miriamtech/gocd/dsl.rb
CHANGED
@@ -5,4 +5,10 @@ require_relative 'lambda'
|
|
5
5
|
require_relative 'paths'
|
6
6
|
require_relative 'tasks'
|
7
7
|
|
8
|
-
|
8
|
+
# Add our DSL methods to the top level namespace without polluting the Object inheritance tree.
|
9
|
+
# This technique comes from `rake`, see e.g.
|
10
|
+
# https://github.com/ruby/rake/blob/11973e8d31f29aee2e40d874206c9240956f86ed/lib/rake/dsl_definition.rb#L195
|
11
|
+
#
|
12
|
+
# rubocop:disable Style/MixinUsage
|
13
|
+
extend MiriamTech::GoCD::DSL
|
14
|
+
# rubocop:enable Style/MixinUsage
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module MiriamTech
|
2
2
|
module GoCD
|
3
3
|
module DSL
|
4
|
-
WORKER_IMAGE = 'debian:buster'
|
4
|
+
WORKER_IMAGE = 'debian:buster'.freeze
|
5
5
|
|
6
6
|
def pull(image_name)
|
7
7
|
docker "pull #{image_name}#{build_tag}"
|
@@ -17,14 +17,13 @@ module MiriamTech
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def cleanup_old_images(image_name, number_to_keep)
|
20
|
-
revision_number = ENV[
|
20
|
+
revision_number = ENV['GO_PIPELINE_COUNTER'].to_i
|
21
21
|
return unless revision_number > number_to_keep
|
22
22
|
images = `docker images --format "{{.Repository}}:{{.Tag}}" #{image_name}`.split(/\s+/)
|
23
23
|
images.each do |image|
|
24
24
|
next unless image.match(/:(\d+)\z/)
|
25
|
-
|
26
|
-
|
27
|
-
end
|
25
|
+
next unless Regexp.last_match(1).to_i < revision_number - number_to_keep
|
26
|
+
docker "image rm #{image}"
|
28
27
|
end
|
29
28
|
end
|
30
29
|
end
|
@@ -6,12 +6,17 @@ module MiriamTech
|
|
6
6
|
def root_path
|
7
7
|
cwd = Pathname.new(File.expand_path('.'))
|
8
8
|
path = Pathname.new(cwd)
|
9
|
-
|
9
|
+
loop do
|
10
|
+
break if path.root?
|
10
11
|
return path if path.join('Dockerfile').exist?
|
11
12
|
path = path.parent
|
12
|
-
end
|
13
|
+
end
|
13
14
|
cwd
|
14
15
|
end
|
16
|
+
|
17
|
+
def compose_file
|
18
|
+
root_path / 'docker-compose.yml'
|
19
|
+
end
|
15
20
|
end
|
16
21
|
end
|
17
22
|
end
|
@@ -4,31 +4,43 @@ require 'rake/clean'
|
|
4
4
|
module MiriamTech
|
5
5
|
module GoCD
|
6
6
|
module DSL
|
7
|
+
# rubocop:disable Style/HashSyntax, Style/SymbolArray, Metrics/MethodLength
|
8
|
+
|
7
9
|
def define_gocd_tasks(
|
8
10
|
image_name,
|
9
|
-
revisions_to_keep: 10
|
11
|
+
revisions_to_keep: 10
|
12
|
+
)
|
10
13
|
|
11
14
|
task :default => [:test]
|
12
15
|
task :full => [:clobber, :build]
|
13
16
|
|
14
|
-
|
15
|
-
|
16
|
-
docker_compose "stop"
|
17
|
+
task :environment do
|
18
|
+
ENV['BUILD_TAG'] = build_tag
|
17
19
|
end
|
18
20
|
|
19
|
-
|
20
|
-
|
21
|
+
CLEAN.add("#{root_path}/test/reports")
|
22
|
+
task :clean => [:environment]
|
23
|
+
task :clobber => [:environment, :cleanup_old_images]
|
24
|
+
|
25
|
+
if compose_file.exist?
|
26
|
+
task :clean do
|
27
|
+
docker_compose 'stop'
|
28
|
+
end
|
29
|
+
|
30
|
+
task :clobber do
|
31
|
+
docker_compose 'rm -fv'
|
32
|
+
end
|
21
33
|
end
|
22
34
|
|
23
35
|
task :cleanup_old_images do
|
24
36
|
cleanup_old_images(image_name, revisions_to_keep)
|
25
37
|
end
|
26
38
|
|
27
|
-
task :build do
|
28
|
-
docker "build
|
39
|
+
task :build => :environment do
|
40
|
+
docker "build #{docker_build_arguments.join(' ')} -t #{image_name}#{build_tag} #{root_path}"
|
29
41
|
end
|
30
42
|
|
31
|
-
task :test
|
43
|
+
task :test => :environment
|
32
44
|
|
33
45
|
task :push do
|
34
46
|
push(image_name)
|
@@ -39,7 +51,13 @@ module MiriamTech
|
|
39
51
|
pull(image_name)
|
40
52
|
push(image_name, 'deployed')
|
41
53
|
end
|
54
|
+
|
55
|
+
task :bash do
|
56
|
+
docker("run -it --rm #{image_name} bash")
|
57
|
+
end
|
42
58
|
end
|
59
|
+
|
60
|
+
# rubocop:enable Style/HashSyntax, Style/SymbolArray, Metrics/MethodLength
|
43
61
|
end
|
44
62
|
end
|
45
63
|
end
|
data/miriamtech-gocd.gemspec
CHANGED
@@ -1,34 +1,38 @@
|
|
1
|
-
lib = File.expand_path(
|
1
|
+
lib = File.expand_path('lib', __dir__)
|
2
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
-
require
|
3
|
+
require 'miriamtech/gocd/version'
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
|
-
spec.name =
|
6
|
+
spec.name = 'miriamtech-gocd'
|
7
7
|
spec.version = MiriamTech::GoCD::VERSION
|
8
|
-
spec.authors = [
|
9
|
-
spec.email = [
|
8
|
+
spec.authors = ['Ken Treis']
|
9
|
+
spec.email = ['ken@miriamtech.com']
|
10
10
|
|
11
|
-
spec.summary =
|
12
|
-
spec.homepage =
|
11
|
+
spec.summary = 'Utilities for building apps in Docker containers with GoCD'
|
12
|
+
spec.homepage = 'https://www.miriamtech.com'
|
13
13
|
|
14
|
-
spec.metadata[
|
14
|
+
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
15
15
|
|
16
|
-
spec.metadata[
|
17
|
-
spec.metadata[
|
18
|
-
spec.metadata[
|
16
|
+
spec.metadata['homepage_uri'] = spec.homepage
|
17
|
+
spec.metadata['source_code_uri'] = 'https://github.com/miriamtech/gocd'
|
18
|
+
spec.metadata['changelog_uri'] = 'https://github.com/miriamtech/gocd/blob/master/CHANGELOG.md'
|
19
19
|
|
20
20
|
# Specify which files should be added to the gem when it is released.
|
21
21
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
22
|
-
spec.files
|
22
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
23
23
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
24
24
|
end
|
25
|
-
spec.bindir =
|
25
|
+
spec.bindir = 'exe'
|
26
26
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
27
|
-
spec.require_paths = [
|
27
|
+
spec.require_paths = ['lib']
|
28
28
|
|
29
|
-
spec.
|
30
|
-
spec.
|
31
|
-
|
29
|
+
spec.required_ruby_version = '~> 2.5'
|
30
|
+
spec.add_dependency 'rake', '>= 10.0'
|
31
|
+
|
32
|
+
spec.add_development_dependency 'bundler', '~> 2.0'
|
33
|
+
spec.add_development_dependency 'minitest', '~> 5.0'
|
32
34
|
spec.add_development_dependency 'rspec-expectations'
|
33
35
|
spec.add_development_dependency 'rspec-mocks'
|
36
|
+
spec.add_development_dependency 'rubocop'
|
37
|
+
spec.add_development_dependency 'rubocop-minitest'
|
34
38
|
end
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: miriamtech-gocd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ken Treis
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rake
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '10.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '10.0'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: bundler
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -25,35 +39,49 @@ dependencies:
|
|
25
39
|
- !ruby/object:Gem::Version
|
26
40
|
version: '2.0'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
42
|
+
name: minitest
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '5.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '5.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec-expectations
|
29
57
|
requirement: !ruby/object:Gem::Requirement
|
30
58
|
requirements:
|
31
59
|
- - ">="
|
32
60
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
61
|
+
version: '0'
|
34
62
|
type: :development
|
35
63
|
prerelease: false
|
36
64
|
version_requirements: !ruby/object:Gem::Requirement
|
37
65
|
requirements:
|
38
66
|
- - ">="
|
39
67
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
68
|
+
version: '0'
|
41
69
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
70
|
+
name: rspec-mocks
|
43
71
|
requirement: !ruby/object:Gem::Requirement
|
44
72
|
requirements:
|
45
|
-
- - "
|
73
|
+
- - ">="
|
46
74
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
75
|
+
version: '0'
|
48
76
|
type: :development
|
49
77
|
prerelease: false
|
50
78
|
version_requirements: !ruby/object:Gem::Requirement
|
51
79
|
requirements:
|
52
|
-
- - "
|
80
|
+
- - ">="
|
53
81
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
82
|
+
version: '0'
|
55
83
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
84
|
+
name: rubocop
|
57
85
|
requirement: !ruby/object:Gem::Requirement
|
58
86
|
requirements:
|
59
87
|
- - ">="
|
@@ -67,7 +95,7 @@ dependencies:
|
|
67
95
|
- !ruby/object:Gem::Version
|
68
96
|
version: '0'
|
69
97
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
98
|
+
name: rubocop-minitest
|
71
99
|
requirement: !ruby/object:Gem::Requirement
|
72
100
|
requirements:
|
73
101
|
- - ">="
|
@@ -88,12 +116,15 @@ extensions: []
|
|
88
116
|
extra_rdoc_files: []
|
89
117
|
files:
|
90
118
|
- ".gitignore"
|
119
|
+
- ".rubocop.yml"
|
91
120
|
- ".travis.yml"
|
92
121
|
- CHANGELOG.md
|
93
122
|
- Gemfile
|
123
|
+
- Gemfile.lock
|
94
124
|
- README.md
|
95
125
|
- Rakefile
|
96
126
|
- bin/console
|
127
|
+
- bin/rubocop
|
97
128
|
- bin/run_tests.sh
|
98
129
|
- bin/setup
|
99
130
|
- lib/miriamtech/gocd.rb
|
@@ -119,9 +150,9 @@ require_paths:
|
|
119
150
|
- lib
|
120
151
|
required_ruby_version: !ruby/object:Gem::Requirement
|
121
152
|
requirements:
|
122
|
-
- - "
|
153
|
+
- - "~>"
|
123
154
|
- !ruby/object:Gem::Version
|
124
|
-
version: '
|
155
|
+
version: '2.5'
|
125
156
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
126
157
|
requirements:
|
127
158
|
- - ">="
|