architecture 6.0.6 → 6.0.7

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: dec6cc51d2bc3e079342150aedebed5785025e07
4
- data.tar.gz: b879fd96d46c8ff893ec67967e9d5523efbeecae
3
+ metadata.gz: aafe080c74388c438459d96e6a953748d5912707
4
+ data.tar.gz: 00820940f249adb71c36da59432ee8a3df7b4e29
5
5
  SHA512:
6
- metadata.gz: cd20a9b6e42bb1090d139d345e0f3900ea43b0abe15097dd4c1de164d4fc5ed1ec20294455ef010d3f575d13a03b6d63721108467df84c0b0b20233014bc42a0
7
- data.tar.gz: 6557d0d9b8eee146fa346ccaa9001d5fb56908cc4424ae6bc23fe90aaa51af9ae65642869a599f67062c9931403cefc5a5945d3196ea4757f8afd0d95b8afcb0
6
+ metadata.gz: e9697ac42a57b007b5eea4c59d25b3e1571dd77b1b091b7c783e5f59c6e6877dbda222564b13481213c68b6b404c81ba51a95f754f0200d505314bc3c91cd40b
7
+ data.tar.gz: d2578d069e4c851caf168dbf1961ec8347598010442b10c5892468a092af1e1deb57d44106ea096a0f32df43912bf7eaf0d6f56b174046ca26cd4118fd4507dd
@@ -15,7 +15,7 @@ module Architecture
15
15
  a = Entity.new(id: directory || file, prefix: @source)
16
16
  b = Entity.new(id: as || directory || file, prefix: @destination)
17
17
 
18
- @output.print("#{indentention}Copying #{truncate(a.to_s)} to #{truncate(b.to_s)}")
18
+ @output.print("#{indentention}Copying {#{truncate(a.path)}} to {#{truncate(b.path)}}")
19
19
 
20
20
  Copy.new(source: a, destination: b, context: context).call
21
21
 
@@ -30,7 +30,7 @@ module Architecture
30
30
  a = Entity.new(id: directory || file, prefix: @source)
31
31
  b = Entity.new(id: as, prefix: @destination)
32
32
 
33
- @output.print("#{indentention}Moving #{truncate(a.to_s)} to #{truncate(b.to_s)}")
33
+ @output.print("#{indentention}Moving {#{truncate(a.path)}} to {#{truncate(b.path)}}")
34
34
 
35
35
  Move.new(source: a, destination: b).call
36
36
 
@@ -44,7 +44,7 @@ module Architecture
44
44
  def create(file: nil, directory: nil, content: nil, context: EMPTY_CONTEXT, location: nil, &block)
45
45
  a = Entity.new(id: directory || file, prefix: location || @destination)
46
46
 
47
- @output.print("#{indentention}Creating #{truncate(a.to_s)}")
47
+ @output.print("#{indentention}Creating {#{truncate(a.path)}}")
48
48
 
49
49
  Create.new(source: a, content: content, context: context).call
50
50
 
@@ -58,7 +58,7 @@ module Architecture
58
58
  def delete(directory: nil, file: nil, location: nil)
59
59
  a = Entity.new(id: directory || file, prefix: location || @destination)
60
60
 
61
- @output.print("#{indentention}Deleting #{truncate(a.to_s)}")
61
+ @output.print("#{indentention}Deleting {#{truncate(a.path)}}")
62
62
 
63
63
  Delete.new(source: a).call
64
64
 
@@ -68,7 +68,7 @@ module Architecture
68
68
  def replace(file:, search:, content:, location: nil)
69
69
  a = Entity.new(id: file, prefix: location || @destination)
70
70
 
71
- @output.print("#{indentention}Replacing content in #{truncate(a.to_s)}")
71
+ @output.print("#{indentention}Replacing content in {#{truncate(a.path)}}")
72
72
 
73
73
  Replace.new(source: a, search: search, content: content).call
74
74
 
@@ -78,7 +78,7 @@ module Architecture
78
78
  def prepend(file:, content:, context: Architecture::EMPTY_CONTEXT, location: nil)
79
79
  a = Entity.new(id: file, prefix: location || @destination)
80
80
 
81
- @output.print("#{indentention}Prepending #{truncate(a.to_s)} with content")
81
+ @output.print("#{indentention}Prepending {#{truncate(a.path)}} with content")
82
82
 
83
83
  Prepend.new(source: a, content: content, context: context).call
84
84
 
@@ -88,7 +88,7 @@ module Architecture
88
88
  def append(file:, content:, context: Architecture::EMPTY_CONTEXT, location: nil)
89
89
  a = Entity.new(id: directory || file, prefix: location || @destination)
90
90
 
91
- @output.print("#{indentention}Appending #{a} with content")
91
+ @output.print("#{indentention}Appending {#{truncate(a.path)}} with content")
92
92
 
93
93
  Append.new(source: a, content: content, context: context).call
94
94
 
@@ -98,7 +98,7 @@ module Architecture
98
98
  def overwrite(file:, content:, context: Architecture::EMPTY_CONTEXT, location: nil)
99
99
  a = Entity.new(id: directory || file, prefix: location || @destination)
100
100
 
101
- @output.print("#{indentention}Overwriting #{truncate(a.to_s)} with content")
101
+ @output.print("#{indentention}Overwriting {#{truncate(a.path)}} with content")
102
102
 
103
103
  Overwrite.new(source: a, content: content, context: context).call
104
104
 
@@ -106,7 +106,7 @@ module Architecture
106
106
  end
107
107
 
108
108
  def within(directory: nil, source: @source, destination: @destination, &block)
109
- @output.puts "#{indentention}Within #{directory || truncate(destination)}"
109
+ @output.puts "#{indentention}Within {#{truncate(join(@destination, directory || destination))}}"
110
110
 
111
111
  self.class.new(source: join(@source, directory || source), destination: join(@destination, directory || destination), output: @output, level: @level + 1, &block)
112
112
  end
@@ -54,7 +54,7 @@ module Architecture
54
54
  end
55
55
 
56
56
  def to_s
57
- "{#{path}}"
57
+ path
58
58
  end
59
59
 
60
60
  private def path
@@ -1,3 +1,3 @@
1
1
  module Architecture
2
- VERSION = "6.0.6"
2
+ VERSION = "6.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: architecture
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.6
4
+ version: 6.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kurtis Rainbolt-Greene