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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c5393997481a91d303ed36cb2457851a72348ecc
4
- data.tar.gz: 2c98fd296df54589c889f4ecb9502d50962b29db
3
+ metadata.gz: d103297d2ecb024f9103678043e969411c9217cf
4
+ data.tar.gz: 4b07601fcadd8ce4a56f3a9b56dd2101e0ad90b7
5
5
  SHA512:
6
- metadata.gz: bdb0de15d84112254fb52b87ec706c9000f70fd7abece67e2d3e5547a04051c2035bf9b8333229b4c817150ee7289c0d4d821b12a5639c60326d57b084fb3798
7
- data.tar.gz: c7f65098fe3e153c87c1f330a8da8d6a6cafe3a47343446221ad31816bb30b44d38eba15ddcb3f5840631f371820e5e4ce947af26627cd045eb43f11bf2946e0
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
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module Architecture
2
- VERSION = "3.0.0"
2
+ VERSION = "4.0.0"
3
3
  end
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: 3.0.0
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-17 00:00:00.000000000 Z
11
+ date: 2015-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mustache