gday 0.0.5 → 0.0.6
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 +4 -4
- data/README.md +11 -1
- data/TODO.md +1 -2
- data/lib/gday.rb +1 -32
- data/lib/gday/greeting.rb +31 -0
- data/lib/gday/version.rb +1 -1
- data/test/lib/gday/greeting_test.rb +19 -0
- data/test/lib/gday_test.rb +0 -18
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ea8e0d673de3c3b18833261ec359872bbe6b13d
|
4
|
+
data.tar.gz: f5882dde9981d9155bfa6cc236f31059aa0cb716
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7e40249b91768c39d3d7eac04f17504fe1805b09689daff3e280f5630fe51796b54392c32bcbd94b010b893b023414c37138865525453bb6000382be1e46ad7
|
7
|
+
data.tar.gz: acfd2d41e1dc8312750bfd8db9aed2f5fa75b94a17dec9f6ea0f18c825099bc9ca5c10a91a50dfdc73a85dc874abc723b8eb91e40365e7c03d53e7c425f76929
|
data/README.md
CHANGED
@@ -20,7 +20,17 @@ Or install it yourself as:
|
|
20
20
|
|
21
21
|
## Usage
|
22
22
|
|
23
|
-
|
23
|
+
Code sample:
|
24
|
+
|
25
|
+
require 'gday'
|
26
|
+
|
27
|
+
g = Gday::Greeting.new
|
28
|
+
|
29
|
+
# Say 'hi' in Aussie
|
30
|
+
puts g.hi
|
31
|
+
|
32
|
+
# Say 'bye' in Aussie
|
33
|
+
puts g.bye
|
24
34
|
|
25
35
|
## Contributing
|
26
36
|
|
data/TODO.md
CHANGED
data/lib/gday.rb
CHANGED
@@ -1,33 +1,2 @@
|
|
1
1
|
require_relative 'gday/version'
|
2
|
-
|
3
|
-
# The Gday module is the main container for the gday gem.
|
4
|
-
module Gday
|
5
|
-
# The Greetings class provides greetings in Aussie.
|
6
|
-
class Greeting
|
7
|
-
# Saying Hello in Aussie
|
8
|
-
#
|
9
|
-
# @return [String]
|
10
|
-
# Hello in Aussie
|
11
|
-
#
|
12
|
-
# @example
|
13
|
-
# Gday::Greeting.new.hi #=> "G'day!"
|
14
|
-
#
|
15
|
-
# @api public
|
16
|
-
def hi
|
17
|
-
"G'day!"
|
18
|
-
end
|
19
|
-
|
20
|
-
# Saying Goodbye in Aussie
|
21
|
-
#
|
22
|
-
# @return [String]
|
23
|
-
# Goodbye in Aussie
|
24
|
-
#
|
25
|
-
# @example
|
26
|
-
# Gday::Greeting.new.bye #=> "Cheerio"
|
27
|
-
#
|
28
|
-
# @api public
|
29
|
-
def bye
|
30
|
-
'Cheerio'
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
2
|
+
require_relative 'gday/greeting'
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# The Gday module is the main container for the gday gem.
|
2
|
+
module Gday
|
3
|
+
# The Greetings class provides greetings in Aussie.
|
4
|
+
class Greeting
|
5
|
+
# Saying Hello in Aussie
|
6
|
+
#
|
7
|
+
# @return [String]
|
8
|
+
# Hello in Aussie
|
9
|
+
#
|
10
|
+
# @example
|
11
|
+
# Gday::Greeting.new.hi #=> "G'day!"
|
12
|
+
#
|
13
|
+
# @api public
|
14
|
+
def hi
|
15
|
+
"G'day!"
|
16
|
+
end
|
17
|
+
|
18
|
+
# Saying Goodbye in Aussie
|
19
|
+
#
|
20
|
+
# @return [String]
|
21
|
+
# Goodbye in Aussie
|
22
|
+
#
|
23
|
+
# @example
|
24
|
+
# Gday::Greeting.new.bye #=> "Cheerio"
|
25
|
+
#
|
26
|
+
# @api public
|
27
|
+
def bye
|
28
|
+
'Cheerio'
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
data/lib/gday/version.rb
CHANGED
@@ -0,0 +1,19 @@
|
|
1
|
+
require_relative '../../test_helper'
|
2
|
+
|
3
|
+
describe Gday do
|
4
|
+
|
5
|
+
describe 'Greeting' do
|
6
|
+
|
7
|
+
let(:greeting) { Gday::Greeting.new }
|
8
|
+
|
9
|
+
it "must say 'G'day!'" do
|
10
|
+
greeting.hi.must_equal "G'day!"
|
11
|
+
end
|
12
|
+
|
13
|
+
it "must say 'Cheerio'" do
|
14
|
+
greeting.bye.must_equal 'Cheerio'
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
data/test/lib/gday_test.rb
CHANGED
@@ -1,19 +1 @@
|
|
1
1
|
require_relative '../test_helper'
|
2
|
-
|
3
|
-
describe Gday do
|
4
|
-
|
5
|
-
describe 'Greeting' do
|
6
|
-
|
7
|
-
let(:greeting) { Gday::Greeting.new }
|
8
|
-
|
9
|
-
it "must say 'G'day!'" do
|
10
|
-
greeting.hi.must_equal "G'day!"
|
11
|
-
end
|
12
|
-
|
13
|
-
it "must say 'Cheerio'" do
|
14
|
-
greeting.bye.must_equal 'Cheerio'
|
15
|
-
end
|
16
|
-
|
17
|
-
end
|
18
|
-
|
19
|
-
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gday
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Behrndt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -169,7 +169,9 @@ files:
|
|
169
169
|
- TODO.md
|
170
170
|
- gday.gemspec
|
171
171
|
- lib/gday.rb
|
172
|
+
- lib/gday/greeting.rb
|
172
173
|
- lib/gday/version.rb
|
174
|
+
- test/lib/gday/greeting_test.rb
|
173
175
|
- test/lib/gday/version_test.rb
|
174
176
|
- test/lib/gday_test.rb
|
175
177
|
- test/test_helper.rb
|
@@ -199,6 +201,7 @@ specification_version: 4
|
|
199
201
|
summary: This gem is part of my learning journey for developing and published Ruby
|
200
202
|
Web Applications.
|
201
203
|
test_files:
|
204
|
+
- test/lib/gday/greeting_test.rb
|
202
205
|
- test/lib/gday/version_test.rb
|
203
206
|
- test/lib/gday_test.rb
|
204
207
|
- test/test_helper.rb
|