superbot 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 +5 -5
- data/.rubocop.relaxed.yml +165 -0
- data/.rubocop.yml +62 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/.travis.yml +5 -2
- data/Gemfile.lock +21 -1
- data/README.md +1 -1
- data/Rakefile +20 -1
- data/bin/console +1 -0
- data/bin/e2e +6 -0
- data/exe/superbot +12 -0
- data/lib/superbot.rb +4 -2
- data/lib/superbot/cli.rb +10 -0
- data/lib/superbot/cli/root_command.rb +20 -0
- data/lib/superbot/cli/version_command.rb +11 -0
- data/lib/superbot/version.rb +3 -1
- data/superbot.gemspec +4 -0
- metadata +55 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 315afa4b621c8c352230815b08b89df96fc483abc3bad63e29edcbc128466be9
|
4
|
+
data.tar.gz: d3325f70c1f316d71d3a946748c1624503bae494c05c4208b97dd9dcf0adaba2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74f03e0d071ba5e50c4ecdf2838ba683192d36d6329ded5bd1c108b800dc2e4dbb97a634da2fcfdb9861cc4c86a51665f8437f9038de7d5a74bd6f88c5040bbb
|
7
|
+
data.tar.gz: b60cf84484de80e7fbb42b1b65c50290094de508fe23b4443de4d6ad8bf8d264176cfbab2a697ffab566b3513796a19064d6b638b871f59e209ee93385a145b3
|
@@ -0,0 +1,165 @@
|
|
1
|
+
# Relaxed.Ruby.Style
|
2
|
+
## Version 2.2
|
3
|
+
|
4
|
+
Style/Alias:
|
5
|
+
Enabled: false
|
6
|
+
StyleGuide: http://relaxed.ruby.style/#stylealias
|
7
|
+
|
8
|
+
Style/AsciiComments:
|
9
|
+
Enabled: false
|
10
|
+
StyleGuide: http://relaxed.ruby.style/#styleasciicomments
|
11
|
+
|
12
|
+
Style/BeginBlock:
|
13
|
+
Enabled: false
|
14
|
+
StyleGuide: http://relaxed.ruby.style/#stylebeginblock
|
15
|
+
|
16
|
+
Style/BlockDelimiters:
|
17
|
+
Enabled: false
|
18
|
+
StyleGuide: http://relaxed.ruby.style/#styleblockdelimiters
|
19
|
+
|
20
|
+
Style/CommentAnnotation:
|
21
|
+
Enabled: false
|
22
|
+
StyleGuide: http://relaxed.ruby.style/#stylecommentannotation
|
23
|
+
|
24
|
+
Style/Documentation:
|
25
|
+
Enabled: false
|
26
|
+
StyleGuide: http://relaxed.ruby.style/#styledocumentation
|
27
|
+
|
28
|
+
Layout/DotPosition:
|
29
|
+
Enabled: false
|
30
|
+
StyleGuide: http://relaxed.ruby.style/#layoutdotposition
|
31
|
+
|
32
|
+
Style/DoubleNegation:
|
33
|
+
Enabled: false
|
34
|
+
StyleGuide: http://relaxed.ruby.style/#styledoublenegation
|
35
|
+
|
36
|
+
Style/EndBlock:
|
37
|
+
Enabled: false
|
38
|
+
StyleGuide: http://relaxed.ruby.style/#styleendblock
|
39
|
+
|
40
|
+
Style/FormatString:
|
41
|
+
Enabled: false
|
42
|
+
StyleGuide: http://relaxed.ruby.style/#styleformatstring
|
43
|
+
|
44
|
+
Style/IfUnlessModifier:
|
45
|
+
Enabled: false
|
46
|
+
StyleGuide: http://relaxed.ruby.style/#styleifunlessmodifier
|
47
|
+
|
48
|
+
Style/Lambda:
|
49
|
+
Enabled: false
|
50
|
+
StyleGuide: http://relaxed.ruby.style/#stylelambda
|
51
|
+
|
52
|
+
Style/ModuleFunction:
|
53
|
+
Enabled: false
|
54
|
+
StyleGuide: http://relaxed.ruby.style/#stylemodulefunction
|
55
|
+
|
56
|
+
Style/MultilineBlockChain:
|
57
|
+
Enabled: false
|
58
|
+
StyleGuide: http://relaxed.ruby.style/#stylemultilineblockchain
|
59
|
+
|
60
|
+
Style/NegatedIf:
|
61
|
+
Enabled: false
|
62
|
+
StyleGuide: http://relaxed.ruby.style/#stylenegatedif
|
63
|
+
|
64
|
+
Style/NegatedWhile:
|
65
|
+
Enabled: false
|
66
|
+
StyleGuide: http://relaxed.ruby.style/#stylenegatedwhile
|
67
|
+
|
68
|
+
Style/ParallelAssignment:
|
69
|
+
Enabled: false
|
70
|
+
StyleGuide: http://relaxed.ruby.style/#styleparallelassignment
|
71
|
+
|
72
|
+
Style/PercentLiteralDelimiters:
|
73
|
+
Enabled: false
|
74
|
+
StyleGuide: http://relaxed.ruby.style/#stylepercentliteraldelimiters
|
75
|
+
|
76
|
+
Style/PerlBackrefs:
|
77
|
+
Enabled: false
|
78
|
+
StyleGuide: http://relaxed.ruby.style/#styleperlbackrefs
|
79
|
+
|
80
|
+
Style/Semicolon:
|
81
|
+
Enabled: false
|
82
|
+
StyleGuide: http://relaxed.ruby.style/#stylesemicolon
|
83
|
+
|
84
|
+
Style/SignalException:
|
85
|
+
Enabled: false
|
86
|
+
StyleGuide: http://relaxed.ruby.style/#stylesignalexception
|
87
|
+
|
88
|
+
Style/SingleLineBlockParams:
|
89
|
+
Enabled: false
|
90
|
+
StyleGuide: http://relaxed.ruby.style/#stylesinglelineblockparams
|
91
|
+
|
92
|
+
Style/SingleLineMethods:
|
93
|
+
Enabled: false
|
94
|
+
StyleGuide: http://relaxed.ruby.style/#stylesinglelinemethods
|
95
|
+
|
96
|
+
Layout/SpaceBeforeBlockBraces:
|
97
|
+
Enabled: false
|
98
|
+
StyleGuide: http://relaxed.ruby.style/#layoutspacebeforeblockbraces
|
99
|
+
|
100
|
+
Layout/SpaceInsideParens:
|
101
|
+
Enabled: false
|
102
|
+
StyleGuide: http://relaxed.ruby.style/#layoutspaceinsideparens
|
103
|
+
|
104
|
+
Style/SpecialGlobalVars:
|
105
|
+
Enabled: false
|
106
|
+
StyleGuide: http://relaxed.ruby.style/#stylespecialglobalvars
|
107
|
+
|
108
|
+
Style/StringLiterals:
|
109
|
+
Enabled: false
|
110
|
+
StyleGuide: http://relaxed.ruby.style/#stylestringliterals
|
111
|
+
|
112
|
+
# Style/TrailingCommaInArguments:
|
113
|
+
# Enabled: false
|
114
|
+
# StyleGuide: http://relaxed.ruby.style/#styletrailingcommainarguments
|
115
|
+
#
|
116
|
+
# Style/TrailingCommaInArrayLiteral:
|
117
|
+
# Enabled: false
|
118
|
+
# StyleGuide: http://relaxed.ruby.style/#styletrailingcommainarrayliteral
|
119
|
+
#
|
120
|
+
# Style/TrailingCommaInHashLiteral:
|
121
|
+
# Enabled: false
|
122
|
+
# StyleGuide: http://relaxed.ruby.style/#styletrailingcommainhashliteral
|
123
|
+
|
124
|
+
Style/WhileUntilModifier:
|
125
|
+
Enabled: false
|
126
|
+
StyleGuide: http://relaxed.ruby.style/#stylewhileuntilmodifier
|
127
|
+
|
128
|
+
Style/WordArray:
|
129
|
+
Enabled: false
|
130
|
+
StyleGuide: http://relaxed.ruby.style/#stylewordarray
|
131
|
+
|
132
|
+
Lint/AmbiguousRegexpLiteral:
|
133
|
+
Enabled: false
|
134
|
+
StyleGuide: http://relaxed.ruby.style/#lintambiguousregexpliteral
|
135
|
+
|
136
|
+
Lint/AssignmentInCondition:
|
137
|
+
Enabled: false
|
138
|
+
StyleGuide: http://relaxed.ruby.style/#lintassignmentincondition
|
139
|
+
|
140
|
+
Metrics/AbcSize:
|
141
|
+
Enabled: false
|
142
|
+
|
143
|
+
Metrics/BlockNesting:
|
144
|
+
Enabled: false
|
145
|
+
|
146
|
+
Metrics/ClassLength:
|
147
|
+
Enabled: false
|
148
|
+
|
149
|
+
Metrics/ModuleLength:
|
150
|
+
Enabled: false
|
151
|
+
|
152
|
+
Metrics/CyclomaticComplexity:
|
153
|
+
Enabled: false
|
154
|
+
|
155
|
+
Metrics/LineLength:
|
156
|
+
Enabled: false
|
157
|
+
|
158
|
+
Metrics/MethodLength:
|
159
|
+
Enabled: false
|
160
|
+
|
161
|
+
Metrics/ParameterLists:
|
162
|
+
Enabled: false
|
163
|
+
|
164
|
+
Metrics/PerceivedComplexity:
|
165
|
+
Enabled: false
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,62 @@
|
|
1
|
+
inherit_from: .rubocop.relaxed.yml
|
2
|
+
|
3
|
+
AllCops:
|
4
|
+
Exclude:
|
5
|
+
- spec/**/*
|
6
|
+
- Gemfile
|
7
|
+
- "*.gemspec"
|
8
|
+
- bundler/**/*
|
9
|
+
TargetRubyVersion: 2.4
|
10
|
+
|
11
|
+
Style/PercentLiteralDelimiters:
|
12
|
+
PreferredDelimiters:
|
13
|
+
default: ()
|
14
|
+
'%i': '()'
|
15
|
+
'%I': '()'
|
16
|
+
'%r': '{}'
|
17
|
+
'%w': '()'
|
18
|
+
'%W': '()'
|
19
|
+
|
20
|
+
Style/FormatString:
|
21
|
+
EnforcedStyle: percent
|
22
|
+
|
23
|
+
Style/FrozenStringLiteralComment:
|
24
|
+
EnforcedStyle: always
|
25
|
+
|
26
|
+
Style/WordArray:
|
27
|
+
Enabled: true
|
28
|
+
MinSize: 3
|
29
|
+
|
30
|
+
Style/SymbolArray:
|
31
|
+
Enabled: true
|
32
|
+
MinSize: 3
|
33
|
+
|
34
|
+
Gemspec/OrderedDependencies:
|
35
|
+
Enabled: false
|
36
|
+
|
37
|
+
Style/PerlBackrefs:
|
38
|
+
Enabled: true
|
39
|
+
|
40
|
+
Layout/SpaceInsideParens:
|
41
|
+
Enabled: true
|
42
|
+
|
43
|
+
Style/SpecialGlobalVars:
|
44
|
+
Enabled: true
|
45
|
+
|
46
|
+
Style/Alias:
|
47
|
+
Enabled: true
|
48
|
+
|
49
|
+
Style/BeginBlock:
|
50
|
+
Enabled: true
|
51
|
+
|
52
|
+
Naming/UncommunicativeMethodParamName:
|
53
|
+
AllowedNames:
|
54
|
+
- cn
|
55
|
+
|
56
|
+
# new in 0.56, seems to give false-positivies
|
57
|
+
# https://github.com/bbatsov/rubocop/issues/5887
|
58
|
+
Lint/SplatKeywordArguments:
|
59
|
+
Enabled: false
|
60
|
+
|
61
|
+
Metrics/BlockLength:
|
62
|
+
Enabled: false
|
data/.ruby-gemset
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
superbot
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.5.1
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,12 +1,21 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
superbot (0.0
|
4
|
+
superbot (0.1.0)
|
5
|
+
clamp (= 1.2.1)
|
5
6
|
|
6
7
|
GEM
|
7
8
|
remote: https://rubygems.org/
|
8
9
|
specs:
|
10
|
+
ast (2.4.0)
|
11
|
+
clamp (1.2.1)
|
9
12
|
diff-lcs (1.3)
|
13
|
+
kommando (0.1.2)
|
14
|
+
parallel (1.12.1)
|
15
|
+
parser (2.5.1.0)
|
16
|
+
ast (~> 2.4.0)
|
17
|
+
powerpack (0.1.1)
|
18
|
+
rainbow (3.0.0)
|
10
19
|
rake (10.5.0)
|
11
20
|
rspec (3.7.0)
|
12
21
|
rspec-core (~> 3.7.0)
|
@@ -21,14 +30,25 @@ GEM
|
|
21
30
|
diff-lcs (>= 1.2.0, < 2.0)
|
22
31
|
rspec-support (~> 3.7.0)
|
23
32
|
rspec-support (3.7.1)
|
33
|
+
rubocop (0.56.0)
|
34
|
+
parallel (~> 1.10)
|
35
|
+
parser (>= 2.5)
|
36
|
+
powerpack (~> 0.1)
|
37
|
+
rainbow (>= 2.2.2, < 4.0)
|
38
|
+
ruby-progressbar (~> 1.7)
|
39
|
+
unicode-display_width (~> 1.0, >= 1.0.1)
|
40
|
+
ruby-progressbar (1.9.0)
|
41
|
+
unicode-display_width (1.3.3)
|
24
42
|
|
25
43
|
PLATFORMS
|
26
44
|
ruby
|
27
45
|
|
28
46
|
DEPENDENCIES
|
29
47
|
bundler (~> 1.16)
|
48
|
+
kommando (~> 0.1)
|
30
49
|
rake (~> 10.0)
|
31
50
|
rspec (~> 3.0)
|
51
|
+
rubocop (~> 0.53)
|
32
52
|
superbot!
|
33
53
|
|
34
54
|
BUNDLED WITH
|
data/README.md
CHANGED
@@ -1 +1 @@
|
|
1
|
-
🤖
|
1
|
+
🤖 [![Build Status](https://travis-ci.org/superbothq/superbot.svg?branch=master)](https://travis-ci.org/superbothq/superbot)
|
data/Rakefile
CHANGED
@@ -1,6 +1,25 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require "bundler/gem_tasks"
|
2
4
|
require "rspec/core/rake_task"
|
5
|
+
require "kommando"
|
3
6
|
|
4
7
|
RSpec::Core::RakeTask.new(:spec)
|
5
8
|
|
6
|
-
task :
|
9
|
+
task default: %i[rubocop spec e2e]
|
10
|
+
|
11
|
+
task :rubocop do
|
12
|
+
rubocop_k = Kommando.puts "rubocop"
|
13
|
+
puts "" # styling for rake
|
14
|
+
raise "offenses found" unless rubocop_k.code.zero?
|
15
|
+
end
|
16
|
+
|
17
|
+
task :e2e do
|
18
|
+
e2e_k = Kommando.run "bin/e2e"
|
19
|
+
if e2e_k.code.zero?
|
20
|
+
puts "bin/e2e ok 🤖"
|
21
|
+
else
|
22
|
+
puts e2e_k.out
|
23
|
+
raise "e2e exists with non-zero"
|
24
|
+
end
|
25
|
+
end
|
data/bin/console
CHANGED
data/bin/e2e
ADDED
data/exe/superbot
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
# add lib to libpath (only needed when running from the sources)
|
5
|
+
require 'pathname'
|
6
|
+
lib_path = File.expand_path('../../lib', Pathname.new(__FILE__).realpath)
|
7
|
+
$LOAD_PATH.unshift lib_path unless $LOAD_PATH.include?(lib_path)
|
8
|
+
|
9
|
+
STDOUT.sync = true
|
10
|
+
|
11
|
+
require 'superbot'
|
12
|
+
Superbot::CLI::RootCommand.run
|
data/lib/superbot.rb
CHANGED
data/lib/superbot/cli.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "version_command"
|
4
|
+
|
5
|
+
module Superbot
|
6
|
+
module CLI
|
7
|
+
class RootCommand < Clamp::Command
|
8
|
+
banner "superbot 🤖"
|
9
|
+
|
10
|
+
subcommand ["version"], "Show version information", VersionCommand
|
11
|
+
|
12
|
+
def self.run
|
13
|
+
super
|
14
|
+
rescue StandardError => exc
|
15
|
+
warn exc.message
|
16
|
+
warn exc.backtrace.join("\n")
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
data/lib/superbot/version.rb
CHANGED
data/superbot.gemspec
CHANGED
@@ -32,7 +32,11 @@ Gem::Specification.new do |spec|
|
|
32
32
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
33
33
|
spec.require_paths = ["lib"]
|
34
34
|
|
35
|
+
spec.add_runtime_dependency "clamp", "1.2.1"
|
36
|
+
|
35
37
|
spec.add_development_dependency "bundler", "~> 1.16"
|
36
38
|
spec.add_development_dependency "rake", "~> 10.0"
|
37
39
|
spec.add_development_dependency "rspec", "~> 3.0"
|
40
|
+
spec.add_development_dependency "kommando", "~> 0.1"
|
41
|
+
spec.add_development_dependency "rubocop", "~> 0.53"
|
38
42
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: superbot
|
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
|
- Superbots
|
@@ -10,6 +10,20 @@ bindir: exe
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2018-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: clamp
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.2.1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.2.1
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: bundler
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,15 +66,48 @@ dependencies:
|
|
52
66
|
- - "~>"
|
53
67
|
- !ruby/object:Gem::Version
|
54
68
|
version: '3.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: kommando
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0.1'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0.1'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rubocop
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0.53'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0.53'
|
55
97
|
description: Superbot DSL and CLI
|
56
98
|
email:
|
57
99
|
- ''
|
58
|
-
executables:
|
100
|
+
executables:
|
101
|
+
- superbot
|
59
102
|
extensions: []
|
60
103
|
extra_rdoc_files: []
|
61
104
|
files:
|
62
105
|
- ".gitignore"
|
63
106
|
- ".rspec"
|
107
|
+
- ".rubocop.relaxed.yml"
|
108
|
+
- ".rubocop.yml"
|
109
|
+
- ".ruby-gemset"
|
110
|
+
- ".ruby-version"
|
64
111
|
- ".travis.yml"
|
65
112
|
- Gemfile
|
66
113
|
- Gemfile.lock
|
@@ -68,8 +115,13 @@ files:
|
|
68
115
|
- README.md
|
69
116
|
- Rakefile
|
70
117
|
- bin/console
|
118
|
+
- bin/e2e
|
71
119
|
- bin/setup
|
120
|
+
- exe/superbot
|
72
121
|
- lib/superbot.rb
|
122
|
+
- lib/superbot/cli.rb
|
123
|
+
- lib/superbot/cli/root_command.rb
|
124
|
+
- lib/superbot/cli/version_command.rb
|
73
125
|
- lib/superbot/version.rb
|
74
126
|
- superbot.gemspec
|
75
127
|
homepage: https://github.com/superbothq/superbot
|
@@ -92,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
144
|
version: '0'
|
93
145
|
requirements: []
|
94
146
|
rubyforge_project:
|
95
|
-
rubygems_version: 2.6
|
147
|
+
rubygems_version: 2.7.6
|
96
148
|
signing_key:
|
97
149
|
specification_version: 4
|
98
150
|
summary: Superbot Testing
|