tgfa 1.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e5291db9fc8ebc1ab41a07424cb9beeaa79fb2dd
4
+ data.tar.gz: 7b80c58d479952a0873999b3b8126e82829d6e54
5
+ SHA512:
6
+ metadata.gz: c20473de5a4372f2c626093be0b7c8760324252bbf8217e28be5b8d8834a4d678b953f4b880bb42452d52b2f81c5ee8cb20e08c8208dc9c9535f87ba9181f687
7
+ data.tar.gz: f2ca3bd63c237ac21f13149aef102c4d872254cbf97d52edcaa0e588239055c6cc64c0c279dd0fecc5cf9f044e9626548b2dbda75f6c31099e777436977109fd
@@ -0,0 +1 @@
1
+
data/History.markdown ADDED
@@ -0,0 +1 @@
1
+
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ (The MIT License)
2
+
3
+ Copyright (c) 2014 sugeng tigefa <sugeng@tigefa.org>
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/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/tgfa ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'tgfa'
4
+ puts Tgfa.hi(ARGV[0])
@@ -0,0 +1,18 @@
1
+ class Tgfa::Translator
2
+ def initialize(language = "english")
3
+ @language = language
4
+ end
5
+
6
+ def hi
7
+ case @language
8
+ when "spanish"
9
+ "hola mundo"
10
+ when "indonesia"
11
+ "halo dunia"
12
+ when "korean"
13
+ "anyoung ha se yo"
14
+ else
15
+ "hello world"
16
+ end
17
+ end
18
+ end
data/lib/tgfa.rb ADDED
@@ -0,0 +1,8 @@
1
+ class Tgfa
2
+ def self.hi(language)
3
+ translator = Translator.new(language)
4
+ translator.hi
5
+ end
6
+ end
7
+
8
+ require 'tgfa/translator'
data/readme.md ADDED
@@ -0,0 +1,5 @@
1
+ # Sync SF
2
+
3
+ [![build status](http://ci.tgfa.net/projects/2/status.png?ref=master)](http://ci.tgfa.net/projects/2?ref=master) [![Gem Version](https://badge.fury.io/rb/sync-sf.png)](http://badge.fury.io/rb/sync-sf)
4
+
5
+ helping manage project web shell sourceforge repostory
data/test/test_tgfa.rb ADDED
@@ -0,0 +1,19 @@
1
+ require 'test/unit'
2
+ require 'tgfa'
3
+
4
+ class TgfaTest < Test::Unit::TestCase
5
+ def test_english_hello
6
+ assert_equal "hello world", Tgfa.hi("english")
7
+ end
8
+
9
+ def test_any_hello
10
+ assert_equal "hello world", Tgfa.hi("ruby")
11
+ end
12
+
13
+ def test_spanish_hello
14
+ assert_equal "hola mundo", Tgfa.hi("spanish")
15
+ end
16
+ def test_indonesia_hello
17
+ assert_equal "halo dunia", Tgfa.hi("indonesia")
18
+ end
19
+ end
metadata ADDED
@@ -0,0 +1,54 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tgfa
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.1
5
+ platform: ruby
6
+ authors:
7
+ - sugeng tigefa
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-01-21 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: command line for manage git projects on tgfa.net
14
+ email: sugeng@tigefa.org
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - CONTRIBUTING.markdown
20
+ - History.markdown
21
+ - LICENSE
22
+ - Rakefile
23
+ - bin/tgfa
24
+ - lib/tgfa.rb
25
+ - lib/tgfa/translator.rb
26
+ - readme.md
27
+ - test/test_tgfa.rb
28
+ homepage: http://tgfa.net/tgfa/tgfa
29
+ licenses:
30
+ - MIT
31
+ metadata: {}
32
+ post_install_message:
33
+ rdoc_options: []
34
+ require_paths:
35
+ - lib
36
+ required_ruby_version: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ required_rubygems_version: !ruby/object:Gem::Requirement
42
+ requirements:
43
+ - - '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ requirements: []
47
+ rubyforge_project:
48
+ rubygems_version: 2.2.1
49
+ signing_key:
50
+ specification_version: 4
51
+ summary: command line manage projects on tgfa.net
52
+ test_files:
53
+ - test/test_tgfa.rb
54
+ has_rdoc: