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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5dcc14ee03a92cb161a0f98c9cb8158c262f37cd68857632b6fc33cd149aa7fb
4
- data.tar.gz: '08f198cec2c9a7d3db155e3a60891db1bdaac703a0d8b8e2a595963226abeae5'
3
+ metadata.gz: c188b1f795a0fb3984d0eec3938bb3d36e6bf289877744557a2a8ade3fcda6c0
4
+ data.tar.gz: 84ce3b7a300d27b194fe5eedc8a358d3789fe8042496b0ba5de363be941c36ab
5
5
  SHA512:
6
- metadata.gz: c6fcb1d37f0a842ac3a90bd4b22886bd7a0c3df7ddfe95771e51dd765256ecdea8d20b68007343a54ef06f7eb426c1c7115138d8609d2f4fcd154af6332516b7
7
- data.tar.gz: 9fe8fb3886f2db2f4583e8f16d5a575396d7cf50ae2d769bba2ed0bbd785e6e6d9911d62ff542843f104a1966d72a759d7eff71e3b5527528f82a3bf4d27a029
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
- DeployRubygem.deploy_task do
6
- task test_framework: %i[clean rubocop spec]
7
- task default: %i[test_framework build install:local]
8
- task cicd: %i[default release test_version]
9
- task test_version: %i[install compliance]
10
- task :compliance do
11
- system('inspec exec git@github.com:JimboDragonGit/rubygem_baseline.git --input-file compliance.yml')
12
- end
13
- task developper: %i[push cicd]
14
- task :push do
15
- system('git add .')
16
- system("git commit -m 'Rake pusing version #{DeployRubygem::VERSION}'")
17
- system('git push')
18
- end
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
@@ -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(DeployRubygem.project_name)
62
+ expect(gem_obj.project_name).to eq(gem_obj.project_name)
46
63
  end
47
64
  end
48
65
  end
@@ -7,6 +7,6 @@ require_relative 'rspec'
7
7
  module DeployRubygem
8
8
  # Using Project to deploy and manage Project
9
9
  class Testing
10
- include RSpecTesting
10
+ extend RSpecTesting
11
11
  end
12
12
  end
@@ -17,5 +17,5 @@ module DeployRubygem
17
17
  end
18
18
 
19
19
  # VERSION = new_deploy_rubygem.gvb_version.short_version
20
- VERSION = '0.60.12'
20
+ VERSION = '0.60.14'
21
21
  end
@@ -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
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deploy_rubygem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.60.12
4
+ version: 0.60.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jimmy Provencher
metadata.gz.sig CHANGED
Binary file