zadok 0.4.5 → 0.4.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
  SHA256:
3
- metadata.gz: 7f90c17326ec414128552f0de6cf254b1199b0ce24e6afb2f8966831175e8774
4
- data.tar.gz: fb012cd6e048b94c49eb3e30a1fba25ec07690781bb069a80b89efff33851076
3
+ metadata.gz: 7af9a20be3af0e933b341a952db9e557c9382732a0cc661aa3d833498f514b6e
4
+ data.tar.gz: 5e1c786005a5dbab7ac8995357447f7626e16dd6acecf409558159e5dae74886
5
5
  SHA512:
6
- metadata.gz: 385741acdf468d8cccc0edd0e442af34fd8493b001d82f8e2e87069914193ff872a31b6cab0151cd81b28f9e96afe5bb7cd5be0dda366cf7955ee5e2ddbbc722
7
- data.tar.gz: '097a367c4560b620c1bc479c715c10d30f5c0c1f5c89f9f451db4a09de34b2d1f95a777c357fad73e222771b147717415a8c1847ab63c0d684568f3ec91d0dc9'
6
+ metadata.gz: 0d6abf6b869ab8ba23f0f147c4a8d1e2f9482f0a8011ac0a9a37f3b201203d30517e910243d70fd0b3da42e37a63880ae30098066e8605152ffa53495243b410
7
+ data.tar.gz: '0739fa43160add59be481732b3776aba8e1e6c0167c4a016de381c88676919635feb0617ee73a80f6f12e67a095ca54242fc897f1a0d6a035bfbb1d296f4693d'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zadok (0.4.5)
4
+ zadok (0.4.6)
5
5
  bootstrap (~> 4.0)
6
6
  bundler-audit (~> 0.6)
7
7
  cancancan (~> 2.1)
@@ -19,7 +19,7 @@ class ZadokController < ApplicationController
19
19
  render "zadok/index"
20
20
  end
21
21
  format.json { render json: resources, root: false }
22
- format.xml { render xml: resources, root: false }
22
+ format.xml { render xml: resources.map(&:attributes), root: controller_name }
23
23
  end
24
24
  end
25
25
 
@@ -27,7 +27,7 @@ class ZadokController < ApplicationController
27
27
  respond_to do |format|
28
28
  format.html { render [controller_name, "show"].join("/") }
29
29
  format.json { render json: resource, root: false }
30
- format.xml { render xml: resource, root: false }
30
+ format.xml { render xml: resource.attributes, root: controller_name.singularize }
31
31
  end
32
32
 
33
33
  end
data/lib/zadok/version.rb CHANGED
@@ -1,5 +1,15 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Zadok
4
- VERSION = "0.4.5"
4
+ VERSION_MAJOR = 0
5
+ VERSION_MINOR = 4
6
+ VERSION_TINY = 6
7
+ VERSION_PRE = nil
8
+
9
+ VERSION = [
10
+ VERSION_MAJOR,
11
+ VERSION_MINOR,
12
+ VERSION_TINY,
13
+ VERSION_PRE
14
+ ].compact.join(".")
5
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zadok
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leon Hooijer