ggem 1.9.5 → 1.10.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ggem.gemspec +9 -7
- data/lib/ggem/cli.rb +17 -15
- data/lib/ggem/cli/commands.rb +51 -45
- data/lib/ggem/gem.rb +7 -6
- data/lib/ggem/gemspec.rb +20 -10
- data/lib/ggem/git_repo.rb +2 -1
- data/lib/ggem/template.rb +12 -8
- data/lib/ggem/template_file/gemspec.erb +5 -3
- data/lib/ggem/template_file/gitignore.erb +1 -0
- data/lib/ggem/template_file/l.yml.erb +8 -0
- data/lib/ggem/template_file/rubocop.yml.erb +3 -0
- data/lib/ggem/template_file/ruby-version.erb +1 -1
- data/lib/ggem/template_file/t.yml.erb +6 -0
- data/lib/ggem/version.rb +1 -1
- data/test/support/cmd_tests_helpers.rb +7 -7
- data/test/support/gem1/gem1.gemspec +3 -4
- data/test/support/gem2/gem2.gemspec +3 -4
- data/test/support/name_set.rb +6 -3
- data/test/system/ggem_tests.rb +7 -6
- data/test/unit/cli_tests.rb +84 -59
- data/test/unit/gemspec_tests.rb +11 -6
- data/test/unit/git_repo_tests.rb +9 -7
- metadata +27 -10
data/test/unit/gemspec_tests.rb
CHANGED
@@ -94,18 +94,23 @@ class GGem::Gemspec
|
|
94
94
|
|
95
95
|
setup do
|
96
96
|
@exp_build_path = @gem1_root_path.join(subject.gem_file_name)
|
97
|
-
@exp_pkg_path =
|
97
|
+
@exp_pkg_path =
|
98
|
+
@gem1_root_path.join(
|
99
|
+
@gemspec_class::BUILD_TO_DIRNAME,
|
100
|
+
subject.gem_file_name,
|
101
|
+
)
|
98
102
|
end
|
99
103
|
end
|
100
104
|
|
101
105
|
class RunBuildCmdTests < CmdTests
|
102
106
|
desc "`run_build_cmd`"
|
103
107
|
setup do
|
104
|
-
@exp_cmds_run =
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
108
|
+
@exp_cmds_run =
|
109
|
+
[
|
110
|
+
"gem build --verbose #{subject.path}",
|
111
|
+
"mkdir -p #{@exp_pkg_path.dirname}",
|
112
|
+
"mv #{@exp_build_path} #{@exp_pkg_path}",
|
113
|
+
]
|
109
114
|
end
|
110
115
|
|
111
116
|
should "run system cmds to build the gem" do
|
data/test/unit/git_repo_tests.rb
CHANGED
@@ -47,7 +47,7 @@ class GGem::GitRepo
|
|
47
47
|
setup do
|
48
48
|
@exp_cmds_run = [
|
49
49
|
"cd #{@repo_path} && git init",
|
50
|
-
"cd #{@repo_path} && git add --all && git add -f *.keep"
|
50
|
+
"cd #{@repo_path} && git add --all && git add -f *.keep",
|
51
51
|
]
|
52
52
|
end
|
53
53
|
|
@@ -64,7 +64,7 @@ class GGem::GitRepo
|
|
64
64
|
desc "`run_validate_clean_cmd`"
|
65
65
|
setup do
|
66
66
|
@exp_cmds_run = [
|
67
|
-
"cd #{@repo_path} && git diff --exit-code"
|
67
|
+
"cd #{@repo_path} && git diff --exit-code",
|
68
68
|
]
|
69
69
|
end
|
70
70
|
|
@@ -81,7 +81,7 @@ class GGem::GitRepo
|
|
81
81
|
desc "`run_validate_committed_cmd`"
|
82
82
|
setup do
|
83
83
|
@exp_cmds_run = [
|
84
|
-
"cd #{@repo_path} && git diff-index --quiet --cached HEAD"
|
84
|
+
"cd #{@repo_path} && git diff-index --quiet --cached HEAD",
|
85
85
|
]
|
86
86
|
end
|
87
87
|
|
@@ -99,7 +99,7 @@ class GGem::GitRepo
|
|
99
99
|
setup do
|
100
100
|
@exp_cmds_run = [
|
101
101
|
"cd #{@repo_path} && git push",
|
102
|
-
"cd #{@repo_path} && git push --tags"
|
102
|
+
"cd #{@repo_path} && git push --tags",
|
103
103
|
]
|
104
104
|
end
|
105
105
|
|
@@ -119,7 +119,7 @@ class GGem::GitRepo
|
|
119
119
|
@tag = Factory.string
|
120
120
|
|
121
121
|
@exp_cmds_run = [
|
122
|
-
"cd #{@repo_path} && git tag -a -m \"Version #{@version}\" #{@tag}"
|
122
|
+
"cd #{@repo_path} && git tag -a -m \"Version #{@version}\" #{@tag}",
|
123
123
|
]
|
124
124
|
end
|
125
125
|
|
@@ -128,7 +128,9 @@ class GGem::GitRepo
|
|
128
128
|
end
|
129
129
|
|
130
130
|
should "complain if any system cmds are not successful" do
|
131
|
-
assert_exp_cmds_error(CmdError)
|
131
|
+
assert_exp_cmds_error(CmdError) do
|
132
|
+
subject.run_add_version_tag_cmd(@version, @tag)
|
133
|
+
end
|
132
134
|
end
|
133
135
|
end
|
134
136
|
|
@@ -138,7 +140,7 @@ class GGem::GitRepo
|
|
138
140
|
@tag = Factory.string
|
139
141
|
|
140
142
|
@exp_cmds_run = [
|
141
|
-
"cd #{@repo_path} && git tag -d #{@tag}"
|
143
|
+
"cd #{@repo_path} && git tag -d #{@tag}",
|
142
144
|
]
|
143
145
|
end
|
144
146
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ggem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.10.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kelly Redding
|
@@ -9,50 +9,64 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-
|
12
|
+
date: 2021-06-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: much-style-guide
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - "~>"
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: 0.6.4
|
21
|
+
type: :development
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - "~>"
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: 0.6.4
|
14
28
|
- !ruby/object:Gem::Dependency
|
15
29
|
name: assert
|
16
30
|
requirement: !ruby/object:Gem::Requirement
|
17
31
|
requirements:
|
18
32
|
- - "~>"
|
19
33
|
- !ruby/object:Gem::Version
|
20
|
-
version: 2.19.
|
34
|
+
version: 2.19.6
|
21
35
|
type: :development
|
22
36
|
prerelease: false
|
23
37
|
version_requirements: !ruby/object:Gem::Requirement
|
24
38
|
requirements:
|
25
39
|
- - "~>"
|
26
40
|
- !ruby/object:Gem::Version
|
27
|
-
version: 2.19.
|
41
|
+
version: 2.19.6
|
28
42
|
- !ruby/object:Gem::Dependency
|
29
|
-
name: much-
|
43
|
+
name: much-mixin
|
30
44
|
requirement: !ruby/object:Gem::Requirement
|
31
45
|
requirements:
|
32
46
|
- - "~>"
|
33
47
|
- !ruby/object:Gem::Version
|
34
|
-
version: 0.2.
|
48
|
+
version: 0.2.4
|
35
49
|
type: :runtime
|
36
50
|
prerelease: false
|
37
51
|
version_requirements: !ruby/object:Gem::Requirement
|
38
52
|
requirements:
|
39
53
|
- - "~>"
|
40
54
|
- !ruby/object:Gem::Version
|
41
|
-
version: 0.2.
|
55
|
+
version: 0.2.4
|
42
56
|
- !ruby/object:Gem::Dependency
|
43
57
|
name: scmd
|
44
58
|
requirement: !ruby/object:Gem::Requirement
|
45
59
|
requirements:
|
46
60
|
- - "~>"
|
47
61
|
- !ruby/object:Gem::Version
|
48
|
-
version: 3.0.
|
62
|
+
version: 3.0.4
|
49
63
|
type: :runtime
|
50
64
|
prerelease: false
|
51
65
|
version_requirements: !ruby/object:Gem::Requirement
|
52
66
|
requirements:
|
53
67
|
- - "~>"
|
54
68
|
- !ruby/object:Gem::Version
|
55
|
-
version: 3.0.
|
69
|
+
version: 3.0.4
|
56
70
|
description: '"Juh Gem", baby! (a gem utility CLI)'
|
57
71
|
email:
|
58
72
|
- kelly@kellyredding.com
|
@@ -80,9 +94,12 @@ files:
|
|
80
94
|
- lib/ggem/template_file/README.md.erb
|
81
95
|
- lib/ggem/template_file/gemspec.erb
|
82
96
|
- lib/ggem/template_file/gitignore.erb
|
97
|
+
- lib/ggem/template_file/l.yml.erb
|
83
98
|
- lib/ggem/template_file/lib.rb.erb
|
84
99
|
- lib/ggem/template_file/lib_version.rb.erb
|
100
|
+
- lib/ggem/template_file/rubocop.yml.erb
|
85
101
|
- lib/ggem/template_file/ruby-version.erb
|
102
|
+
- lib/ggem/template_file/t.yml.erb
|
86
103
|
- lib/ggem/template_file/test_helper.rb.erb
|
87
104
|
- lib/ggem/template_file/test_support_factory.rb.erb
|
88
105
|
- lib/ggem/version.rb
|
@@ -117,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
117
134
|
- !ruby/object:Gem::Version
|
118
135
|
version: '0'
|
119
136
|
requirements: []
|
120
|
-
rubygems_version: 3.1.
|
137
|
+
rubygems_version: 3.1.6
|
121
138
|
signing_key:
|
122
139
|
specification_version: 4
|
123
140
|
summary: '"Juh Gem", baby! (a gem utility CLI)'
|