rexy 0.0.1 → 0.0.2

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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZmNhYjExMWMxYmM5MDYyZGZmZTJmYTg5OWM0MWIxM2Y0ZWU1OGFiOA==
4
+ ZTc4MDFkMjQ0NjBhYjA3YzAwNDNkNTQ2NjUxOWVkNzVmN2Y1YzRjMg==
5
5
  data.tar.gz: !binary |-
6
- ODQ1ZDFmYmYyZTc2MWE3YTg1NDNjZTEwNjJkZTkxMWY3OTZlODVkNA==
6
+ OTI3YmNmNzlhNmY5YmUyNDJiMDM3MDA1MzRhMDUzMzYwZjYzY2VmZQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NjMzNDMxY2MwMmZhMzJmM2ZiYmI1MGJkZDhjZTQwYzdhYzcyOTA3OGJlNTZi
10
- OWNmZTBlMmQ5YzdkNmZhM2EwNzgxZGJkM2IwZWM0YmM1N2ExZDBmODZmOGE4
11
- ZjkwNDZjOTI4NTUwZjQ1MmQwZWY0ZjAzMWEzZmMxMTQyNjM5ZWI=
9
+ NTk2NDZjN2NhNzQ1YTQ5NzhkNjk5YTQ3YzFhMWM1N2QyMmVmMTFlNDUyZjg3
10
+ ODdhZmNmMmZlOGM5M2Y2Mjk3MGNiOWRkNmZhNWNiY2FmMDU1Y2QzYzFjOGQy
11
+ Y2EyYzVkNGIyZmMxZDBkOTBhOWMwYTlhMmVkOGQ3MGI5NWEyNGU=
12
12
  data.tar.gz: !binary |-
13
- M2VlYmZhZTA1MDY5YTI2ZTUxN2E5YTlmNThmOTBlYTM2YjMzYThiZTczMDkx
14
- ZGVlNmEyYTUzZjkyMThjYjgyZjliYTg4MmVlZDBkMDM2Y2U1NTliNTAzNGI4
15
- MDNkNGZlYTQ2ZmJkODc4YmQxMGNkNjExMzVhNTI3NGUyY2U4MjM=
13
+ ZjBiNjlhOGZiMDU3MzY2YzliZTZjYmY0NWZhNDEwNzMyOWI1NTBkMTllYzk5
14
+ MWVjNmJkZjA1ZDAyODUyOGM4NmJkMTdmZTNmODg4MGNkZjQ4NDAxNGFiNTAw
15
+ NWRlN2ZiMGI5MWI2NGEzMDYyY2YyMzI0MGYwNmUzY2Y4NzNjYTA=
data/bin/rexy CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require 'rexy'
4
- puts Rexy.hi(ARGV[0])
4
+ puts Rexy.hi
@@ -1,8 +1,5 @@
1
1
  class Rexy
2
- def self.hi(language)
3
- translator = Translator.new(language)
4
- translator.hi
2
+ def self.hi
3
+ 'Rexy ' + ['is da bomb', 'makes shit happen', 'is better than you', 'will survive'].sample
5
4
  end
6
- end
7
-
8
- require 'rexy/translator'
5
+ end
@@ -2,15 +2,7 @@ require 'test/unit'
2
2
  require 'rexy'
3
3
 
4
4
  class RexyTest < Test::Unit::TestCase
5
- def test_english_hello
6
- assert_equal "hello world", Rexy.hi("english")
7
- end
8
-
9
- def test_any_hello
10
- assert_equal "hello world", Rexy.hi("ruby")
11
- end
12
-
13
- def test_spanish_hello
14
- assert_equal "rexy mundo", Rexy.hi("spanish")
5
+ def test_rexy
6
+ assert_match "Rexy", Rexy.hi
15
7
  end
16
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rexy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claudio B
@@ -12,13 +12,13 @@ date: 2010-04-03 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Rexy makes shit happen
14
14
  email: claudiob@gmail.com
15
- executables: []
15
+ executables:
16
+ - rexy
16
17
  extensions: []
17
18
  extra_rdoc_files: []
18
19
  files:
19
20
  - Rakefile
20
21
  - lib/rexy.rb
21
- - lib/rexy/translator.rb
22
22
  - bin/rexy
23
23
  - test/test_rexy.rb
24
24
  homepage: http://rubygems.org/gems/rexy
@@ -1,16 +0,0 @@
1
- class Rexy::Translator
2
- def initialize(language = "english")
3
- @language = language
4
- end
5
-
6
- def hi
7
- case @language
8
- when "spanish"
9
- "rexy mundo"
10
- when "korean"
11
- "anyoung ha se yo"
12
- else
13
- "hello world"
14
- end
15
- end
16
- end