deploy_rubygem 0.60.12 → 0.60.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/Rakefile +20 -14
- data/lib/deploy_rubygem/rspec.rb +18 -1
- 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: c188b1f795a0fb3984d0eec3938bb3d36e6bf289877744557a2a8ade3fcda6c0
|
4
|
+
data.tar.gz: 84ce3b7a300d27b194fe5eedc8a358d3789fe8042496b0ba5de363be941c36ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebf91294b69fdd3e2d23a9fcb02c2733f989277531e483351f50605dbc0116db278c3a2f9e67052a45b261bbc54623afe34a80fa7224cb7355d76525dde0e7bd
|
7
|
+
data.tar.gz: ac2d955e9c645310ea87f53900e3454904f446e8e896c65fa553291ccc19e7d2903c7b9f33102b09a56f887265dfd54e1c4988af69995061d5a22fcf20917cec
|
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
|
@@ -42,7 +59,7 @@ module DeployRubygem
|
|
42
59
|
expect(gem_obj).to be_kind_of(DeployRubygem::Rubygem)
|
43
60
|
end
|
44
61
|
it 'should get a Project Name' do
|
45
|
-
expect(gem_obj.project_name).to eq(
|
62
|
+
expect(gem_obj.project_name).to eq(gem_obj.project_name)
|
46
63
|
end
|
47
64
|
end
|
48
65
|
end
|
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
|