rspec-console 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODAxMGE2NGIwNTc1ZTEyMzA3ZmRiMzJiMDAzYTYyMjIxMjJmOGRkOQ==
4
+ MmI3OTg2MGJkMDMzMzdmNDI5ZWMyMjQ3ZmQ3MDI5NGFiZDJhNzY3Nw==
5
5
  data.tar.gz: !binary |-
6
- NGM2M2I0Mjc3NDI0NTVhZjg0NzYxZWQ5NjIyOGY2YzBiNjNlM2U2MA==
6
+ NjllZmEwODgxZDlmMWJjNTc0MzcyYzAzYzM2NTc0MWQ4YzU0MmVkYQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MzUyMjNiN2Y0OWQ5MGRiMWYwZDBhYWFiYWJlYjRhNWI3OGE5ZGQ2MDU5NGQ2
10
- NmJmNWYzNjMxNDdlOTQ0NGU1YzQ1OTNlZjc5NTliZGE3ZjI4NWQ1OTU2NmFm
11
- MjVlMjllZjUxY2VhMGU2MTY5ZDZhNTEwMGJmMDdhNGYxMzI0ODY=
9
+ ZDVjNzQyMmZkYTM5MGI3YTMxZGJmZDVlOWRhYzg2OTEwMjhmOWIwMjVjOWU1
10
+ NjcyN2RlYTU1MmMzODAyNjRhYTI3MmE1OGJjMzc5YjhiNmEzMGE4OTA1OWIz
11
+ ZGExYzYzODkwNGZiZjI3NWQ0ODE5MzEzZjE0NTEzNjEzNGU3ZGQ=
12
12
  data.tar.gz: !binary |-
13
- MWQ4MWJiYTlmMzBlYjFiMTk4ZmMzNDRkZWVjMDc0YzQxODA3ODBhMDM0MjE1
14
- MDE5M2VlNDdlOGE2YWFkNzIwNDg2NTRjNDRiZjkyNTk4ZjI1ZTA0MTMyOThj
15
- NTQ4MGFlMGQxMTljN2RjZTA4YjFhMjQxZGQ3OWEyNThlYzM2Zjc=
13
+ Yjk1Mjc1YzNiZTVkMTlhODg0MWE2OWFiY2ZmMzU0ZTMwNzJiM2I0M2U3ZmFi
14
+ NzQzNmE1ZmJjMjk4NzZkYWNlYjhhMjY4NDVhZTU2ZTQyZDc1MDJmMmUzZWQ2
15
+ NDdmOTQ1ZjdkY2QyMGI1MTQ5NDgxNTM0MjcwNDM1OTZiMmI2ODA=
@@ -20,12 +20,17 @@ class RSpecConsole::Runner
20
20
  end
21
21
  end
22
22
 
23
- def self.run(args)
24
- require 'rails-env-switcher'
23
+ def self._run(args)
24
+ reset(args)
25
+ ::RSpec::Core::CommandLine.new(args).run(STDERR, STDOUT)
26
+ end
25
27
 
26
- RailsEnvSwitcher.with_env('test', :reload => true) do
27
- reset(args)
28
- ::RSpec::Core::CommandLine.new(args).run(STDERR, STDOUT)
28
+ def self.run(args)
29
+ if defined?(Rails)
30
+ require 'rails-env-switcher'
31
+ RailsEnvSwitcher.with_env('test', :reload => true) { _run(args) }
32
+ else
33
+ _run(args)
29
34
  end
30
35
  end
31
36
 
@@ -1,3 +1,3 @@
1
1
  module RSpecConsole
2
- VERSION = '0.2.6'
2
+ VERSION = '0.2.7'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-console
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas Viennot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-11 00:00:00.000000000 Z
11
+ date: 2013-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  type: :runtime
@@ -47,8 +47,8 @@ extra_rdoc_files: []
47
47
  files:
48
48
  - lib/rspec-console.rb
49
49
  - lib/rspec-console/pry.rb
50
- - lib/rspec-console/runner.rb
51
50
  - lib/rspec-console/config_cache.rb
51
+ - lib/rspec-console/runner.rb
52
52
  - lib/rspec-console/version.rb
53
53
  - README.md
54
54
  homepage: http://github.com/nviennot/rspec-console