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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 5631f4dbcf041e1b37cc1c0a2af884356a7c1d18ecadf3d7895127924e87e6fb
4
- data.tar.gz: 12df3cb0505895fde778fa9c6aef9a0f8eb6b1a93c4ac5d95f05e7fdbde5094a
2
+ SHA1:
3
+ metadata.gz: f8a81ac51246b5ca67ce13e6640362a3df3f5904
4
+ data.tar.gz: 6a139dc4507cae3e6c2803428279203abd018c1d
5
5
  SHA512:
6
- metadata.gz: 24b6a9e9df89818828d2c56a5f5a8f0d82b624a34dd20cef2013f2692b33d9894d579cd95241555ba4e3b1ef67b9b07705505073dd9fe79611b0d36ef71e2cd0
7
- data.tar.gz: 43a146237d184358794d07f55f5880c44d40703451383b3d5edc11475f3a92db107e1e3310cfedec671f781e504c5934de895ba65cc77bc72fdc70bdee3b1e4b
6
+ metadata.gz: b04139b1a2d561f4ebedd5f7ee0347c211afbbfef320c12a24d2cb20ca669c6ccff1ca18c17b4e60e5782cd72612f2221cc52698b01aafb9386e05f89ac15601
7
+ data.tar.gz: c37026926dd1d5a8d5df9c03b9282810738fe5c78e3d541a94818ec231110551990bf0ac93866f11ba1e713a50c92a827d5b6eb9865ac13f9c1d89478366cbfa
data/.shell.rb.swp ADDED
Binary file
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- daslabs (0.1.0)
4
+ daslabs (0.5.0)
5
5
  nokogiri (>= 1.5.0)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -19,7 +19,27 @@ Or install it yourself as:
19
19
 
20
20
  ## Usage
21
21
 
22
- TODO: Write usage instructions here
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
@@ -0,0 +1,10 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
2
+ <html>
3
+ <body>
4
+ <item>
5
+ <Welcome to DasLabs>05.04.2011 9:53:23</Welcome to DasLabs>
6
+
7
+
8
+ </item>
9
+ </body>
10
+ </html>
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
@@ -4,6 +4,7 @@ require "daslabs/baseband"
4
4
 
5
5
  module DasLabs
6
6
  def self.hi(n = "Default Name")
7
+ puts "Writing output.html to : #{Dir.pwd}"
7
8
  baseband = Baseband
8
9
  Baseband.name(n)
9
10
  end
@@ -4,6 +4,7 @@ require 'nokogiri'
4
4
 
5
5
  class Baseband
6
6
  def self.name(n = "Baseband")
7
+ puts "Writing output.html to : #{Dir.pwd}"
7
8
  doc = Nokogiri::HTML <<-EOHTML
8
9
  <html>
9
10
  <body>
@@ -1,3 +1,3 @@
1
1
  module Daslabs
2
- VERSION = "0.5.0"
2
+ VERSION = "0.6.0"
3
3
  end
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.5.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-13 00:00:00.000000000 Z
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.7.3
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