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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1297d38734cc883a6243e3f0fbc025b7453c0959
4
- data.tar.gz: 2ff0c67fff65ebd6d6ea53d389ba6d9b1e23880c
3
+ metadata.gz: 3b72487b0475fa8850a257ce3e5775dcace591df
4
+ data.tar.gz: ee8e609a2ab2ecbdeccab1a064eb2d1f2afc6105
5
5
  SHA512:
6
- metadata.gz: 451e2d53fd2c63d856a423ac98e7414aecbbcb6e86994cb9c3eecc737c53b3f69e3fc565faf344c29f626bdcf2b53812e0750f781d4183079396ab639e145d92
7
- data.tar.gz: 6187a5a3cfb1516be9011185984661dff6dbe87718ef3014bd578401392cb5946f49b5a4e9de7d64af88e397003b212cc4fe640a73330241de6bfd8b475c1e12
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{reality-generators}
5
- s.version = '1.13.0'
5
+ s.version = '1.14.0'
6
6
  s.platform = Gem::Platform::RUBY
7
7
 
8
8
  s.authors = ['Peter Donald']
@@ -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.13.0
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-05-24 00:00:00.000000000 Z
11
+ date: 2017-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: reality-core