cai-jarvis 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.rspec +3 -0
- data/.rubocop.yml +108 -0
- data/.ruby-version +1 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile +16 -0
- data/Gemfile.lock +112 -0
- data/README.md +35 -0
- data/Rakefile +15 -0
- data/bin/console +15 -0
- data/bin/cucumber +29 -0
- data/bin/rake +29 -0
- data/bin/rspec +29 -0
- data/bin/rubocop +29 -0
- data/bin/setup +8 -0
- data/cai-jarvis.gemspec +38 -0
- data/exe/jarvis +8 -0
- data/lib/cai/jarvis/cli.rb +20 -0
- data/lib/cai/jarvis/version.rb +7 -0
- data/lib/cai-jarvis.rb +10 -0
- metadata +92 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 83476749e3bccbec22ee73af2d2dbc87829b27861cd3b7061a5ffef732854421
|
|
4
|
+
data.tar.gz: 6122bb3e151a081d32a2dd429c5d62944f7be5e70fdd75e458818f2f42ebd7be
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 5a3e81c3d669c424b049f0a17727f7072f71c66adbee041a3204f5d6536e40d9bcc8633bbe8c3b633e4a205b0dc1fba8a67c1f8d4fddb4e60d01d63dd9c0207e
|
|
7
|
+
data.tar.gz: 364c7fe1e90992d1ffc2b10775373e3a8436b6c168576adba7eb7a299dbfdfc232f4fd4b76b27688dd27c5e937fcf6a19f1e9cea07cacd254f3109e893dff431
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
AllCops:
|
|
2
|
+
TargetRubyVersion: 3.0
|
|
3
|
+
NewCops: enable
|
|
4
|
+
Gemspec/DateAssignment: # new in 1.10
|
|
5
|
+
Enabled: true
|
|
6
|
+
Gemspec/RequireMFA: # new in 1.23
|
|
7
|
+
Enabled: true
|
|
8
|
+
Layout/LineEndStringConcatenationIndentation: # new in 1.18
|
|
9
|
+
Enabled: true
|
|
10
|
+
Layout/LineLength:
|
|
11
|
+
Max: 120
|
|
12
|
+
Layout/SpaceBeforeBrackets: # new in 1.7
|
|
13
|
+
Enabled: true
|
|
14
|
+
Lint/AmbiguousAssignment: # new in 1.7
|
|
15
|
+
Enabled: true
|
|
16
|
+
Lint/AmbiguousOperatorPrecedence: # new in 1.21
|
|
17
|
+
Enabled: true
|
|
18
|
+
Lint/AmbiguousRange: # new in 1.19
|
|
19
|
+
Enabled: true
|
|
20
|
+
Lint/DeprecatedConstants: # new in 1.8
|
|
21
|
+
Enabled: true
|
|
22
|
+
Lint/DuplicateBranch: # new in 1.3
|
|
23
|
+
Enabled: true
|
|
24
|
+
Lint/DuplicateRegexpCharacterClassElement: # new in 1.1
|
|
25
|
+
Enabled: true
|
|
26
|
+
Lint/EmptyBlock: # new in 1.1
|
|
27
|
+
Enabled: true
|
|
28
|
+
Lint/EmptyClass: # new in 1.3
|
|
29
|
+
Enabled: true
|
|
30
|
+
Lint/EmptyInPattern: # new in 1.16
|
|
31
|
+
Enabled: true
|
|
32
|
+
Lint/IncompatibleIoSelectWithFiberScheduler: # new in 1.21
|
|
33
|
+
Enabled: true
|
|
34
|
+
Lint/LambdaWithoutLiteralBlock: # new in 1.8
|
|
35
|
+
Enabled: true
|
|
36
|
+
Lint/NoReturnInBeginEndBlocks: # new in 1.2
|
|
37
|
+
Enabled: true
|
|
38
|
+
Lint/NumberedParameterAssignment: # new in 1.9
|
|
39
|
+
Enabled: true
|
|
40
|
+
Lint/OrAssignmentToConstant: # new in 1.9
|
|
41
|
+
Enabled: true
|
|
42
|
+
Lint/RedundantDirGlobSort: # new in 1.8
|
|
43
|
+
Enabled: true
|
|
44
|
+
Lint/RequireRelativeSelfPath: # new in 1.22
|
|
45
|
+
Enabled: true
|
|
46
|
+
Lint/SymbolConversion: # new in 1.9
|
|
47
|
+
Enabled: true
|
|
48
|
+
Lint/ToEnumArguments: # new in 1.1
|
|
49
|
+
Enabled: true
|
|
50
|
+
Lint/TripleQuotes: # new in 1.9
|
|
51
|
+
Enabled: true
|
|
52
|
+
Lint/UnexpectedBlockArity: # new in 1.5
|
|
53
|
+
Enabled: true
|
|
54
|
+
Lint/UnmodifiedReduceAccumulator: # new in 1.1
|
|
55
|
+
Enabled: true
|
|
56
|
+
Lint/UselessRuby2Keywords: # new in 1.23
|
|
57
|
+
Enabled: true
|
|
58
|
+
Naming/FileName:
|
|
59
|
+
Exclude:
|
|
60
|
+
- lib/cai-jarvis.rb
|
|
61
|
+
Security/IoMethods: # new in 1.22
|
|
62
|
+
Enabled: true
|
|
63
|
+
Style/ArgumentsForwarding: # new in 1.1
|
|
64
|
+
Enabled: true
|
|
65
|
+
Style/CollectionCompact: # new in 1.2
|
|
66
|
+
Enabled: true
|
|
67
|
+
Style/DocumentDynamicEvalDefinition: # new in 1.1
|
|
68
|
+
Enabled: true
|
|
69
|
+
Style/EndlessMethod: # new in 1.8
|
|
70
|
+
Enabled: true
|
|
71
|
+
Style/HashConversion: # new in 1.10
|
|
72
|
+
Enabled: true
|
|
73
|
+
Style/HashExcept: # new in 1.7
|
|
74
|
+
Enabled: true
|
|
75
|
+
Style/IfWithBooleanLiteralBranches: # new in 1.9
|
|
76
|
+
Enabled: true
|
|
77
|
+
Style/InPatternThen: # new in 1.16
|
|
78
|
+
Enabled: true
|
|
79
|
+
Style/MultilineInPatternThen: # new in 1.16
|
|
80
|
+
Enabled: true
|
|
81
|
+
Style/NegatedIfElseCondition: # new in 1.2
|
|
82
|
+
Enabled: true
|
|
83
|
+
Style/NilLambda: # new in 1.3
|
|
84
|
+
Enabled: true
|
|
85
|
+
Style/NumberedParameters: # new in 1.22
|
|
86
|
+
Enabled: true
|
|
87
|
+
Style/NumberedParametersLimit: # new in 1.22
|
|
88
|
+
Enabled: true
|
|
89
|
+
Style/OpenStructUse: # new in 1.23
|
|
90
|
+
Enabled: true
|
|
91
|
+
Style/QuotedSymbols: # new in 1.16
|
|
92
|
+
Enabled: true
|
|
93
|
+
Style/RedundantArgument: # new in 1.4
|
|
94
|
+
Enabled: true
|
|
95
|
+
Style/RedundantSelfAssignmentBranch: # new in 1.19
|
|
96
|
+
Enabled: true
|
|
97
|
+
Style/SelectByRegexp: # new in 1.22
|
|
98
|
+
Enabled: true
|
|
99
|
+
Style/StringChars: # new in 1.12
|
|
100
|
+
Enabled: true
|
|
101
|
+
Style/StringLiterals:
|
|
102
|
+
Enabled: true
|
|
103
|
+
EnforcedStyle: double_quotes
|
|
104
|
+
Style/StringLiteralsInInterpolation:
|
|
105
|
+
Enabled: true
|
|
106
|
+
EnforcedStyle: double_quotes
|
|
107
|
+
Style/SwapValues: # new in 1.1
|
|
108
|
+
Enabled: true
|
data/.ruby-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.0.2
|
data/CHANGELOG.md
ADDED
data/Gemfile
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
source "https://rubygems.org"
|
|
4
|
+
|
|
5
|
+
# Specify your gem's dependencies in cai-jarvis.gemspec
|
|
6
|
+
gemspec
|
|
7
|
+
|
|
8
|
+
gem "rake", "~> 13.0"
|
|
9
|
+
|
|
10
|
+
gem "rspec", "~> 3.0"
|
|
11
|
+
|
|
12
|
+
gem "rubocop", "~> 1.7"
|
|
13
|
+
|
|
14
|
+
gem "rubocop-rake", "~> 0.6.0"
|
|
15
|
+
|
|
16
|
+
gem "rubocop-rspec", "~> 2.6"
|
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
cai-jarvis (0.1.0)
|
|
5
|
+
thor (~> 1.1)
|
|
6
|
+
|
|
7
|
+
GEM
|
|
8
|
+
remote: https://rubygems.org/
|
|
9
|
+
specs:
|
|
10
|
+
aruba (2.0.0)
|
|
11
|
+
bundler (>= 1.17, < 3.0)
|
|
12
|
+
childprocess (>= 2.0, < 5.0)
|
|
13
|
+
contracts (>= 0.16.0, < 0.18.0)
|
|
14
|
+
cucumber (>= 4.0, < 8.0)
|
|
15
|
+
rspec-expectations (~> 3.4)
|
|
16
|
+
thor (~> 1.0)
|
|
17
|
+
ast (2.4.2)
|
|
18
|
+
builder (3.2.4)
|
|
19
|
+
childprocess (4.1.0)
|
|
20
|
+
contracts (0.17)
|
|
21
|
+
cucumber (7.1.0)
|
|
22
|
+
builder (~> 3.2, >= 3.2.4)
|
|
23
|
+
cucumber-core (~> 10.1, >= 10.1.0)
|
|
24
|
+
cucumber-create-meta (~> 6.0, >= 6.0.1)
|
|
25
|
+
cucumber-cucumber-expressions (~> 14.0, >= 14.0.0)
|
|
26
|
+
cucumber-gherkin (~> 22.0, >= 22.0.0)
|
|
27
|
+
cucumber-html-formatter (~> 17.0, >= 17.0.0)
|
|
28
|
+
cucumber-messages (~> 17.1, >= 17.1.1)
|
|
29
|
+
cucumber-wire (~> 6.2, >= 6.2.0)
|
|
30
|
+
diff-lcs (~> 1.4, >= 1.4.4)
|
|
31
|
+
mime-types (~> 3.3, >= 3.3.1)
|
|
32
|
+
multi_test (~> 0.1, >= 0.1.2)
|
|
33
|
+
sys-uname (~> 1.2, >= 1.2.2)
|
|
34
|
+
cucumber-core (10.1.0)
|
|
35
|
+
cucumber-gherkin (~> 22.0, >= 22.0.0)
|
|
36
|
+
cucumber-messages (~> 17.1, >= 17.1.1)
|
|
37
|
+
cucumber-tag-expressions (~> 4.0, >= 4.0.2)
|
|
38
|
+
cucumber-create-meta (6.0.4)
|
|
39
|
+
cucumber-messages (~> 17.1, >= 17.1.1)
|
|
40
|
+
sys-uname (~> 1.2, >= 1.2.2)
|
|
41
|
+
cucumber-cucumber-expressions (14.0.0)
|
|
42
|
+
cucumber-gherkin (22.0.0)
|
|
43
|
+
cucumber-messages (~> 17.1, >= 17.1.1)
|
|
44
|
+
cucumber-html-formatter (17.0.0)
|
|
45
|
+
cucumber-messages (~> 17.1, >= 17.1.0)
|
|
46
|
+
cucumber-messages (17.1.1)
|
|
47
|
+
cucumber-tag-expressions (4.1.0)
|
|
48
|
+
cucumber-wire (6.2.0)
|
|
49
|
+
cucumber-core (~> 10.1, >= 10.1.0)
|
|
50
|
+
cucumber-cucumber-expressions (~> 14.0, >= 14.0.0)
|
|
51
|
+
cucumber-messages (~> 17.1, >= 17.1.1)
|
|
52
|
+
diff-lcs (1.4.4)
|
|
53
|
+
ffi (1.15.4)
|
|
54
|
+
mime-types (3.4.1)
|
|
55
|
+
mime-types-data (~> 3.2015)
|
|
56
|
+
mime-types-data (3.2021.1115)
|
|
57
|
+
multi_test (0.1.2)
|
|
58
|
+
parallel (1.21.0)
|
|
59
|
+
parser (3.0.3.2)
|
|
60
|
+
ast (~> 2.4.1)
|
|
61
|
+
rainbow (3.0.0)
|
|
62
|
+
rake (13.0.6)
|
|
63
|
+
regexp_parser (2.2.0)
|
|
64
|
+
rexml (3.2.5)
|
|
65
|
+
rspec (3.10.0)
|
|
66
|
+
rspec-core (~> 3.10.0)
|
|
67
|
+
rspec-expectations (~> 3.10.0)
|
|
68
|
+
rspec-mocks (~> 3.10.0)
|
|
69
|
+
rspec-core (3.10.1)
|
|
70
|
+
rspec-support (~> 3.10.0)
|
|
71
|
+
rspec-expectations (3.10.1)
|
|
72
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
73
|
+
rspec-support (~> 3.10.0)
|
|
74
|
+
rspec-mocks (3.10.2)
|
|
75
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
76
|
+
rspec-support (~> 3.10.0)
|
|
77
|
+
rspec-support (3.10.3)
|
|
78
|
+
rubocop (1.23.0)
|
|
79
|
+
parallel (~> 1.10)
|
|
80
|
+
parser (>= 3.0.0.0)
|
|
81
|
+
rainbow (>= 2.2.2, < 4.0)
|
|
82
|
+
regexp_parser (>= 1.8, < 3.0)
|
|
83
|
+
rexml
|
|
84
|
+
rubocop-ast (>= 1.12.0, < 2.0)
|
|
85
|
+
ruby-progressbar (~> 1.7)
|
|
86
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
|
87
|
+
rubocop-ast (1.15.0)
|
|
88
|
+
parser (>= 3.0.1.1)
|
|
89
|
+
rubocop-rake (0.6.0)
|
|
90
|
+
rubocop (~> 1.0)
|
|
91
|
+
rubocop-rspec (2.6.0)
|
|
92
|
+
rubocop (~> 1.19)
|
|
93
|
+
ruby-progressbar (1.11.0)
|
|
94
|
+
sys-uname (1.2.2)
|
|
95
|
+
ffi (~> 1.1)
|
|
96
|
+
thor (1.1.0)
|
|
97
|
+
unicode-display_width (2.1.0)
|
|
98
|
+
|
|
99
|
+
PLATFORMS
|
|
100
|
+
arm64-darwin-21
|
|
101
|
+
|
|
102
|
+
DEPENDENCIES
|
|
103
|
+
aruba (~> 2.0)
|
|
104
|
+
cai-jarvis!
|
|
105
|
+
rake (~> 13.0)
|
|
106
|
+
rspec (~> 3.0)
|
|
107
|
+
rubocop (~> 1.7)
|
|
108
|
+
rubocop-rake (~> 0.6.0)
|
|
109
|
+
rubocop-rspec (~> 2.6)
|
|
110
|
+
|
|
111
|
+
BUNDLED WITH
|
|
112
|
+
2.2.33
|
data/README.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Jarvis
|
|
2
|
+
|
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/jarvis`. To experiment with that code, run `bin/console` for an interactive prompt.
|
|
4
|
+
|
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
Add this line to your application's Gemfile:
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
gem 'jarvis'
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
And then execute:
|
|
16
|
+
|
|
17
|
+
$ bundle install
|
|
18
|
+
|
|
19
|
+
Or install it yourself as:
|
|
20
|
+
|
|
21
|
+
$ gem install jarvis
|
|
22
|
+
|
|
23
|
+
## Usage
|
|
24
|
+
|
|
25
|
+
TODO: Write usage instructions here
|
|
26
|
+
|
|
27
|
+
## Development
|
|
28
|
+
|
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
|
30
|
+
|
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
|
32
|
+
|
|
33
|
+
## Contributing
|
|
34
|
+
|
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/jarvis.
|
data/Rakefile
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "bundler"
|
|
4
|
+
Bundler.setup(:default, :development)
|
|
5
|
+
|
|
6
|
+
require "bundler/gem_tasks"
|
|
7
|
+
require "rspec/core/rake_task"
|
|
8
|
+
require "cucumber/rake/task"
|
|
9
|
+
require "rubocop/rake_task"
|
|
10
|
+
|
|
11
|
+
RSpec::Core::RakeTask.new(:spec)
|
|
12
|
+
Cucumber::Rake::Task.new
|
|
13
|
+
RuboCop::RakeTask.new
|
|
14
|
+
|
|
15
|
+
task default: %i[spec cucumber rubocop]
|
data/bin/console
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
require "bundler/setup"
|
|
5
|
+
require "cai-jarvis"
|
|
6
|
+
|
|
7
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
|
8
|
+
# with your gem easier. You can also use a different console, if you like.
|
|
9
|
+
|
|
10
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
|
11
|
+
# require "pry"
|
|
12
|
+
# Pry.start
|
|
13
|
+
|
|
14
|
+
require "irb"
|
|
15
|
+
IRB.start(__FILE__)
|
data/bin/cucumber
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
#
|
|
5
|
+
# This file was generated by Bundler.
|
|
6
|
+
#
|
|
7
|
+
# The application 'cucumber' is installed as part of a gem, and
|
|
8
|
+
# this file is here to facilitate running it.
|
|
9
|
+
#
|
|
10
|
+
|
|
11
|
+
require "pathname"
|
|
12
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
|
13
|
+
Pathname.new(__FILE__).realpath)
|
|
14
|
+
|
|
15
|
+
bundle_binstub = File.expand_path("bundle", __dir__)
|
|
16
|
+
|
|
17
|
+
if File.file?(bundle_binstub)
|
|
18
|
+
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
|
19
|
+
load(bundle_binstub)
|
|
20
|
+
else
|
|
21
|
+
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
|
22
|
+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
require "rubygems"
|
|
27
|
+
require "bundler/setup"
|
|
28
|
+
|
|
29
|
+
load Gem.bin_path("cucumber", "cucumber")
|
data/bin/rake
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
#
|
|
5
|
+
# This file was generated by Bundler.
|
|
6
|
+
#
|
|
7
|
+
# The application 'rake' is installed as part of a gem, and
|
|
8
|
+
# this file is here to facilitate running it.
|
|
9
|
+
#
|
|
10
|
+
|
|
11
|
+
require "pathname"
|
|
12
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
|
13
|
+
Pathname.new(__FILE__).realpath)
|
|
14
|
+
|
|
15
|
+
bundle_binstub = File.expand_path("bundle", __dir__)
|
|
16
|
+
|
|
17
|
+
if File.file?(bundle_binstub)
|
|
18
|
+
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
|
19
|
+
load(bundle_binstub)
|
|
20
|
+
else
|
|
21
|
+
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
|
22
|
+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
require "rubygems"
|
|
27
|
+
require "bundler/setup"
|
|
28
|
+
|
|
29
|
+
load Gem.bin_path("rake", "rake")
|
data/bin/rspec
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
#
|
|
5
|
+
# This file was generated by Bundler.
|
|
6
|
+
#
|
|
7
|
+
# The application 'rspec' is installed as part of a gem, and
|
|
8
|
+
# this file is here to facilitate running it.
|
|
9
|
+
#
|
|
10
|
+
|
|
11
|
+
require "pathname"
|
|
12
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
|
13
|
+
Pathname.new(__FILE__).realpath)
|
|
14
|
+
|
|
15
|
+
bundle_binstub = File.expand_path("bundle", __dir__)
|
|
16
|
+
|
|
17
|
+
if File.file?(bundle_binstub)
|
|
18
|
+
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
|
19
|
+
load(bundle_binstub)
|
|
20
|
+
else
|
|
21
|
+
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
|
22
|
+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
require "rubygems"
|
|
27
|
+
require "bundler/setup"
|
|
28
|
+
|
|
29
|
+
load Gem.bin_path("rspec-core", "rspec")
|
data/bin/rubocop
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
#
|
|
5
|
+
# This file was generated by Bundler.
|
|
6
|
+
#
|
|
7
|
+
# The application 'rubocop' is installed as part of a gem, and
|
|
8
|
+
# this file is here to facilitate running it.
|
|
9
|
+
#
|
|
10
|
+
|
|
11
|
+
require "pathname"
|
|
12
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
|
13
|
+
Pathname.new(__FILE__).realpath)
|
|
14
|
+
|
|
15
|
+
bundle_binstub = File.expand_path("bundle", __dir__)
|
|
16
|
+
|
|
17
|
+
if File.file?(bundle_binstub)
|
|
18
|
+
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
|
19
|
+
load(bundle_binstub)
|
|
20
|
+
else
|
|
21
|
+
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
|
22
|
+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
require "rubygems"
|
|
27
|
+
require "bundler/setup"
|
|
28
|
+
|
|
29
|
+
load Gem.bin_path("rubocop", "rubocop")
|
data/bin/setup
ADDED
data/cai-jarvis.gemspec
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "lib/cai/jarvis/version"
|
|
4
|
+
|
|
5
|
+
Gem::Specification.new do |spec|
|
|
6
|
+
spec.name = "cai-jarvis"
|
|
7
|
+
spec.version = CAI::JARVIS::VERSION
|
|
8
|
+
spec.authors = ["Jarrod Carlson"]
|
|
9
|
+
spec.email = ["jarrod.carlson@gmail.com"]
|
|
10
|
+
|
|
11
|
+
spec.summary = "Jarrod's Automated Ruby Valet Infrastructure Superintendent"
|
|
12
|
+
spec.description = "A suite of command line tools for automating Logistics SRE Platform tasks"
|
|
13
|
+
spec.homepage = "https://ghe.coxautoinc.com/Jarrod-Carlson/jarvis"
|
|
14
|
+
spec.required_ruby_version = ">= 3.0.0"
|
|
15
|
+
|
|
16
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
|
17
|
+
spec.metadata["source_code_uri"] = spec.homepage
|
|
18
|
+
spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
|
|
19
|
+
|
|
20
|
+
# Specify which files should be added to the gem when it is released.
|
|
21
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
|
22
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
|
23
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
|
|
24
|
+
end
|
|
25
|
+
spec.bindir = "exe"
|
|
26
|
+
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
|
27
|
+
spec.require_paths = ["lib"]
|
|
28
|
+
|
|
29
|
+
spec.add_dependency "thor", "~> 1.1"
|
|
30
|
+
|
|
31
|
+
spec.add_development_dependency "aruba", "~> 2.0"
|
|
32
|
+
|
|
33
|
+
# For more information and examples about making a new gem, checkout our
|
|
34
|
+
# guide at: https://bundler.io/guides/creating_gem.html
|
|
35
|
+
spec.metadata = {
|
|
36
|
+
"rubygems_mfa_required" => "true"
|
|
37
|
+
}
|
|
38
|
+
end
|
data/exe/jarvis
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "thor"
|
|
4
|
+
require "cai/jarvis/version"
|
|
5
|
+
|
|
6
|
+
module CAI
|
|
7
|
+
module JARVIS
|
|
8
|
+
# Command Line Interface for JARVIS
|
|
9
|
+
class CLI < Thor
|
|
10
|
+
def self.exit_on_failure? = true
|
|
11
|
+
|
|
12
|
+
map %w[--version -v] => :version
|
|
13
|
+
|
|
14
|
+
desc "--version, -v", "print the current version"
|
|
15
|
+
def version
|
|
16
|
+
puts JARVIS::VERSION
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
data/lib/cai-jarvis.rb
ADDED
metadata
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: cai-jarvis
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Jarrod Carlson
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: exe
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2021-12-15 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: thor
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - "~>"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '1.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.1'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: aruba
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - "~>"
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '2.0'
|
|
34
|
+
type: :development
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - "~>"
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '2.0'
|
|
41
|
+
description: A suite of command line tools for automating Logistics SRE Platform tasks
|
|
42
|
+
email:
|
|
43
|
+
- jarrod.carlson@gmail.com
|
|
44
|
+
executables:
|
|
45
|
+
- jarvis
|
|
46
|
+
extensions: []
|
|
47
|
+
extra_rdoc_files: []
|
|
48
|
+
files:
|
|
49
|
+
- ".gitignore"
|
|
50
|
+
- ".rspec"
|
|
51
|
+
- ".rubocop.yml"
|
|
52
|
+
- ".ruby-version"
|
|
53
|
+
- CHANGELOG.md
|
|
54
|
+
- Gemfile
|
|
55
|
+
- Gemfile.lock
|
|
56
|
+
- README.md
|
|
57
|
+
- Rakefile
|
|
58
|
+
- bin/console
|
|
59
|
+
- bin/cucumber
|
|
60
|
+
- bin/rake
|
|
61
|
+
- bin/rspec
|
|
62
|
+
- bin/rubocop
|
|
63
|
+
- bin/setup
|
|
64
|
+
- cai-jarvis.gemspec
|
|
65
|
+
- exe/jarvis
|
|
66
|
+
- lib/cai-jarvis.rb
|
|
67
|
+
- lib/cai/jarvis/cli.rb
|
|
68
|
+
- lib/cai/jarvis/version.rb
|
|
69
|
+
homepage: https://ghe.coxautoinc.com/Jarrod-Carlson/jarvis
|
|
70
|
+
licenses: []
|
|
71
|
+
metadata:
|
|
72
|
+
rubygems_mfa_required: 'true'
|
|
73
|
+
post_install_message:
|
|
74
|
+
rdoc_options: []
|
|
75
|
+
require_paths:
|
|
76
|
+
- lib
|
|
77
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
78
|
+
requirements:
|
|
79
|
+
- - ">="
|
|
80
|
+
- !ruby/object:Gem::Version
|
|
81
|
+
version: 3.0.0
|
|
82
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
|
+
requirements:
|
|
84
|
+
- - ">="
|
|
85
|
+
- !ruby/object:Gem::Version
|
|
86
|
+
version: '0'
|
|
87
|
+
requirements: []
|
|
88
|
+
rubygems_version: 3.2.33
|
|
89
|
+
signing_key:
|
|
90
|
+
specification_version: 4
|
|
91
|
+
summary: Jarrod's Automated Ruby Valet Infrastructure Superintendent
|
|
92
|
+
test_files: []
|