workflow_rb-mongo 0.1.0 → 0.1.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 +4 -4
- data/.gitignore +1 -0
- data/README.md +24 -17
- data/lib/workflow_rb/mongo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8a37cced292bf085d14bb5c7ae503afb92bab7d
|
4
|
+
data.tar.gz: 5c40b3b6fc266b22edc880f2324b116189fa8ce2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19b2b9b0d1b8e84578d88b80244d5eb73272edeeff5550dc54287ea4eb580090471559c45cb06483a4ff5acb395628d21cfd0d0b166bdba99e381ea7bfd3559e
|
7
|
+
data.tar.gz: 0e5b1ae19ff9e6fbd65ae1f927234ea7d16a4852918259e7aca45d9e79c2faa77a98da0e671be25662553ba2fced7b480a6d60cf4c273f52dd03897f6abc40c2
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
# WorkflowRb::Mongo
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+
Provides support to persist workflows running on WorkflowRb to a MongoDB database.
|
6
4
|
|
7
5
|
## Installation
|
8
6
|
|
@@ -22,20 +20,29 @@ Or install it yourself as:
|
|
22
20
|
|
23
21
|
## Usage
|
24
22
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
23
|
+
Setup a mongoid.yml config file with the *workflow_rb* client
|
24
|
+
|
25
|
+
```yaml
|
26
|
+
development:
|
27
|
+
clients:
|
28
|
+
default:
|
29
|
+
database: mongoid
|
30
|
+
hosts:
|
31
|
+
- localhost:27017
|
32
|
+
workflow_rb:
|
33
|
+
database: workflow-ruby
|
34
|
+
hosts:
|
35
|
+
- localhost:27017
|
36
|
+
```
|
37
37
|
|
38
|
-
|
38
|
+
Use the *.use_persistence* method on the *WorkflowHost* to configure it to use the Mongo provider
|
39
39
|
|
40
|
-
|
40
|
+
```ruby
|
41
|
+
require 'workflow_rb/mongo'
|
42
|
+
require 'mongoid'
|
41
43
|
|
44
|
+
Mongoid.load!("mongoid.yml", :development)
|
45
|
+
# create host
|
46
|
+
host = WorkflowRb::WorkflowHost.new
|
47
|
+
host.use_persistence(WorkflowRb::Mongo::MongoPersistenceProvider.new)
|
48
|
+
```
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: workflow_rb-mongo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Gerlag
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mongoid
|