dev 2.0.292 → 2.0.293

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/base/environment.rb +10 -6
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ad60bd69f74b70c45df8b1e0770c68a0d78d34ac
4
- data.tar.gz: 95ba927d5c01acf3164d3a80425ce2b3bb7e60ca
3
+ metadata.gz: 0cb48ef891c3c3b0f2701281e2d5ca76e4918a39
4
+ data.tar.gz: 5888ebaabd5111748cbc15bb9d441c9ff12f75f9
5
5
  SHA512:
6
- metadata.gz: f86ba44fbb5ed8887559aadce7fd3e4532dc9155c0343f7443321cced6e812469336fb8aa3d0574895336b66154ed018e5e947b954529720b54c1eb1dbb991d4
7
- data.tar.gz: 8704b032953e05d1b29ec42f18b284aa49d5ec9ba7adee62d38bba0e4d3c0b8518ae824e0a1a088c414de4027a7915dbc0ea0f2bbbe01749f9fe3b338cef5faf
6
+ metadata.gz: 0f2f2e43b47f8e7fa631c0195e941efe2b7ff2f538bf20013a6e52e57d7fb7a0c700bae241da5e12d7f3a36da8b8a61de0a1243dba1ddf55656b58612244d6ec
7
+ data.tar.gz: cf78b9a0c8ab9b7dd72e1fb7995b1bcede0bd70b278846b2fbbc26cae9dfc9853a7af4c3b31066776f0ccb7e112ae67fcb4a830026cac3a4f4acc8c0f38cfe34
@@ -3,7 +3,7 @@ puts __FILE__ if defined?(DEBUG)
3
3
  require_relative('string.rb')
4
4
 
5
5
  class Environment < Hash
6
- attr_accessor :output
6
+ attr_accessor :output,:publish_dir
7
7
  @@default=nil
8
8
  def self.default
9
9
  @@default=Environment.new if @@default.nil?
@@ -12,6 +12,7 @@ class Environment < Hash
12
12
 
13
13
  def initialize env=nil
14
14
  @output=''
15
+
15
16
  @env=Hash.new
16
17
  @env_aliases={'HOME' => ['USERPROFILE'],
17
18
  'DEV_ROOT' => ['DEV_HOME','HOME','USERPROFILE'],
@@ -19,6 +20,9 @@ class Environment < Hash
19
20
  }
20
21
  env.each{|k,v| @env[k.to_s]=v} if !env.nil?
21
22
  @@default=self if @@default.nil?
23
+
24
+ @publish_dir="#{root_dir}/publish"
25
+ FileUtils.mkdir_p @publish_dir if !File.exists? @publish_dir
22
26
  end
23
27
 
24
28
  #####Begin LEGACY support
@@ -53,11 +57,11 @@ class Environment < Hash
53
57
  dir
54
58
  end
55
59
 
56
- def publish_dir
57
- dir="#{root_dir}/publish"
58
- FileUtils.mkdir_p dir if !File.exists? dir
59
- dir
60
- end
60
+ #def publish_dir
61
+ # dir="#{root_dir}/publish"
62
+ # FileUtils.mkdir_p dir if !File.exists? dir
63
+ # dir
64
+ #end
61
65
 
62
66
  def wrk_dir
63
67
  dir="#{root_dir}/wrk"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.292
4
+ version: 2.0.293
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-17 00:00:00.000000000 Z
11
+ date: 2016-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake