architecture 3.0.0 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/architecture.rb +4 -0
- data/lib/architecture/dsl.rb +2 -2
- data/lib/architecture/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: d103297d2ecb024f9103678043e969411c9217cf
|
4
|
+
data.tar.gz: 4b07601fcadd8ce4a56f3a9b56dd2101e0ad90b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f72f89ad61f8c98b063fcda0701cf606d874c09bb458da34c0d8d1921543ffb03f87fca2ac866891c3962241e974720ca5e5b8bef86449a414ae93e469050b10
|
7
|
+
data.tar.gz: 02b39d30fb37521504c2df86cd56082b6aa01fa590965cc0d37e854194bf3180385fd05aa6f0ed63d698b562c2fa9a2ca453f278a023d0740248ea1d5ca2fe1d
|
data/lib/architecture.rb
CHANGED
@@ -14,4 +14,8 @@ module Architecture
|
|
14
14
|
require_relative "architecture/prepend"
|
15
15
|
require_relative "architecture/replace"
|
16
16
|
require_relative "architecture/version"
|
17
|
+
|
18
|
+
private def architecture(source:, destination:, &block)
|
19
|
+
::Architecture::DSL.new(source: source, destination: destination, &block)
|
20
|
+
end
|
17
21
|
end
|
data/lib/architecture/dsl.rb
CHANGED
@@ -6,7 +6,7 @@ module Architecture
|
|
6
6
|
@source = source
|
7
7
|
@destination = destination
|
8
8
|
|
9
|
-
yield
|
9
|
+
yield(self)
|
10
10
|
end
|
11
11
|
|
12
12
|
private def copy(name:, as: name, context: {})
|
@@ -33,7 +33,7 @@ module Architecture
|
|
33
33
|
::Architecture::Prepend.new(source: file, content: content, context: context).call
|
34
34
|
end
|
35
35
|
|
36
|
-
private def append(file: nil, content:)
|
36
|
+
private def append(file: nil, content:, context: {})
|
37
37
|
::Architecture::Append.new(source: file, content: content, context: context).call
|
38
38
|
end
|
39
39
|
|
data/lib/architecture/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: architecture
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kurtis Rainbolt-Greene
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mustache
|