cashbox 0.0.13 → 0.0.14

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
  SHA1:
3
- metadata.gz: d14f10d7fad5b1b6637c794fab54c408bb0560a4
4
- data.tar.gz: 23df63ff1351c33f1d210f46a9581fadeeb0982d
3
+ metadata.gz: bbbb49b6fa34d70a5c000aafe27c3771841b03cc
4
+ data.tar.gz: bfb53fde2bf3719d69bd29b5098857201ecd2ee1
5
5
  SHA512:
6
- metadata.gz: 714d70f8026d764e8f58d0f91870d2b4021146e18a10ce788ec7603e30a664d59dbc75adfa4a54f69b766822927e05590ae5982b0c7bd07fb21b2a40f13538fc
7
- data.tar.gz: 49543244f5adc30f3fd7f6ca2dabcca8d2bbcbaf289d5acb52fe39af54c429dd54a1a4f017c25abdb525522dd3012421b1fabc0d3aac27e77b126f2c9710c04b
6
+ metadata.gz: 9c5c85bea1794162082b2b53ca0d9f8b1e1c4ab32288404312adb86e09a07198675ff82e8809d4931d02761a4d3a293e405f700e00f7c8aab4d2156e667e4f75
7
+ data.tar.gz: 8d638b3c60d4db9536bdaa8a895fc6239fc11166530340dc8bac38fcad540adb85e881afcb1dbee77ee09064cdf54bbb3232d3891c3ff7df80ad0b611d29a8df
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cashbox (0.0.12)
4
+ cashbox (0.0.14)
5
5
  activesupport
6
6
  addressable
7
7
  hashie
@@ -9,7 +9,7 @@ module Cashbox::Concern
9
9
  extend SingleForwardable
10
10
 
11
11
  def_single_delegators :repository, :where, :all, :first, :find
12
- def_instance_delegator :repository, :save
12
+ def_instance_delegators :repository, :save, :destroy
13
13
 
14
14
  def repository
15
15
  @repository ||= Cashbox::Repository.new(self)
@@ -34,6 +34,11 @@ module Cashbox
34
34
  cast(request.response)
35
35
  end
36
36
 
37
+ def destroy
38
+ request = Cashbox::Request.new(:post, "#{route(@instance.vid)}/actions/cancel")
39
+ cast(request.response)
40
+ end
41
+
37
42
  private
38
43
 
39
44
  def _where(query, max)
@@ -1,3 +1,3 @@
1
1
  module Cashbox
2
- VERSION = "0.0.13"
2
+ VERSION = "0.0.14"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cashbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathon Storer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-14 00:00:00.000000000 Z
11
+ date: 2018-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler