florist 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +8 -0
- data/LICENSE.txt +24 -0
- data/Makefile +55 -0
- data/README.md +22 -0
- data/florist.gemspec +39 -0
- data/lib/florist.rb +6 -0
- metadata +78 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 94d61161374af2c07e0f4021708e17fa8d45860f
|
4
|
+
data.tar.gz: f85161265e720be49659e46cfcbe301a9d741967
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 49bdd888f5c79cca60dc85a44e189072f400b7d8410ddbea7d94eb3b67509a7add3a7968fbb6dcc9053ac46a13153564b244e32356ee73cb2be682962927c999
|
7
|
+
data.tar.gz: 92efe5ef50294ba81e334b1fc467194b4768e645424da923a1cc9d3dfe521c067da5136a54e818af82f8c36cc1a3eac982ae8bac0028e31e177a14133b9aad04
|
data/CHANGELOG.md
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
|
2
|
+
Copyright (c) 2018-2019, John Mettraux, jmettraux+flor@gmail.com
|
3
|
+
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
6
|
+
in the Software without restriction, including without limitation the rights
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
9
|
+
furnished to do so, subject to the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be included in
|
12
|
+
all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
15
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
16
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
17
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
18
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
19
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
20
|
+
THE SOFTWARE.
|
21
|
+
|
22
|
+
|
23
|
+
Made in Japan
|
24
|
+
|
data/Makefile
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
|
2
|
+
## gem tasks ##
|
3
|
+
|
4
|
+
NAME = \
|
5
|
+
$(shell ruby -e "s = eval(File.read(Dir['*.gemspec'][0])); puts s.name")
|
6
|
+
VERSION = \
|
7
|
+
$(shell ruby -e "s = eval(File.read(Dir['*.gemspec'][0])); puts s.version")
|
8
|
+
|
9
|
+
count_lines:
|
10
|
+
find lib -name "*.rb" | xargs cat | ruby -e "p STDIN.readlines.count { |l| l = l.strip; l[0, 1] != '#' && l != '' }"
|
11
|
+
find spec -name "*_spec.rb" | xargs cat | ruby -e "p STDIN.readlines.count { |l| l = l.strip; l[0, 1] != '#' && l != '' }"
|
12
|
+
cl: count_lines
|
13
|
+
|
14
|
+
gemspec_validate:
|
15
|
+
@echo "---"
|
16
|
+
ruby -e "s = eval(File.read(Dir['*.gemspec'].first)); p s.validate"
|
17
|
+
@echo "---"
|
18
|
+
|
19
|
+
name: gemspec_validate
|
20
|
+
@echo "$(NAME) $(VERSION)"
|
21
|
+
|
22
|
+
cw:
|
23
|
+
find lib -name "*.rb" -exec ruby -cw {} \; | grep lib
|
24
|
+
|
25
|
+
#syncver:
|
26
|
+
# sed -E -i '' "s/VERSION = ['0-9.]+/VERSION = '$(shell grep -E "$(NAME) ([0-9.]+)" CHANGELOG.md | head -1 | sed -E 's/[^0-9\.]//g')'/" lib/$(NAME).rb
|
27
|
+
# bundle install
|
28
|
+
|
29
|
+
build: gemspec_validate
|
30
|
+
gem build $(NAME).gemspec
|
31
|
+
mkdir -p pkg
|
32
|
+
mv $(NAME)-$(VERSION).gem pkg/
|
33
|
+
|
34
|
+
push: build
|
35
|
+
gem push pkg/$(NAME)-$(VERSION).gem
|
36
|
+
|
37
|
+
|
38
|
+
## flor tasks ##
|
39
|
+
|
40
|
+
RUBY=bundle exec ruby
|
41
|
+
#RUBY=bundle exec ruby --disable-did_you_mean
|
42
|
+
# gem uninstall did_you_mean
|
43
|
+
|
44
|
+
FLOR_ENV?=dev
|
45
|
+
TO?=nil
|
46
|
+
FROM?=nil
|
47
|
+
|
48
|
+
|
49
|
+
#migrate:
|
50
|
+
# $(RUBY) -Ilib -e "require 'flor/unit'; Flor::Unit.new('envs/$(FLOR_ENV)/etc/conf.json').storage.migrate($(TO), $(FROM))"
|
51
|
+
|
52
|
+
|
53
|
+
.PHONY: \
|
54
|
+
count_lines gemspec_validate name cw build push
|
55
|
+
|
data/README.md
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
|
2
|
+
# flor
|
3
|
+
|
4
|
+
<!--
|
5
|
+
[![Build Status](https://secure.travis-ci.org/floraison/flor-worklist.svg)](http://travis-ci.org/floraison/flor-worklist)
|
6
|
+
[![Gem Version](https://badge.fury.io/rb/flor-worklist.svg)](http://badge.fury.io/rb/flor-worklist)
|
7
|
+
-->
|
8
|
+
|
9
|
+
[Flor](https://github.com/floraison/flor) is a "Ruby workflow engine", florist is an extension to flor that adds a few database tables and Ruby classes to manage one or more worklists, where tasks are stored.
|
10
|
+
|
11
|
+
It aims to follow the guidance/conventions found at [http://www.workflowpatterns.com/patterns/resource/](http://www.workflowpatterns.com/patterns/resource/).
|
12
|
+
|
13
|
+
|
14
|
+
## Documentation
|
15
|
+
|
16
|
+
See [doc/](doc/).
|
17
|
+
|
18
|
+
|
19
|
+
## LICENSE
|
20
|
+
|
21
|
+
MIT, see [LICENSE.txt](LICENSE.txt)
|
22
|
+
|
data/florist.gemspec
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
|
2
|
+
Gem::Specification.new do |s|
|
3
|
+
|
4
|
+
s.name = 'florist'
|
5
|
+
|
6
|
+
s.version = File.read(
|
7
|
+
File.expand_path('../lib/florist.rb', __FILE__)
|
8
|
+
).match(/ VERSION *= *['"]([^'"]+)/)[1]
|
9
|
+
|
10
|
+
s.platform = Gem::Platform::RUBY
|
11
|
+
s.authors = [ 'John Mettraux' ]
|
12
|
+
s.email = [ 'jmettraux+flor@gmail.com' ]
|
13
|
+
s.homepage = 'http://github.com/floraison'
|
14
|
+
#s.rubyforge_project = 'flor'
|
15
|
+
s.license = 'MIT'
|
16
|
+
s.summary = 'a worklist implementation for the flor workflow engine'
|
17
|
+
|
18
|
+
s.description = %{
|
19
|
+
a worklist implementation for the flor workflow engine
|
20
|
+
}.strip
|
21
|
+
|
22
|
+
#s.files = `git ls-files`.split("\n")
|
23
|
+
s.files = Dir[
|
24
|
+
'README.{md,txt}',
|
25
|
+
'CHANGELOG.{md,txt}', 'CREDITS.{md,txt}', 'LICENSE.{md,txt}',
|
26
|
+
'Makefile',
|
27
|
+
'lib/**/*.rb', #'spec/**/*.rb', 'test/**/*.rb',
|
28
|
+
"#{s.name}.gemspec",
|
29
|
+
]
|
30
|
+
|
31
|
+
#flor_version = s.version.to_s.split('.').take(2).join('.')
|
32
|
+
#s.add_runtime_dependency 'flor', "~> #{flor_version}"
|
33
|
+
s.add_runtime_dependency 'flor'
|
34
|
+
|
35
|
+
s.add_development_dependency 'rspec', '~> 3'
|
36
|
+
|
37
|
+
s.require_path = 'lib'
|
38
|
+
end
|
39
|
+
|
data/lib/florist.rb
ADDED
metadata
ADDED
@@ -0,0 +1,78 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: florist
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- John Mettraux
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-02-07 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: flor
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rspec
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3'
|
41
|
+
description: a worklist implementation for the flor workflow engine
|
42
|
+
email:
|
43
|
+
- jmettraux+flor@gmail.com
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- CHANGELOG.md
|
49
|
+
- LICENSE.txt
|
50
|
+
- Makefile
|
51
|
+
- README.md
|
52
|
+
- florist.gemspec
|
53
|
+
- lib/florist.rb
|
54
|
+
homepage: http://github.com/floraison
|
55
|
+
licenses:
|
56
|
+
- MIT
|
57
|
+
metadata: {}
|
58
|
+
post_install_message:
|
59
|
+
rdoc_options: []
|
60
|
+
require_paths:
|
61
|
+
- lib
|
62
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
63
|
+
requirements:
|
64
|
+
- - ">="
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '0'
|
67
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '0'
|
72
|
+
requirements: []
|
73
|
+
rubyforge_project:
|
74
|
+
rubygems_version: 2.5.2.3
|
75
|
+
signing_key:
|
76
|
+
specification_version: 4
|
77
|
+
summary: a worklist implementation for the flor workflow engine
|
78
|
+
test_files: []
|