wire-framework 0.1.2.6 → 0.1.2.7
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: ff699a6b1f9c41a1d2c24c30f5375e0efa7ff963
|
4
|
+
data.tar.gz: 3ae9d0b12c0e87f30f4aaa58418e985c97bf619f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0dc564d52ce7139c08a12dba009f8e482a82b7497658e1f22e4a24b087d80f12cc65b072e84532b79ae873f46392ef9b023ec3d5a8df2b7eeb7a63a1fef36f55
|
7
|
+
data.tar.gz: 72eb4d7bc5e91a4846ac25351ee63c565898f16c0bcb96ee68db65d7cf5d7f5d4de1b21d6cdf094182af6e6031791b61d73f53b141e06807878d881e6025009c
|
data/lib/app/repo/svn.rb
CHANGED
@@ -153,14 +153,18 @@ module Repo
|
|
153
153
|
status = 500
|
154
154
|
`svn checkout #{@options} svn://localhost/#{repo} /tmp/svn/#{repo}`
|
155
155
|
if $?.exitstatus == 0
|
156
|
+
|
156
157
|
if web.nil?
|
157
158
|
file_path = "/tmp/svn/#{repo}/#{id}"
|
158
159
|
else
|
159
|
-
|
160
|
+
file_path = "/tmp/svn/#{repo}/#{web}/#{id}"
|
161
|
+
id = id.split('/')
|
162
|
+
id.pop
|
163
|
+
id = id.join('/')
|
164
|
+
dir_path = "/tmp/svn/#{repo}/#{web}/#{id}"
|
160
165
|
unless Dir.exist? dir_path
|
161
166
|
FileUtils.mkdir_p( dir_path )
|
162
167
|
end
|
163
|
-
file_path = "/tmp/svn/#{repo}/#{web}/#{id}"
|
164
168
|
end
|
165
169
|
|
166
170
|
file = File.open(file_path, 'w+')
|
data/lib/wire.rb
CHANGED