rubygems-new 0.1.0 → 0.1.1
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 +4 -4
- data/lib/rubygems/commands/new_command.rb +14 -8
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f71de24ac664b6ab14d3b469370dfcab717a3748af1d064eda5724fc6213e652
|
4
|
+
data.tar.gz: 8a777c2ead96e104524cc2165491438791ae44366ec5662da59be84303399439
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3277a38dc89dd8c03f0714bc2f0d807b7e26accbf47e504b0fb2e56275ffbf68f88ff2d5b615f01aeca72817ce9562bca43cd9e48b4d3bc56088cd673e11c89
|
7
|
+
data.tar.gz: b84db8e9012d6c16192f490f7661a740f83fcb1759860665cb2bc8b4e01c55f66d26d716be5826d3f72ab3effb0215e5438580cd1baea66ee65c16bb64e232a6
|
@@ -125,7 +125,7 @@ Gem::Specification.new do |s|
|
|
125
125
|
|
126
126
|
# Recommended
|
127
127
|
s.license = "#{options[:license]}"
|
128
|
-
s.description = ""
|
128
|
+
s.description = ""
|
129
129
|
s.date = #{Date.today.strftime("%Y-%m-%d")}
|
130
130
|
s.email = ""
|
131
131
|
s.homepage = ""
|
@@ -181,13 +181,19 @@ GEMSPEC
|
|
181
181
|
end
|
182
182
|
|
183
183
|
def add_version_control
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
184
|
+
Dir.chdir(@project_name) do
|
185
|
+
# set up git unless other option listed
|
186
|
+
verbose "Initializing version control with #{options[:version_control]}"
|
187
|
+
case options[:version_control]
|
188
|
+
when "git"
|
189
|
+
`git init`
|
190
|
+
`git add **/*`
|
191
|
+
`git commit -m "Initialize gem #{@project_name}"`
|
192
|
+
when "mercurial"
|
193
|
+
`hg init`
|
194
|
+
`git add **/*`
|
195
|
+
`git commit -m "Initialize gem #{@project_name}`
|
196
|
+
end
|
191
197
|
end
|
192
198
|
end
|
193
199
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubygems-new
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kellen Watt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-02-
|
11
|
+
date: 2021-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Rubygems plugin that generates new, empty, Rubygems projects, including
|
14
14
|
a README, version control (e.g. git), and basic project structure.
|