hola-sergio 0.0.2 → 0.1.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 +4 -4
- data/LICENSE +12 -12
- data/README.md +3 -0
- data/lib/hola-sergio.rb +8 -5
- data/lib/hola-sergio/version.rb +3 -0
- metadata +8 -9
- data/man/hola-sergioro.1 +0 -51
- data/test/test_hola-sergio.rb +0 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc18fc6c39c66b8195622b724747798a3665c92929206993e53bc03c22a12fc4
|
4
|
+
data.tar.gz: a0ddc124c3877c69980d2bb57eeabf6cf058a6f3ed012f480bbcc22afc72ec6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b019eeb8ac849256f957df1c000345a170456912cadddb2f440a944513114fdd3cc485025df1df374c245728b1d0d505285d80bac842c1cf1c4f875ba8dd11aa
|
7
|
+
data.tar.gz: 7ad7c333789f2000cad5f2a3f5028b8dbfb6af7ee65cd9634dabbed9d60b3883a6562f1b493c3da55bb56e9301d5745471ec37d9e71df02a7f2cf0d2fa49abd3
|
data/LICENSE
CHANGED
@@ -1,20 +1,20 @@
|
|
1
1
|
Copyright (c) 2019 Sergio Romero
|
2
2
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
-
copy of this software and associated documentation files (the
|
5
|
-
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
Software), to deal in the Software without restriction, including
|
6
6
|
without limitation the rights to use, copy, modify, merge, publish,
|
7
7
|
distribute, sublicense, and/or sell copies of the Software, and to
|
8
8
|
permit persons to whom the Software is furnished to do so, subject to
|
9
9
|
the following conditions:
|
10
10
|
|
11
|
-
The above copyright notice and this permission notice shall be
|
12
|
-
in all copies or substantial portions of the Software.
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
13
|
|
14
|
-
THE SOFTWARE IS PROVIDED
|
15
|
-
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
14
|
+
THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
data/lib/hola-sergio.rb
CHANGED
@@ -1,8 +1,11 @@
|
|
1
|
-
|
1
|
+
require "hola-sergio/version"
|
2
|
+
require "hola-sergio/translator"
|
3
|
+
|
4
|
+
module Hola
|
5
|
+
class Hola
|
2
6
|
def self.hi(language="english")
|
3
|
-
|
4
|
-
|
7
|
+
translator=Translator.new(language)
|
8
|
+
translator.hi
|
5
9
|
end
|
10
|
+
end
|
6
11
|
end
|
7
|
-
|
8
|
-
require 'hola-sergio/translator'
|
metadata
CHANGED
@@ -1,21 +1,22 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hola-sergio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergio Romero
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2010-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |2
|
14
14
|
If you would be a real seeker after truth,
|
15
15
|
it is necessary that at least once in your life you doubt,
|
16
16
|
as far as possible, all things
|
17
17
|
email: sergioro@nmsu.edu
|
18
|
-
executables:
|
18
|
+
executables:
|
19
|
+
- hola
|
19
20
|
extensions: []
|
20
21
|
extra_rdoc_files: []
|
21
22
|
files:
|
@@ -25,12 +26,11 @@ files:
|
|
25
26
|
- bin/hola
|
26
27
|
- lib/hola-sergio.rb
|
27
28
|
- lib/hola-sergio/translator.rb
|
28
|
-
-
|
29
|
+
- lib/hola-sergio/version.rb
|
29
30
|
- man/hola-sergioro.1.ronn
|
30
|
-
|
31
|
-
homepage: https://rubygems.org/gems/hola-sergio
|
31
|
+
homepage: https://github.com/sergioro9/hola-sergio
|
32
32
|
licenses:
|
33
|
-
-
|
33
|
+
- wtfpl
|
34
34
|
metadata: {}
|
35
35
|
post_install_message:
|
36
36
|
rdoc_options: []
|
@@ -47,8 +47,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: '0'
|
49
49
|
requirements: []
|
50
|
-
|
51
|
-
rubygems_version: 2.7.6
|
50
|
+
rubygems_version: 3.0.3
|
52
51
|
signing_key:
|
53
52
|
specification_version: 4
|
54
53
|
summary: A simple hello world gem, from a very special man
|
data/man/hola-sergioro.1
DELETED
@@ -1,51 +0,0 @@
|
|
1
|
-
.\" generated with Ronn/v0.7.3
|
2
|
-
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
|
-
.
|
4
|
-
.TH "HOLA\-SERGIO" "1" "March 2019" "" ""
|
5
|
-
.
|
6
|
-
.SH "NAME"
|
7
|
-
\fBhola\-sergio\fR \- the first gem of s\-e\-r\-g\-i\-o
|
8
|
-
.
|
9
|
-
.SH "SYNOPSIS"
|
10
|
-
.
|
11
|
-
.nf
|
12
|
-
|
13
|
-
gem hola
|
14
|
-
.
|
15
|
-
.fi
|
16
|
-
.
|
17
|
-
.SH "DESCRIPTION"
|
18
|
-
.
|
19
|
-
.nf
|
20
|
-
|
21
|
-
A simple hello world gem, from a very special man
|
22
|
-
|
23
|
-
If you would be a real seeker after truth,
|
24
|
-
it is necessary that at least once in your life you doubt,
|
25
|
-
as far as possible, all things
|
26
|
-
.
|
27
|
-
.fi
|
28
|
-
.
|
29
|
-
.SH "INSTALL"
|
30
|
-
gem install hola\-sergio
|
31
|
-
.
|
32
|
-
.SH "QUICKSTART"
|
33
|
-
.
|
34
|
-
.nf
|
35
|
-
|
36
|
-
gem hola
|
37
|
-
.
|
38
|
-
.fi
|
39
|
-
.
|
40
|
-
.SH "THANKS"
|
41
|
-
.
|
42
|
-
.IP "\(bu" 4
|
43
|
-
God
|
44
|
-
.
|
45
|
-
.IP "" 0
|
46
|
-
.
|
47
|
-
.SH "COPYRIGHT"
|
48
|
-
hola\-sergio is Copyright (C) 2019 Sergio Romero
|
49
|
-
.
|
50
|
-
.SH "SEE ALSO"
|
51
|
-
\fIhttps://guides\.rubygems\.org/make\-your\-own\-gem/\fR
|
data/test/test_hola-sergio.rb
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require 'minitest/autorun'
|
4
|
-
require 'hola-sergio'
|
5
|
-
|
6
|
-
class Holatest < Minitest::Test
|
7
|
-
def test_english_hello
|
8
|
-
assert_equal "hello world", Hola.hi("english")
|
9
|
-
end
|
10
|
-
|
11
|
-
def test_any_hello
|
12
|
-
assert_equal "hello world", Hola.hi("ruby")
|
13
|
-
end
|
14
|
-
|
15
|
-
def test_spanish_hello
|
16
|
-
assert_equal "hola mundo", Hola.hi("spanish")
|
17
|
-
end
|
18
|
-
end
|