ruby_chopped 0.0.1 → 0.0.2

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/README CHANGED
@@ -8,4 +8,11 @@ gem install ruby_chopped
8
8
 
9
9
  then
10
10
 
11
- ruby_chopped new whyday_basket
11
+ ruby_chopped new whyday_basket
12
+
13
+
14
+ Contributors
15
+
16
+ markmcspadden
17
+
18
+ badboy
data/bin/ruby_chopped CHANGED
@@ -2,16 +2,15 @@
2
2
 
3
3
  $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
4
4
  require 'ruby_chopped'
5
+ require 'fileutils'
5
6
 
6
7
  if "new" == ARGV.shift && ARGV.first
7
8
  folder = ARGV.shift
8
9
 
9
10
  puts "Creating #{folder} basket..."
10
11
 
11
- # TODO: Use Ruby for this
12
- `mkdir #{folder}`
13
- `mkdir #{folder}/lib`
14
- `touch #{folder}/lib/#{folder}.rb`
12
+ FileUtils.mkdir_p(File.join(folder, "lib"))
13
+ FileUtils.touch(File.join(folder, "lib", "#{folder}.rb"))
15
14
  File.open("#{folder}/Gemfile", "wb+") do |f|
16
15
  f << RubyChopped.gemfile_string
17
16
  end
@@ -1,3 +1,3 @@
1
1
  module RubyChopped
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 1
9
- version: 0.0.1
8
+ - 2
9
+ version: 0.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Mark McSpadden