Sha256: 131ebbb6430281e96b669bc84da9bd4836b177e670de744fb87e995868d3aa66

Contents?: true

Size: 1.02 KB

Versions: 2

Compression:

Stored size: 1.02 KB

Contents

#!/usr/bin/env ruby

require 'generic_gem'

puts '***********************'
puts 'Welcome to Generic Gem!'
puts
puts 'DEFAULT VALUE: tmp1'
puts 'Enter the name of the gem you wish to create:'
subdir_name = gets.chomp
subdir_name = 'tmp1' if subdir_name == ''

puts
puts 'DEFAULT VALUE: Marie Curie'
puts 'Enter your name:'
your_name = gets.chomp
your_name = 'Marie Curie' if your_name == ''

puts
puts 'DEFAULT VALUE: mcurie@example.com'
puts 'Enter your email address:'
your_email = gets.chomp
your_email = 'mcurie@example.com' if your_email == ''

GenericGem.create(subdir_name, your_name, your_email)
system("cd #{subdir_name} && sh gem_test.sh")

puts
puts '******************************'
puts 'Your new gem is ready to roll.'
puts "GEM NAME: #{subdir_name}"
puts "YOUR NAME: #{your_name}"
puts "YOUR EMAIL: #{your_email}"
puts "Please remember to fill in the rest of your #{subdir_name}.gemspec file."
puts 'You still need to provide a gem summary, a gem description, and a homepage.'
puts 'You also need to remove the metadata section.'
puts

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
generic_gem-0.1.2 bin/generic_gem
generic_gem-0.1.0 bin/generic_gem