wire-framework 0.1.3.2 → 0.1.3.4
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/history/svn.rb +4 -3
- data/lib/app/render.rb +6 -5
- 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: cda00dcb2e1ceeb4d5b70bb6f6aa28147c26d287
|
4
|
+
data.tar.gz: 2d2dfbd72428fc778685a6430dfa24ed4032daf1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15402ff08e77b79e6418ae9a785be7290fc72db265739b9735748e532d8f29a9c21e24d63675edcd1e2c10cc04d13bfc34eec1da720297b6e5e8c3897cd4a1c5
|
7
|
+
data.tar.gz: 77be1f38f0f407f61e7c426114a066e3fe1706559e56a140e2d5a15bbc855a65eeb1cb2b7d0f174f61434c6c5e1c18042faed6aada4493a7d08f65253daf40a8
|
data/lib/app/history/svn.rb
CHANGED
@@ -15,13 +15,14 @@ module History
|
|
15
15
|
# @param [String] id the sub-URI of the item to access
|
16
16
|
# @return [Hash] the history entries
|
17
17
|
def self.get_log(web, repo, id = nil)
|
18
|
+
options = "--username #{$environment[:repos_user]} --password #{$environment[:repos_password]}"
|
18
19
|
if id.nil?
|
19
|
-
log = `svn log -v --xml 'svn://localhost/#{repo}'`
|
20
|
+
log = `svn log #{options} -v --xml 'svn://localhost/#{repo}'`
|
20
21
|
else
|
21
22
|
if web.nil?
|
22
|
-
log = `svn log -v --xml 'svn://localhost/#{repo}/#{id}'`
|
23
|
+
log = `svn log #{options} -v --xml 'svn://localhost/#{repo}/#{id}'`
|
23
24
|
else
|
24
|
-
log = `svn log -v --xml 'svn://localhost/#{repo}/#{web}/#{id}'`
|
25
|
+
log = `svn log #{options} -v --xml 'svn://localhost/#{repo}/#{web}/#{id}'`
|
25
26
|
end
|
26
27
|
end
|
27
28
|
unless $?.exitstatus == 0
|
data/lib/app/render.rb
CHANGED
@@ -98,22 +98,23 @@ module Render
|
|
98
98
|
|
99
99
|
q = '?' + context.query_string
|
100
100
|
id = context.uri[3...context.uri.length].join('/')
|
101
|
+
headers = {referer: referer, remote_user: context.user}
|
101
102
|
case (method)
|
102
103
|
when :create
|
103
104
|
puts "POST: Forward Request to https://#{host}/#{path}/#{resource}#{q}"
|
104
|
-
RestClient.post "http://#{host}/#{path}/#{resource}#{q}", context.body
|
105
|
+
RestClient.post "http://#{host}/#{path}/#{resource}#{q}", context.body, headers
|
105
106
|
when :update
|
106
107
|
puts "PUT: Forward Request to https://#{host}/#{path}/#{resource}/#{id}#{q}"
|
107
|
-
RestClient.put "http://#{host}/#{path}/#{resource}/#{id}#{q}", context.body
|
108
|
+
RestClient.put "http://#{host}/#{path}/#{resource}/#{id}#{q}", context.body , headers
|
108
109
|
when :readAll
|
109
110
|
puts "GET: Forward Request to https://#{host}/#{path}/#{resource}#{q}"
|
110
|
-
RestClient.get "http://#{host}/#{path}/#{resource}#{q}",
|
111
|
+
RestClient.get "http://#{host}/#{path}/#{resource}#{q}", headers
|
111
112
|
when :read
|
112
113
|
puts "GET: Forward Request to https://#{host}/#{path}/#{resource}/#{id}#{q}"
|
113
|
-
RestClient.get "http://#{host}/#{path}/#{resource}/#{id}#{q}",
|
114
|
+
RestClient.get "http://#{host}/#{path}/#{resource}/#{id}#{q}", headers
|
114
115
|
when :delete
|
115
116
|
puts "DELETE: Forward Request to https://#{host}/#{path}/#{resource}/#{id}#{q}"
|
116
|
-
RestClient.delete "http://#{host}/#{path}/#{resource}/#{id}#{q}"
|
117
|
+
RestClient.delete "http://#{host}/#{path}/#{resource}/#{id}#{q}" , headers
|
117
118
|
else
|
118
119
|
401
|
119
120
|
end
|
data/lib/wire.rb
CHANGED