first_ruby_gem 0.1.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 +7 -0
- data/bin/first_ruby_gem +4 -0
- data/lib/first_ruby_gem.rb +17 -0
- data/lib/first_ruby_gem/translator.rb +16 -0
- metadata +48 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a2074f88d382a6f5157b66e6e6dd79fd539a1d90
|
4
|
+
data.tar.gz: 7afec29db66a48c506b63d9e10a61a60b2d09031
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 1b91da6889a1fef39099639445b7ee6fda6ad4f01bb68572f2089770455fb33f4cef84c7daca9257f80fc84ac3ce3b0de155533f7b8727a214dcfb325c2c93a5
|
7
|
+
data.tar.gz: 7c3694c71e9b7a2333787876fefb440ee3a1e507089d708ab9ad07345f10c2adcd4019b0b4061da03deee70e900e6a0451bad310a1ed1981346e57c7d7638640
|
data/bin/first_ruby_gem
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# The mail first ruby gem
|
2
|
+
class FirstRubyGem
|
3
|
+
# Say hi to the world!
|
4
|
+
#
|
5
|
+
# Example:
|
6
|
+
# >> FirstRubyGem.hello("chinese")
|
7
|
+
# => 你好, ruby gem!
|
8
|
+
#
|
9
|
+
# Arguments:
|
10
|
+
# language: (String)
|
11
|
+
def self.hello(language = 'english')
|
12
|
+
translator = Translator.new(language)
|
13
|
+
translator.hello
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
require 'first_ruby_gem/translator'
|
metadata
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: first_ruby_gem
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- logic
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-05-07 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: this is first ruby gem
|
14
|
+
email:
|
15
|
+
- ligeislogic@gmail.com
|
16
|
+
executables:
|
17
|
+
- first_ruby_gem
|
18
|
+
extensions: []
|
19
|
+
extra_rdoc_files: []
|
20
|
+
files:
|
21
|
+
- bin/first_ruby_gem
|
22
|
+
- lib/first_ruby_gem.rb
|
23
|
+
- lib/first_ruby_gem/translator.rb
|
24
|
+
homepage: https://github.com/lglove/first_ruby_gem
|
25
|
+
licenses:
|
26
|
+
- MIT
|
27
|
+
metadata: {}
|
28
|
+
post_install_message:
|
29
|
+
rdoc_options: []
|
30
|
+
require_paths:
|
31
|
+
- lib
|
32
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
33
|
+
requirements:
|
34
|
+
- - ">="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '0'
|
37
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0'
|
42
|
+
requirements: []
|
43
|
+
rubyforge_project:
|
44
|
+
rubygems_version: 2.6.13
|
45
|
+
signing_key:
|
46
|
+
specification_version: 4
|
47
|
+
summary: first ruby gem
|
48
|
+
test_files: []
|