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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fd6dc6a4982583a8267aea617e5d7852321b7a00
4
- data.tar.gz: 5e050df47d5f1d52881c2666f1bb732f39cb4981
3
+ metadata.gz: e984e29ecd1e215ac23dfbc248b5b323236f21ba
4
+ data.tar.gz: 8105559c7ac2c17840f5efb0e9b0c4fec179bdc1
5
5
  SHA512:
6
- metadata.gz: 7778366b484f614248c91c33d9aa3e01377c6861408277e5f9e49391e0b5640edcc3dee685c7ed415484bc0a3f2f9c3a2aff852bbbba777b9087e7e49e8803c0
7
- data.tar.gz: 1b0d6f6148183a97326edcf11c1a0b7b140573b0d758d157c5c06d43947c4e2ca26831c24973f5f56688b06fae421188e44648a94bcde84c81ba27ebd7d10319
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 than use the `flow` command line tool to run a step.
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
 
@@ -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 'optparse'
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|
@@ -1,7 +1,7 @@
1
1
  module FlowLite
2
2
 
3
- MAJOR = 0 ## todo: namespace inside version or something - why? why not??
4
- MINOR = 1
3
+ MAJOR = 1 ## todo: namespace inside version or something - why? why not??
4
+ MINOR = 0
5
5
  PATCH = 0
6
6
  VERSION = [MAJOR,MINOR,PATCH].join('.')
7
7
 
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: 0.1.0
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-23 00:00:00.000000000 Z
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