meta-record 1.0.12 → 1.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/metarecord/generators/comet/data_generator.rb +1 -0
- data/lib/metarecord/runner.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9289c66d7ad2fdc70d46582effefc043bf658507b54acd062d74fe5592daa7b1
|
4
|
+
data.tar.gz: 4fd93bfd9fa226d42970dfe5cfd480a93adb56001ee369f4e45b7e06d9467182
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 398d520ff06533e4b3e0c181d29d15ef9ad50abdd85be2477836355b5004d123ad23a0ac8d1242ab815194c7bac8358d94cdf88e1883cd3a4d6c5f47a93e8125
|
7
|
+
data.tar.gz: 75a8d012c29cb98b96b531ccfa63580374b20d0976e32f56c431e17a8beb73beafe26a250e50657e41ca4c7dd353b25ed30e18be175bec44140f4969e3aef2c0
|
@@ -68,6 +68,7 @@ class CometDataGenerator < CrailsDataGenerator
|
|
68
68
|
#ifdef #{client_define}
|
69
69
|
# include <comet/mvc/model.hpp>
|
70
70
|
# include <comet/mvc/archive_model.hpp>
|
71
|
+
# include <comet/mvc/json_model.hpp>
|
71
72
|
# include <comet/promise.hpp>
|
72
73
|
# ifndef #{client_super_class}
|
73
74
|
# define #{client_super_class} Comet::JsonModel<>
|
data/lib/metarecord/runner.rb
CHANGED
@@ -33,7 +33,7 @@ module MetaRecordRunner
|
|
33
33
|
Dir["#{@tmpdir}/**/*"].each do |tmp_file|
|
34
34
|
next if File.directory? tmp_file
|
35
35
|
new_path = "#{@output}/#{tmp_file[@tmpdir.size + 1..tmp_file.size]}"
|
36
|
-
if (not File.
|
36
|
+
if (not File.exist?(new_path)) || File.read(new_path) != File.read(tmp_file)
|
37
37
|
puts "[metarecord] generated #{new_path}"
|
38
38
|
`mkdir -p '#{File.dirname new_path}'`
|
39
39
|
`cp '#{tmp_file}' '#{new_path}'`
|
@@ -46,7 +46,7 @@ module MetaRecordRunner
|
|
46
46
|
Dir["#{@output}/#{input}/**/*"].each do |actual_file|
|
47
47
|
next if File.directory? actual_file
|
48
48
|
tmp_path = "#{@tmpdir}/#{@output[@output.size + 1..@output.size]}"
|
49
|
-
if not File.
|
49
|
+
if not File.exist?(tmp_path)
|
50
50
|
puts "[metarecord] removed #{actual_file}"
|
51
51
|
`rm '#{actual_file}'`
|
52
52
|
end
|