gday 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 173dbdbf40c79cf9f2f9c5cd82768cf8d4a7533e
4
- data.tar.gz: 58fa4434d35c1c65649bf7b159eff1e36e2ad3b0
3
+ metadata.gz: 4ea8e0d673de3c3b18833261ec359872bbe6b13d
4
+ data.tar.gz: f5882dde9981d9155bfa6cc236f31059aa0cb716
5
5
  SHA512:
6
- metadata.gz: 73777192c5a4b7de8c1f40951aa293349bb8a6818a79ce0bfbf1ab1addd60415535be7c8234701958563fa582c590e95227eb1db328df86fa392cca6dbef712c
7
- data.tar.gz: a5de8e69cc1c0979693130b781b3994c27f35da3742870fc32a89004c804ff5e1ca0eb94f859d654f99c94f08502cab2af524731fd0f9026b66ba0fdb2140298
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
- TODO: Write usage instructions here
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
@@ -1,4 +1,3 @@
1
1
  ## TODO List
2
2
 
3
- * Add documentation for gem version 0.0.1
4
- * Test reporting - copy results to file, preferably HTTP
3
+ * Test reporting - HTTP version of results
@@ -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
@@ -1,5 +1,5 @@
1
1
  # The Gday module is the main container for the gday gem.
2
2
  module Gday
3
3
  # The version for the gday gem.
4
- VERSION = '0.0.5'
4
+ VERSION = '0.0.6'
5
5
  end
@@ -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
@@ -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.5
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-02-07 00:00:00.000000000 Z
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