my_scripts 0.0.3 → 0.0.4
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.
- data/VERSION +1 -1
- data/bin/gitcp +1 -2
- data/bin/jew +9 -16
- data/my_scripts.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.4
|
data/bin/gitcp
CHANGED
data/bin/jew
CHANGED
|
@@ -2,25 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
# Show usage message and exit
|
|
4
4
|
def usage
|
|
5
|
-
puts "Usage:
|
|
6
|
-
#{__FILE__} [bump] Commit message goes here"
|
|
5
|
+
puts "Usage: #{__FILE__} project_name Summary or description goes here"
|
|
7
6
|
exit 1
|
|
8
7
|
end
|
|
9
8
|
|
|
10
9
|
usage if ARGV.empty?
|
|
11
10
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
descr = ARGV[1]
|
|
20
|
-
system "bones create --github \"#{descr}\" -s basic #{project}"
|
|
21
|
-
else
|
|
22
|
-
puts "Usage: #{ARGV[0]} project_name \"description\""
|
|
23
|
-
exit 1
|
|
24
|
-
end
|
|
11
|
+
# First Arg should be project name
|
|
12
|
+
project = ARGV.shift
|
|
13
|
+
|
|
14
|
+
# All the other args lumped into summary, or default summary
|
|
15
|
+
summary = ARGV.empty? ? "New project #{project}" : ARGV.join(' ')
|
|
16
|
+
|
|
17
|
+
puts "Creating Jeweler project #{project} with summary: #{summary}"
|
|
25
18
|
|
|
26
|
-
system "jeweler --rspec --cucumber --create-repo --summary "
|
|
19
|
+
system %Q["jeweler --rspec --cucumber --create-repo --summary "#{summary}" --description "#{summary}" #{project}"]
|
data/my_scripts.gemspec
CHANGED