prontoforms 2.0.0 → 2.0.1

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: cf9bb12142b5957e341f48804ce06b73f8842cdcbe8e2831e34823299ca73017
4
- data.tar.gz: c3760f082616943fa75dd0fad8f4bf0554390d75bea741f448baead8ce97bdfc
3
+ metadata.gz: f254afead3ca132b09b3e4ebf60cd559326bce2e0c858bc718fd1211fc7f4db2
4
+ data.tar.gz: ff60c3483da8612616398ab4cab00f818e7447746ee6b34c712b612031d1f8f6
5
5
  SHA512:
6
- metadata.gz: 4a5da5f5afda87fd00f326deba55c97169aad8918347f308df002c2525420e92d8a22983199a2bf498afa0b8a55ea32be25549a5b20ce86fb0578123100733c8
7
- data.tar.gz: 8f0312762f55f92b0a3d5383fef1cc1558b9e65a7ba8d7c2f770c63a97d0ef695976e542459b839bf76966f05daf776c4b8aff9dad5ca4dad690448ed64c31da
6
+ metadata.gz: dee8fa61c40fc5a1ba90e7ca95c9b49d5c8e88df0221e0d27bddff417c1554ac424d4ee2cf388ee58bfc01e6b688174f1b04bb478a84a24a27bfe9677e58f85f
7
+ data.tar.gz: 3ee0a6c9ca3da3652000194106ae0b6f29d10a617c292ae114a9ccf9e6f9deef591cd9a6e9d16e4220a444900aeffb81555a35eae7bdfa178dc1c5b45168a819
@@ -31,6 +31,14 @@ module ProntoForms
31
31
  }, :documents, Document, self)
32
32
  end
33
33
 
34
+ def document(document_id)
35
+ res = client.connection.get do |req|
36
+ req.url "formspaces/#{id}/documents/#{document_id}"
37
+ end
38
+
39
+ Document.new(JSON.parse(res.body), client, self)
40
+ end
41
+
34
42
  def form(form_id)
35
43
  res = client.connection.get do |req|
36
44
  req.url "formspaces/#{id}/forms/#{form_id}"
@@ -84,7 +84,7 @@ module ProntoForms
84
84
  def documents(populate: false)
85
85
  ids = form_version.document_ids
86
86
  if populate
87
- ids.map { |id| form.iteration(id) }
87
+ ids.map { |id| form_space.document(id) }
88
88
  else
89
89
  ids
90
90
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ProntoForms
4
- VERSION = '2.0.0'
4
+ VERSION = '2.0.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prontoforms
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Holden