deploy_rubygem 0.60.12 → 0.60.13
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
- checksums.yaml.gz.sig +0 -0
- data/Rakefile +20 -14
- data/lib/deploy_rubygem/rspec.rb +17 -0
- data/lib/deploy_rubygem/testing.rb +1 -1
- data/lib/deploy_rubygem/version.rb +1 -1
- data/lib/deploy_rubygem.rb +0 -29
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0a99616ddca874ab2539b5a3c0aef45c80de247f7bb7f9205a9adc09fc65e985
|
|
4
|
+
data.tar.gz: 43826bcbc9e11e78c4891b944d6d35402272f5677ad7e89233179d5451d06e06
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3506df9227e1ac2ddb15d338325a616c24a1f0de8dd64c4c45e9eb6ffdf40c625db8098da1b287086458015fe5ac03416837afcf34ab6468690a1b9418dde97a
|
|
7
|
+
data.tar.gz: 355f7205fd64a6ad9de02c0e79125d00ade7d019e6a5ffdda8819aa3808399e119a5eee87600202f1e2da0340faf94c7f9bfde3fb0c307f9d0ab266072ce5be3
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/Rakefile
CHANGED
|
@@ -1,19 +1,25 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
require 'bundler/gem_tasks'
|
|
4
|
+
require 'rspec/core/rake_task'
|
|
5
|
+
|
|
6
|
+
require 'rubocop/rake_task'
|
|
7
|
+
|
|
3
8
|
require_relative 'lib/deploy_rubygem'
|
|
4
9
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
10
|
+
RSpec::Core::RakeTask.new(:spec)
|
|
11
|
+
RuboCop::RakeTask.new
|
|
12
|
+
|
|
13
|
+
task test_framework: %i[clean rubocop spec]
|
|
14
|
+
task default: %i[test_framework build install:local]
|
|
15
|
+
task cicd: %i[default release test_version]
|
|
16
|
+
task test_version: %i[install compliance]
|
|
17
|
+
task :compliance do
|
|
18
|
+
system('inspec exec git@github.com:JimboDragonGit/rubygem_baseline.git --input-file compliance.yml')
|
|
19
|
+
end
|
|
20
|
+
task developper: %i[push cicd]
|
|
21
|
+
task :push do
|
|
22
|
+
system('git add .')
|
|
23
|
+
system("git commit -m 'Rake pusing version #{DeployRubygem::VERSION}'")
|
|
24
|
+
system('git push')
|
|
19
25
|
end
|
data/lib/deploy_rubygem/rspec.rb
CHANGED
|
@@ -5,6 +5,23 @@
|
|
|
5
5
|
module DeployRubygem
|
|
6
6
|
# Using Project to deploy and manage Project
|
|
7
7
|
module RSpecTesting
|
|
8
|
+
def help_rspec(helper)
|
|
9
|
+
helper.extend DeployRubygem
|
|
10
|
+
RSpec.configure do |config|
|
|
11
|
+
# Enable flags like --only-failures and --next-failure
|
|
12
|
+
config.example_status_persistence_file_path = '.rspec_status'
|
|
13
|
+
|
|
14
|
+
# Disable RSpec exposing methods globally on `Module` and `main`
|
|
15
|
+
config.disable_monkey_patching!
|
|
16
|
+
|
|
17
|
+
config.expect_with :rspec do |c|
|
|
18
|
+
c.syntax = :expect
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
yield(config) if block_given?
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
|
|
8
25
|
def check_current_version(gem_name, version)
|
|
9
26
|
RSpec.describe gem_name do
|
|
10
27
|
it 'has a version number' do
|
data/lib/deploy_rubygem.rb
CHANGED
|
@@ -13,35 +13,6 @@ module DeployRubygem
|
|
|
13
13
|
cookbook.cookbook_name.match? 'jimbo_management_site'
|
|
14
14
|
end.first
|
|
15
15
|
end
|
|
16
|
-
|
|
17
|
-
def self.deploy_task
|
|
18
|
-
require 'bundler/gem_tasks'
|
|
19
|
-
require 'rspec/core/rake_task'
|
|
20
|
-
|
|
21
|
-
require 'rubocop/rake_task'
|
|
22
|
-
|
|
23
|
-
RSpec::Core::RakeTask.new(:spec)
|
|
24
|
-
RuboCop::RakeTask.new
|
|
25
|
-
|
|
26
|
-
yield if block_given?
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
def self.help_rspec(helper)
|
|
30
|
-
helper.extend DeployRubygem
|
|
31
|
-
RSpec.configure do |config|
|
|
32
|
-
# Enable flags like --only-failures and --next-failure
|
|
33
|
-
config.example_status_persistence_file_path = '.rspec_status'
|
|
34
|
-
|
|
35
|
-
# Disable RSpec exposing methods globally on `Module` and `main`
|
|
36
|
-
config.disable_monkey_patching!
|
|
37
|
-
|
|
38
|
-
config.expect_with :rspec do |c|
|
|
39
|
-
c.syntax = :expect
|
|
40
|
-
end
|
|
41
|
-
|
|
42
|
-
yield(config) if block_given?
|
|
43
|
-
end
|
|
44
|
-
end
|
|
45
16
|
end
|
|
46
17
|
|
|
47
18
|
# s.add_runtime_dependency('colorator', '~> 1.0')
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
|
Binary file
|