ruby-miradore 4.2.0 → 4.2.1

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
  SHA256:
3
- metadata.gz: c14f13d1988de125e7a13ef06bd020bb02fe01e9c52f6c82e098ef6b12353930
4
- data.tar.gz: 8ca0d9ee5b5e741042eb5837b633261e7d0f80f33a566d504a2f9ba75e3297d8
3
+ metadata.gz: fb518a8a63cfa4e58056095564a1ec19bc9e813dba11ac741ecefbf0fede3fb4
4
+ data.tar.gz: 88da70493a33e3a06c815f85c9eaf5d8532021e8a7df7020c1422ee53b6c992f
5
5
  SHA512:
6
- metadata.gz: ffbdf1d2de5249d6c31fb60675b91d0477640576a1a836fe64fa4636a28401d044b778a78c8482adc4b6c0b5d32785550fe9d1508f78ac5de53e8190480d115f
7
- data.tar.gz: 7ce63965c9e8706a860d510fb65cca7d1dd46afc271711f5bc9a2abbe0a38c3ef14e6b915da4712dfb56b077d3d2b36ba63927ff8a5f29a4324a79da2f14586f
6
+ metadata.gz: 4912e132150438b5a08fe30b5c3b6c2c968b6f0514816b9c25f50e764be78522d5bb740c155ca68309f87b2cb5ab61cec65584ee4ba0b8a52346a92d70f51033
7
+ data.tar.gz: 352544d524d5dec3b94fe4aeb13fe56c60965dd42cad8bd95c2a546c1de5ac3149468452ab826d21e72999218122e6ebc596a8fb3260c07435b6ed49ee8ee548
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ruby
4
4
  module Miradore
5
- VERSION = "4.2.0"
5
+ VERSION = "4.2.1"
6
6
  end
7
7
  end
data/lib/ruby/miradore.rb CHANGED
@@ -52,7 +52,7 @@ module Ruby
52
52
  transform(
53
53
  Crack::XML.parse(
54
54
  http_method_v1(**args.merge(attribute: 'ID')).body
55
- )['Content']
55
+ )['Content'], args
56
56
  )
57
57
  end
58
58
 
@@ -75,6 +75,8 @@ module Ruby
75
75
  end
76
76
 
77
77
  def transform(res, args = {})
78
+ return res if args.fetch(:skip_transform, false)
79
+
78
80
  args.merge!({ subdomain: args.fetch(:subdomain, @subdomain), auth: args.fetch(:auth, @auth) })
79
81
  if res.values.first.is_a?(Array)
80
82
  return res.values.first.map! do |e|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-miradore
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.0
4
+ version: 4.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduard Garcia Castelló
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-18 00:00:00.000000000 Z
11
+ date: 2022-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport