simple_ams 0.1.1 → 0.1.2

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: 402b318569b32a747756164ace5901543dfae101
4
- data.tar.gz: 9cad887a5be00d87011f12a55bb779084d51e147
3
+ metadata.gz: 21432f80bcadd512b56d7d24023014944e746d2b
4
+ data.tar.gz: 0d8dc9ac8b88a4b25483168fc2c88023831ec863
5
5
  SHA512:
6
- metadata.gz: 5ad0ca8cfb422fedbf1ddc2b8d2d3f3150b9c704a20720c83f7aa81ccb03e913edf2c2e52f15a13307e0eb2b8c3ded26e620ffc2fc5650f0c195f6b95c385431
7
- data.tar.gz: d35104e20592ff6b54235a7d990875737c454079ece2dd267530d9831eecc6c1d6a470152b7bc0daf36fd3cebafecf2d2e6d46d564a32253c332a243dd605fe1
6
+ metadata.gz: b8efe4cea91158fb2cc4e2ed7f45b464cd78e61ea45a97dbf1e42f066c493dc07d468fbe3d2317ea40838bd71e8766c2556be2fd222ec3fdb0de8a090bac155b
7
+ data.tar.gz: c390be3c1c6b9a91b95916f761e7c4ccdd98ee9653ac9df969c4e42e915f78dcfa81311ddb0eb0f83e427054f5be7e05d53750c018255b8d86d72d763d5cfc9c
@@ -79,7 +79,8 @@ class SimpleAMS::Adapters::AMS
79
79
  if options[:root]
80
80
  {
81
81
  folder.name => documents,
82
- meta: metas
82
+ meta: metas,
83
+ links: links
83
84
  }
84
85
  else
85
86
  documents
@@ -98,5 +99,12 @@ class SimpleAMS::Adapters::AMS
98
99
  hash
99
100
  }
100
101
  end
102
+
103
+ def links
104
+ @links ||= folder.links.inject({}){ |hash, link|
105
+ hash[link.name] = link.value
106
+ hash
107
+ }
108
+ end
101
109
  end
102
110
  end
@@ -149,7 +149,8 @@ module SimpleAMS
149
149
  #TODO: Do we need that merge ?
150
150
  _injected_options = @injected_options.fetch(:collection, {}).merge({
151
151
  serializer: collection_serializer_class,
152
- adapter: adapter(_serializer: collection_serializer_class).raw
152
+ adapter: adapter(_serializer: collection_serializer_class).raw,
153
+ expose: expose
153
154
  })
154
155
  _allowed_options = @allowed_options.fetch(:collection).options
155
156
 
@@ -1,3 +1,3 @@
1
1
  module SimpleAMS
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_ams
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Filippos Vasilakis