cats_core 1.1.7 → 1.1.8

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: b37b40530cf4eeccf1ae2e3b5c8eb03bd2691196ce628ee9596a855054016de5
4
- data.tar.gz: d1e0b7ed6c38bcefcfb3c44e4efa6389de0502de25c677725ac9473cd0eeb414
3
+ metadata.gz: e88cccfc4e2d6d554ec178e2f7e981462ace4db4fa8e43fb142b617550eadde7
4
+ data.tar.gz: cb8b5bfe4186b7e2394ca8ed765d6a1c5c7c2694f503a031d42f64fce0d3b4c1
5
5
  SHA512:
6
- metadata.gz: f3f2d8888ba178611b3b09ac19dc201ee5a7971cfd72171cea12c58e97c0ef4ef65c3713a524e8e712f9495fea15b21edb56d6578a780a9f9b1512808e7dc6f3
7
- data.tar.gz: cdef99c802223c7094242ed4781ade0d9dc970b86dabc9ce9d17e9babb0b8c1e232440564a26a23d643c83c30777353f2de9673b90dd7e65f171b213db0b101b
6
+ metadata.gz: 49cb848b9e249982677944e85e91305ebb7997237a570ce9f91cfecfedc058ea7f02052e8e8aea79ae7020ee8618998a48f1d97e26886415b807d619c25dcf73
7
+ data.tar.gz: 6959a9bdb0a8474785fb1a63b6282d0f1030fcf0ed0f182246e310d73681eff892f38f64eb72c24e1d43c47541912f8292694a717676aa56916184fea63c3f47
@@ -17,10 +17,10 @@ module Cats
17
17
  render json: { success: false, error: e.message }
18
18
  end
19
19
 
20
- def stack
20
+ def finish_stacking
21
21
  receipt = Cats::Core::Receipt.find(params[:id])
22
22
  service = ReceiptService.new
23
- result = service.stack(receipt)
23
+ result = service.finish_stacking(receipt)
24
24
  render json: { success: true, data: serialize(result) }
25
25
  rescue StandardError => e
26
26
  render json: { success: false, error: e.message }
@@ -11,7 +11,7 @@ module Cats
11
11
  receipt
12
12
  end
13
13
 
14
- def stack(receipt)
14
+ def finish_stacking(receipt)
15
15
  unless receipt.status == Cats::Core::Receipt::STACKING
16
16
  raise(StandardError, 'Receipt should be in stacking state.')
17
17
  end
data/config/routes.rb CHANGED
@@ -70,7 +70,7 @@ Cats::Core::Engine.routes.draw do
70
70
  resources :receipts, except: %i[index new edit destroy] do
71
71
  member do
72
72
  post 'start_stacking'
73
- post 'stack'
73
+ post 'finish_stacking'
74
74
  end
75
75
  end
76
76
  resources :receipt_transactions, except: %i[new edit destroy]
@@ -1,5 +1,5 @@
1
1
  module Cats
2
2
  module Core
3
- VERSION = '1.1.7'.freeze
3
+ VERSION = '1.1.8'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cats_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.7
4
+ version: 1.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henock L.