wire-framework 0.1.2.4 → 0.1.2.5
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/lib/app/repo/svn.rb +6 -2
- data/lib/wire.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: 22ca10d33f2389ace058d0fb1f955e21325d9416
|
4
|
+
data.tar.gz: 03b194fdde77069700193ff37d8d8f09844a2f0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e199fa78054e96482eeeb90698c01878e54ec9a7674426e8cd62b34522475b175c66af53127b3b9ffb951b9937006317a3cb512063ead37a6157b380041ae02
|
7
|
+
data.tar.gz: af0eb0bb3accbd601a8881046483431d292b7130acfe851470fe0062718a8990f68c13aefb4b578a83562a57b1112d8578492a99052b9e996b68569ad26f43f0
|
data/lib/app/repo/svn.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require_relative '../repo'
|
2
2
|
require 'nori'
|
3
|
+
require 'fileutils'
|
3
4
|
|
4
5
|
# Force Nori to convert tag names to Symbols
|
5
6
|
$nori = Nori.new :convert_tags_to => lambda { |tag| tag.snakecase.to_sym }
|
@@ -155,12 +156,15 @@ module Repo
|
|
155
156
|
if web.nil?
|
156
157
|
file_path = "/tmp/svn/#{repo}/#{id}"
|
157
158
|
else
|
159
|
+
dir_path = "/tmp/svn/#{repo}/#{web}"
|
160
|
+
unless Dir.exist? dir_path
|
161
|
+
FileUtils.mkdir_p( dir_path )
|
162
|
+
end
|
158
163
|
file_path = "/tmp/svn/#{repo}/#{web}/#{id}"
|
159
164
|
end
|
165
|
+
|
160
166
|
if File.exist? file_path
|
161
167
|
file = File.open(file_path, 'w+')
|
162
|
-
else
|
163
|
-
file = File.new(file_path, 'w+')
|
164
168
|
end
|
165
169
|
file.syswrite(content)
|
166
170
|
file.close
|
data/lib/wire.rb
CHANGED