batali 0.2.26 → 0.2.28

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: dac0de77697b201893a7f171b36a7e27031936f2
4
- data.tar.gz: d7ee1c50669c8a4c8ffcd818813c2fa07a998811
3
+ metadata.gz: 7b44f99fa570ad86207c32e369debe3dd75c8b97
4
+ data.tar.gz: 22d5f10a9a4a6d0fad0940af77308aaa2fb565bf
5
5
  SHA512:
6
- metadata.gz: c066c8150764c5cbf92d6e28448f3c0d243c2417dd3371265154822049c8c51ae23c2790c7642722103cf12eceef48d638436c36dac9d18f6dfe796cb756f315
7
- data.tar.gz: 42b2598fd903b77feed6e5d1c2c0444ddc364ab3f1301e5a03bf408f9f6729b19b6db90e4ca13e459198be6be66be43ea910aa2c4e498fc581f618a5e3027a79
6
+ metadata.gz: a0623ef78ba50bd270b25bfa918732a517c0a8e7283aa5461bd34f87857bb82c3be89409b8e07bb1dcebc4f97dd49d42039469d4bcc13f277d6857c4bf8638b2
7
+ data.tar.gz: 25711d822b4831f284b9f3f2871813602f1a05db1fe9356328f6e0432c8586e04f229e2297d9b59cae2033f80dbfec5799df3d2504769887a67ec7982fc981b0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # v0.2.28
2
+ * [fix] Properly install subdirectory when path defined on git source
3
+
1
4
  # v0.2.26
2
5
  * [feature] Add subdirectory support for git repository sources
3
6
 
@@ -14,7 +14,8 @@ module Batali
14
14
  super
15
15
  self.identifier = Smash.new(
16
16
  :url => url,
17
- :ref => ref
17
+ :ref => ref,
18
+ :subdirectory => subdirectory
18
19
  ).checksum
19
20
  unless(name?)
20
21
  self.name = self.identifier
@@ -11,14 +11,17 @@ module Batali
11
11
  include Bogo::Memoization
12
12
  include Batali::Git
13
13
 
14
- attribute :subdirectory, String
14
+ attribute :subdirectory, String, :equivalent => true
15
15
  attribute :path, String
16
16
 
17
17
  # @return [String] directory containing contents
18
18
  def asset
19
19
  clone_repository
20
+ clone_path = ref_dup
20
21
  self.path = File.join(*[ref_dup, subdirectory].compact)
21
- super
22
+ result = super
23
+ self.path = clone_path
24
+ result
22
25
  end
23
26
 
24
27
  # Overload to remove non-relevant attributes
@@ -27,7 +30,8 @@ module Batali
27
30
  Smash.new(
28
31
  :url => url,
29
32
  :ref => ref,
30
- :type => self.class.name
33
+ :type => self.class.name,
34
+ :subdirectory => subdirectory
31
35
  ), *args
32
36
  )
33
37
  end
@@ -1,4 +1,4 @@
1
1
  module Batali
2
2
  # Current version
3
- VERSION = Gem::Version.new('0.2.26')
3
+ VERSION = Gem::Version.new('0.2.28')
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: batali
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.26
4
+ version: 0.2.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Roberts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-24 00:00:00.000000000 Z
11
+ date: 2015-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: attribute_struct