volcano-sdk 0.35.0 → 0.35.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: a17106ab631dea9f34c8efbe196bd1636ceb1dd80f2751f3c93570f925176418
4
- data.tar.gz: 0d8853a55cadc7f86e34b7c6bf39e751b0474d4f878f9732ed013f6b5715794f
3
+ metadata.gz: 9bc53fe0031fedb1b85c60946ec98c92a47a26267e75833a665c86cac7185885
4
+ data.tar.gz: 885ff240ad177e3a45612c1a2edc3e347d4803a53f13c0b50094701b57668b51
5
5
  SHA512:
6
- metadata.gz: a2d0f334b4dd8b5482e26b9146e66ad44c97af567e0db6a12124f0a715033bd8e0c9307cbd75bab5b1ee1c6866f47212b999f1a6c237297b749b6803912331c8
7
- data.tar.gz: fdfa815814d401cd36bccfb6bfc1179e9222d0792cc993529d3cd16246942cf5c5d1afaf25c84fb7ea8f642551cb494b394b7884dcba64fe4a8c72946de2ce2e
6
+ metadata.gz: 1f7007d35cef25585d0e0af0fec22015e644f454b4c574579d4a82ea488e5a6d3d9a44cdd711590ce5f9a5d7fc17c70c500da3a75ae6876bbbd5870cafb687e9
7
+ data.tar.gz: 06eafce9b7e78def2c7c881dfaad4c757adb30a7defea52166f5025381aebd570ab7a9308e038901acfb0fabe174f48c8e20f188eb313b06891a87c29dedfdd3
data/README.md CHANGED
@@ -529,9 +529,10 @@ returns the execution that already exists rather than beginning a second one.
529
529
  Only the start that creates the execution returns its `client_token`.
530
530
 
531
531
  `get`, `list`, and `stop` are owner-scoped and require the project owner's
532
- platform user token, because an execution is addressed by its id alone.
533
- Auth-user sessions, anonymous keys, service keys, and project access tokens are
534
- not accepted. `get` carries the deeply
532
+ platform user token or a project access token, because an execution is
533
+ addressed by its id alone. A `read_only` project access token can read and list
534
+ but not stop. Auth-user sessions, anonymous keys, and service keys are not
535
+ accepted. `get` carries the deeply
535
536
  frozen `result` once the execution has succeeded, and `error` when it failed;
536
537
  `result_expired` separates a result the platform has discarded from a function
537
538
  that returned nothing. `terminal?` reports whether the execution has stopped
@@ -606,11 +607,16 @@ characters.
606
607
 
607
608
  A durable function written in JavaScript or Python can wait for a named
608
609
  message, and publish messages of its own. Ruby sends them, lists them, and
609
- follows what the execution publishes:
610
+ follows what the execution publishes. Here a signed-in user starts the
611
+ execution, so it reaches it without the client token:
610
612
 
611
613
  ```ruby
612
614
  require "async"
613
615
 
616
+ client.auth.sign_in(
617
+ email: ENV.fetch("VOLCANO_USER_EMAIL"),
618
+ password: ENV.fetch("VOLCANO_USER_PASSWORD")
619
+ )
614
620
  handle = client.durable.start("onboarding", { account_id: "account-7" })
615
621
  messages = client.durable.messages
616
622
 
@@ -621,7 +627,7 @@ page = messages.list("onboarding", handle.id, direction: "out", after: 0)
621
627
  puts page.messages.map(&:name), page.has_more
622
628
 
623
629
  Async do
624
- subscription = messages.subscribe("onboarding", handle.id, client_token: handle.client_token) do |message|
630
+ subscription = messages.subscribe("onboarding", handle.id) do |message|
625
631
  puts [message.seq, message.name, message.data]
626
632
  end
627
633
  # ...
@@ -981,12 +987,13 @@ delivery.
981
987
 
982
988
  ## Dependencies
983
989
 
984
- Installing `volcano-sdk` pulls in nine gems, plus their own transitive
990
+ Installing `volcano-sdk` pulls in ten gems, plus their own transitive
985
991
  dependencies:
986
992
 
987
993
  | Gem | Why |
988
994
  | ------------------------------------------------------------ | ----------------------------------------------------------------------- |
989
995
  | [`typhoeus`](https://rubygems.org/gems/typhoeus) | The HTTP library the generated REST client uses |
996
+ | [`ethon`](https://rubygems.org/gems/ethon) | The libcurl binding under `typhoeus`, capped below 0.19, which stopped sending uploads with an explicit content type as multipart |
990
997
  | [`logger`](https://rubygems.org/gems/logger) | Required by that client, and no longer a default gem |
991
998
  | [`async`](https://rubygems.org/gems/async) | The reactor realtime runs its connection and delivery on |
992
999
  | [`async-http`](https://rubygems.org/gems/async-http) | The endpoint realtime dials |
@@ -50,8 +50,8 @@ module Volcano
50
50
  # Reads an execution, including its result once it has succeeded.
51
51
  #
52
52
  # Owner-scoped: an execution is addressed by its id alone, so this takes
53
- # the project id and the project owner's platform user token. Auth-user
54
- # sessions, anon keys, service keys, and project access tokens are not
53
+ # the project id and the project owner's platform user token or a project
54
+ # access token. Auth-user sessions, anon keys, and service keys are not
55
55
  # accepted. Poll it from a backend, not a browser.
56
56
  def get(project_id, function_name, execution_id)
57
57
  project, function_id, execution = execution_path(project_id, function_name, execution_id)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Volcano
4
- VERSION = '0.35.0'
4
+ VERSION = '0.35.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: volcano-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.35.0
4
+ version: 0.35.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kong
@@ -65,6 +65,20 @@ dependencies:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
67
  version: '0.2'
68
+ - !ruby/object:Gem::Dependency
69
+ name: ethon
70
+ requirement: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "<"
73
+ - !ruby/object:Gem::Version
74
+ version: '0.19'
75
+ type: :runtime
76
+ prerelease: false
77
+ version_requirements: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "<"
80
+ - !ruby/object:Gem::Version
81
+ version: '0.19'
68
82
  - !ruby/object:Gem::Dependency
69
83
  name: io-event
70
84
  requirement: !ruby/object:Gem::Requirement
@@ -125,16 +139,22 @@ dependencies:
125
139
  name: typhoeus
126
140
  requirement: !ruby/object:Gem::Requirement
127
141
  requirements:
128
- - - "~>"
142
+ - - ">="
129
143
  - !ruby/object:Gem::Version
130
144
  version: '1.4'
145
+ - - "<"
146
+ - !ruby/object:Gem::Version
147
+ version: '1.7'
131
148
  type: :runtime
132
149
  prerelease: false
133
150
  version_requirements: !ruby/object:Gem::Requirement
134
151
  requirements:
135
- - - "~>"
152
+ - - ">="
136
153
  - !ruby/object:Gem::Version
137
154
  version: '1.4'
155
+ - - "<"
156
+ - !ruby/object:Gem::Version
157
+ version: '1.7'
138
158
  email:
139
159
  - office@konghq.com
140
160
  executables: []