dev 2.0.84 → 2.0.85
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dev_commands.rb +1 -0
- data/lib/dev_environment.rb +0 -27
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a275d2ae49de618a65ba997a0c6ee90753aaf5e
|
4
|
+
data.tar.gz: 0818b01ca8174de54ed289f25e7c6fb6d978ea77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: daa7d5163d79a99a5bbe65a085ac55056bf1276d2f00571e42bd5a5f9461da9e3acf8ee34253b08714580de453a4a409c8d6e551802f44f2a4a3554a06f507a4
|
7
|
+
data.tar.gz: 54084bbad52f5d0f62fccc11b2ccd52753d8bc7e4e083590a57edd79a3966d93d90147ba7078346c7683890f8468e80d8658217640b12ac89537fb8e216900fa
|
data/lib/dev_commands.rb
CHANGED
data/lib/dev_environment.rb
CHANGED
@@ -38,11 +38,7 @@ class Environment < Hash
|
|
38
38
|
dir=home
|
39
39
|
return dir
|
40
40
|
end
|
41
|
-
|
42
|
-
|
43
41
|
end
|
44
|
-
require 'fileutils'
|
45
|
-
|
46
42
|
class File
|
47
43
|
def self.amalgamate filename,source
|
48
44
|
File.open(filename,'w'){|file|
|
@@ -51,27 +47,4 @@ class File
|
|
51
47
|
}
|
52
48
|
}
|
53
49
|
end
|
54
|
-
|
55
|
-
def self.publish destination, source_dir, source_glob='**/*'
|
56
|
-
|
57
|
-
output = "\n"
|
58
|
-
# directory
|
59
|
-
FileUtils.mkdir_p destination if !File.exists? destination
|
60
|
-
|
61
|
-
files=nil
|
62
|
-
Dir.chdir(source_dir) do
|
63
|
-
files=FileList.new(source_glob).to_a
|
64
|
-
end
|
65
|
-
output = output + "\nfiles: #{files}.to_s"
|
66
|
-
|
67
|
-
Dir.chdir(source_dir) do
|
68
|
-
files.each{|f|
|
69
|
-
file="#{destination}/#{f}"
|
70
|
-
dirname=File.dirname(file)
|
71
|
-
FileUtils.mkdir_p dirname if !File.exists? dirname
|
72
|
-
FileUtils.cp(f,file) if !File.exists? file
|
73
|
-
}
|
74
|
-
end
|
75
|
-
output
|
76
|
-
end
|
77
50
|
end
|
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.
|
4
|
+
version: 2.0.85
|
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-05-
|
11
|
+
date: 2015-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -59,7 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
59
59
|
version: '0'
|
60
60
|
requirements: []
|
61
61
|
rubyforge_project:
|
62
|
-
rubygems_version: 2.
|
62
|
+
rubygems_version: 2.4.5
|
63
63
|
signing_key:
|
64
64
|
specification_version: 4
|
65
65
|
summary: dev
|