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 +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/batali/origin/git.rb +2 -1
- data/lib/batali/source/git.rb +7 -3
- data/lib/batali/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7b44f99fa570ad86207c32e369debe3dd75c8b97
|
|
4
|
+
data.tar.gz: 22d5f10a9a4a6d0fad0940af77308aaa2fb565bf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a0623ef78ba50bd270b25bfa918732a517c0a8e7283aa5461bd34f87857bb82c3be89409b8e07bb1dcebc4f97dd49d42039469d4bcc13f277d6857c4bf8638b2
|
|
7
|
+
data.tar.gz: 25711d822b4831f284b9f3f2871813602f1a05db1fe9356328f6e0432c8586e04f229e2297d9b59cae2033f80dbfec5799df3d2504769887a67ec7982fc981b0
|
data/CHANGELOG.md
CHANGED
data/lib/batali/origin/git.rb
CHANGED
data/lib/batali/source/git.rb
CHANGED
|
@@ -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
|
data/lib/batali/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2015-10-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: attribute_struct
|