robloxsong 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: 880ab64c50464fafc83c3fa0e3247d7ed9cc5542
4
+ data.tar.gz: d2f5de25fd3f2d33c52a4ea9545286da26bf3f8a
5
+ SHA512:
6
+ metadata.gz: 33a3d6c2eecb4a9d3240f9ba67b69bdbdb78dd13cd9fcc786033e7a0e80cfafd33857ff530de6c5e40acf906cff24375c6c8ac43354895afc44b063aaa50977a
7
+ data.tar.gz: 77a6084b4a9d16c6b647cbcef872efa6adcb7ba63e6632dd708a7d53f496bf71cf5056c2e8d8c64ef609d541292393428eb77440a4e0c0add477e3803610cc67
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ require 'rake/testtask'
2
+
3
+ Rake::TestTask.new do |t|
4
+ t.libs << 'test'
5
+ end
6
+
7
+ desc "Run tests"
8
+ task :default => :test
data/bin/robloxsong ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'robloxsong'
4
+ puts RobloxSong.hi(ARGV[0])
data/lib/robloxsong.rb ADDED
@@ -0,0 +1,8 @@
1
+ class RobloxSong
2
+ def self.hi(language)
3
+ translator = Translator.new(language)
4
+ translator.hi
5
+ end
6
+ end
7
+
8
+ require 'robloxsong/translator'
@@ -0,0 +1,16 @@
1
+ class RobloxSong::Translator
2
+ def initialize(language = "english")
3
+ @language = language
4
+ end
5
+
6
+ def hi
7
+ case @language
8
+ when "spanish"
9
+ "robloxsong mundo"
10
+ when "korean"
11
+ "anyoung ha se yo"
12
+ else
13
+ "hello world"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,16 @@
1
+ require 'test/unit'
2
+ require 'robloxsong'
3
+
4
+ class RobloxSongTest < Test::Unit::TestCase
5
+ def test_english_hello
6
+ assert_equal "hello world", RobloxSong.hi("english")
7
+ end
8
+
9
+ def test_any_hello
10
+ assert_equal "hello world", RobloxSong.hi("ruby")
11
+ end
12
+
13
+ def test_spanish_hello
14
+ assert_equal "robloxsong mundo", RobloxSong.hi("spanish")
15
+ end
16
+ end
metadata ADDED
@@ -0,0 +1,49 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: robloxsong
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Fred Nolan
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-11-26 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: RobloxSong is an app that contains the largest database of Roblox music
14
+ ids. You can search by track name or by artist.
15
+ email: lihtachan@yahoo.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - Rakefile
21
+ - bin/robloxsong
22
+ - lib/robloxsong.rb
23
+ - lib/robloxsong/translator.rb
24
+ - test/test_robloxsong.rb
25
+ homepage: https://robloxsong.com/
26
+ licenses: []
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.5.2.3
45
+ signing_key:
46
+ specification_version: 3
47
+ summary: RobloxSong!
48
+ test_files:
49
+ - test/test_robloxsong.rb