wire-framework 0.1.6.5 → 0.1.6.6

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: 00bb9c131f074315c355d7095175b784c4b2e639
4
- data.tar.gz: 98aeb7b42a546f09e1c9a18a3947308820c19578
3
+ metadata.gz: 9be56fc803c657d21e21ba265625b186ff77cde5
4
+ data.tar.gz: 5f95ffa3707103c5e6c111ba41035f15cc8c0e37
5
5
  SHA512:
6
- metadata.gz: c95d46edca794f1feba145dc529ebb84eb64c246a26ec2a00668c498d01c4018022db403c20eb158249a1fa0488c2aa9f42925d1e11b827033f45d2f23eae469
7
- data.tar.gz: 35d145361ad22aa393eaa90e4dc0d60eb202d94be11ea37699d078d468b739c409c237466b2733d514f893dcb37c2f5652f70d225e52775efb9837281e079679
6
+ metadata.gz: c5a3732db64cfa3f33addfaa78870a42d0e73eb0ba907e9875c3db4ebb4ca24b0967e34a2bd405f375420c38de44b7d64dbccb72fe22f3f83c726ac5d9a1bf4c
7
+ data.tar.gz: 573a4459b82492609bfdc2195c63f48e06d7a5896e324acf96deaa7b63ca4ecad4fe2f9bdb10adbab78502bf1e73c2a311914cd7196d6ed33a64bec61ee90d39
@@ -152,7 +152,7 @@ module DB
152
152
  instance = model[context.id]
153
153
  return 404 unless instance
154
154
  instance.update(context.json)
155
- [200, {}, object.to_json]
155
+ [200, {}, instance.to_json]
156
156
  end
157
157
 
158
158
  # Remove a specific object from the DB table
@@ -37,7 +37,7 @@ module History
37
37
  context.resource,
38
38
  context.id)
39
39
  if list == 404
40
- return 404
40
+ return [404, {}, "File Not Found"]
41
41
  end
42
42
  template = context.config['log']
43
43
  template.render(self, actions: actions, context: context, list: list)
@@ -31,12 +31,13 @@ module History
31
31
  def self.get_log(conf, repo, id = nil)
32
32
  options = "--username #{conf['user']} --password #{conf['password']}"
33
33
  uri = "#{conf['protocol']}://#{conf['host']}/#{repo}"
34
- if id
35
- if conf['web_folder']
36
- uri += "/#{conf['web_folder']}"
37
- end
38
- uri += "/#{id}"
34
+ if id.nil? or id.empty?
35
+ return 404
36
+ end
37
+ if conf['web_folder']
38
+ uri += "/#{conf['web_folder']}"
39
39
  end
40
+ uri += "/#{id}"
40
41
  log = `svn log #{options} -v --xml '#{uri}'`
41
42
  if $?.exitstatus != 0
42
43
  return 404
@@ -93,10 +93,10 @@ module Wire
93
93
  $stderr.puts e.message
94
94
  $stderr.puts e.backtrace
95
95
  $stderr.flush
96
- response = [500, headers, e.message + "\n" + e.backtrace]
96
+ response = [500, headers, "#{e.message}<br>#{e.backtrace.join('<br>')}"]
97
97
  end
98
98
  if response.is_a? Array
99
- if response[2] and not response[2].is_a? Array
99
+ if response[2] and not response[2].is_a?(Array)
100
100
  response[2] = [response[2]]
101
101
  end
102
102
  else
@@ -33,7 +33,7 @@ end
33
33
  # @author Bryan T. Meyers
34
34
  module Wire
35
35
  # Current version of the Wire Gem
36
- VERSION = '0.1.6.5'
36
+ VERSION = '0.1.6.6'
37
37
  end
38
38
 
39
39
  require_relative 'app'
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.6.5
4
+ version: 0.1.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan T. Meyers