shell-header 0.0.1

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 3a12f71375620c9b5849cc754664aeb8a23ba1da
4
+ data.tar.gz: 7421ae41b6c3fb0db37c92f3ba8e3dc898eac77d
5
+ SHA512:
6
+ metadata.gz: 2b32434ebdca75f427104bb1775a3682da016d67f7e46def8893ef6be8556239c798bafe0bf2d020c352d912b2273f99c93a45c32c1aca8e193a0ff6ec72afd0
7
+ data.tar.gz: d8389813cc1d6944725c3aee2d9106a6d65bbfc23f164e5d7e98d4c2ccb446a74c2573512c82acd7f1009131b827774f6a41ced1cde558747714392d393d03a6
data/.gitignore ADDED
@@ -0,0 +1,14 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ *.bundle
11
+ *.so
12
+ *.o
13
+ *.a
14
+ mkmf.log
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in shell-header.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Todd Pickell
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,49 @@
1
+ # Shell::Header
2
+
3
+ TODO: Write a gem description
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'shell-header'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install shell-header
20
+
21
+ ## Usage
22
+
23
+ The gem takes 1 to 2 parameters, the first being the text to display and
24
+ the second the number of spaces above the header. The number of spaces
25
+ parameter will default ta a value of 2 spaces if a second parameter is
26
+ not passed in.
27
+
28
+ For example:
29
+
30
+ ```
31
+ $ shell-header "Text to be displyed in header" 1
32
+ ```
33
+
34
+ Will output like this:
35
+
36
+ ```ruby
37
+
38
+ ===================================
39
+ Text to be displayed in header
40
+ ===================================
41
+ ```
42
+
43
+ ## Contributing
44
+
45
+ 1. Fork it ( https://github.com/[my-github-username]/shell-header/fork )
46
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
47
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
48
+ 4. Push to the branch (`git push origin my-new-feature`)
49
+ 5. Create a new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
data/bin/shell-header ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/evn ruby
2
+
3
+ require 'shell-header'
4
+
5
+ puts ShellHeader::Header.create ARGV[0], ARGV[1]
@@ -0,0 +1,4 @@
1
+ require "shell-header/all"
2
+
3
+ module ShellHeader
4
+ end
@@ -0,0 +1,5 @@
1
+ require "shell-header/version"
2
+ require "shell-header/header"
3
+
4
+ module ShellHeader
5
+ end
@@ -0,0 +1,14 @@
1
+ module ShellHeader
2
+ class Header
3
+ BAR = "# ====================================================="
4
+
5
+ def self.create string, lines
6
+ lines = 2 unless lines
7
+ lines.to_i.times { puts " " }
8
+ puts BAR
9
+ puts "# #{string}"
10
+ puts BAR
11
+ end
12
+ end
13
+ end
14
+
@@ -0,0 +1,3 @@
1
+ module ShellHeader
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,23 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'shell-header/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "shell-header"
8
+ spec.version = ShellHeader::VERSION
9
+ spec.authors = ["Todd Pickell"]
10
+ spec.email = ["tapickell@gmail.com"]
11
+ spec.summary = %q{This Gem is for easily rendering shell headers to make output to logs and consoles cleaner.}
12
+ spec.description = %q{This Gem was developed specificaly for use with automating Jenkins and the need to have a cleaner console output.}
13
+ spec.homepage = "https://github.com/myappleguy/shell-header"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.7"
22
+ spec.add_development_dependency "rake", "~> 10.0"
23
+ end
metadata ADDED
@@ -0,0 +1,86 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: shell-header
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Todd Pickell
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-12-30 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.7'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.7'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ description: This Gem was developed specificaly for use with automating Jenkins and
42
+ the need to have a cleaner console output.
43
+ email:
44
+ - tapickell@gmail.com
45
+ executables:
46
+ - shell-header
47
+ extensions: []
48
+ extra_rdoc_files: []
49
+ files:
50
+ - ".gitignore"
51
+ - Gemfile
52
+ - LICENSE.txt
53
+ - README.md
54
+ - Rakefile
55
+ - bin/shell-header
56
+ - lib/shell-header.rb
57
+ - lib/shell-header/all.rb
58
+ - lib/shell-header/header.rb
59
+ - lib/shell-header/version.rb
60
+ - shell-header.gemspec
61
+ homepage: https://github.com/myappleguy/shell-header
62
+ licenses:
63
+ - MIT
64
+ metadata: {}
65
+ post_install_message:
66
+ rdoc_options: []
67
+ require_paths:
68
+ - lib
69
+ required_ruby_version: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: '0'
74
+ required_rubygems_version: !ruby/object:Gem::Requirement
75
+ requirements:
76
+ - - ">="
77
+ - !ruby/object:Gem::Version
78
+ version: '0'
79
+ requirements: []
80
+ rubyforge_project:
81
+ rubygems_version: 2.4.4
82
+ signing_key:
83
+ specification_version: 4
84
+ summary: This Gem is for easily rendering shell headers to make output to logs and
85
+ consoles cleaner.
86
+ test_files: []