yorobot 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +4 -3
- data/lib/yorobot.rb +32 -5
- data/lib/yorobot/version.rb +9 -8
- metadata +20 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6cfbe776d81878255808559a2b04b9e5127749d6
|
4
|
+
data.tar.gz: c4cd78e6c6861b15a304919bc4c365d9bb30d086
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 868dd686ac6e0bff72a7f3e394e76a4752bd2aa71f70db7633aefd8fafb64b702e91a76bc250a9f29bcde17bc1f4248707c9e541a59a8b550d4b0869c129cff0
|
7
|
+
data.tar.gz: daec8b3a92615b8d144395530ea2866d8e632b8682585c1b7c187e8fce25812a66069c631e84f6f29e9e23c58149020e6cde7af06ee89ab2e98c623033be4cf0
|
data/Rakefile
CHANGED
@@ -3,7 +3,7 @@ require './lib/yorobot/version.rb'
|
|
3
3
|
|
4
4
|
Hoe.spec 'yorobot' do
|
5
5
|
|
6
|
-
self.version =
|
6
|
+
self.version = Yorobot::Module::Tool::VERSION
|
7
7
|
|
8
8
|
self.summary = "yorbot gem - yo, robot - automate, automate, automate - ready to use scripts and command line tool"
|
9
9
|
self.description = summary
|
@@ -18,10 +18,11 @@ Hoe.spec 'yorobot' do
|
|
18
18
|
self.history_file = 'CHANGELOG.md'
|
19
19
|
|
20
20
|
self.extra_deps = [
|
21
|
-
['flow-lite', '>= 1.
|
21
|
+
['flow-lite', '>= 1.1.0'],
|
22
22
|
['gitti', '>= 0.6.1'],
|
23
23
|
['hubba', '>= 1.0.0'],
|
24
|
-
['
|
24
|
+
['hubba-reports', '>= 1.0.1'],
|
25
|
+
['monos', '>= 1.1.1'], ## todo/check: just add monofile - why? why not?
|
25
26
|
]
|
26
27
|
|
27
28
|
self.licenses = ['Public Domain']
|
data/lib/yorobot.rb
CHANGED
@@ -8,6 +8,7 @@ require 'flow-lite'
|
|
8
8
|
# add via gitti & hubba
|
9
9
|
require 'gitti'
|
10
10
|
require 'hubba'
|
11
|
+
require 'hubba/reports'
|
11
12
|
require 'mono'
|
12
13
|
|
13
14
|
|
@@ -35,7 +36,7 @@ class Base
|
|
35
36
|
git config --global user.email "gerald.bauer+yorobot@gmail.com"
|
36
37
|
git config -l --show-origin
|
37
38
|
=end
|
38
|
-
def
|
39
|
+
def step_adduser
|
39
40
|
##############
|
40
41
|
## setup ssh
|
41
42
|
|
@@ -81,18 +82,44 @@ class Base
|
|
81
82
|
|
82
83
|
Computer::Shell.run( %Q{git config -l --show-origin} )
|
83
84
|
end
|
84
|
-
alias_method :step_setup, :setup
|
85
85
|
|
86
86
|
end # class Base
|
87
87
|
end # module Flow
|
88
88
|
|
89
89
|
|
90
90
|
|
91
|
+
module Yorobot
|
92
|
+
class Tool
|
93
|
+
def self.main( args=ARGV )
|
91
94
|
|
95
|
+
## setup/check mono root
|
96
|
+
puts "[flow] pwd: #{Dir.pwd}"
|
92
97
|
|
93
|
-
|
94
|
-
|
98
|
+
|
99
|
+
## quick hack:
|
100
|
+
## if /sites does not exists
|
101
|
+
## assume running with GitHub Actions or such
|
102
|
+
## and use working dir as root? or change to home dir ~/ or ~/mono - why? why not?
|
103
|
+
##
|
104
|
+
## in the future use some -e/-env(ironemt) settings and scripts - why? why not?
|
105
|
+
if Dir.exist?( 'C:/Sites' )
|
106
|
+
Mono.root = 'C:/Sites' ## use local (dev) setup for testing flow steps
|
107
|
+
|
108
|
+
puts "[flow] assume local (dev) setup for testing"
|
109
|
+
else
|
110
|
+
Mono.root = Dir.pwd
|
111
|
+
|
112
|
+
## for debugging print / walk mono (source) tree
|
113
|
+
Mono.walk
|
114
|
+
end
|
115
|
+
puts "[flow] Mono.root: #{Mono.root}"
|
116
|
+
|
117
|
+
|
118
|
+
## pass along to "standard" flow engine
|
119
|
+
::Flow::Tool.main( args )
|
120
|
+
end
|
121
|
+
end # class Tool
|
95
122
|
end # module Yorobot
|
96
123
|
|
97
124
|
|
98
|
-
puts
|
125
|
+
puts Yorobot::Module::Tool.banner # say hello
|
data/lib/yorobot/version.rb
CHANGED
@@ -1,12 +1,10 @@
|
|
1
1
|
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
module YorobotCore ## todo/check: rename GittiBase or GittiMeta or such - why? why not?
|
2
|
+
module Yorobot
|
3
|
+
module Module
|
4
|
+
module Tool
|
7
5
|
MAJOR = 1 ## todo: namespace inside version or something - why? why not??
|
8
|
-
MINOR =
|
9
|
-
PATCH =
|
6
|
+
MINOR = 1
|
7
|
+
PATCH = 0
|
10
8
|
VERSION = [MAJOR,MINOR,PATCH].join('.')
|
11
9
|
|
12
10
|
def self.version
|
@@ -20,5 +18,8 @@ module YorobotCore ## todo/check: rename GittiBase or GittiMeta or such - why
|
|
20
18
|
def self.root
|
21
19
|
File.expand_path( File.dirname(File.dirname(File.dirname(__FILE__))) )
|
22
20
|
end
|
23
|
-
|
21
|
+
|
22
|
+
end # module Tool
|
23
|
+
end # module Module
|
24
|
+
end # module Yorobot
|
24
25
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yorobot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.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-
|
11
|
+
date: 2020-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: flow-lite
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.1.0
|
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.
|
26
|
+
version: 1.1.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: gitti
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,20 +52,34 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 1.0.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: hubba-reports
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 1.0.1
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 1.0.1
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: monos
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
58
72
|
requirements:
|
59
73
|
- - ">="
|
60
74
|
- !ruby/object:Gem::Version
|
61
|
-
version: 1.
|
75
|
+
version: 1.1.1
|
62
76
|
type: :runtime
|
63
77
|
prerelease: false
|
64
78
|
version_requirements: !ruby/object:Gem::Requirement
|
65
79
|
requirements:
|
66
80
|
- - ">="
|
67
81
|
- !ruby/object:Gem::Version
|
68
|
-
version: 1.
|
82
|
+
version: 1.1.1
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: rdoc
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|