synvert-core 0.11.0 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/synvert/core/rewriter.rb +8 -1
- data/lib/synvert/core/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e44cab5416bd9de8678694d4ce6e43ab51987f48
|
|
4
|
+
data.tar.gz: f995113c274ee42968de2328ffe813978d3d19db
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4f3913e797193b3628db4471ccd7878482985156d96414cc900447de827db6de0a8adc0f3bd39b7e9d73d1e1599e240faea15ffe52b4bec0d0b6bc1ea7fed81b
|
|
7
|
+
data.tar.gz: 3cb996acbece4316c55dd8dfae6aaf93b0c45ae5773c199e63bc56ee89a4d29cce6dd57a06957d0b02a5fc7fee4ece45d2f8bcb21a5427e4c2fca0164e6adbaf
|
data/CHANGELOG.md
CHANGED
|
@@ -227,7 +227,14 @@ module Synvert::Core
|
|
|
227
227
|
def add_file(filename, content)
|
|
228
228
|
return if @sandbox
|
|
229
229
|
|
|
230
|
-
|
|
230
|
+
filepath = File.join(Configuration.instance.get(:path), filename)
|
|
231
|
+
if File.exist?(filepath)
|
|
232
|
+
puts "File #{filepath} already exists."
|
|
233
|
+
return
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
FileUtils.mkdir_p File.dirname(filepath)
|
|
237
|
+
File.open filepath, 'w' do |file|
|
|
231
238
|
file.write content
|
|
232
239
|
end
|
|
233
240
|
end
|
data/lib/synvert/core/version.rb
CHANGED