railsdav 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 915facc8babd0b42d48f618176b81818657ec754
4
- data.tar.gz: 293e2132c0567c3951ad9d05a5987546b3116f4f
3
+ metadata.gz: b475da4632228e4346b209070174973dbca8a0f0
4
+ data.tar.gz: 5e80237cc6e1116326cdc2752ddcace61a1f1e37
5
5
  SHA512:
6
- metadata.gz: bcf56dea7546197242c4358dc4a793cf1410bea9ae68c7e7f6a0a2660f1660185a27a1f4edfb001fe793bb72968c9ad8130ea998a85353a4772d1d32cc8622a1
7
- data.tar.gz: 30203aa6e338d4612491c1ec8e15bb7f172acb534f4d1604e3a36e2cab48c70ec62cf330cd28ce11784352d28191d295f308749bae952e80acf3d8b3a2b2446c
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
- module Railsdav
4
- autoload :ControllerExtensions, 'railsdav/controller_extensions'
5
- autoload :RoutingExtensions, 'railsdav/routing_extensions'
6
- autoload :RequestExtensions, 'railsdav/request_extensions'
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
@@ -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.3
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-06-29 00:00:00.000000000 Z
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