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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2480f3c7bbaa178bc5e0eb79c9de603af5ed5c91
4
- data.tar.gz: ff14b46d5258369edd692176e6bb97d4c825f606
3
+ metadata.gz: b8a37cced292bf085d14bb5c7ae503afb92bab7d
4
+ data.tar.gz: 5c40b3b6fc266b22edc880f2324b116189fa8ce2
5
5
  SHA512:
6
- metadata.gz: fa43df7558c1da7ddf0a7111e8ee80d718739606f433db4567e515752f9dabb5bcdf962e4c97dd10842a24da6901dc9f23c1cc56f1f3b4a773035d5aae90151b
7
- data.tar.gz: 3bd0fff9f02716d57b011cb7866b06a8f8bb5046bb7503e144012494e86034a2bd140a1e8194497f3c10beb6934c20c80f65f8a4bb064fcea6656364fdb4b8df
6
+ metadata.gz: 19b2b9b0d1b8e84578d88b80244d5eb73272edeeff5550dc54287ea4eb580090471559c45cb06483a4ff5acb395628d21cfd0d0b166bdba99e381ea7bfd3559e
7
+ data.tar.gz: 0e5b1ae19ff9e6fbd65ae1f927234ea7d16a4852918259e7aca45d9e79c2faa77a98da0e671be25662553ba2fced7b480a6d60cf4c273f52dd03897f6abc40c2
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ /workflow_rb-mongo-0.1.0.gem
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # WorkflowRb::Mongo
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/workflow_rb/mongo`. To experiment with that code, run `bin/console` for an interactive prompt.
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
- TODO: Write usage instructions here
26
-
27
- ## Development
28
-
29
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
-
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
-
33
- ## Contributing
34
-
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/workflow_rb-mongo.
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
- ## License
38
+ Use the *.use_persistence* method on the *WorkflowHost* to configure it to use the Mongo provider
39
39
 
40
- The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
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
+ ```
@@ -1,5 +1,5 @@
1
1
  module WorkflowRb
2
2
  module Mongo
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
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.0
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-10 00:00:00.000000000 Z
11
+ date: 2016-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mongoid