architecture 6.0.2 → 6.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/architecture/dsl.rb +8 -8
- data/lib/architecture/version.rb +1 -1
- data/spec/lib/architecture_spec.rb +1 -1
- data/spec/spec_helper.rb +22 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1da7f5baa4dcee4b0b3f9e1f62c6c0635ca04ca5
|
4
|
+
data.tar.gz: 539ecd342ed8fb7ba64ccfae94c7b3e2fd80ad39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a60e864cf2ebfc7c57c830401fba63bc899b74ef566e6ec9617b9278295be82674ee77d325f147b2061df22d1502ad54d3f01dab6b058578d8ac3272179b50a7
|
7
|
+
data.tar.gz: c4f1396ec177b6bfa127e4be28249c73f7946e602438d1c818a91ebeb4b8b0e74594d179680e7bae488e34e0647aa9ebcb7d48b981b7d83c99b46a80405ab47b
|
data/lib/architecture/dsl.rb
CHANGED
@@ -17,7 +17,7 @@ module Architecture
|
|
17
17
|
|
18
18
|
@output.print("#{indentention}Copying #{a} to #{b}")
|
19
19
|
|
20
|
-
Copy.new(source: a, destination: b, context: context)
|
20
|
+
Copy.new(source: a, destination: b, context: context).call
|
21
21
|
|
22
22
|
@output.puts(" succeeded.")
|
23
23
|
|
@@ -32,7 +32,7 @@ module Architecture
|
|
32
32
|
|
33
33
|
@output.print("#{indentention}Moving #{a} to #{b}")
|
34
34
|
|
35
|
-
Move.new(source: a, destination: b)
|
35
|
+
Move.new(source: a, destination: b).call
|
36
36
|
|
37
37
|
@output.puts(" succeeded.")
|
38
38
|
|
@@ -46,7 +46,7 @@ module Architecture
|
|
46
46
|
|
47
47
|
@output.print("#{indentention}Creating #{a}")
|
48
48
|
|
49
|
-
Create.new(source: a, content: content, context: context)
|
49
|
+
Create.new(source: a, content: content, context: context).call
|
50
50
|
|
51
51
|
@output.puts(" succeeded.")
|
52
52
|
|
@@ -60,7 +60,7 @@ module Architecture
|
|
60
60
|
|
61
61
|
@output.print("#{indentention}Deleting #{a}")
|
62
62
|
|
63
|
-
Delete.new(source: a)
|
63
|
+
Delete.new(source: a).call
|
64
64
|
|
65
65
|
@output.puts(" succeeded.")
|
66
66
|
end
|
@@ -70,7 +70,7 @@ module Architecture
|
|
70
70
|
|
71
71
|
@output.print("#{indentention}Replacing content in #{a}")
|
72
72
|
|
73
|
-
Replace.new(source: a, search: search, content: content)
|
73
|
+
Replace.new(source: a, search: search, content: content).call
|
74
74
|
|
75
75
|
@output.puts(" succeeded.")
|
76
76
|
end
|
@@ -81,7 +81,7 @@ module Architecture
|
|
81
81
|
@output.print("#{indentention}Prepending #{a} with content")
|
82
82
|
|
83
83
|
|
84
|
-
Prepend.new(source: a, content: content, context: context)
|
84
|
+
Prepend.new(source: a, content: content, context: context).call
|
85
85
|
|
86
86
|
@output.puts(" succeeded.")
|
87
87
|
end
|
@@ -91,7 +91,7 @@ module Architecture
|
|
91
91
|
|
92
92
|
@output.print("#{indentention}Appending #{a}")
|
93
93
|
|
94
|
-
Append.new(source: a, content: content, context: context)
|
94
|
+
Append.new(source: a, content: content, context: context).call
|
95
95
|
|
96
96
|
@output.puts(" succeeded.")
|
97
97
|
end
|
@@ -101,7 +101,7 @@ module Architecture
|
|
101
101
|
|
102
102
|
@output.print("#{indentention}Appending #{a}")
|
103
103
|
|
104
|
-
Overwrite.new(source: a, content: content, context: context)
|
104
|
+
Overwrite.new(source: a, content: content, context: context).call
|
105
105
|
|
106
106
|
@output.puts(" succeeded.")
|
107
107
|
end
|
data/lib/architecture/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -1,6 +1,26 @@
|
|
1
1
|
require "codeclimate-test-reporter"
|
2
|
-
CodeClimate::TestReporter.start
|
3
|
-
|
4
2
|
require "pry"
|
5
3
|
require "rspec"
|
6
4
|
require "architecture"
|
5
|
+
|
6
|
+
RSpec.configure do |let|
|
7
|
+
let.before("suite") do
|
8
|
+
CodeClimate::TestReporter.start
|
9
|
+
end
|
10
|
+
|
11
|
+
# Exit the spec after the first failure
|
12
|
+
let.fail_fast = true
|
13
|
+
|
14
|
+
# Only run a specific file, using the ENV variable
|
15
|
+
# Example: FILE=spec/blankgem/version_spec.rb bundle exec rake spec
|
16
|
+
let.pattern = ENV["FILE"]
|
17
|
+
|
18
|
+
# Show the slowest examples in the suite
|
19
|
+
let.profile_examples = true
|
20
|
+
|
21
|
+
# Colorize the output
|
22
|
+
let.color = true
|
23
|
+
|
24
|
+
# Output as a document string
|
25
|
+
let.default_formatter = "doc"
|
26
|
+
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: 6.0.
|
4
|
+
version: 6.0.3
|
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-
|
11
|
+
date: 2015-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mustache
|
@@ -162,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
162
162
|
version: '0'
|
163
163
|
requirements: []
|
164
164
|
rubyforge_project:
|
165
|
-
rubygems_version: 2.4.
|
165
|
+
rubygems_version: 2.4.8
|
166
166
|
signing_key:
|
167
167
|
specification_version: 4
|
168
168
|
summary: A DSL and object space for handling scaffolding
|