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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1c436683fd63ce4146bae46abd33f6a3b526763827e0346fc078047f45ceb83a
4
- data.tar.gz: 510884541687f39b105f3f99ddd5c1dd58a9749b730462b40ab2f46082f92e50
3
+ metadata.gz: 0b4fad84458d23aa4e454f489e0b68097d750113a0ecda05eb9b30c7edabaa66
4
+ data.tar.gz: d6c955cc91402dbc04c0760ee2d0f3fb499592beb28dc17c37cc373e5189d089
5
5
  SHA512:
6
- metadata.gz: e89f352088cd473f27aea558b6f9ffbab323cc5995de4466ee9982b407a82e1c3266243776a96b731879c7b5b8169e94b99ac7d5e87e1d0979e6031c1fdfa214
7
- data.tar.gz: 623041f06dd194ac1a18b067ae49165a8c81453bdf91f5684480161ad04f5f8f1e90728684107309c487563ebace0aa1fb998462bc1e01ceafebecafd0ea14aa
6
+ metadata.gz: d0fa371fff331a1388be7a4791d5d551e7ece663b7918d5e4398306ee8b03898c25d6f4445d4d4f0a004c7328aa5b2966de8fa433105769b7fd406d4a443412c
7
+ data.tar.gz: 36576ba3e90d985b382b9dd9b86b723bff0768ba2eb84bef38e9f4003d98d797128e1dbfab654e7992b80932ec10c757c63019cca3599e5ff94876cc30dc7fdd
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Peach
4
- VERSION = '0.5.0'
4
+ VERSION = '0.5.1'
5
5
  end
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.0
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-06-11 00:00:00.000000000 Z
11
+ date: 2024-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: debug