rspec-nc 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/nc.rb +1 -2
  3. data/rspec-nc.gemspec +1 -1
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0b1796d62f6c54875750b5e0be927291392b0d3a
4
- data.tar.gz: 44a512f7a0a22131af968a1e478a5c35e8aa7217
3
+ metadata.gz: a2b8f93c83bbd95fcf6ee2f1733e04b4d1d16ef3
4
+ data.tar.gz: 0cd2bc1e3dfaea772e799a6ed05c1b1d4922d9d4
5
5
  SHA512:
6
- metadata.gz: f78e9cbec54f20211bf9533e5958e1bb314046fd4d950d439675a6274d7a922ca160c1773a92bc311ff2151e110ec3d424efff6004404ac46eca2deea4daaced
7
- data.tar.gz: 734c11e4e6352af74e1be6fdf2402ee7e163a9c56f00bf4fc011d905e2f374a9be98a5806120170f8af4801c2cf7875d6813ffef096b822566a5f8f1a97ec6ab
6
+ metadata.gz: b1ab0cffb3b17e0067df6414cd75f066492f72a05e6f44b26eda48a7edffdf1c07e3460aecd506b027e9a0f66b422f42bffacd5747ea6c2e993c4ab41173b0cf
7
+ data.tar.gz: da5a61732c2c259d1b983f648837ab615159f9e1b9ac7f78b8bb8c7f83559588f1463adc9149a580f6ac3d06ec915f9b28f1bccbac0982002585a57b29c2ea4c
data/lib/nc.rb CHANGED
@@ -2,7 +2,6 @@ require 'rspec/core/formatters/base_text_formatter'
2
2
  require 'terminal-notifier'
3
3
 
4
4
  class Nc < RSpec::Core::Formatters::BaseTextFormatter
5
-
6
5
  def self.rspec_3?
7
6
  RSpec::Core::Version::STRING.split('.').first == "3"
8
7
  end
@@ -51,7 +50,7 @@ class Nc < RSpec::Core::Formatters::BaseTextFormatter
51
50
  if respond_to? :format_duration
52
51
  format_duration duration
53
52
  else
54
- require 'rspec/core/formatters/helpers'
53
+ require 'rspec/core/formatters/helpers' unless Object.const_defined?('RSpec')
55
54
  RSpec::Core::Formatters::Helpers.format_duration duration
56
55
  end
57
56
  end
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  Gem::Specification.new do |gem|
3
3
  gem.name = 'rspec-nc'
4
- gem.version = '0.2.0'
4
+ gem.version = '0.2.1'
5
5
  gem.authors = ['Odin Dutton']
6
6
  gem.email = ['odindutton@gmail.com']
7
7
  gem.description = 'https://github.com/twe4ked/rspec-nc'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-nc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Odin Dutton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-10 00:00:00.000000000 Z
11
+ date: 2015-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: terminal-notifier
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  version: '0'
109
109
  requirements: []
110
110
  rubyforge_project:
111
- rubygems_version: 2.2.2
111
+ rubygems_version: 2.4.5
112
112
  signing_key:
113
113
  specification_version: 4
114
114
  summary: RSpec formatter for Mountain Lion's Notification Center