deploy_rubygem 0.60.12 → 0.60.13

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: 0a99616ddca874ab2539b5a3c0aef45c80de247f7bb7f9205a9adc09fc65e985
4
+ data.tar.gz: 43826bcbc9e11e78c4891b944d6d35402272f5677ad7e89233179d5451d06e06
5
5
  SHA512:
6
- metadata.gz: c6fcb1d37f0a842ac3a90bd4b22886bd7a0c3df7ddfe95771e51dd765256ecdea8d20b68007343a54ef06f7eb426c1c7115138d8609d2f4fcd154af6332516b7
7
- data.tar.gz: 9fe8fb3886f2db2f4583e8f16d5a575396d7cf50ae2d769bba2ed0bbd785e6e6d9911d62ff542843f104a1966d72a759d7eff71e3b5527528f82a3bf4d27a029
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
- 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
@@ -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.13'
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.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jimmy Provencher
metadata.gz.sig CHANGED
Binary file