flow 0.9.0 → 0.9.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec357556273c3b3e3c9e98b3279f20986ca7321ed0ebf8353c3daf1b6c7545a7
|
4
|
+
data.tar.gz: 779cd8698e3d2132ec9ad305205d56ae44426fc0734a51845f7949cd46d20fa1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 159d04d773bdddf3d9a6207684b4b22a21d4bef82f7356150493ea22609d844163b3655046e419b74a55612882769b71c8cb04021180b5c01654906cafdb5afc
|
7
|
+
data.tar.gz: 24b7ea56df3075201315dca37c8c043db649e769490029dc943a16252b0c66d719ae5101606aa751eb24d4e8b5956cf806f321b9cc2e014d33c5e8a342fd0313
|
data/lib/flow/version.rb
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
class <%= class_name %> < ApplicationOperation
|
4
|
-
def
|
5
|
-
#
|
4
|
+
def behavior
|
5
|
+
# Define what this operation does here
|
6
|
+
end
|
7
|
+
|
8
|
+
def undo
|
9
|
+
# If your operation can be undone, define how here.
|
10
|
+
# Otherwise you can delete this method.
|
6
11
|
end
|
7
12
|
end
|
@@ -3,9 +3,23 @@
|
|
3
3
|
require "rails_helper"
|
4
4
|
|
5
5
|
RSpec.describe ApplicationOperation, type: :operation do
|
6
|
-
subject { described_class.new(state) }
|
6
|
+
subject(:operation) { described_class.new(state) }
|
7
7
|
|
8
8
|
let(:state) { double }
|
9
9
|
|
10
10
|
it { is_expected.to inherit_from OperationBase }
|
11
|
+
|
12
|
+
describe "#execute" do
|
13
|
+
subject(:execute) { operation.execute }
|
14
|
+
|
15
|
+
it "has some behavior"
|
16
|
+
end
|
17
|
+
|
18
|
+
describe "#rewind" do
|
19
|
+
subject(:rewind) { operation.rewind }
|
20
|
+
|
21
|
+
before { operation.execute }
|
22
|
+
|
23
|
+
it "undoes some behavior"
|
24
|
+
end
|
11
25
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Garside
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-03-
|
11
|
+
date: 2019-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
61
|
+
version: 0.6.0
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.
|
68
|
+
version: 0.6.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: bundler
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|