almodovar 1.7.3 → 1.7.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.rdoc +12 -0
  3. data/lib/almodovar/version.rb +1 -1
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5bdc119ae117c8a2a2e0ababb7e8ef37678998a14a7d50a449d7799c71749d54
4
- data.tar.gz: c90377923fd29408000e45d01311c37e3c65f8f95fab756f7385cea4b3391fdb
3
+ metadata.gz: 5bf8daf20a34b735694f237e74c7d6a3dbd2d3aeb383ed8a9fb4b9fee48d14b3
4
+ data.tar.gz: 946f4449c0931dc085259a6238eae7b42306264b90bba73d9ba2291b24e72918
5
5
  SHA512:
6
- metadata.gz: fd402ed9f0dc32fe4909258a91655cd0e748c33abf3f45eb5138521c4f75529392462a99375d300d7226801697f884ce3b0b4142bc943b2660d493ac3ecb65ff
7
- data.tar.gz: 5a195e6b4cc5048b3ec75b71880e34eaaa183a2b183849536a11766ca19e23b78e5c5754411312efb6601d8a13570a18ade58a3aaa2b248d40b9366e9b018e2d
6
+ metadata.gz: 2c815dad7020c2e24db4fdd5f8633522638cba2e9eae3c2a9d7e682902653e5c83dc2f1ee618ba6c541054af14ad3ceedc1edcf1151256415c976d05b3e5f347
7
+ data.tar.gz: 5595081a995e00af88b03720c555ab573048b1b5359f461cd818e41d6e0885cf658df79bbf865c024525b415c0f81013bcbb1dfca6b1dec168b2c118f974921b
@@ -101,6 +101,18 @@ You can use the _update_ method:
101
101
  >> job.name
102
102
  => "Wadus wadus"
103
103
 
104
+ == Updating associations
105
+
106
+ When updating a resource you can call the update method with other resources as parameters too. This allows you to create or update associations between resources (if they are supported, of course):
107
+
108
+ >> series = Almodovar::Resource("http://localhost:4001/api/title_groups/101", auth)
109
+ => <title-group> ... </title-group>
110
+ >> title = Almodovar::Resource("http://localhost:4001/api/titles/1001", auth)
111
+ => <title> ... </title>
112
+ >> title.update( title: { series: series } )
113
+
114
+ This will work the same with the create method, in case you need it.
115
+
104
116
  == Deleting resources
105
117
 
106
118
  And exactly the same with the _delete_ method:
@@ -1,3 +1,3 @@
1
1
  module Almodovar
2
- VERSION = '1.7.3'
2
+ VERSION = '1.7.6'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: almodovar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.3
4
+ version: 1.7.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - BeBanjo S.L.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-21 00:00:00.000000000 Z
11
+ date: 2020-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: builder
@@ -147,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
147
  - !ruby/object:Gem::Version
148
148
  version: '0'
149
149
  requirements: []
150
- rubygems_version: 3.0.2
150
+ rubygems_version: 3.0.3
151
151
  signing_key:
152
152
  specification_version: 4
153
153
  summary: BeBanjo API client