silly_toy 0.0.1
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 +7 -0
- data/bin/silly_toy +4 -0
- data/lib/components/ball.rb +7 -0
- data/lib/components/doll.rb +7 -0
- data/lib/components/silly_toy_welcome.rb +9 -0
- data/lib/components/stick.rb +7 -0
- data/lib/components/water_gun.rb +7 -0
- data/lib/silly_toy.rb +19 -0
- data/test/test_silly_toy.rb +27 -0
- metadata +52 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: a06176684a3962bca596246adc6d2795396be571
|
|
4
|
+
data.tar.gz: 1e0de21d15e3e5fb9bd8ac11ed8dc9c7bbc1f02b
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: e00b034bcb88fdbc164ac55cb8f5d14f2ad9c19348384c526bdb85913c19b731f9c4cbb039ac4832460cd6fc492b8f9174b3d8c8044efdc46400dc052021bfc9
|
|
7
|
+
data.tar.gz: 8ea307483df58e31b45bfd8f5da67e0c49e9feb7fc04b39138b06cacf5300fbf335d0980e2d720d6bb1f9832242e25687ea3f49275909de6ee1404880c5a586c
|
data/bin/silly_toy
ADDED
data/lib/silly_toy.rb
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
require 'components/silly_toy_welcome'
|
|
2
|
+
require 'components/ball'
|
|
3
|
+
require 'components/doll'
|
|
4
|
+
require 'components/stick'
|
|
5
|
+
require 'components/water_gun'
|
|
6
|
+
|
|
7
|
+
Components::SillyToyWelcome.greet
|
|
8
|
+
|
|
9
|
+
class SillyToy
|
|
10
|
+
include Components
|
|
11
|
+
|
|
12
|
+
def initialize
|
|
13
|
+
puts content
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def content
|
|
17
|
+
"Owwee .. you can use: #{Ball.new}, #{Doll.new}, #{Stick.new} and #{WaterGun.new}."
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
require 'minitest/autorun'
|
|
2
|
+
require 'silly_toy'
|
|
3
|
+
|
|
4
|
+
class SillyToyTest < Minitest::Test
|
|
5
|
+
def setup
|
|
6
|
+
@toy = SillyToy.new
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
def teardown
|
|
10
|
+
@toy = nil
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
def test_toy_works
|
|
14
|
+
['Ball', 'Doll', 'Stick', 'Water Gun'].each { |c| assert @toy.content.include? c }
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
class SillyToyWelcomeTest < Minitest::Test
|
|
19
|
+
include Components
|
|
20
|
+
|
|
21
|
+
def test_it_welcomes
|
|
22
|
+
welcome_msg = SillyToyWelcome.greet
|
|
23
|
+
assert welcome_msg
|
|
24
|
+
assert welcome_msg.length > 3
|
|
25
|
+
assert welcome_msg.include? 'Hi'
|
|
26
|
+
end
|
|
27
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: silly_toy
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- ioab
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2016-07-04 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description: A simple toy gem
|
|
14
|
+
email: ioabnet@gmail.com
|
|
15
|
+
executables:
|
|
16
|
+
- silly_toy
|
|
17
|
+
extensions: []
|
|
18
|
+
extra_rdoc_files: []
|
|
19
|
+
files:
|
|
20
|
+
- bin/silly_toy
|
|
21
|
+
- lib/components/ball.rb
|
|
22
|
+
- lib/components/doll.rb
|
|
23
|
+
- lib/components/silly_toy_welcome.rb
|
|
24
|
+
- lib/components/stick.rb
|
|
25
|
+
- lib/components/water_gun.rb
|
|
26
|
+
- lib/silly_toy.rb
|
|
27
|
+
- test/test_silly_toy.rb
|
|
28
|
+
homepage: http://rubygems.org/gems/hola
|
|
29
|
+
licenses:
|
|
30
|
+
- MIT
|
|
31
|
+
metadata: {}
|
|
32
|
+
post_install_message:
|
|
33
|
+
rdoc_options: []
|
|
34
|
+
require_paths:
|
|
35
|
+
- lib
|
|
36
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - ">="
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '0'
|
|
41
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
42
|
+
requirements:
|
|
43
|
+
- - ">="
|
|
44
|
+
- !ruby/object:Gem::Version
|
|
45
|
+
version: '0'
|
|
46
|
+
requirements: []
|
|
47
|
+
rubyforge_project:
|
|
48
|
+
rubygems_version: 2.4.8
|
|
49
|
+
signing_key:
|
|
50
|
+
specification_version: 4
|
|
51
|
+
summary: Silly_Toy Gem
|
|
52
|
+
test_files: []
|