rbcli 0.3.0 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +17 -0
  3. data/Gemfile.lock +55 -51
  4. data/README.md +2 -2
  5. data/docs/404.html +8 -8
  6. data/docs/advanced/automatic_updates/index.html +28 -28
  7. data/docs/advanced/command_types/index.html +35 -35
  8. data/docs/advanced/distributed_state_locking/index.html +28 -28
  9. data/docs/advanced/hooks/index.html +30 -30
  10. data/docs/advanced/index.html +26 -26
  11. data/docs/advanced/index.xml +2 -6
  12. data/docs/advanced/interactive_commands/index.html +29 -29
  13. data/docs/advanced/logging/index.html +32 -32
  14. data/docs/advanced/remote_execution/index.html +31 -31
  15. data/docs/advanced/state_storage/index.html +30 -30
  16. data/docs/advanced/user_config_files/index.html +28 -28
  17. data/docs/categories/index.html +26 -26
  18. data/docs/categories/index.xml +2 -6
  19. data/docs/development/changelog/index.html +53 -40
  20. data/docs/development/code_of_conduct/index.html +27 -27
  21. data/docs/development/contributing/index.html +32 -32
  22. data/docs/development/index.html +26 -26
  23. data/docs/development/index.xml +3 -7
  24. data/docs/development/license/index.html +26 -26
  25. data/docs/index.html +26 -26
  26. data/docs/index.json +3 -3
  27. data/docs/index.xml +3 -7
  28. data/docs/quick_reference/index.html +39 -39
  29. data/docs/quick_reference/index.xml +2 -6
  30. data/docs/sitemap.xml +26 -78
  31. data/docs/tags/index.html +26 -26
  32. data/docs/tags/index.xml +2 -6
  33. data/docs/tutorial/10-getting_started/index.html +29 -29
  34. data/docs/tutorial/20-project_layout/index.html +29 -29
  35. data/docs/tutorial/30-your_first_command/index.html +32 -32
  36. data/docs/tutorial/40-options_parameters_and_arguments/index.html +41 -41
  37. data/docs/tutorial/50-publishing/index.html +27 -27
  38. data/docs/tutorial/index.html +26 -26
  39. data/docs/tutorial/index.xml +2 -6
  40. data/docs/whoami/index.html +26 -26
  41. data/docs/whoami/index.xml +2 -6
  42. data/docs-src/content/development/changelog.md +9 -0
  43. data/docs-src/content/quick_reference/_index.md +2 -2
  44. data/exe/rbcli +1 -1
  45. data/lib/rbcli/configuration/configurate.rb +1 -1
  46. data/lib/rbcli/engine/command.rb +2 -1
  47. data/lib/rbcli/engine/load_project.rb +1 -1
  48. data/lib/rbcli/features/userconfig.rb +3 -3
  49. data/lib/rbcli/state_storage/localstate.rb +1 -1
  50. data/lib/rbcli/version.rb +1 -1
  51. data/lib/rbcli-tool/generators.rb +3 -3
  52. data/lib/rbcli-tool/mdless_fix.rb +1 -1
  53. data/lib/rbcli-tool/project.rb +3 -3
  54. data/lib/rbcli-tool/util.rb +2 -2
  55. data/rbcli.gemspec +11 -13
  56. data/skeletons/project/application/commands/scripts/script.sh +6 -1
  57. data/skeletons/project/untitled.gemspec +3 -3
  58. metadata +32 -32
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <meta charset="utf-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <meta name="generator" content="Hugo 0.74.3" />
6
+ <meta name="generator" content="Hugo 0.88.1" />
7
7
  <meta name="description" content="">
8
8
 
9
9
 
@@ -12,21 +12,21 @@
12
12
  <title>Publishing Your Application :: RBCli Documentation</title>
13
13
 
14
14
 
15
- <link href="/rbcli/css/nucleus.css?1596148729" rel="stylesheet">
16
- <link href="/rbcli/css/fontawesome-all.min.css?1596148729" rel="stylesheet">
17
- <link href="/rbcli/css/hybrid.css?1596148729" rel="stylesheet">
18
- <link href="/rbcli/css/featherlight.min.css?1596148729" rel="stylesheet">
19
- <link href="/rbcli/css/perfect-scrollbar.min.css?1596148729" rel="stylesheet">
20
- <link href="/rbcli/css/auto-complete.css?1596148729" rel="stylesheet">
21
- <link href="/rbcli/css/atom-one-dark-reasonable.css?1596148729" rel="stylesheet">
22
- <link href="/rbcli/css/theme.css?1596148729" rel="stylesheet">
23
- <link href="/rbcli/css/hugo-theme.css?1596148729" rel="stylesheet">
15
+ <link href="/rbcli/css/nucleus.css?1634703589" rel="stylesheet">
16
+ <link href="/rbcli/css/fontawesome-all.min.css?1634703589" rel="stylesheet">
17
+ <link href="/rbcli/css/hybrid.css?1634703589" rel="stylesheet">
18
+ <link href="/rbcli/css/featherlight.min.css?1634703589" rel="stylesheet">
19
+ <link href="/rbcli/css/perfect-scrollbar.min.css?1634703589" rel="stylesheet">
20
+ <link href="/rbcli/css/auto-complete.css?1634703589" rel="stylesheet">
21
+ <link href="/rbcli/css/atom-one-dark-reasonable.css?1634703589" rel="stylesheet">
22
+ <link href="/rbcli/css/theme.css?1634703589" rel="stylesheet">
23
+ <link href="/rbcli/css/hugo-theme.css?1634703589" rel="stylesheet">
24
24
 
25
- <link href="/rbcli/css/theme-blue.css?1596148729" rel="stylesheet">
25
+ <link href="/rbcli/css/theme-blue.css?1634703589" rel="stylesheet">
26
26
 
27
27
 
28
28
 
29
- <script src="/rbcli/js/jquery-3.3.1.min.js?1596148729"></script>
29
+ <script src="/rbcli/js/jquery-3.3.1.min.js?1634703589"></script>
30
30
 
31
31
  <style>
32
32
  :root #header + #content > #left > #rlblock_left{
@@ -55,14 +55,14 @@
55
55
  <span data-search-clear=""><i class="fas fa-times"></i></span>
56
56
  </div>
57
57
 
58
- <script type="text/javascript" src="/rbcli/js/lunr.min.js?1596148729"></script>
59
- <script type="text/javascript" src="/rbcli/js/auto-complete.js?1596148729"></script>
58
+ <script type="text/javascript" src="/rbcli/js/lunr.min.js?1634703589"></script>
59
+ <script type="text/javascript" src="/rbcli/js/auto-complete.js?1634703589"></script>
60
60
  <script type="text/javascript">
61
61
 
62
62
  var baseurl = "https:\/\/akhoury6.github.io\/rbcli\/";
63
63
 
64
64
  </script>
65
- <script type="text/javascript" src="/rbcli/js/search.js?1596148729"></script>
65
+ <script type="text/javascript" src="/rbcli/js/search.js?1634703589"></script>
66
66
 
67
67
 
68
68
  </div>
@@ -714,7 +714,7 @@
714
714
  <p>Then, for every release, you&rsquo;ll need to update the version number in <code>config/version.rb</code>. This number is automatically used by the <code>gemspec</code> when versioning the gem in the system, and by RBCli when displaying help to the user and checking for automatic updates if you enable that feature (see <a href="/rbcli/advanced/automatic_updates/">Automatic Updates</a> for more information).</p>
715
715
  <h2 id="source-control-distribution">Source Control Distribution</h2>
716
716
  <p>With Source Control distribution your users will be cloning the source code directly from your repository, and building and installing the gem locally. Thankfully, the process is pretty simple:</p>
717
- <div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-bash" data-lang="bash">git clone &lt;your_repo_here&gt;
717
+ <div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-bash" data-lang="bash">git clone &lt;your_repo_here&gt;
718
718
  gem build mytool.gemspec
719
719
  gem install mytool-*.gem
720
720
  </code></pre></div><p>Note that he README&rsquo;s placeholder text has these commands already listed for your users, which you can leave as instructions.</p>
@@ -1164,19 +1164,19 @@ gem install mytool-*.gem
1164
1164
  <div style="left: -1000px; overflow: scroll; position: absolute; top: -1000px; border: none; box-sizing: content-box; height: 200px; margin: 0px; padding: 0px; width: 200px;">
1165
1165
  <div style="border: none; box-sizing: content-box; height: 200px; margin: 0px; padding: 0px; width: 200px;"></div>
1166
1166
  </div>
1167
- <script src="/rbcli/js/clipboard.min.js?1596148729"></script>
1168
- <script src="/rbcli/js/perfect-scrollbar.min.js?1596148729"></script>
1169
- <script src="/rbcli/js/perfect-scrollbar.jquery.min.js?1596148729"></script>
1170
- <script src="/rbcli/js/jquery.sticky.js?1596148729"></script>
1171
- <script src="/rbcli/js/featherlight.min.js?1596148729"></script>
1172
- <script src="/rbcli/js/highlight.pack.js?1596148729"></script>
1167
+ <script src="/rbcli/js/clipboard.min.js?1634703589"></script>
1168
+ <script src="/rbcli/js/perfect-scrollbar.min.js?1634703589"></script>
1169
+ <script src="/rbcli/js/perfect-scrollbar.jquery.min.js?1634703589"></script>
1170
+ <script src="/rbcli/js/jquery.sticky.js?1634703589"></script>
1171
+ <script src="/rbcli/js/featherlight.min.js?1634703589"></script>
1172
+ <script src="/rbcli/js/highlight.pack.js?1634703589"></script>
1173
1173
  <script>hljs.initHighlightingOnLoad();</script>
1174
- <script src="/rbcli/js/modernizr.custom-3.6.0.js?1596148729"></script>
1175
- <script src="/rbcli/js/learn.js?1596148729"></script>
1176
- <script src="/rbcli/js/hugo-learn.js?1596148729"></script>
1174
+ <script src="/rbcli/js/modernizr.custom-3.6.0.js?1634703589"></script>
1175
+ <script src="/rbcli/js/learn.js?1634703589"></script>
1176
+ <script src="/rbcli/js/hugo-learn.js?1634703589"></script>
1177
1177
 
1178
- <link href="/rbcli/mermaid/mermaid.css?1596148729" rel="stylesheet" />
1179
- <script src="/rbcli/mermaid/mermaid.js?1596148729"></script>
1178
+ <link href="/rbcli/mermaid/mermaid.css?1634703589" rel="stylesheet" />
1179
+ <script src="/rbcli/mermaid/mermaid.js?1634703589"></script>
1180
1180
  <script>
1181
1181
  mermaid.initialize({ startOnLoad: true });
1182
1182
  </script>
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <meta charset="utf-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <meta name="generator" content="Hugo 0.74.3" />
6
+ <meta name="generator" content="Hugo 0.88.1" />
7
7
  <meta name="description" content="">
8
8
 
9
9
 
@@ -12,21 +12,21 @@
12
12
  <title>Tutorial :: RBCli Documentation</title>
13
13
 
14
14
 
15
- <link href="/rbcli/css/nucleus.css?1596148729" rel="stylesheet">
16
- <link href="/rbcli/css/fontawesome-all.min.css?1596148729" rel="stylesheet">
17
- <link href="/rbcli/css/hybrid.css?1596148729" rel="stylesheet">
18
- <link href="/rbcli/css/featherlight.min.css?1596148729" rel="stylesheet">
19
- <link href="/rbcli/css/perfect-scrollbar.min.css?1596148729" rel="stylesheet">
20
- <link href="/rbcli/css/auto-complete.css?1596148729" rel="stylesheet">
21
- <link href="/rbcli/css/atom-one-dark-reasonable.css?1596148729" rel="stylesheet">
22
- <link href="/rbcli/css/theme.css?1596148729" rel="stylesheet">
23
- <link href="/rbcli/css/hugo-theme.css?1596148729" rel="stylesheet">
15
+ <link href="/rbcli/css/nucleus.css?1634703589" rel="stylesheet">
16
+ <link href="/rbcli/css/fontawesome-all.min.css?1634703589" rel="stylesheet">
17
+ <link href="/rbcli/css/hybrid.css?1634703589" rel="stylesheet">
18
+ <link href="/rbcli/css/featherlight.min.css?1634703589" rel="stylesheet">
19
+ <link href="/rbcli/css/perfect-scrollbar.min.css?1634703589" rel="stylesheet">
20
+ <link href="/rbcli/css/auto-complete.css?1634703589" rel="stylesheet">
21
+ <link href="/rbcli/css/atom-one-dark-reasonable.css?1634703589" rel="stylesheet">
22
+ <link href="/rbcli/css/theme.css?1634703589" rel="stylesheet">
23
+ <link href="/rbcli/css/hugo-theme.css?1634703589" rel="stylesheet">
24
24
 
25
- <link href="/rbcli/css/theme-blue.css?1596148729" rel="stylesheet">
25
+ <link href="/rbcli/css/theme-blue.css?1634703589" rel="stylesheet">
26
26
 
27
27
 
28
28
 
29
- <script src="/rbcli/js/jquery-3.3.1.min.js?1596148729"></script>
29
+ <script src="/rbcli/js/jquery-3.3.1.min.js?1634703589"></script>
30
30
 
31
31
  <style>
32
32
  :root #header + #content > #left > #rlblock_left{
@@ -55,14 +55,14 @@
55
55
  <span data-search-clear=""><i class="fas fa-times"></i></span>
56
56
  </div>
57
57
 
58
- <script type="text/javascript" src="/rbcli/js/lunr.min.js?1596148729"></script>
59
- <script type="text/javascript" src="/rbcli/js/auto-complete.js?1596148729"></script>
58
+ <script type="text/javascript" src="/rbcli/js/lunr.min.js?1634703589"></script>
59
+ <script type="text/javascript" src="/rbcli/js/auto-complete.js?1634703589"></script>
60
60
  <script type="text/javascript">
61
61
 
62
62
  var baseurl = "https:\/\/akhoury6.github.io\/rbcli\/";
63
63
 
64
64
  </script>
65
- <script type="text/javascript" src="/rbcli/js/search.js?1596148729"></script>
65
+ <script type="text/javascript" src="/rbcli/js/search.js?1634703589"></script>
66
66
 
67
67
 
68
68
  </div>
@@ -1118,19 +1118,19 @@
1118
1118
  <div style="left: -1000px; overflow: scroll; position: absolute; top: -1000px; border: none; box-sizing: content-box; height: 200px; margin: 0px; padding: 0px; width: 200px;">
1119
1119
  <div style="border: none; box-sizing: content-box; height: 200px; margin: 0px; padding: 0px; width: 200px;"></div>
1120
1120
  </div>
1121
- <script src="/rbcli/js/clipboard.min.js?1596148729"></script>
1122
- <script src="/rbcli/js/perfect-scrollbar.min.js?1596148729"></script>
1123
- <script src="/rbcli/js/perfect-scrollbar.jquery.min.js?1596148729"></script>
1124
- <script src="/rbcli/js/jquery.sticky.js?1596148729"></script>
1125
- <script src="/rbcli/js/featherlight.min.js?1596148729"></script>
1126
- <script src="/rbcli/js/highlight.pack.js?1596148729"></script>
1121
+ <script src="/rbcli/js/clipboard.min.js?1634703589"></script>
1122
+ <script src="/rbcli/js/perfect-scrollbar.min.js?1634703589"></script>
1123
+ <script src="/rbcli/js/perfect-scrollbar.jquery.min.js?1634703589"></script>
1124
+ <script src="/rbcli/js/jquery.sticky.js?1634703589"></script>
1125
+ <script src="/rbcli/js/featherlight.min.js?1634703589"></script>
1126
+ <script src="/rbcli/js/highlight.pack.js?1634703589"></script>
1127
1127
  <script>hljs.initHighlightingOnLoad();</script>
1128
- <script src="/rbcli/js/modernizr.custom-3.6.0.js?1596148729"></script>
1129
- <script src="/rbcli/js/learn.js?1596148729"></script>
1130
- <script src="/rbcli/js/hugo-learn.js?1596148729"></script>
1128
+ <script src="/rbcli/js/modernizr.custom-3.6.0.js?1634703589"></script>
1129
+ <script src="/rbcli/js/learn.js?1634703589"></script>
1130
+ <script src="/rbcli/js/hugo-learn.js?1634703589"></script>
1131
1131
 
1132
- <link href="/rbcli/mermaid/mermaid.css?1596148729" rel="stylesheet" />
1133
- <script src="/rbcli/mermaid/mermaid.js?1596148729"></script>
1132
+ <link href="/rbcli/mermaid/mermaid.css?1634703589" rel="stylesheet" />
1133
+ <script src="/rbcli/mermaid/mermaid.js?1634703589"></script>
1134
1134
  <script>
1135
1135
  mermaid.initialize({ startOnLoad: true });
1136
1136
  </script>
@@ -6,11 +6,7 @@
6
6
  <description>Recent content in Tutorial on RBCli Documentation</description>
7
7
  <generator>Hugo -- gohugo.io</generator>
8
8
  <language>en-us</language>
9
- <lastBuildDate>Thu, 20 Jun 2019 15:08:08 -0400</lastBuildDate>
10
-
11
- <atom:link href="https://akhoury6.github.io/rbcli/tutorial/index.xml" rel="self" type="application/rss+xml" />
12
-
13
-
9
+ <lastBuildDate>Thu, 20 Jun 2019 15:08:08 -0400</lastBuildDate><atom:link href="https://akhoury6.github.io/rbcli/tutorial/index.xml" rel="self" type="application/rss+xml" />
14
10
  <item>
15
11
  <title>Getting Started</title>
16
12
  <link>https://akhoury6.github.io/rbcli/tutorial/10-getting_started/</link>
@@ -68,4 +64,4 @@ In both files the items that need changing are pretty obvious &amp;ndash; you&am
68
64
  </item>
69
65
 
70
66
  </channel>
71
- </rss>
67
+ </rss>
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <meta charset="utf-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <meta name="generator" content="Hugo 0.74.3" />
6
+ <meta name="generator" content="Hugo 0.88.1" />
7
7
  <meta name="description" content="">
8
8
 
9
9
 
@@ -12,21 +12,21 @@
12
12
  <title>My Letter To You :: RBCli Documentation</title>
13
13
 
14
14
 
15
- <link href="/rbcli/css/nucleus.css?1596148729" rel="stylesheet">
16
- <link href="/rbcli/css/fontawesome-all.min.css?1596148729" rel="stylesheet">
17
- <link href="/rbcli/css/hybrid.css?1596148729" rel="stylesheet">
18
- <link href="/rbcli/css/featherlight.min.css?1596148729" rel="stylesheet">
19
- <link href="/rbcli/css/perfect-scrollbar.min.css?1596148729" rel="stylesheet">
20
- <link href="/rbcli/css/auto-complete.css?1596148729" rel="stylesheet">
21
- <link href="/rbcli/css/atom-one-dark-reasonable.css?1596148729" rel="stylesheet">
22
- <link href="/rbcli/css/theme.css?1596148729" rel="stylesheet">
23
- <link href="/rbcli/css/hugo-theme.css?1596148729" rel="stylesheet">
15
+ <link href="/rbcli/css/nucleus.css?1634703589" rel="stylesheet">
16
+ <link href="/rbcli/css/fontawesome-all.min.css?1634703589" rel="stylesheet">
17
+ <link href="/rbcli/css/hybrid.css?1634703589" rel="stylesheet">
18
+ <link href="/rbcli/css/featherlight.min.css?1634703589" rel="stylesheet">
19
+ <link href="/rbcli/css/perfect-scrollbar.min.css?1634703589" rel="stylesheet">
20
+ <link href="/rbcli/css/auto-complete.css?1634703589" rel="stylesheet">
21
+ <link href="/rbcli/css/atom-one-dark-reasonable.css?1634703589" rel="stylesheet">
22
+ <link href="/rbcli/css/theme.css?1634703589" rel="stylesheet">
23
+ <link href="/rbcli/css/hugo-theme.css?1634703589" rel="stylesheet">
24
24
 
25
- <link href="/rbcli/css/theme-blue.css?1596148729" rel="stylesheet">
25
+ <link href="/rbcli/css/theme-blue.css?1634703589" rel="stylesheet">
26
26
 
27
27
 
28
28
 
29
- <script src="/rbcli/js/jquery-3.3.1.min.js?1596148729"></script>
29
+ <script src="/rbcli/js/jquery-3.3.1.min.js?1634703589"></script>
30
30
 
31
31
  <style>
32
32
  :root #header + #content > #left > #rlblock_left{
@@ -55,14 +55,14 @@
55
55
  <span data-search-clear=""><i class="fas fa-times"></i></span>
56
56
  </div>
57
57
 
58
- <script type="text/javascript" src="/rbcli/js/lunr.min.js?1596148729"></script>
59
- <script type="text/javascript" src="/rbcli/js/auto-complete.js?1596148729"></script>
58
+ <script type="text/javascript" src="/rbcli/js/lunr.min.js?1634703589"></script>
59
+ <script type="text/javascript" src="/rbcli/js/auto-complete.js?1634703589"></script>
60
60
  <script type="text/javascript">
61
61
 
62
62
  var baseurl = "https:\/\/akhoury6.github.io\/rbcli\/";
63
63
 
64
64
  </script>
65
- <script type="text/javascript" src="/rbcli/js/search.js?1596148729"></script>
65
+ <script type="text/javascript" src="/rbcli/js/search.js?1634703589"></script>
66
66
 
67
67
 
68
68
  </div>
@@ -1133,19 +1133,19 @@
1133
1133
  <div style="left: -1000px; overflow: scroll; position: absolute; top: -1000px; border: none; box-sizing: content-box; height: 200px; margin: 0px; padding: 0px; width: 200px;">
1134
1134
  <div style="border: none; box-sizing: content-box; height: 200px; margin: 0px; padding: 0px; width: 200px;"></div>
1135
1135
  </div>
1136
- <script src="/rbcli/js/clipboard.min.js?1596148729"></script>
1137
- <script src="/rbcli/js/perfect-scrollbar.min.js?1596148729"></script>
1138
- <script src="/rbcli/js/perfect-scrollbar.jquery.min.js?1596148729"></script>
1139
- <script src="/rbcli/js/jquery.sticky.js?1596148729"></script>
1140
- <script src="/rbcli/js/featherlight.min.js?1596148729"></script>
1141
- <script src="/rbcli/js/highlight.pack.js?1596148729"></script>
1136
+ <script src="/rbcli/js/clipboard.min.js?1634703589"></script>
1137
+ <script src="/rbcli/js/perfect-scrollbar.min.js?1634703589"></script>
1138
+ <script src="/rbcli/js/perfect-scrollbar.jquery.min.js?1634703589"></script>
1139
+ <script src="/rbcli/js/jquery.sticky.js?1634703589"></script>
1140
+ <script src="/rbcli/js/featherlight.min.js?1634703589"></script>
1141
+ <script src="/rbcli/js/highlight.pack.js?1634703589"></script>
1142
1142
  <script>hljs.initHighlightingOnLoad();</script>
1143
- <script src="/rbcli/js/modernizr.custom-3.6.0.js?1596148729"></script>
1144
- <script src="/rbcli/js/learn.js?1596148729"></script>
1145
- <script src="/rbcli/js/hugo-learn.js?1596148729"></script>
1143
+ <script src="/rbcli/js/modernizr.custom-3.6.0.js?1634703589"></script>
1144
+ <script src="/rbcli/js/learn.js?1634703589"></script>
1145
+ <script src="/rbcli/js/hugo-learn.js?1634703589"></script>
1146
1146
 
1147
- <link href="/rbcli/mermaid/mermaid.css?1596148729" rel="stylesheet" />
1148
- <script src="/rbcli/mermaid/mermaid.js?1596148729"></script>
1147
+ <link href="/rbcli/mermaid/mermaid.css?1634703589" rel="stylesheet" />
1148
+ <script src="/rbcli/mermaid/mermaid.js?1634703589"></script>
1149
1149
  <script>
1150
1150
  mermaid.initialize({ startOnLoad: true });
1151
1151
  </script>
@@ -6,10 +6,6 @@
6
6
  <description>Recent content in My Letter To You on RBCli Documentation</description>
7
7
  <generator>Hugo -- gohugo.io</generator>
8
8
  <language>en-us</language>
9
- <lastBuildDate>Thu, 20 Jun 2019 15:46:52 -0400</lastBuildDate>
10
-
11
- <atom:link href="https://akhoury6.github.io/rbcli/whoami/index.xml" rel="self" type="application/rss+xml" />
12
-
13
-
9
+ <lastBuildDate>Thu, 20 Jun 2019 15:46:52 -0400</lastBuildDate><atom:link href="https://akhoury6.github.io/rbcli/whoami/index.xml" rel="self" type="application/rss+xml" />
14
10
  </channel>
15
- </rss>
11
+ </rss>
@@ -6,6 +6,15 @@ weight: 100
6
6
  ---
7
7
 
8
8
 
9
+ ## 0.3.1 (October 19, 2021)
10
+
11
+ ### Bugfixes
12
+
13
+ * Fixed prompt for option value to ignore nil defaults instead of displaying an empty string
14
+ * Skeleton script command `script.sh` updated to function correctly when development mode is enabled
15
+ * Updated Github Pages links to point to `github.io` instead of `github.com` which are being deprecated
16
+ * Updated dependencies, closing the security hole of the gem `addressable <= 1.7.0`
17
+
9
18
  ## 0.3 (July 31, 2020)
10
19
 
11
20
  ### Improvements
@@ -173,8 +173,8 @@ The gem is available as open source under the terms of the [GPLv3][license_text]
173
173
  [You can find the Official Documentation for RBCli Here.][documentation_home]
174
174
 
175
175
 
176
- [documentation_home]: https://akhoury6.github.com/rbcli
177
- [documentation_development]: https://akhoury6.github.com/rbcli/development/contributing/
176
+ [documentation_home]: https://akhoury6.github.io/rbcli
177
+ [documentation_development]: https://akhoury6.github.io/rbcli/development/contributing/
178
178
  [documentation_whoami]: https://akhoury6.github.io/rbcli/whoami/
179
179
  [license_text]: https://github.com/akhoury6/rbcli/blob/master/LICENSE.txt
180
180
  [changelog]: https://github.com/akhoury6/rbcli/blob/master/CHANGELOG.md
data/exe/rbcli CHANGED
@@ -96,7 +96,7 @@ EOF
96
96
 
97
97
  proj = RBCliTool::Project.new(dest, template_vars)
98
98
 
99
- # if proj.exists?
99
+ # if proj.exist?
100
100
  # RBCliTool.continue_confirmation "The project or file #{params[:name]} already exists; contents will be overwritten."
101
101
  # FileUtils.rm_rf dest
102
102
  # end
@@ -30,7 +30,7 @@ module Rbcli::Configurate
30
30
  ##
31
31
  def self.method_missing(method, *args, &block)
32
32
  filename = "#{File.dirname(__FILE__)}/configurate_blocks/#{method.to_s.downcase}.rb"
33
- if File.exists? filename
33
+ if File.exist? filename
34
34
  require filename
35
35
  self.send method, *args, &block
36
36
  else
@@ -181,7 +181,8 @@ Command-specific Parameters:
181
181
  end
182
182
  end
183
183
  elsif data[:type] == :string
184
- print data[:prompt] + " (default: \"#{data[:default]}\"): "
184
+ print data[:prompt]
185
+ print " (default: \"#{data[:default]}\"): " unless data[:default].nil?
185
186
  answer = gets.chomp
186
187
  answer = data[:default] if answer.empty?
187
188
  optx[name] = answer
@@ -32,7 +32,7 @@ module Rbcli
32
32
  dirpath = "#{project_root}/#{dir}"
33
33
  Dir.glob "#{dirpath}/*.rb" do |file|
34
34
  require file
35
- end if Dir.exists? dirpath
35
+ end if Dir.exist? dirpath
36
36
  end
37
37
 
38
38
  # We automatically pull in default user configs
@@ -98,7 +98,7 @@ module Rbcli::Config
98
98
 
99
99
  def self.add_defaults filename=nil, text: nil
100
100
  filename = File.expand_path filename
101
- return unless filename and File.exists? filename
101
+ return unless filename and File.exist? filename
102
102
  @config_text ||= ''
103
103
  @config_text += "\n" unless @config_text.empty?
104
104
  File.readlines(filename).each do |line|
@@ -107,7 +107,7 @@ module Rbcli::Config
107
107
  else
108
108
  @config_text << line unless @config_text.include? line
109
109
  end
110
- end if filename and File.exists? filename
110
+ end if filename and File.exist? filename
111
111
  @config_text << "\n\n" << text if text
112
112
 
113
113
  @config_defaults ||= {}
@@ -116,7 +116,7 @@ module Rbcli::Config
116
116
  end
117
117
 
118
118
  def self.load
119
- if (! @config_file.nil?) and File.exists? @config_file
119
+ if (! @config_file.nil?) and File.exist? @config_file
120
120
  @config = YAML.safe_load(File.read(@config_file), [], [], true).deep_symbolize!
121
121
  @config.deep_merge! @config_defaults if @merge_defaults
122
122
  elsif @userfile_required
@@ -39,7 +39,7 @@ module Rbcli::State
39
39
  end
40
40
 
41
41
  def state_exists?
42
- File.exists? @path
42
+ File.exist? @path
43
43
  end
44
44
 
45
45
  def create_state
data/lib/rbcli/version.rb CHANGED
@@ -19,5 +19,5 @@
19
19
  ##################################################################################
20
20
 
21
21
  module Rbcli
22
- VERSION = '0.3.0'
22
+ VERSION = '0.3.2'
23
23
  end
@@ -42,7 +42,7 @@ module RBCliTool
42
42
  end
43
43
 
44
44
  def run
45
- if File.exists? @dest
45
+ if File.exist? @dest
46
46
  RBCliTool.continue_confirmation "The command #{@template_vars[:name]} already exists; contents will be overwritten."
47
47
  FileUtils.rm_rf @dest
48
48
  end
@@ -70,7 +70,7 @@ module RBCliTool
70
70
  confirmed = false
71
71
  @filepaths.each do |file|
72
72
  next if file[:dest].end_with? '.sh' and @template_vars[:no_script]
73
- if File.exists? file[:dest]
73
+ if File.exist? file[:dest]
74
74
  RBCliTool.continue_confirmation "The script command #{@template_vars[:name]} already exists; contents will be overwritten." unless confirmed
75
75
  confirmed = true
76
76
  FileUtils.rm_rf file[:dest]
@@ -94,7 +94,7 @@ module RBCliTool
94
94
  end
95
95
 
96
96
  def run
97
- if File.exists? @dest
97
+ if File.exist? @dest
98
98
  RBCliTool.continue_confirmation "The #{@typename} hook already exists; contents will be overwritten."
99
99
  FileUtils.rm_rf @dest
100
100
  end
@@ -378,7 +378,7 @@ module CLIMarkdown
378
378
  base = File.expand_path(File.dirname(@file))
379
379
  img_path = File.join(base,img_path)
380
380
  end
381
- if File.exists?(img_path)
381
+ if File.exist?(img_path)
382
382
  pre = match[2].size > 0 ? " #{c([:d,:blue])}[#{match[2].strip}]\n" : ''
383
383
  post = tail.size > 0 ? "\n #{c([:b,:blue])}-- #{tail} --" : ''
384
384
  img = %x{imgcat "#{img_path}"}
@@ -91,7 +91,7 @@ module RBCliTool
91
91
  RBCliTool.cp_file @micropath, "#{@dest}/#{@template_vars[:cmdname]}", @template_vars
92
92
  end
93
93
 
94
- def exists?
94
+ def exist?
95
95
  project_exists?
96
96
  end
97
97
 
@@ -99,7 +99,7 @@ module RBCliTool
99
99
  # We look for the .rbcli file in the current tree and return the root path
100
100
  searchpath = path
101
101
  while !searchpath.empty?
102
- return searchpath if File.directory? searchpath and File.exists? "#{searchpath}/.rbcli"
102
+ return searchpath if File.directory? searchpath and File.exist? "#{searchpath}/.rbcli"
103
103
  spath = searchpath.split('/')
104
104
  searchpath = (spath.length == 2) ? '/' : spath[0..-2].join('/')
105
105
  end
@@ -110,7 +110,7 @@ module RBCliTool
110
110
 
111
111
  def project_exists?
112
112
  # If the specified file already exists...
113
- #return true if File.exists? @dest
113
+ #return true if File.exist? @dest
114
114
 
115
115
  # Or if the .rbcli file exists anywhere in the tree, we know that we are in a subdirectory of a project
116
116
  Project::find_root(@dest)
@@ -34,7 +34,7 @@ module RBCliTool
34
34
 
35
35
  def self.cp_file src, dest, template_vars = nil
36
36
  dest = "#{dest}#{src.split('/')[-1]}" if dest.end_with? '/'
37
- if File.exists? dest
37
+ if File.exist? dest
38
38
  puts "File #{dest} already exists. Please delete it and try again."
39
39
  false
40
40
  else
@@ -47,7 +47,7 @@ module RBCliTool
47
47
  FileUtils.cp src, dest
48
48
  end
49
49
 
50
- FileUtils.rm_f "#{File.dirname(dest)}/.keep" if File.exists? "#{File.dirname(dest)}/.keep"
50
+ FileUtils.rm_f "#{File.dirname(dest)}/.keep" if File.exist? "#{File.dirname(dest)}/.keep"
51
51
  puts "Done!"
52
52
  true
53
53
  end
data/rbcli.gemspec CHANGED
@@ -53,19 +53,17 @@ Gem::Specification.new do |spec|
53
53
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
54
54
  spec.require_paths = ['lib']
55
55
 
56
- spec.add_development_dependency 'bundler', '~> 2.1'
57
- spec.add_development_dependency 'rake', '~> 13.0'
58
- # spec.add_development_dependency 'rspec', '~> 3.8'
59
- # spec.add_development_dependency 'minitest', '~> 5.0'
56
+ spec.add_development_dependency 'bundler', '>= 2'
57
+ spec.add_development_dependency 'rake', '>= 13'
60
58
 
61
- spec.add_dependency 'colorize', '~> 0.8'
62
- spec.add_dependency 'deep_merge', '~> 1.2'
63
- spec.add_dependency 'aws-sdk-dynamodb', '~> 1.51'
64
- spec.add_dependency 'macaddr', '~> 1.7'
65
- spec.add_dependency 'rufus-scheduler', '~> 3.6'
66
- spec.add_dependency 'octokit', '~> 4.18'
67
- spec.add_dependency 'mdless', '~> 1.0'
68
- spec.add_dependency 'net-ssh', '~> 6.1'
69
- spec.add_dependency 'net-scp', '~> 3.0'
59
+ spec.add_dependency 'colorize', '~> 1'
60
+ spec.add_dependency 'deep_merge', '~> 1'
61
+ spec.add_dependency 'aws-sdk-dynamodb', '~> 1'
62
+ spec.add_dependency 'macaddr', '~> 1'
63
+ spec.add_dependency 'rufus-scheduler', '~> 3'
64
+ spec.add_dependency 'octokit', '~> 7'
65
+ spec.add_dependency 'mdless', '~> 1'
66
+ spec.add_dependency 'net-ssh', '~> 7'
67
+ spec.add_dependency 'net-scp', '~> 4'
70
68
  # spec.add_dependency 'trollop', '~> 2.1'
71
69
  end
@@ -5,7 +5,12 @@
5
5
  ###
6
6
  #
7
7
  # You can access RBCli's variables via the `rbcli` command, which is imported by this line:
8
- source $(echo $(cd "$(dirname $(gem which rbcli))/../lib-sh" && pwd)/lib-rbcli.sh)
8
+ if [[ RBCLI_ENV -eq "development" ]]; then
9
+ __RBCLI_LIBSH_PATH="${RBCLI_DEVPATH}/../../lib-sh/lib-rbcli.sh"
10
+ else
11
+ __RBCLI_LIBSH_PATH=$(echo $(cd "$(dirname $(gem which rbcli))/../lib-sh" && pwd)/lib-rbcli.sh)
12
+ fi
13
+ source "${__RBCLI_LIBSH_PATH}"
9
14
  #
10
15
  # The `rbcli` function is actually a wrapper around `jq` (https://stedolan.github.io/jq/). It can automatically
11
16
  # jq on users' machines if running Linux or OSX, and users have sudo access. If not, users will be prompted to install
@@ -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.0'
36
- spec.add_development_dependency 'rake', '~> 12.3'
37
- spec.add_development_dependency 'rspec', '~> 3.8'
35
+ spec.add_development_dependency 'bundler', '~> 2.2'
36
+ spec.add_development_dependency 'rake', '~> 13.0'
37
+ spec.add_development_dependency 'rspec', '~> 3.10'
38
38
 
39
39
  spec.add_dependency 'rbcli', '>= <%= @vars[:rbcli_version] %>'
40
40
  end