dev 2.0.81 → 2.0.82

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/dev_environment.rb +6 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 827d2462eab2fc688bf3d01adf7bcb44a92089dc
4
- data.tar.gz: c8c7e6ffe9e81236ebfe14c034b879918fde474b
3
+ metadata.gz: aae55339f7e52b6856e43c9a18584e69dbf86390
4
+ data.tar.gz: 139395ef5294bddefec0dc7843fd2603923cafec
5
5
  SHA512:
6
- metadata.gz: a0b00e6fd0a70fb915ca04b66f2f275068d868a88311ce64fc16765e8c0aa34698dc49875720b82a53de64737051a6770d503fe6fd8f1fcf2355bfcec88a1972
7
- data.tar.gz: 0d8f328557f2e9714034afd0674d4be94dd9388d658c656583bbbb83b0aff2368ac33630f2a05b3ce2f804447f31391bdde98b4eade6857dff47dbc8274f3203
6
+ metadata.gz: f04badea13e987497466d06721f34c6c5fde30c2533970514bf96ead15a2948849c31e137e68bc275dc3c763b1936548dbf36f25cfe0eeeec3db15cf203c0071
7
+ data.tar.gz: 10e5817155f4097f023ea3bc3b76e43ed1f59c3af70de3c0f60e977d865a6f3159c864dadfae27508d62188fe8b5e19187d75197fb7fe8206ebd9c499a9deda0
@@ -39,6 +39,8 @@ class Environment < Hash
39
39
  return dir
40
40
  end
41
41
  end
42
+ require 'fileutils'
43
+
42
44
  class File
43
45
  def self.amalgamate filename,source
44
46
  File.open(filename,'w'){|file|
@@ -66,8 +68,10 @@ class File
66
68
 
67
69
  Dir.chdir(source_dir) do
68
70
  files.each{|f|
69
- FileUtils.mkdir_p File.dirname("#{destination}/f") if !File.exists? File.dirname("#{destination}/f")
70
- FileUtils.cp(f,"#{destination}/#{f}")
71
+ file="#{destination}/#{f}"
72
+ dirname=File.dirname(file)
73
+ FileUtils.mkdir_p dirname if !File.exists? dirname
74
+ FileUtils.cp(f,file)
71
75
  }
72
76
  end
73
77
  output
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.81
4
+ version: 2.0.82
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow