lmhd 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (7) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +21 -0
  3. data/README.md +5 -0
  4. data/bin/lmhd +4 -0
  5. data/lib/lmhd/hello.rb +17 -0
  6. data/lib/lmhd.rb +5 -2
  7. metadata +7 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bf9b02795bf149e779983dc5f93a76231c8fd64a
4
- data.tar.gz: 5607703ea7b9c952b54713e1381442e348f337d4
3
+ metadata.gz: 624405e30f4fbd18fd8085d1455a4d4293519c65
4
+ data.tar.gz: 61168d4dc2034f6c1fb7cbf677a33674dfa94f27
5
5
  SHA512:
6
- metadata.gz: 3ad27d8d67164e552174990733ed55a8ab9eac71c49f1df4c80d7cc15cb57b9729ed9c713ae6aeb0b5e4146fa93096979e848e8f237fe10210fe2ff509f49512
7
- data.tar.gz: 11d6222cc0dadfb1ee24b71393a9b262b56507c23ddb86114c397811c5e2d874c0562edacb4ed20ff7d949bd9ed53544d22d1e01d4365fff25ba94392d7a5b39
6
+ metadata.gz: 1a5cce8a2cce155dbafb290636f3e5ebb964aec9d6668911c71648413eaedf5b8b8d9d0d6da09791ec375915b67bc3cf140b7d04e4dad92e0f7fc601b4947971
7
+ data.tar.gz: c2992de4835a04fdc7e23ab0bbebb5d8e3340d60289d32ad106e47ccb9cc9fa7ae7dfb03bad9350e3d7a901199d82ef34b962ccbf9b68e641398a57778392118
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2017 Lucy Davies
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,5 @@
1
+ # lmhd-gem
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/lmhd.svg)](https://badge.fury.io/rb/lmhd) [![Build Status](https://travis-ci.org/LMHD/lmhd-gem.svg?branch=master)](https://travis-ci.org/LMHD/lmhd-gem)
4
+
5
+ Testing creating my own Ruby Gem
data/bin/lmhd ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'lmhd'
4
+ puts LMHD.hi(ARGV[0])
data/lib/lmhd/hello.rb ADDED
@@ -0,0 +1,17 @@
1
+
2
+ class LMHD::Hello
3
+ def initialize(lang)
4
+ @language = lang
5
+ end
6
+
7
+ def hi
8
+ case @language
9
+ when "dood"
10
+ "'sup doods"
11
+ when "groot"
12
+ "I AM GROOT"
13
+ else
14
+ "Hello World"
15
+ end
16
+ end
17
+ end
data/lib/lmhd.rb CHANGED
@@ -1,7 +1,10 @@
1
1
  # The main LMHD class
2
2
  class LMHD
3
3
  # Say hi!
4
- def self.hi
5
- puts "'sup doods"
4
+ def self.hi(language = :bob)
5
+ hello = Hello.new( language )
6
+ hello.hi
6
7
  end
7
8
  end
9
+
10
+ require 'lmhd/hello'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lmhd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lucy Davies
@@ -12,11 +12,16 @@ date: 2017-05-19 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A simple hello world gem
14
14
  email: lucy@lucymhdavies.com
15
- executables: []
15
+ executables:
16
+ - lmhd
16
17
  extensions: []
17
18
  extra_rdoc_files: []
18
19
  files:
20
+ - LICENSE
21
+ - README.md
22
+ - bin/lmhd
19
23
  - lib/lmhd.rb
24
+ - lib/lmhd/hello.rb
20
25
  homepage: http://rubygems.org/gems/lmhd
21
26
  licenses:
22
27
  - MIT