toastyapps-gembox 1.3.2 → 1.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/gembox.rb +3 -4
  2. data/lib/templates/bashrc +1 -1
  3. metadata +1 -1
data/lib/gembox.rb CHANGED
@@ -3,9 +3,8 @@ require 'yaml'
3
3
  require 'erb'
4
4
 
5
5
  class Gembox
6
- VERSION = '1.3.2'
7
- attr_accessor :dir, :cfg
8
- attr_accessor :cfg
6
+ VERSION = '1.3.3'
7
+ attr_accessor :dir, :cfg, :box_name
9
8
 
10
9
  def initialize
11
10
  @cfg_path = "#{ENV['HOME']}/.gembox/config.yml"
@@ -18,7 +17,7 @@ class Gembox
18
17
 
19
18
  def self.create(args)
20
19
  args.each do |box_name|
21
-
20
+ @box_name = box_name
22
21
  @dir = "#{ENV['HOME']}/.gembox/#{box_name}"
23
22
 
24
23
  if File.exists?(@dir)
data/lib/templates/bashrc CHANGED
@@ -1,4 +1,4 @@
1
- PS1="gembox:\w> "
1
+ PS1="gembox-<%= @box_name %>:\w> "
2
2
  export PATH=<%= @dir %>/usr/bin:$PATH
3
3
  alias gem='ruby <%= @dir %>/dispatch.rb'
4
4
  export GEM_PATH=<%= @dir %>/gems
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: toastyapps-gembox
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Mongeau