infinity2008 1.0.5 → 1.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/Gemfile +4 -0
- data/README.md +1 -1
- data/infinity2008.gemspec +1 -1
- data/spec/integration_spec.rb +17 -7
- data/spec/spec_helper.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a2edb22f8b93b09e3b78f55f7fd023f39656841
|
4
|
+
data.tar.gz: d0c3fc04bfd01511d946e074de55f5eb531a4b5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5efb7225f933073102994445bfa68c54cb5fc58b6aabb94e0d181806adb08aeb163c659772f35c5e5cdb0bf27a89f5a9449c3a255981cc413f1ac2057060e3b2
|
7
|
+
data.tar.gz: f0459a9b8238a37a847c06cc8d3445b5231165ad6def91cf11c4ba34610bdc2d9cbdc60037da653acca53b3f290ac07201e4c9d1222b589bc39e2f6688292a45
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
[](https://travis-ci.org/unleashed/infinity2008)
|
1
|
+
[](https://travis-ci.org/unleashed/infinity2008) [](https://codeclimate.com/github/unleashed/infinity2008) [](https://codeclimate.com/github/unleashed/infinity2008)
|
2
2
|
|
3
3
|
# The Infinity 2008 (Klaas Vocal Edit) gem
|
4
4
|
|
data/infinity2008.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'infinity2008'
|
7
|
-
spec.version = '1.0.
|
7
|
+
spec.version = '1.0.6'
|
8
8
|
spec.authors = ["Alejandro Martinez Ruiz"]
|
9
9
|
spec.email = ['alex@flawedcode.org']
|
10
10
|
spec.description = %q{This gem makes Ruby sing along with you the Guru Project's Infinity 2008 (Klaas Vocal Edit) hit}
|
data/spec/integration_spec.rb
CHANGED
@@ -4,14 +4,24 @@ module Infinity2008
|
|
4
4
|
let(:you) { You }
|
5
5
|
let(:duration) { Song::Duration }
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
7
|
+
context Song do
|
8
|
+
describe '.sing' do
|
9
|
+
it 'will take time' do
|
10
|
+
slept = 0
|
11
|
+
allow_any_instance_of(Kernel).to receive(:sleep) do |_, secs|
|
12
|
+
slept += secs
|
13
|
+
secs
|
14
|
+
end
|
15
|
+
Song.sing
|
16
|
+
expect(slept).to be >= duration
|
17
|
+
end
|
18
|
+
|
19
|
+
it 'writes to standard output' do
|
20
|
+
allow_any_instance_of(Kernel).to receive(:sleep)
|
21
|
+
expect($stdout).to receive(:puts).at_least(:once)
|
22
|
+
Song.sing
|
23
|
+
end
|
12
24
|
end
|
13
|
-
me.new.infinity(you.new)
|
14
|
-
expect(slept).to be >= duration
|
15
25
|
end
|
16
26
|
|
17
27
|
context You do
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: infinity2008
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alejandro Martinez Ruiz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|