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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9f76d6d1e60ea5d8d98ac66ee10d89aaa1a88378
4
- data.tar.gz: 1ea031a6a855e3e7b714f54f2fb039ea73184005
3
+ metadata.gz: 4a2edb22f8b93b09e3b78f55f7fd023f39656841
4
+ data.tar.gz: d0c3fc04bfd01511d946e074de55f5eb531a4b5c
5
5
  SHA512:
6
- metadata.gz: bd25870ab6e6a0d6d03c47e27a7d43fff5886b2df4af0b05c8411bbede30ee24faa66fd5658552ee785e198c8adf825b87fb47fbe8c2d3e4476fa8266447de49
7
- data.tar.gz: c9066f551abb39c16ddd1bf60ffe41f6e4cbf6e01ba21ceed6546b0baef73bb7797388d440ecef80ceb50c06768dca92c8813fbe9a193058e6059b3cc9416e09
6
+ metadata.gz: 5efb7225f933073102994445bfa68c54cb5fc58b6aabb94e0d181806adb08aeb163c659772f35c5e5cdb0bf27a89f5a9449c3a255981cc413f1ac2057060e3b2
7
+ data.tar.gz: f0459a9b8238a37a847c06cc8d3445b5231165ad6def91cf11c4ba34610bdc2d9cbdc60037da653acca53b3f290ac07201e4c9d1222b589bc39e2f6688292a45
data/Gemfile CHANGED
@@ -2,3 +2,7 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in infinity2008.gemspec
4
4
  gemspec
5
+
6
+ group :test do
7
+ gem "codeclimate-test-reporter", require: nil
8
+ end
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![Build Status](https://travis-ci.org/unleashed/infinity2008.svg?branch=master)](https://travis-ci.org/unleashed/infinity2008)
1
+ [![Build Status](https://travis-ci.org/unleashed/infinity2008.svg?branch=master)](https://travis-ci.org/unleashed/infinity2008) [![Code Climate](https://codeclimate.com/github/unleashed/infinity2008/badges/gpa.svg)](https://codeclimate.com/github/unleashed/infinity2008) [![Test Coverage](https://codeclimate.com/github/unleashed/infinity2008/badges/coverage.svg)](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.5'
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}
@@ -4,14 +4,24 @@ module Infinity2008
4
4
  let(:you) { You }
5
5
  let(:duration) { Song::Duration }
6
6
 
7
- it 'will take time' do
8
- slept = 0
9
- allow_any_instance_of(Kernel).to receive(:sleep) do |_, secs|
10
- slept += secs
11
- secs
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
@@ -1,3 +1,7 @@
1
+ #require "codeclimate-test-reporter"
2
+ #CodeClimate::TestReporter.start
3
+ require 'simplecov'
4
+ SimpleCov.start
1
5
  $LOAD_PATH << File.expand_path('../lib', __FILE__)
2
6
 
3
7
  # This file was generated by the `rspec --init` command. Conventionally, all
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.5
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-08-11 00:00:00.000000000 Z
11
+ date: 2014-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler