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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fc35d529902d0cd27e80cb2ff2270d99a49f84bc
4
- data.tar.gz: 50fc7121aa78354aa5e8dc252ef7668ea4c5ba0c
3
+ metadata.gz: cda00dcb2e1ceeb4d5b70bb6f6aa28147c26d287
4
+ data.tar.gz: 2d2dfbd72428fc778685a6430dfa24ed4032daf1
5
5
  SHA512:
6
- metadata.gz: 610684b373bb441649008e712bc04374fe23b2b35258297ca0b55cf6cbc99d1c00c36bb26aa82721ea3939e169492be8a609261eddc3b0012c67c5dcf0229e0a
7
- data.tar.gz: 45d57f1f3702895bd93af4a333106afcdea43f824f82b61bc28fa7f7ea8b9a7866ffd5c4fa15ffb027aa814177dd04cc5f554e9badd48a9c133e59030599f237
6
+ metadata.gz: 15402ff08e77b79e6418ae9a785be7290fc72db265739b9735748e532d8f29a9c21e24d63675edcd1e2c10cc04d13bfc34eec1da720297b6e5e8c3897cd4a1c5
7
+ data.tar.gz: 77be1f38f0f407f61e7c426114a066e3fe1706559e56a140e2d5a15bbc855a65eeb1cb2b7d0f174f61434c6c5e1c18042faed6aada4493a7d08f65253daf40a8
@@ -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}", referer: referer
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}", referer: referer
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
@@ -24,5 +24,5 @@ end
24
24
  # @author Bryan T. Meyers
25
25
  module Wire
26
26
  # Current version of the Wire Gem
27
- VERSION = '0.1.3.2'
27
+ VERSION = '0.1.3.4'
28
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wire-framework
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3.2
4
+ version: 0.1.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan T. Meyers