rspec-console 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MDFmNGZjYWY1NjQyYjNjZDcwZDg0NzIyOTA1ZjNkMmQ2ZWY5ZGRjYg==
5
- data.tar.gz: !binary |-
6
- OGIxYjNjMTRmYzFiYTIzM2VkMWQ3YmVjMDkwNjFhMWM1N2JmNTQyMA==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- OGM4YThkNzM4MzEwZWFiZmNkMDY5Y2IwODk4YjIyMTViMDQ1NzJhM2JjMTY3
10
- MjVlZjc3ODgxMDdlOGJhMDFkMDQzNjViNmUzZjNlYjk2ZjM0MGJmZTU1OWEz
11
- ZmFhZWI2NDdiNDUzY2M1MzcxMWNjZTc2NDFjNmRiMTFjOWU4NjU=
12
- data.tar.gz: !binary |-
13
- OTI0MDVmYzFlNmIwNGRkMTNiODdlYmY1NzI2NDViNGUzNDg0OWYyYjNlYzQx
14
- MmYxNzFlYzIyMzU2NmRhZGQwZmZjMjg2MTk2ODZiMzM4MmZiMDhjMzk2NGI4
15
- YTYwZTcyYjdlZDYxZmUwODk3NGRhY2M4MzEyYjJlMDExOTdmM2U=
2
+ SHA1:
3
+ metadata.gz: d12f7c2b1c0fec845fc4e41a1b07a5b6bd2ead79
4
+ data.tar.gz: 583911a0f4b36914b4f1e24fc65d80599779e7fe
5
+ SHA512:
6
+ metadata.gz: a6e63ffee2c34de6ad16f090abffda05ec9960e3668fbeda6f0d1b7cd26813ff522f4d202142fedcd28f445666cd920e0f444ec52f34a91333d88186ee54454d
7
+ data.tar.gz: 1988994b3dc557eb4c0a32710498c67e7865a846d6fac832cbd057ad4001c6be0b76218ae396406db6694a47a5afc9c8b246ac49df5a5e82599325febc5b8158
data/README.md CHANGED
@@ -26,12 +26,12 @@ Rails.application.configure do
26
26
  # turn off this!
27
27
  conig.cache_classes = false
28
28
  end
29
+ ```
29
30
 
30
31
  ### 3) Launch your console
31
32
 
32
- With Rails, launch your console with `rails c test.
33
+ With Rails, launch your console with `rails c test`.
33
34
 
34
- ```
35
35
  ### 4) Launch your tests
36
36
 
37
37
  If you have [Pry](https://github.com/pry/pry) installed, you will have access to the `rspec` command
@@ -14,17 +14,27 @@ class RSpecConsole::Runner
14
14
  config_cache.cache do
15
15
  ::RSpec.configure do |config|
16
16
  config.output_stream = STDOUT
17
- config.color_enabled = true
17
+ config.color_enabled = true if config.respond_to?(:color_enabled=)
18
+ config.color = true if config.respond_to?(:color=)
18
19
  end
19
20
 
20
- require "./spec/spec_helper"
21
+ $LOAD_PATH << './spec'
22
+ require "spec_helper"
23
+ begin
24
+ require "rails_helper"
25
+ rescue LoadError
26
+ end
21
27
  end
22
28
  end
23
29
 
24
30
  def run(args)
25
31
  RSpecConsole.hooks.each(&:call)
26
32
  reset(args)
27
- ::RSpec::Core::CommandLine.new(args).run(STDERR, STDOUT)
33
+ if defined?(::RSpec::Core::CommandLine)
34
+ ::RSpec::Core::CommandLine.new(args).run(STDERR, STDOUT)
35
+ else
36
+ ::RSpec::Core::Runner.run(args, STDERR, STDOUT)
37
+ end
28
38
  end
29
39
 
30
40
  def config_cache
@@ -1,3 +1,3 @@
1
1
  module RSpecConsole
2
- VERSION = '0.3.0'
2
+ VERSION = '0.4.0'
3
3
  end
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-console
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas Viennot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-20 00:00:00.000000000 Z
11
+ date: 2014-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- type: :runtime
15
- prerelease: false
16
14
  name: bond
17
15
  requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- type: :development
29
- prerelease: false
30
28
  name: rspec
31
29
  requirement: !ruby/object:Gem::Requirement
32
30
  requirements:
33
- - - ! '>='
31
+ - - ">="
34
32
  - !ruby/object:Gem::Version
35
33
  version: '0'
34
+ type: :development
35
+ prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ! '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  description: Run RSpec tests in your console
@@ -45,12 +45,12 @@ executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
+ - README.md
49
+ - lib/rspec-console.rb
48
50
  - lib/rspec-console/config_cache.rb
49
51
  - lib/rspec-console/pry.rb
50
52
  - lib/rspec-console/runner.rb
51
53
  - lib/rspec-console/version.rb
52
- - lib/rspec-console.rb
53
- - README.md
54
54
  homepage: http://github.com/nviennot/rspec-console
55
55
  licenses: []
56
56
  metadata: {}
@@ -60,17 +60,17 @@ require_paths:
60
60
  - lib
61
61
  required_ruby_version: !ruby/object:Gem::Requirement
62
62
  requirements:
63
- - - ! '>='
63
+ - - ">="
64
64
  - !ruby/object:Gem::Version
65
65
  version: '0'
66
66
  required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
- - - ! '>='
68
+ - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
72
  rubyforge_project:
73
- rubygems_version: 2.0.7
73
+ rubygems_version: 2.2.2
74
74
  signing_key:
75
75
  specification_version: 4
76
76
  summary: Run RSpec tests in your console