peach-ruby 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/peach/app/request.rb +10 -1
- data/lib/peach/stream/response.rb +3 -3
- data/lib/peach/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b4fad84458d23aa4e454f489e0b68097d750113a0ecda05eb9b30c7edabaa66
|
4
|
+
data.tar.gz: d6c955cc91402dbc04c0760ee2d0f3fb499592beb28dc17c37cc373e5189d089
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0fa371fff331a1388be7a4791d5d551e7ece663b7918d5e4398306ee8b03898c25d6f4445d4d4f0a004c7328aa5b2966de8fa433105769b7fd406d4a443412c
|
7
|
+
data.tar.gz: 36576ba3e90d985b382b9dd9b86b723bff0768ba2eb84bef38e9f4003d98d797128e1dbfab654e7992b80932ec10c757c63019cca3599e5ff94876cc30dc7fdd
|
data/lib/peach/app/request.rb
CHANGED
@@ -9,7 +9,8 @@ module Peach
|
|
9
9
|
|
10
10
|
APP_EXECUTION_TYPES = {
|
11
11
|
init: 'app_execution.init',
|
12
|
-
in_progress: 'app_execution.in_progress'
|
12
|
+
in_progress: 'app_execution.in_progress',
|
13
|
+
reply_received: 'app_execution.reply_received'
|
13
14
|
}.freeze
|
14
15
|
|
15
16
|
def initialize(raw_params)
|
@@ -26,6 +27,10 @@ module Peach
|
|
26
27
|
in_progress_request? @type
|
27
28
|
end
|
28
29
|
|
30
|
+
def reply_received?
|
31
|
+
reply_received_request? @type
|
32
|
+
end
|
33
|
+
|
29
34
|
private
|
30
35
|
|
31
36
|
def parse_params(raw_params)
|
@@ -86,6 +91,10 @@ module Peach
|
|
86
91
|
def in_progress_request?(type)
|
87
92
|
type == APP_EXECUTION_TYPES[:in_progress]
|
88
93
|
end
|
94
|
+
|
95
|
+
def reply_received_request?(type)
|
96
|
+
type == APP_EXECUTION_TYPES[:reply_received]
|
97
|
+
end
|
89
98
|
end
|
90
99
|
end
|
91
100
|
end
|
@@ -11,11 +11,11 @@ module Peach
|
|
11
11
|
@changes = []
|
12
12
|
end
|
13
13
|
|
14
|
-
def add_action(action, *args)
|
14
|
+
def add_action(action, *args, **kwargs)
|
15
15
|
raise Peach::BadResponseError, "Action '#{action}' is not supported" unless respond_to?(action, true)
|
16
|
-
|
16
|
+
|
17
17
|
change = { action: action }
|
18
|
-
change.merge! send(action, *args)
|
18
|
+
change.merge! send(action, *args, **kwargs)
|
19
19
|
@changes << change
|
20
20
|
end
|
21
21
|
|
data/lib/peach/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: peach-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peach Developers
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: debug
|