my_scripts 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/VERSION +1 -1
  2. data/bin/gitcp +1 -2
  3. data/bin/jew +9 -16
  4. data/my_scripts.gemspec +1 -1
  5. metadata +1 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.0.4
data/bin/gitcp CHANGED
@@ -2,8 +2,7 @@
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__} [bump] Commit message goes here"
7
6
  exit 1
8
7
  end
9
8
 
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
- p ARGV
13
- case ARGV.size
14
- when 1 then
15
- project = ARGV[0]
16
- system "bones create --github \"FIXME: Description for #{project}\" -s basic #{project}"
17
- when 2 then
18
- project = ARGV[0]
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 "Learning Win32" --description "Experiments with Ruby on Windows using Win32OLE, Win32API and friends" win_exp"
19
+ system %Q["jeweler --rspec --cucumber --create-repo --summary "#{summary}" --description "#{summary}" #{project}"]
data/my_scripts.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{my_scripts}
8
- s.version = "0.0.3"
8
+ s.version = "0.0.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["arvicco"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: my_scripts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - arvicco