deploy_rubygem 0.59.1 → 0.60.0.3.gcd87b5b

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 65713c99c2163d9c9d706d4f065a6cc769f9497462b24d041c565b438e769650
4
- data.tar.gz: 4d2a0654da4b84d68e4c226f2847f469bda078558124daefce003a603d05b343
3
+ metadata.gz: 6e5bf28d91a266d8a227f6882e32d9841d7eb671091895ba0e4b54adce4fbc98
4
+ data.tar.gz: e58ad521e4a60bedef79ba7452dcd0a766b64bbb1600e1aec3bc82a796492427
5
5
  SHA512:
6
- metadata.gz: 6ecb8a00e46c48b607ca94b5763c936f1a85b66d5621f30ebc8b0b9d0239265aa220d6d30e6541e29cdd024e52218da423f4cdd5ebaf27d9624091ee5cf1347c
7
- data.tar.gz: 11c2cc093e678af8cbf989cac387b90c265c1159d7318f38caad43636c7c93e0971934a0093b950edfd34fd524cf594ddfa2df215c953154ff26a42d6f79b1e2
6
+ metadata.gz: fd4c69cfdae713842b705f6e39d1b03f6f3ff3c504660ce5b420ec81c9aa7bb0b4d7bd65a79d463feaaa0bd10bf6603ebec4a6f10eb09f613cbf2b726ac468e5
7
+ data.tar.gz: 9a845bbbc54a867f58551bf1729cc0220afc655da03d680c125ea0ce48a1923054a0bd8d7e42dd69fe68ae638f41da73669269d7642c656b3c4805c3f4327e0c
checksums.yaml.gz.sig CHANGED
Binary file
data/.gitignore CHANGED
@@ -54,3 +54,5 @@ build-iPhoneSimulator/
54
54
 
55
55
  # Used by RuboCop. Remote config files pulled in from inherit_from directive.
56
56
  # .rubocop-https?--*
57
+ Gemfile.lock
58
+ .rspec_status
data/.rspec CHANGED
@@ -1,3 +1,4 @@
1
1
  --format documentation
2
2
  --color
3
3
  --require spec_helper
4
+ --require unit_deploy_rubygem
data/.rubocop.yml CHANGED
@@ -2,12 +2,92 @@ AllCops:
2
2
  TargetRubyVersion: 2.6
3
3
 
4
4
  Style/StringLiterals:
5
- Enabled: true
5
+ Enabled: false
6
6
  EnforcedStyle: double_quotes
7
7
 
8
8
  Style/StringLiteralsInInterpolation:
9
- Enabled: true
9
+ Enabled: false
10
10
  EnforcedStyle: double_quotes
11
11
 
12
12
  Layout/LineLength:
13
+ Enabled: false
13
14
  Max: 120
15
+
16
+ Style/PercentLiteralDelimiters:
17
+ Enabled: false
18
+
19
+ Layout/TrailingWhitespace:
20
+ Enabled: false
21
+
22
+ Style/FrozenStringLiteralComment:
23
+ Enabled: false
24
+
25
+ Metrics/MethodLength:
26
+ Enabled: false
27
+
28
+ Layout/LeadingEmptyLines:
29
+ Enabled: false
30
+
31
+ Style/Documentation:
32
+ Enabled: false
33
+
34
+ Style/AccessorGrouping:
35
+ Enabled: false
36
+
37
+ Style/OptionalBooleanParameter:
38
+ Enabled: false
39
+
40
+ Metrics/AbcSize:
41
+ Enabled: false
42
+
43
+ Style/Not:
44
+ Enabled: false
45
+
46
+ Style/NegatedIf:
47
+ Enabled: false
48
+
49
+ Style/IfUnlessModifier:
50
+ Enabled: false
51
+
52
+ Layout/EmptyLineBetweenDefs:
53
+ Enabled: false
54
+
55
+ Gemspec/DuplicatedAssignment:
56
+ Enabled: false
57
+
58
+ Style/TrailingCommaInHashLiteral:
59
+ Enabled: false
60
+
61
+ Layout/HashAlignment:
62
+ Enabled: false
63
+
64
+ Layout/SpaceAroundOperators:
65
+ Enabled: false
66
+
67
+ Layout/ExtraSpacing:
68
+ Enabled: false
69
+
70
+ Layout/IndentationConsistency:
71
+ Enabled: false
72
+
73
+ Layout/IndentationStyle:
74
+ Enabled: false
75
+
76
+ Layout/EmptyLines:
77
+ Enabled: false
78
+
79
+ Layout/CommentIndentation:
80
+ Enabled: false
81
+
82
+ Style/EmptyMethod:
83
+ Enabled: false
84
+
85
+ Layout/TrailingEmptyLines:
86
+ Enabled: false
87
+
88
+ Lint/ScriptPermission:
89
+ Enabled: false
90
+
91
+ Gemspec/RequiredRubyVersion:
92
+ Enabled: false
93
+
@@ -53,6 +53,8 @@ require 'git-version-bump'
53
53
  s.add_development_dependency('test-kitchen')
54
54
 
55
55
  s.add_runtime_dependency('git-version-bump')
56
+ s.add_runtime_dependency('rubocop-rake')
57
+ s.add_runtime_dependency('rubocop-rspec')
56
58
 
57
59
  # s.add_runtime_dependency('deploy-context')
58
60
 
@@ -91,11 +91,24 @@ module DeployRubygem
91
91
  DeployRubygem.deploy_jimbo_management_site
92
92
  end
93
93
 
94
+ def self.rake_test
95
+ File.delete('Gemfile.lock') if File.exist?('Gemfile.lock')
96
+ system("bundle") || exit(100)
97
+ system("rake") || exit(101)
98
+ system("rake build") || exit(102)
99
+ system("rake install:local") || exit(103)
100
+ end
101
+
102
+ def self.rake_release
103
+ system("rake install") || exit(104)
104
+ system("rake release") || exit(105)
105
+ system("rake release remote") || exit(106)
106
+ end
107
+
94
108
  def self.test
95
109
  DeployRubygem.change_to_directory(DeployRubygem.deploy_rubygem_path, self_project_options[:git])
96
- system("rake build")
97
- system("rake install:local")
98
- system("rake")
110
+ rake_test
111
+ rake_release
99
112
  end
100
113
 
101
114
  def self.deploy_jimbodragon
@@ -1,71 +1,21 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'git-version-bump'
4
- require 'rubygems'
5
-
6
-
7
- RSpec.describe GVB do
8
- it "has a version number" do
9
- expect(GVB.version).not_to be nil
10
- end
11
-
12
- %w(major_version minor_version patch_version).each do |method_name|
13
- it "has the method #{method_name}" do
14
- expect(GVB.methods.include?(method_name.to_sym)).to eq(true)
15
- end
16
- end
17
- end
18
-
19
- RSpec.describe DeployRubygem do
20
- it "has a version number" do
21
- expect(DeployRubygem::VERSION).not_to be nil
22
- end
23
-
24
- %w(main deploy_jimbodragon change_to_directory deploy_rubygem_path chefrepo_path).each do |method_name|
25
- it "has the method #{method_name}" do
26
- expect(DeployRubygem.methods.include?(method_name.to_sym)).to eq(true)
27
- end
28
- end
29
-
30
- it "has pre latest version publish" do
31
- expect(`gem list -r deploy_rubygem`).to include("deploy_rubygem (#{Gem::Version.new("#{GVB.major_version}.#{GVB.minor_version - 1}.1")})")
32
- end
33
- end
34
-
35
- RSpec.describe 'Publishing itself' do
36
- it "Change to Chef repo folder" do
37
- change_repo = DeployRubygem.change_to_directory(DeployRubygem.chefrepo_path, 'git@github.com:JimboDragonGit/jimbodragon.git')
38
- expect(change_repo).not_to be nil
39
- expect(change_repo).to include DeployRubygem.chefrepo_path
40
- end
41
-
42
- it "Change to jimbo_management_site folder" do
43
- change_repo = DeployRubygem.change_to_directory(DeployRubygem.jimbo_management_site_path, 'git@github.com:JimboDragonGit/jimbo_management_site.git')
44
- expect(change_repo).not_to be nil
45
- expect(change_repo).to include DeployRubygem.jimbo_management_site_path
46
- end
47
-
48
- it "Change to deploy_rubygem folder" do
49
- change_repo = DeployRubygem.change_to_directory(DeployRubygem.deploy_rubygem_path, 'git@github.com:JimboDragonGit/deploy_rubygem.git')
50
- expect(change_repo).not_to be nil
51
- expect(change_repo).to include DeployRubygem.deploy_rubygem_path
52
- end
53
-
54
- it "deploy itself" do
55
- self_deploy = DeployRubygem.self_deploy
56
- expect(self_deploy).not_to be nil
57
- end
58
-
59
- it "deploy jimbo_management_site" do
60
- jimbo_management_site_deploy = DeployRubygem.deploy_jimbo_management_site
61
- expect(jimbo_management_site_deploy).not_to be nil
62
- end
63
-
64
- it "has pre latest version publish" do
65
- expect(`gem list -r deploy_rubygem`).to include("deploy_rubygem (#{Gem::Version.new("#{GVB.major_version}.#{GVB.minor_version - 1}.1")})")
66
- end
67
-
68
- it "has latest version publish" do
69
- expect(`gem list -r deploy_rubygem`).not_to include("deploy_rubygem (#{GVB.version}})")
70
- end
71
- end
3
+ # RSpec.describe 'Publishing itself' do
4
+ # it "deploy itself" do
5
+ # self_deploy = DeployRubygem.self_deploy
6
+ # expect(self_deploy).not_to be nil
7
+ # end
8
+
9
+ # it "deploy jimbo_management_site" do
10
+ # jimbo_management_site_deploy = DeployRubygem.deploy_jimbo_management_site
11
+ # expect(jimbo_management_site_deploy).not_to be nil
12
+ # end
13
+
14
+ # it "has pre latest version publish" do
15
+ # expect(`gem list -r deploy_rubygem`).to include("deploy_rubygem (#{Gem::Version.new("#{GVB.major_version}.#{GVB.minor_version - 1}.1")})")
16
+ # end
17
+
18
+ # it "has latest version publish" do
19
+ # expect(`gem list -r deploy_rubygem`).not_to include("deploy_rubygem (#{GVB.version}})")
20
+ # end
21
+ # end
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ RSpec.describe GVB do
4
+ it "has a version number" do
5
+ expect(GVB.version).not_to be nil
6
+ end
7
+
8
+ %w(major_version minor_version patch_version).each do |method_name|
9
+ it "has the method #{method_name}" do
10
+ expect(GVB.methods.include?(method_name.to_sym)).to eq(true)
11
+ end
12
+ end
13
+ end
14
+
15
+ RSpec.describe DeployRubygem do
16
+ it "has a version number" do
17
+ expect(DeployRubygem::VERSION).not_to be nil
18
+ end
19
+
20
+ %w(main deploy_jimbodragon change_to_directory deploy_rubygem_path chefrepo_path).each do |method_name|
21
+ it "has the method #{method_name}" do
22
+ expect(DeployRubygem.methods.include?(method_name.to_sym)).to eq(true)
23
+ end
24
+ end
25
+
26
+ it "has pre latest version publish" do
27
+ expect(`gem list -r deploy_rubygem`).to include("deploy_rubygem (#{Gem::Version.new("#{GVB.major_version}.#{GVB.minor_version - 1}.1")})")
28
+ end
29
+ end
30
+
31
+ RSpec.describe 'Publishing itself' do
32
+ it "Change to Chef repo folder" do
33
+ change_repo = DeployRubygem.change_to_directory(DeployRubygem.chefrepo_path, 'git@github.com:JimboDragonGit/jimbodragon.git')
34
+ expect(change_repo).not_to be nil
35
+ expect(change_repo).to include DeployRubygem.chefrepo_path
36
+ end
37
+
38
+ it "Change to jimbo_management_site folder" do
39
+ change_repo = DeployRubygem.change_to_directory(DeployRubygem.jimbo_management_site_path, 'git@github.com:JimboDragonGit/jimbo_management_site.git')
40
+ expect(change_repo).not_to be nil
41
+ expect(change_repo).to include DeployRubygem.jimbo_management_site_path
42
+ end
43
+
44
+ it "Change to deploy_rubygem folder" do
45
+ change_repo = DeployRubygem.change_to_directory(DeployRubygem.deploy_rubygem_path, 'git@github.com:JimboDragonGit/deploy_rubygem.git')
46
+ expect(change_repo).not_to be nil
47
+ expect(change_repo).to include DeployRubygem.deploy_rubygem_path
48
+ end
49
+ end
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.59.1
4
+ version: 0.60.0.3.gcd87b5b
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jimmy Provencher
@@ -77,6 +77,34 @@ dependencies:
77
77
  - - ">="
78
78
  - !ruby/object:Gem::Version
79
79
  version: '0'
80
+ - !ruby/object:Gem::Dependency
81
+ name: rubocop-rake
82
+ requirement: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ version: '0'
87
+ type: :runtime
88
+ prerelease: false
89
+ version_requirements: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ - !ruby/object:Gem::Dependency
95
+ name: rubocop-rspec
96
+ requirement: !ruby/object:Gem::Requirement
97
+ requirements:
98
+ - - ">="
99
+ - !ruby/object:Gem::Version
100
+ version: '0'
101
+ type: :runtime
102
+ prerelease: false
103
+ version_requirements: !ruby/object:Gem::Requirement
104
+ requirements:
105
+ - - ">="
106
+ - !ruby/object:Gem::Version
107
+ version: '0'
80
108
  description: Using Chef cookbook style and force any script using it to switch to
81
109
  chef even if it is not install. It will install it tho ;)
82
110
  email:
@@ -96,7 +124,6 @@ files:
96
124
  - ".gitignore"
97
125
  - ".kitchen/logs/kitchen.log"
98
126
  - ".rspec"
99
- - ".rspec_status"
100
127
  - ".rubocop.yml"
101
128
  - CHANGELOG.md
102
129
  - CODE_OF_CONDUCT.md
@@ -125,6 +152,7 @@ files:
125
152
  - sig/deploy_rubygem.rbs
126
153
  - spec/deploy_rubygem_spec.rb
127
154
  - spec/spec_helper.rb
155
+ - spec/unit_deploy_rubygem.rb
128
156
  homepage: https://github.com/JimboDragonGit/deploy_rubygem
129
157
  licenses:
130
158
  - MIT
@@ -144,9 +172,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
144
172
  version: '0'
145
173
  required_rubygems_version: !ruby/object:Gem::Requirement
146
174
  requirements:
147
- - - ">="
175
+ - - ">"
148
176
  - !ruby/object:Gem::Version
149
- version: '0'
177
+ version: 1.3.1
150
178
  requirements: []
151
179
  rubygems_version: 3.2.32
152
180
  signing_key:
metadata.gz.sig CHANGED
Binary file
data/.rspec_status DELETED
@@ -1,13 +0,0 @@
1
- example_id | status | run_time |
2
- ---------------------------------- | ------ | --------------- |
3
- ./spec/deploy_rubygem_spec.rb[1:1] | passed | 0.01539 seconds |
4
- ./spec/deploy_rubygem_spec.rb[1:2] | passed | 0.001 seconds |
5
- ./spec/deploy_rubygem_spec.rb[1:3] | passed | 0.00015 seconds |
6
- ./spec/deploy_rubygem_spec.rb[1:4] | passed | 0.00013 seconds |
7
- ./spec/deploy_rubygem_spec.rb[2:1] | passed | 0.00018 seconds |
8
- ./spec/deploy_rubygem_spec.rb[2:2] | passed | 0.00022 seconds |
9
- ./spec/deploy_rubygem_spec.rb[2:3] | passed | 0.00015 seconds |
10
- ./spec/deploy_rubygem_spec.rb[2:4] | passed | 0.0001 seconds |
11
- ./spec/deploy_rubygem_spec.rb[2:5] | passed | 0.00018 seconds |
12
- ./spec/deploy_rubygem_spec.rb[2:6] | passed | 0.00013 seconds |
13
- ./spec/deploy_rubygem_spec.rb[2:7] | passed | 1.08 seconds |