vesper 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -10,10 +10,6 @@ You may need to sudo this:
10
10
 
11
11
  Create an app:
12
12
 
13
- vesper create MyApp && cd MyApp
13
+ vesper create MyApp
14
14
 
15
- Start it up:
16
-
17
- rackup
18
-
19
- Then take a look at http://localhost:9292.
15
+ Follow the on screen instructions, then take a look at http://localhost:9292.
data/bin/vesper CHANGED
@@ -2,11 +2,23 @@
2
2
 
3
3
  require 'fileutils.rb'
4
4
 
5
- if ARGV[0]
5
+ if ARGV[0] && ARGV[1]
6
6
  case ARGV[0]
7
7
  when 'create'
8
+ puts "Creating #{ARGV[1]}..."
8
9
  FileUtils.cp_r File.dirname(__FILE__) + '/../lib/vesper/template', ARGV[1] unless Dir.exists? ARGV[1]
10
+ puts "Bundling gems..."
11
+ exec "cd #{ARGV[1]} && bundle >nul 2>nul && echo '\n#{ARGV[1]} is ready. Next steps:\n cd #{ARGV[1]}\n rackup\n'"
12
+ else
13
+ # This should be temporary until there are more ARGV[0] commands
14
+ puts ''
15
+ puts 'To create a Vesper app:'
16
+ puts ' vesper create <app_name>'
17
+ puts ''
9
18
  end
10
19
  else
11
- # Message about what commands to use goes here
20
+ puts ''
21
+ puts 'To create a Vesper app:'
22
+ puts ' vesper create <app_name>'
23
+ puts ''
12
24
  end
@@ -5,7 +5,7 @@
5
5
  # Directories to load, in order
6
6
  load_files = [
7
7
  'config',
8
- 'bundle/plugins',
8
+ 'vendor/plugins',
9
9
  'lib'
10
10
  ]
11
11
  load_files.each {|dir| Dir["./#{dir}/**/*.rb"].each {|file| require file}}
@@ -1,3 +1,3 @@
1
1
  module Vesper
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vesper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: