roger_themes 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/roger_themes/version.rb +1 -1
- data/lib/roger_themes/xc_finalizer.rb +6 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 813735f3247d0d51701f134aef48190d7b36bcdd
|
4
|
+
data.tar.gz: 9f8f4424ba9daf3d74f09c54ff8d7eb56314e9dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd89effd5d00d03c485beb4f55dadc734282187d63dfd3e62995df26cfb5aaf7106ee3b76e6fb66d8a0924aaccd677abb33971fae9539fe36c4e9e7e2ad8642b
|
7
|
+
data.tar.gz: e8bc5d88c38b0be225854e7ce3bf8f53aa5462947bad7e1e40e9e22b1638076e6defdb4e8646b25875d28f81d0850e3448c6dbac9c37a35e02367a76ecbe98ca
|
data/lib/roger_themes/version.rb
CHANGED
@@ -10,21 +10,21 @@ module RogerThemes
|
|
10
10
|
# @param [Hash] options Options hash
|
11
11
|
# @option options [String] :prefix ("html") The name to prefix the zipfile with (before version)
|
12
12
|
# @option options [String] :zip ("zip") The ZIP command to use
|
13
|
-
# @option options [String] :source_path ("themes/*") The paths to zip
|
14
|
-
# @option options [String] :target_path ("themes/zips") The path to the zips
|
13
|
+
# @option options [String] :source_path (release.build_path + "themes/*") The paths to zip
|
14
|
+
# @option options [String] :target_path (release.build_path + "themes/zips") The path to the zips
|
15
15
|
def call(release, options = {})
|
16
16
|
options = {
|
17
17
|
:prefix => "html",
|
18
18
|
:zip => "zip",
|
19
|
-
:source_path => "themes/*",
|
20
|
-
:target_path => "themes/zips"
|
19
|
+
:source_path => release.build_path + "themes/*",
|
20
|
+
:target_path => release.build_path + "themes/zips"
|
21
21
|
}.update(options)
|
22
22
|
|
23
|
-
dirs = Dir.glob(
|
23
|
+
dirs = Dir.glob(options[:source_path].to_s)
|
24
24
|
|
25
25
|
releasename = [(options[:prefix] || "html"), release.scm.version].join("-")
|
26
26
|
|
27
|
-
zipdir =
|
27
|
+
zipdir = options[:target_path]
|
28
28
|
FileUtils.mkdir_p(zipdir) unless zipdir.exist?
|
29
29
|
|
30
30
|
dirs.each do |dir|
|