railsdav 0.1.3 → 0.1.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/railsdav.rb +5 -5
- data/lib/railsdav/renderer.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b475da4632228e4346b209070174973dbca8a0f0
|
|
4
|
+
data.tar.gz: 5e80237cc6e1116326cdc2752ddcace61a1f1e37
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7010f93c8629d2bab98dec1d73ed11f2343751432490799184fc1eefaa4e2233ad3b3ba6574d6b340aa84683a2dce76599378163cbe7c20dc7618e9a952034de
|
|
7
|
+
data.tar.gz: 3a07fcdec26c07546fe88d724e15286ce5ebd8190294283415f6ee25e14af53e54f91d117772035903c2ab168ee6a86b11df7504daa8eeb105a7f588c5fd4e1a
|
data/lib/railsdav.rb
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
autoload :Renderer, 'railsdav/renderer'
|
|
3
|
+
require 'railsdav/routing_extensions'
|
|
4
|
+
require 'railsdav/controller_extensions'
|
|
5
|
+
require 'railsdav/request_extensions'
|
|
6
|
+
require 'railsdav/renderer'
|
|
8
7
|
|
|
8
|
+
module Railsdav
|
|
9
9
|
class MissingWebDAVMetadata < StandardError; end
|
|
10
10
|
|
|
11
11
|
WEBDAV_HTTP_VERBS = ActionDispatch::Request::RFC2518
|
data/lib/railsdav/renderer.rb
CHANGED
|
@@ -232,12 +232,12 @@ module Railsdav
|
|
|
232
232
|
if prop_val = response_hash[prop_name.to_sym]
|
|
233
233
|
if prop_val.respond_to? :call
|
|
234
234
|
if opts
|
|
235
|
-
dav.tag! both_prop_name, opts, &prop_val
|
|
235
|
+
dav.tag! both_prop_name, opts.to_h, &prop_val
|
|
236
236
|
else
|
|
237
237
|
dav.tag! both_prop_name, &prop_val
|
|
238
238
|
end
|
|
239
239
|
else
|
|
240
|
-
dav.tag! both_prop_name, prop_val, opts
|
|
240
|
+
dav.tag! both_prop_name, prop_val, opts.to_h
|
|
241
241
|
end
|
|
242
242
|
elsif opts
|
|
243
243
|
dav.tag! both_prop_name, opts
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: railsdav
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Willem van Kerkhof
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-08-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Provides basic Rails 3/4/5 extensions for making your business resources
|
|
14
14
|
accessible via WebDAV. This gem does by no means by no means implement the full
|