haulier 0.0.0 → 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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e7bfe7176b1bd48c12f02921ff85a09e7518c323
4
- data.tar.gz: 6637d2415a49d0ed641161d640f3e610f241bf37
3
+ metadata.gz: d283236bb06872b03cb123133fd5723eb2f5acbf
4
+ data.tar.gz: 5a70227b9eb83889846c93132266bc5af058fc4d
5
5
  SHA512:
6
- metadata.gz: c52ca948bf35f47f3601a9cbf3b68e193739b69dba5968c9c2927e7bb29a59ef29ae7fa774e1e2de7a0f5a7da930ddeced6bb58dcbacc5b5a00650fd15a992ee
7
- data.tar.gz: d2be02e1e258bf8dc6fc1ea9fc5ebbcb71d83bd38b3f0cb22dbf0abefcdeb8dc8ee6df195f9c01744183d64490d6fc066f26aed9ae007c4a434abec2afe42872
6
+ metadata.gz: 34fdb5e5caa95c95911489d0129a77baac6d4d91420628f21bba3a268e68a1c1c6924759c7c8207b44dc178cbd550b1623426f5e569d73e5adedf5e31ad77e0b
7
+ data.tar.gz: 95d9ed5b29b09d896a0e1c294d09591321fcb888761a5ed26e28b1406e98a1733f0dd532cbc698a9bf20ebc8ff61c57c0488e884ac125bac400864d2c1e65cb2
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2014 Florian Krüger
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.
@@ -0,0 +1,4 @@
1
+ haulier
2
+ =======
3
+
4
+ a little tool that delivers couches
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'haulier'
4
+ puts Haulier::Talker.hi(ARGV[0])
@@ -1,5 +1,10 @@
1
- class Haulier
2
- def self.hi
3
- puts "Hello world!"
1
+ require 'haulier/translator'
2
+
3
+ module Haulier
4
+ class Talker
5
+ def self.hi(language = "english")
6
+ translator = Translator.new(language)
7
+ translator.hi
8
+ end
4
9
  end
5
10
  end
@@ -0,0 +1,18 @@
1
+ module Haulier
2
+ class Translator
3
+ def initialize(language)
4
+ @language = language
5
+ end
6
+
7
+ def hi
8
+ case @language
9
+ when "spanish"
10
+ "hola mundo"
11
+ when "german"
12
+ "hallo welt"
13
+ else
14
+ "hello world"
15
+ end
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,3 @@
1
+ module Haulier
2
+ VERSION = "0.0.2"
3
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: haulier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Krüger
@@ -12,12 +12,18 @@ date: 2014-04-15 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A simple tool that delivers your couch
14
14
  email: florian.krueger@projectserver.org
15
- executables: []
15
+ executables:
16
+ - haulier
16
17
  extensions: []
17
18
  extra_rdoc_files: []
18
19
  files:
20
+ - LICENSE
21
+ - README.md
22
+ - bin/haulier
19
23
  - lib/haulier.rb
20
- homepage: http://rubygems.org/gems/haulier
24
+ - lib/haulier/translator.rb
25
+ - lib/haulier/version.rb
26
+ homepage: https://github.com/floriankrueger/haulier
21
27
  licenses:
22
28
  - MIT
23
29
  metadata: {}
@@ -34,7 +40,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
34
40
  requirements:
35
41
  - - '>='
36
42
  - !ruby/object:Gem::Version
37
- version: '0'
43
+ version: 1.3.6
38
44
  requirements: []
39
45
  rubyforge_project:
40
46
  rubygems_version: 2.2.2