isopod 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MmY4YmJmOTNlYWRkYWJmZjU3ZWUwYTM3NzNhZGFiNTk1YmRiODg1Zg==
5
+ data.tar.gz: !binary |-
6
+ MWRjZGJiZmNmZTAwZjdhNjVjZTA3MTNhOTdmOGJlNDI3Y2MzODczZA==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ ZTk4YTc1Zjg3MjVhMGM1MWQxYjkxODcyMzZiYmQzOTUyNTY2MDdlOTA3MGFk
10
+ OTg0OWIzOTM1YmFmNzUyODgxMmUwY2I2ODUxNGVkMjM2MDc4ZDUxODIyMGIz
11
+ MjY5Y2M3MzA1NGMwM2Q2MTUwNjRkMzcwNmFmNWE5YmJiZWU2ZTQ=
12
+ data.tar.gz: !binary |-
13
+ NTkwZjYwODFlZGFhMjdkYTExZDEyYjFiM2E1ZDhmZWE2YjdiNjg5MjI5ZDk3
14
+ ZTRjNzM1ODM3OWZlYTU5MDhhNWFkMzQ1NzU5YWM2MjVmZDNjY2JkZWNiNWE1
15
+ MmRhYTFjYzE1YjQ1ZTk2NTM1ODdiNmI0MzczOTM3Y2QwMWExZGY=
@@ -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
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'isopod'
4
+ puts Isopod.hi(ARGV[0])
@@ -0,0 +1,8 @@
1
+ class Isopod
2
+ def self.hi(language="english")
3
+ translator = Translator.new(language)
4
+ translator.hi
5
+ end
6
+ end
7
+
8
+ require 'isopod/translator'
@@ -0,0 +1,16 @@
1
+ class Isopod::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 "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 'hola'
3
+
4
+ class HolaTest < Test::Unit::TestCase
5
+ def test_english_hello
6
+ assert_equal "hello world", Hola.hi("english")
7
+ end
8
+
9
+ def test_any_hello
10
+ assert_equal "hello world", Hola.hi("ruby")
11
+ end
12
+
13
+ def test_spanish_hello
14
+ assert_equal "hola mundo", Hola.hi("spanish")
15
+ end
16
+ end
metadata ADDED
@@ -0,0 +1,48 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: isopod
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Brandon Sislow
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-04-25 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: A pdf deconstruction and recontruction gem
14
+ email: brandon@bluetwin.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - Rakefile
20
+ - lib/isopod.rb
21
+ - lib/isopod/translator.rb
22
+ - bin/isopod
23
+ - test/test_isopod.rb
24
+ homepage: http://rubygems.org/gems/isopod
25
+ licenses: []
26
+ metadata: {}
27
+ post_install_message:
28
+ rdoc_options: []
29
+ require_paths:
30
+ - lib
31
+ required_ruby_version: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - ! '>='
34
+ - !ruby/object:Gem::Version
35
+ version: '0'
36
+ required_rubygems_version: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ requirements: []
42
+ rubyforge_project:
43
+ rubygems_version: 2.0.3
44
+ signing_key:
45
+ specification_version: 3
46
+ summary: Isopod!
47
+ test_files:
48
+ - test/test_isopod.rb