workflow-sequel 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/README.md +13 -0
- data/lib/workflow/sequel/version.rb +1 -1
- data/lib/workflow/sequel.rb +3 -1
- data/workflow-sequel.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43e68c8c31a5aaaa23b204f37c9ca024d917ba6b
|
4
|
+
data.tar.gz: 347af01af14b0820004720299fd438b9c150fbe2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93dfca52e21e2feaa4a96a2163e9fb5695e4648ffe953605e61718573b8becb10807532c203c876a2ac0ec79c2039ee946cbd071442b508ae71ab350d81bbda5
|
7
|
+
data.tar.gz: 43b3304d52803ce811dd4f71d99dee58173e145c1dc83d8eeaf961dfda6093102030345b4bf9d76f7103b080f099434496b600269861db5255ddda2464387fe3
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.1.0 (2016-04-24)
|
4
|
+
|
5
|
+
* Allow workflow version < 2.0 in the Gemspec
|
6
|
+
|
7
|
+
## 0.0.2 (2014-08-26)
|
8
|
+
|
9
|
+
* Fix naming error
|
10
|
+
`uninitialized constant Workflow::Sequel::Model`
|
11
|
+
|
3
12
|
## 0.0.1 (2014-08-26)
|
4
13
|
|
5
14
|
* Initial release with support for [workflow 1.1.0](https://github.com/geekq/workflow/tree/v1.1.0)
|
data/README.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
[![Code Climate](https://codeclimate.com/github/tmaier/workflow-sequel.svg)](https://codeclimate.com/github/tmaier/workflow-sequel)
|
2
|
+
[![RubyGems](http://img.shields.io/gem/v/workflow-sequel.svg)](https://rubygems.org/gems/workflow-sequel)
|
3
|
+
|
1
4
|
# Workflow::Sequel
|
2
5
|
|
3
6
|
Adds support for [Sequel][] to the [workflow][] gem.
|
@@ -24,6 +27,16 @@ $ gem install workflow-sequel
|
|
24
27
|
|
25
28
|
## Usage
|
26
29
|
|
30
|
+
Add the `workflow_state` column to your schema.
|
31
|
+
|
32
|
+
```ruby
|
33
|
+
Sequel.migration do
|
34
|
+
change do
|
35
|
+
add_column :examples, :workflow_state, :string
|
36
|
+
end
|
37
|
+
end
|
38
|
+
```
|
39
|
+
|
27
40
|
Include `Workflow::Sequel` in your model.
|
28
41
|
|
29
42
|
```ruby
|
data/lib/workflow/sequel.rb
CHANGED
@@ -1,10 +1,12 @@
|
|
1
1
|
require 'workflow/sequel/version'
|
2
|
+
require 'workflow'
|
2
3
|
require 'workflow/adapter/sequel'
|
4
|
+
require 'sequel'
|
3
5
|
|
4
6
|
module Workflow
|
5
7
|
module Sequel
|
6
8
|
def self.included(klass)
|
7
|
-
return unless Object.const_defined?('Sequel') && klass < Sequel::Model
|
9
|
+
return unless Object.const_defined?('Sequel') && klass < ::Sequel::Model
|
8
10
|
|
9
11
|
klass.send :include, Adapter::Sequel
|
10
12
|
end
|
data/workflow-sequel.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
18
|
spec.require_paths = ['lib']
|
19
19
|
|
20
|
-
spec.add_runtime_dependency 'workflow', '~> 1.1
|
20
|
+
spec.add_runtime_dependency 'workflow', '~> 1.1'
|
21
21
|
spec.add_runtime_dependency 'sequel', '~> 4.13'
|
22
22
|
|
23
23
|
spec.add_development_dependency 'bundler', '~> 1.6'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: workflow-sequel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobias L. Maier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: workflow
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.1
|
19
|
+
version: '1.1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.1
|
26
|
+
version: '1.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: sequel
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -103,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
103
103
|
version: '0'
|
104
104
|
requirements: []
|
105
105
|
rubyforge_project:
|
106
|
-
rubygems_version: 2.
|
106
|
+
rubygems_version: 2.5.1
|
107
107
|
signing_key:
|
108
108
|
specification_version: 4
|
109
109
|
summary: Adds support for the Sequel ORM to the workflow gem
|