daslabs 0.5.0 → 0.6.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 +5 -5
- data/.shell.rb.swp +0 -0
- data/Gemfile.lock +1 -1
- data/README.md +38 -1
- data/examples/output.html +10 -0
- data/examples/shell.rb +48 -0
- data/lib/daslabs.rb +1 -0
- data/lib/daslabs/baseband.rb +1 -0
- data/lib/daslabs/version.rb +1 -1
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: f8a81ac51246b5ca67ce13e6640362a3df3f5904
|
4
|
+
data.tar.gz: 6a139dc4507cae3e6c2803428279203abd018c1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b04139b1a2d561f4ebedd5f7ee0347c211afbbfef320c12a24d2cb20ca669c6ccff1ca18c17b4e60e5782cd72612f2221cc52698b01aafb9386e05f89ac15601
|
7
|
+
data.tar.gz: c37026926dd1d5a8d5df9c03b9282810738fe5c78e3d541a94818ec231110551990bf0ac93866f11ba1e713a50c92a827d5b6eb9865ac13f9c1d89478366cbfa
|
data/.shell.rb.swp
ADDED
Binary file
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -19,7 +19,27 @@ Or install it yourself as:
|
|
19
19
|
|
20
20
|
## Usage
|
21
21
|
|
22
|
-
|
22
|
+
==> gem install daslabs
|
23
|
+
Successfully installed daslabs-0.5.0
|
24
|
+
1 gem installed
|
25
|
+
|
26
|
+
==> gem list -r daslabs
|
27
|
+
|
28
|
+
*** REMOTE GEMS ***
|
29
|
+
|
30
|
+
daslabs (0.5.0)
|
31
|
+
|
32
|
+
==> irb
|
33
|
+
irb(main):001:0> require 'daslabs'
|
34
|
+
=> true
|
35
|
+
|
36
|
+
|
37
|
+
irb(main):007:0> DasLabs.hi("Hello")
|
38
|
+
=> nil
|
39
|
+
irb(main):008:0> quit()
|
40
|
+
|
41
|
+
|
42
|
+
The xml file should be in your pwd folder as output.html
|
23
43
|
|
24
44
|
## Development
|
25
45
|
|
@@ -38,3 +58,20 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
38
58
|
## Code of Conduct
|
39
59
|
|
40
60
|
Everyone interacting in the Daslabs project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/daslabs/blob/master/CODE_OF_CONDUCT.md).
|
61
|
+
|
62
|
+
# Helpful Links
|
63
|
+
|
64
|
+
http://guides.rubygems.org/make-your-own-gem/
|
65
|
+
|
66
|
+
https://www.digitalocean.com/community/tutorials/how-to-package-and-distribute-ruby-applications-as-a-gem-using-rubygems
|
67
|
+
|
68
|
+
# Publishing
|
69
|
+
|
70
|
+
Update VERSION in version.rb
|
71
|
+
|
72
|
+
gem push daslabs-0.6.0.gem
|
73
|
+
|
74
|
+
|
75
|
+
# Check version
|
76
|
+
|
77
|
+
gem list
|
data/examples/shell.rb
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
require 'highline'
|
2
|
+
require 'cli-console'
|
3
|
+
require 'daslabs'
|
4
|
+
|
5
|
+
|
6
|
+
class ShellUI
|
7
|
+
private
|
8
|
+
extend CLI::Task
|
9
|
+
|
10
|
+
public
|
11
|
+
|
12
|
+
usage 'Usage: ls'
|
13
|
+
desc 'List file information about current directory'
|
14
|
+
def ls(params)
|
15
|
+
Dir.foreach(Dir.pwd) do |file|
|
16
|
+
puts file
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
usage 'Usage: pwd'
|
21
|
+
desc 'Display current directory'
|
22
|
+
|
23
|
+
def pwd(params)
|
24
|
+
puts "Current directory: #{Dir.pwd}"
|
25
|
+
end
|
26
|
+
|
27
|
+
usage 'Usage: cd <Directory>'
|
28
|
+
desc 'Change current directory'
|
29
|
+
|
30
|
+
def cd(params)
|
31
|
+
Dir.chdir(params[0]) unless params.empty?
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
io = HighLine.new
|
36
|
+
shell = ShellUI.new
|
37
|
+
console = CLI::Console.new(io)
|
38
|
+
puts "Current directory: #{Dir.pwd}"
|
39
|
+
DasLabs.hi("Welcome to DasLabs")
|
40
|
+
console.addCommand('ls', shell.method(:ls), 'List files')
|
41
|
+
console.addCommand('pwd', shell.method(:pwd), 'Current directory')
|
42
|
+
console.addCommand('cd', shell.method(:cd), 'Change directory')
|
43
|
+
console.addHelpCommand('help', 'Help')
|
44
|
+
console.addExitCommand('exit', 'Exit from program')
|
45
|
+
console.addAlias('quit', 'exit')
|
46
|
+
|
47
|
+
console.start("%s> ",[Dir.method(:pwd)])
|
48
|
+
|
data/lib/daslabs.rb
CHANGED
data/lib/daslabs/baseband.rb
CHANGED
data/lib/daslabs/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: daslabs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arunabh Das
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -60,6 +60,7 @@ extensions: []
|
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
62
|
- ".gitignore"
|
63
|
+
- ".shell.rb.swp"
|
63
64
|
- CODE_OF_CONDUCT.md
|
64
65
|
- Gemfile
|
65
66
|
- Gemfile.lock
|
@@ -69,6 +70,8 @@ files:
|
|
69
70
|
- bin/console
|
70
71
|
- bin/setup
|
71
72
|
- daslabs.gemspec
|
73
|
+
- examples/output.html
|
74
|
+
- examples/shell.rb
|
72
75
|
- lib/daslabs.rb
|
73
76
|
- lib/daslabs/baseband.rb
|
74
77
|
- lib/daslabs/version.rb
|
@@ -613,7 +616,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
613
616
|
version: '0'
|
614
617
|
requirements: []
|
615
618
|
rubyforge_project:
|
616
|
-
rubygems_version: 2.
|
619
|
+
rubygems_version: 2.6.11
|
617
620
|
signing_key:
|
618
621
|
specification_version: 4
|
619
622
|
summary: Tools for streamlining and warpspeeding development for leapfrog scenarios
|