roger_themes 0.2.0 → 0.2.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c0720077a8aff27cb17a0ba446632cb9272db907
4
- data.tar.gz: a3609e21f3e0973ca72ae925a98884cec9a9b1e5
3
+ metadata.gz: 813735f3247d0d51701f134aef48190d7b36bcdd
4
+ data.tar.gz: 9f8f4424ba9daf3d74f09c54ff8d7eb56314e9dd
5
5
  SHA512:
6
- metadata.gz: 92da72d5e6d0b9c99842a554967fe7b9398ca5c1d80badfca19f615320a0d2ef447b5b031a5472e498e54ec4d27b27c4b05e9923829992d0afd02b7c0aa484da
7
- data.tar.gz: a5f36d66d7c273ae191017d427e0d1798660717af3ec60fa116b02b1f013bc8d6e53463c712bcb85416850382e0e0f062466cf6bed9ef9ff839a6ff9b852a7ad
6
+ metadata.gz: bd89effd5d00d03c485beb4f55dadc734282187d63dfd3e62995df26cfb5aaf7106ee3b76e6fb66d8a0924aaccd677abb33971fae9539fe36c4e9e7e2ad8642b
7
+ data.tar.gz: e8bc5d88c38b0be225854e7ce3bf8f53aa5462947bad7e1e40e9e22b1638076e6defdb4e8646b25875d28f81d0850e3448c6dbac9c37a35e02367a76ecbe98ca
@@ -1,3 +1,3 @@
1
1
  module RogerThemes
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -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((release.build_path + options[:source_path]).to_s)
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 = release.build_path + options[:target_path]
27
+ zipdir = options[:target_path]
28
28
  FileUtils.mkdir_p(zipdir) unless zipdir.exist?
29
29
 
30
30
  dirs.each do |dir|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roger_themes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edwin van der Graaf