rbcli 0.3.2 → 0.3.3

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.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -0
  3. data/Gemfile.lock +19 -5
  4. data/docs/404.html +9 -9
  5. data/docs/advanced/automatic_updates/index.html +30 -30
  6. data/docs/advanced/command_types/index.html +78 -78
  7. data/docs/advanced/distributed_state_locking/index.html +30 -30
  8. data/docs/advanced/hooks/index.html +42 -42
  9. data/docs/advanced/index.html +27 -27
  10. data/docs/advanced/index.xml +12 -50
  11. data/docs/advanced/interactive_commands/index.html +35 -35
  12. data/docs/advanced/logging/index.html +36 -36
  13. data/docs/advanced/remote_execution/index.html +51 -51
  14. data/docs/advanced/state_storage/index.html +34 -34
  15. data/docs/advanced/user_config_files/index.html +30 -30
  16. data/docs/categories/index.html +27 -27
  17. data/docs/categories/index.xml +3 -2
  18. data/docs/development/changelog/index.html +91 -60
  19. data/docs/development/code_of_conduct/index.html +27 -27
  20. data/docs/development/contributing/index.html +40 -40
  21. data/docs/development/index.html +27 -27
  22. data/docs/development/index.xml +6 -16
  23. data/docs/development/license/index.html +26 -26
  24. data/docs/index.html +26 -26
  25. data/docs/index.json +15 -15
  26. data/docs/index.xml +20 -90
  27. data/docs/quick_reference/index.html +54 -54
  28. data/docs/quick_reference/index.xml +3 -2
  29. data/docs/sitemap.xml +0 -1
  30. data/docs/tags/index.html +27 -27
  31. data/docs/tags/index.xml +3 -2
  32. data/docs/tutorial/10-getting_started/index.html +33 -33
  33. data/docs/tutorial/20-project_layout/index.html +55 -55
  34. data/docs/tutorial/30-your_first_command/index.html +90 -90
  35. data/docs/tutorial/40-options_parameters_and_arguments/index.html +167 -167
  36. data/docs/tutorial/50-publishing/index.html +30 -30
  37. data/docs/tutorial/index.html +27 -27
  38. data/docs/tutorial/index.xml +8 -28
  39. data/docs/whoami/index.html +28 -28
  40. data/docs/whoami/index.xml +3 -2
  41. data/docs-src/.hugo_build.lock +0 -0
  42. data/docs-src/content/development/changelog.md +20 -0
  43. data/docs-src/makesite.sh +4 -4
  44. data/lib/rbcli/engine/command.rb +1 -1
  45. data/lib/rbcli/engine/parser.rb +9 -7
  46. data/lib/rbcli/util/optimist.rb +1063 -0
  47. data/lib/rbcli/version.rb +1 -1
  48. data/lib/rbcli-tool/util.rb +1 -1
  49. data/rbcli.gemspec +7 -3
  50. data/skeletons/micro/executable +6 -1
  51. data/skeletons/mini/executable +6 -1
  52. data/skeletons/project/untitled.gemspec +4 -4
  53. metadata +9 -8
  54. data/lib/rbcli/util/trollop.rb +0 -1050
data/lib/rbcli/version.rb CHANGED
@@ -19,5 +19,5 @@
19
19
  ##################################################################################
20
20
 
21
21
  module Rbcli
22
- VERSION = '0.3.2'
22
+ VERSION = '0.3.3'
23
23
  end
@@ -28,7 +28,7 @@ module RBCliTool
28
28
  end
29
29
 
30
30
  def render
31
- ERB.new(File.read(@filename), nil, '-').result(binding)
31
+ ERB.new(File.read(@filename), trim_mode: '-').result(binding)
32
32
  end
33
33
  end
34
34
 
data/rbcli.gemspec CHANGED
@@ -61,9 +61,13 @@ Gem::Specification.new do |spec|
61
61
  spec.add_dependency 'aws-sdk-dynamodb', '~> 1'
62
62
  spec.add_dependency 'macaddr', '~> 1'
63
63
  spec.add_dependency 'rufus-scheduler', '~> 3'
64
- spec.add_dependency 'octokit', '~> 7'
65
- spec.add_dependency 'mdless', '~> 1'
64
+ spec.add_dependency 'octokit', RUBY_VERSION >= '3.3.0' ? '~> 8' : '~> 7'
65
+ spec.add_dependency 'mdless', RUBY_VERSION >= '3.3.0' ? '~> 2' : '~> 1'
66
66
  spec.add_dependency 'net-ssh', '~> 7'
67
67
  spec.add_dependency 'net-scp', '~> 4'
68
- # spec.add_dependency 'trollop', '~> 2.1'
68
+ #TODO: Pull in the Optimist gem once the required PR's have been merged:
69
+ # https://github.com/ManageIQ/optimist/pull/145
70
+ # https://github.com/ManageIQ/optimist/pull/146
71
+ # https://github.com/ManageIQ/optimist/pull/147
72
+ # spec.add_dependency 'optimist', '???'
69
73
  end
@@ -7,7 +7,12 @@
7
7
  ## It's job is to load and execute the application.
8
8
  #########################################################
9
9
 
10
- require (ENV['RBCLI_ENV'] == 'development') ? ENV['RBCLI_DEVPATH'] || 'rbcli' : 'rbcli'
10
+ require 'bundler/inline'
11
+ gemfile do
12
+ source 'https://rubygems.org'
13
+ ruby ">= <%= RUBY_VERSION %>"
14
+ gem 'rbcli', '>= <%= @vars[:rbcli_version] %>', require: true
15
+ end
11
16
 
12
17
  #########################
13
18
  ## Configuration Block ##
@@ -7,7 +7,12 @@
7
7
  ## It's job is to load and execute the application.
8
8
  #########################################################
9
9
 
10
- require (ENV['RBCLI_ENV'] == 'development') ? ENV['RBCLI_DEVPATH'] || 'rbcli' : 'rbcli'
10
+ require 'bundler/inline'
11
+ gemfile do
12
+ source 'https://rubygems.org'
13
+ ruby ">= <%= RUBY_VERSION %>"
14
+ gem 'rbcli', '>= <%= @vars[:rbcli_version] %>', require: true
15
+ end
11
16
 
12
17
  #########################
13
18
  ## Configuration Block ##
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
13
13
  spec.homepage = "TODO: Put your gem's website or public repo URL here."
14
14
  spec.license = 'None'
15
15
 
16
- spec.required_ruby_version = '>= 2.3'
16
+ spec.required_ruby_version = ">= <%= RUBY_VERSION %>"
17
17
 
18
18
  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
19
19
  # to allow pushing to a single host or delete this section to allow pushing to any host.
@@ -32,9 +32,9 @@ Gem::Specification.new do |spec|
32
32
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
33
33
  spec.require_paths = ['application', 'config', 'default_user_configs', 'hooks', 'lib']
34
34
 
35
- spec.add_development_dependency 'bundler', '~> 2.2'
36
- spec.add_development_dependency 'rake', '~> 13.0'
37
- spec.add_development_dependency 'rspec', '~> 3.10'
35
+ spec.add_development_dependency 'bundler', '~> 2'
36
+ spec.add_development_dependency 'rake', '~> 13'
37
+ spec.add_development_dependency 'rspec', '~> 3'
38
38
 
39
39
  spec.add_dependency 'rbcli', '>= <%= @vars[:rbcli_version] %>'
40
40
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbcli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Khoury
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-10-28 00:00:00.000000000 Z
11
+ date: 2024-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -114,28 +114,28 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '7'
117
+ version: '8'
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '7'
124
+ version: '8'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: mdless
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '1'
131
+ version: '2'
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: '1'
138
+ version: '2'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: net-ssh
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -185,6 +185,7 @@ files:
185
185
  - Rakefile
186
186
  - bin/console
187
187
  - bin/setup
188
+ - docs-src/.hugo_build.lock
188
189
  - docs-src/archetypes/default.md
189
190
  - docs-src/config.toml
190
191
  - docs-src/content/_index.md
@@ -596,8 +597,8 @@ files:
596
597
  - lib/rbcli/util/deprecation_warning.rb
597
598
  - lib/rbcli/util/hash_deep_symbolize.rb
598
599
  - lib/rbcli/util/msg.rb
600
+ - lib/rbcli/util/optimist.rb
599
601
  - lib/rbcli/util/string_colorize.rb
600
- - lib/rbcli/util/trollop.rb
601
602
  - lib/rbcli/version.rb
602
603
  - rbcli.gemspec
603
604
  - skeletons/micro/executable
@@ -649,7 +650,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
649
650
  - !ruby/object:Gem::Version
650
651
  version: '0'
651
652
  requirements: []
652
- rubygems_version: 3.4.21
653
+ rubygems_version: 3.5.3
653
654
  signing_key:
654
655
  specification_version: 4
655
656
  summary: A CLI Application/Tooling Framework for Ruby