mysample 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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ea02bece51f22219cffc1d110076ad371771573e
4
- data.tar.gz: af9fec3460eba10f7555610ac79ebfafea48caf3
3
+ metadata.gz: 023da2a26be0d32e664881f9d25b5153e2ad7973
4
+ data.tar.gz: c140dcba8a1ce23576e092154c384a59feaafd54
5
5
  SHA512:
6
- metadata.gz: 394797102b076b4964279673371f6a5758ce89c52c10d25813e97a726e09b276f9cbf53a318e6ffe670b868d4a11bf8c2d576f9104bb1be0d706d88e64cce04e
7
- data.tar.gz: 372b3107743c77d43745142338b25650f168501f996415ca60080b803f14acadf0ac72f6169c4e28b737dfa1193eae33a6e08530207cf6451fd3c2db7ff6d4e3
6
+ metadata.gz: ae3c134034116c9208e2180d1fc2f25cba55b0b686f3c3133935006f7320c194cfa7800c5a8b82d4ef523ee1a3325f8018b0962326f7bd704841bab97c7a112d
7
+ data.tar.gz: d9f4a3b971e114fb99c5b7b0086d2e2f1a08bceae5edddeacd28a8785e553d75f24523102a78a40d4a2ea02c948101b4a5e900b8c0d756fd46c60861fb1bd985
@@ -0,0 +1,15 @@
1
+ require 'spec_helper'
2
+
3
+ describe MySample do
4
+ it "should say hello world in english" do
5
+ expect(MySample.hi("english")).to eq "hello world"
6
+ end
7
+
8
+ it "should say hello world in any language" do
9
+ expect(MySample.hi("ruby")).to eq "hello world"
10
+ end
11
+
12
+ it "should say hello world in spanish" do
13
+ expect(MySample.hi("spanish")).to eq "hola mundo"
14
+ end
15
+ end
@@ -0,0 +1,6 @@
1
+ require 'rspec'
2
+ require 'mysample'
3
+
4
+ RSpec.configure do |config|
5
+
6
+ end
@@ -0,0 +1,16 @@
1
+ require 'test/unit'
2
+ require 'mysample'
3
+
4
+ class MySampleTest < Test::Unit::TestCase
5
+ def test_english_hello
6
+ assert_equal "hello world", MySample.hi("english")
7
+ end
8
+
9
+ def test_any_hello
10
+ assert_equal "hello world", MySample.hi("ruby")
11
+ end
12
+
13
+ def test_spanish_hello
14
+ assert_equal "hola mundo", MySample.hi("spanish")
15
+ end
16
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mysample
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
  - Andy Wong
@@ -9,7 +9,21 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2010-04-28 00:00:00.000000000 Z
12
- dependencies: []
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rspec
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '2.5'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '2.5'
13
27
  description: A simple hello world gem
14
28
  email: awong.cm@hotmail.com
15
29
  executables:
@@ -20,6 +34,9 @@ files:
20
34
  - bin/mysample
21
35
  - lib/mysample.rb
22
36
  - lib/mysample/translator.rb
37
+ - spec/mysample_spec.rb
38
+ - spec/spec_helper.rb
39
+ - test/test_mysample.rb
23
40
  homepage: http://rubygems.org/gems/mysample
24
41
  licenses:
25
42
  - MIT
@@ -44,4 +61,7 @@ rubygems_version: 2.4.1
44
61
  signing_key:
45
62
  specification_version: 4
46
63
  summary: My Sample
47
- test_files: []
64
+ test_files:
65
+ - spec/mysample_spec.rb
66
+ - spec/spec_helper.rb
67
+ - test/test_mysample.rb