reality-generators 1.13.0 → 1.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/reality/generators/template.rb +4 -1
- data/reality-generators.gemspec +1 -1
- data/test/generators/test_template.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: 3b72487b0475fa8850a257ce3e5775dcace591df
|
4
|
+
data.tar.gz: ee8e609a2ab2ecbdeccab1a064eb2d1f2afc6105
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aeee4f1cbc4a8c8ca738312a64e81cec33d961ef359b8c40d0fa5aa1442cae5a2909f569ac232827a50a5511b30349da7a36e6359765ba012a709a9ab5eda729
|
7
|
+
data.tar.gz: 3fcbe160f190a9cf4ec40bafd094ecf73b8bc3d76da0b346407fd6f34b6ad164a2950a685417cf25b9f3196d1786cb49d5b56ea409445263eaff730d3a0da5d4
|
@@ -171,9 +171,12 @@ module Reality #nodoc
|
|
171
171
|
begin
|
172
172
|
output_directory = eval("\"#{self.output_directory_pattern}\"", context_binding, "#{self.template_key}#Filename")
|
173
173
|
output_directory = File.join(target_basedir, output_directory)
|
174
|
-
unprocessed_files.delete_if { |f| f =~ /^#{output_directory}\/.*/ }
|
175
174
|
|
176
175
|
FileUtils.mkdir_p File.dirname(output_directory) unless File.directory?(File.dirname(output_directory))
|
176
|
+
|
177
|
+
output_directory = File.expand_path(output_directory)
|
178
|
+
unprocessed_files.delete_if { |f| File.expand_path(f) =~ /^#{Regexp.escape(output_directory)}\/.*/ }
|
179
|
+
|
177
180
|
generated = generate_to_directory!(output_directory, element)
|
178
181
|
|
179
182
|
if generated
|
data/reality-generators.gemspec
CHANGED
@@ -185,7 +185,7 @@ class Reality::Generators::TestTemplate < Reality::TestCase
|
|
185
185
|
assert_equal({}, template1.extra_data)
|
186
186
|
assert_equal 'foo:MyFiles/templates/noft', template1.name
|
187
187
|
|
188
|
-
target_basedir = "#{temp_dir}/generated/single_dir_template"
|
188
|
+
target_basedir = "#{temp_dir}/generated/single_dir_template/"
|
189
189
|
target_filename = "#{target_basedir}/assets/SimpleModel/foo.txt"
|
190
190
|
other_filename = "#{target_basedir}/main/java/Other.java"
|
191
191
|
unprocessed_files = %W(#{target_filename} #{other_filename})
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reality-generators
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Donald
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: reality-core
|