wassup 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/README.md +11 -11
- data/docs/.gitignore +20 -0
- data/docs/README.md +41 -0
- data/docs/babel.config.js +3 -0
- data/docs/blog/2021-12-09-welcome/index.md +8 -0
- data/docs/blog/authors.yml +5 -0
- data/docs/docs/Supfile-basics/_category_.json +4 -0
- data/docs/docs/Supfile-basics/understanding-the-supfile.md +50 -0
- data/docs/docs/intro.md +54 -0
- data/docs/docusaurus.config.js +110 -0
- data/docs/package-lock.json +21196 -0
- data/docs/package.json +43 -0
- data/docs/sidebars.js +31 -0
- data/docs/src/components/HomepageFeatures.module.css +10 -0
- data/docs/src/components/HomepageFeatures.tsx +60 -0
- data/docs/src/css/custom.css +28 -0
- data/docs/src/pages/index.module.css +36 -0
- data/docs/src/pages/index.tsx +39 -0
- data/docs/src/pages/markdown-page.md +7 -0
- data/docs/static/.nojekyll +0 -0
- data/docs/static/img/demo-supfile.png +0 -0
- data/docs/static/img/favicon.ico +0 -0
- data/docs/static/img/logo.svg +27 -0
- data/docs/static/img/tutorial/docsVersionDropdown.png +0 -0
- data/docs/static/img/tutorial/localeDropdown.png +0 -0
- data/docs/static/img/tutorial-intro-starter-screenshot.png +0 -0
- data/docs/static/img/undraw_docusaurus_mountain.svg +170 -0
- data/docs/static/img/undraw_docusaurus_react.svg +169 -0
- data/docs/static/img/undraw_docusaurus_tree.svg +1 -0
- data/docs/static/img/wassup-long.png +0 -0
- data/docs/static/img/wassup-screenshot.png +0 -0
- data/docs/static/img/wassup.png +0 -0
- data/docs/static/video/wassup-demo.mov +0 -0
- data/docs/tsconfig.json +7 -0
- data/examples/debug/Supfile +3 -0
- data/examples/josh-fastlane/Supfile +8 -2
- data/examples/starter/Supfile +44 -0
- data/lib/wassup/app.rb +70 -5
- data/lib/wassup/pane.rb +39 -5
- data/lib/wassup/pane_builder.rb +14 -1
- data/lib/wassup/version.rb +1 -1
- metadata +40 -6
data/lib/wassup/pane_builder.rb
CHANGED
@@ -9,12 +9,14 @@ module Wassup
|
|
9
9
|
attr_accessor :highlight
|
10
10
|
|
11
11
|
attr_accessor :title
|
12
|
+
attr_accessor :description
|
12
13
|
|
13
14
|
attr_accessor :show_refresh
|
14
15
|
|
15
16
|
attr_accessor :interval
|
16
17
|
attr_accessor :content_block
|
17
18
|
attr_accessor :selection_blocks
|
19
|
+
attr_accessor :selection_blocks_description
|
18
20
|
|
19
21
|
class ContentBuilder
|
20
22
|
attr_accessor :contents
|
@@ -70,13 +72,24 @@ module Wassup
|
|
70
72
|
@interval = 60 * 5
|
71
73
|
|
72
74
|
@selection_blocks = {}
|
75
|
+
@selection_blocks_description = {}
|
73
76
|
end
|
74
77
|
|
75
78
|
def content(&block)
|
76
79
|
self.content_block = block
|
77
80
|
end
|
78
|
-
def selection(input=10, &block)
|
81
|
+
def selection(input=10, description=nil, &block)
|
82
|
+
if input.to_s.downcase == "enter"
|
83
|
+
input = 10
|
84
|
+
end
|
85
|
+
|
86
|
+
description_input = input
|
87
|
+
if input.to_s == "10"
|
88
|
+
input = "<Enter>"
|
89
|
+
end
|
90
|
+
|
79
91
|
self.selection_blocks[input] = block
|
92
|
+
self.selection_blocks_description[input] = description
|
80
93
|
end
|
81
94
|
end
|
82
95
|
end
|
data/lib/wassup/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wassup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Holtz
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: curses
|
@@ -45,11 +45,45 @@ files:
|
|
45
45
|
- bin/console
|
46
46
|
- bin/setup
|
47
47
|
- bin/wassup
|
48
|
+
- docs/.gitignore
|
49
|
+
- docs/README.md
|
50
|
+
- docs/babel.config.js
|
51
|
+
- docs/blog/2021-12-09-welcome/index.md
|
52
|
+
- docs/blog/authors.yml
|
53
|
+
- docs/docs/Supfile-basics/_category_.json
|
54
|
+
- docs/docs/Supfile-basics/understanding-the-supfile.md
|
55
|
+
- docs/docs/intro.md
|
56
|
+
- docs/docusaurus.config.js
|
57
|
+
- docs/package-lock.json
|
58
|
+
- docs/package.json
|
59
|
+
- docs/sidebars.js
|
60
|
+
- docs/src/components/HomepageFeatures.module.css
|
61
|
+
- docs/src/components/HomepageFeatures.tsx
|
62
|
+
- docs/src/css/custom.css
|
63
|
+
- docs/src/pages/index.module.css
|
64
|
+
- docs/src/pages/index.tsx
|
65
|
+
- docs/src/pages/markdown-page.md
|
66
|
+
- docs/static/.nojekyll
|
67
|
+
- docs/static/img/demo-supfile.png
|
68
|
+
- docs/static/img/favicon.ico
|
69
|
+
- docs/static/img/logo.svg
|
70
|
+
- docs/static/img/tutorial-intro-starter-screenshot.png
|
71
|
+
- docs/static/img/tutorial/docsVersionDropdown.png
|
72
|
+
- docs/static/img/tutorial/localeDropdown.png
|
73
|
+
- docs/static/img/undraw_docusaurus_mountain.svg
|
74
|
+
- docs/static/img/undraw_docusaurus_react.svg
|
75
|
+
- docs/static/img/undraw_docusaurus_tree.svg
|
76
|
+
- docs/static/img/wassup-long.png
|
77
|
+
- docs/static/img/wassup-screenshot.png
|
78
|
+
- docs/static/img/wassup.png
|
79
|
+
- docs/static/video/wassup-demo.mov
|
80
|
+
- docs/tsconfig.json
|
48
81
|
- examples/basic/Supfile
|
49
82
|
- examples/debug/Supfile
|
50
83
|
- examples/josh-fastlane/README.md
|
51
84
|
- examples/josh-fastlane/Supfile
|
52
85
|
- examples/josh-fastlane/demo.png
|
86
|
+
- examples/starter/Supfile
|
53
87
|
- lib/wassup.rb
|
54
88
|
- lib/wassup/app.rb
|
55
89
|
- lib/wassup/color.rb
|
@@ -63,7 +97,7 @@ licenses:
|
|
63
97
|
metadata:
|
64
98
|
homepage_uri: https://github.com/joshdholtz/wassup
|
65
99
|
source_code_uri: https://github.com/joshdholtz/wassup
|
66
|
-
post_install_message:
|
100
|
+
post_install_message:
|
67
101
|
rdoc_options: []
|
68
102
|
require_paths:
|
69
103
|
- lib
|
@@ -78,8 +112,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
112
|
- !ruby/object:Gem::Version
|
79
113
|
version: '0'
|
80
114
|
requirements: []
|
81
|
-
rubygems_version: 3.
|
82
|
-
signing_key:
|
115
|
+
rubygems_version: 3.2.3
|
116
|
+
signing_key:
|
83
117
|
specification_version: 4
|
84
118
|
summary: A scriptable terminal dashboard
|
85
119
|
test_files: []
|