flow-lite 0.1.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -1
- data/Rakefile +1 -5
- data/lib/flow-lite.rb +15 -11
- data/lib/flow-lite/version.rb +2 -2
- metadata +2 -44
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e984e29ecd1e215ac23dfbc248b5b323236f21ba
|
4
|
+
data.tar.gz: 8105559c7ac2c17840f5efb0e9b0c4fec179bdc1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e968604c3af2d83da673be18d8db52c0534e6644c29da6925bbfc6319386d52718e02845e9a057d2be7f05c6447a4abadaadd84b909235d6bc84182f6ace123
|
7
|
+
data.tar.gz: c40e200d14aebf20b9d6f67595f5e2571111589efe2f0e852d681f75056b2aa49f640aa2d950b35d7b8d01e6f9720219e035646570ec1a8a5618ac74f64df9d9
|
data/README.md
CHANGED
@@ -32,7 +32,7 @@ step :third_step do
|
|
32
32
|
end
|
33
33
|
```
|
34
34
|
|
35
|
-
And
|
35
|
+
And then use the `flow` command line tool to run a step.
|
36
36
|
Example:
|
37
37
|
|
38
38
|
```
|
@@ -144,6 +144,10 @@ and than use (regular) include e.g.:
|
|
144
144
|
class Flow::Base
|
145
145
|
include GitHubActions
|
146
146
|
end
|
147
|
+
|
148
|
+
#-or-
|
149
|
+
|
150
|
+
Flow::Base.include( GitHubActions )
|
147
151
|
```
|
148
152
|
|
149
153
|
Now all your flows can (re)use `setup` or any other methods you define.
|
data/Rakefile
CHANGED
@@ -17,11 +17,7 @@ Hoe.spec 'flow-lite' do
|
|
17
17
|
self.readme_file = 'README.md'
|
18
18
|
self.history_file = 'CHANGELOG.md'
|
19
19
|
|
20
|
-
self.extra_deps = [
|
21
|
-
['gitti', '>= 0.6.1' ],
|
22
|
-
['hubba', '>= 1.0.0' ],
|
23
|
-
['monos', '>= 0.5.0' ],
|
24
|
-
]
|
20
|
+
self.extra_deps = []
|
25
21
|
|
26
22
|
self.licenses = ['Public Domain']
|
27
23
|
|
data/lib/flow-lite.rb
CHANGED
@@ -1,15 +1,19 @@
|
|
1
|
+
##
|
2
|
+
## "prelude / prolog " add some common used stdlibs
|
3
|
+
## add more - why? why not?
|
1
4
|
require 'pp'
|
2
|
-
require '
|
5
|
+
require 'time'
|
6
|
+
require 'date'
|
7
|
+
require 'json'
|
8
|
+
require 'yaml'
|
9
|
+
require 'fileutils'
|
3
10
|
|
11
|
+
require 'uri'
|
12
|
+
require 'net/http'
|
13
|
+
require 'net/https'
|
4
14
|
|
5
15
|
|
6
|
-
|
7
|
-
# "prelude/prolog" add some 3rd party libs/gems
|
8
|
-
# -- our own
|
9
|
-
require 'gitti'
|
10
|
-
require 'hubba' ## todo/fix: rename to gitti-api/gitti-apis
|
11
|
-
require 'mono'
|
12
|
-
# -- some more ???
|
16
|
+
require 'optparse'
|
13
17
|
|
14
18
|
|
15
19
|
|
@@ -42,13 +46,13 @@ end # class Step
|
|
42
46
|
class Base ## base class for flow class (auto)-constructed/build from flowfile
|
43
47
|
def self.define_step( step )
|
44
48
|
name = step.names[0]
|
45
|
-
puts " adding step >#{name}<..."
|
49
|
+
puts "[flow] adding step >#{name}<..."
|
46
50
|
define_method( name, &step.block )
|
47
51
|
alias_method( :"step_#{name}", name ) ## (auto-)add step_<name> alias
|
48
52
|
|
49
53
|
alt_names = step.names[1..-1]
|
50
54
|
alt_names.each do |alt_name|
|
51
|
-
puts " adding alias >#{alt_name}< for >#{name}<..."
|
55
|
+
puts "[flow] adding alias >#{alt_name}< for >#{name}<..."
|
52
56
|
alias_method( alt_name, name )
|
53
57
|
end
|
54
58
|
end
|
@@ -78,7 +82,7 @@ class Flowfile
|
|
78
82
|
end
|
79
83
|
|
80
84
|
def build_flow_class
|
81
|
-
puts " building flow class..."
|
85
|
+
puts "[flow] building flow class..."
|
82
86
|
klass = Class.new( Base )
|
83
87
|
|
84
88
|
steps.each do |step|
|
data/lib/flow-lite/version.rb
CHANGED
metadata
CHANGED
@@ -1,57 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flow-lite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gerald Bauer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-10-
|
11
|
+
date: 2020-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: gitti
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 0.6.1
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: 0.6.1
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: hubba
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 1.0.0
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: 1.0.0
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: monos
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: 0.5.0
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: 0.5.0
|
55
13
|
- !ruby/object:Gem::Dependency
|
56
14
|
name: rdoc
|
57
15
|
requirement: !ruby/object:Gem::Requirement
|