rspec-console 0.2.5 → 0.2.6

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
- ZWU5MDVkMzNhM2I0Mjg4ZWQ1NzczMTI1NGE0NDIxNmJmOTc5ZmViMA==
4
+ ODAxMGE2NGIwNTc1ZTEyMzA3ZmRiMzJiMDAzYTYyMjIxMjJmOGRkOQ==
5
5
  data.tar.gz: !binary |-
6
- MTgwNDAxMWFkZjU5OTUxZDhiZTA3ZGNmOTA1YTZiNDUxMjY4MDcyYg==
6
+ NGM2M2I0Mjc3NDI0NTVhZjg0NzYxZWQ5NjIyOGY2YzBiNjNlM2U2MA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZjZlNTZmZDU0NTY4Yzk2ZGFmYWE5N2FhMDk1ZmMxOGExOWVhMTEzYmQ3Mjg3
10
- ODcxOTRlMWI0YTMxY2E1ZjQ4MWVhYTMyZDE4MWJkZTRiYTZkZDBjODM0Nzk2
11
- OWM3MTk3OTFlNGM4MmNjNDk1YjgxZTA1MzE2ZDg3NmEwYTM0OWI=
9
+ MzUyMjNiN2Y0OWQ5MGRiMWYwZDBhYWFiYWJlYjRhNWI3OGE5ZGQ2MDU5NGQ2
10
+ NmJmNWYzNjMxNDdlOTQ0NGU1YzQ1OTNlZjc5NTliZGE3ZjI4NWQ1OTU2NmFm
11
+ MjVlMjllZjUxY2VhMGU2MTY5ZDZhNTEwMGJmMDdhNGYxMzI0ODY=
12
12
  data.tar.gz: !binary |-
13
- NmU4OGYxMjU4YmQ4Mjk5MzZjNDAyMTRiMDg5OWI3OTJkODU1ZjZlOTk2ZGE0
14
- MWRlNGRkNjA5ZjJkYzk3YjMxODBmOGE4NzEwYWJlYjExZjVlOWU1NWFiZDIz
15
- NDgxNGEwY2JlNmI2NDVhYjg4ZGE3MzhlOTE2NWViOGQ5NzUyMGU=
13
+ MWQ4MWJiYTlmMzBlYjFiMTk4ZmMzNDRkZWVjMDc0YzQxODA3ODBhMDM0MjE1
14
+ MDE5M2VlNDdlOGE2YWFkNzIwNDg2NTRjNDRiZjkyNTk4ZjI1ZTA0MTMyOThj
15
+ NTQ4MGFlMGQxMTljN2RjZTA4YjFhMjQxZGQ3OWEyNThlYzM2Zjc=
@@ -50,7 +50,7 @@ class RSpecConsole::ConfigCache
50
50
  # Well, instead of copying them, we redirect them to the configuration
51
51
  # proxy. Looks like it good enough.
52
52
  proxy = self.proxy
53
- ::RSpec.configuration.singleton_class.send :define_method, :method_missing, lambda do |method, *args, &block|
53
+ ::RSpec.configuration.singleton_class.send(:define_method, :method_missing) do |method, *args, &block|
54
54
  proxy.send(method, *args, &block)
55
55
  end
56
56
 
@@ -69,3 +69,14 @@ class Proxy < Struct.new(:output, :target)
69
69
  self.target.send(method, *args, &block)
70
70
  end
71
71
  end
72
+
73
+ # For compatibility with Ruby 1.8.x outside of the Rails framework
74
+ if RUBY_VERSION =~ /1.8/
75
+ unless defined?(Rails)
76
+ class Object
77
+ def singleton_class
78
+ class << self; self; end
79
+ end
80
+ end
81
+ end
82
+ end
@@ -1,3 +1,3 @@
1
1
  module RSpecConsole
2
- VERSION = '0.2.5'
2
+ VERSION = '0.2.6'
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.5
4
+ version: 0.2.6
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-10-18 00:00:00.000000000 Z
11
+ date: 2013-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  type: :runtime
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - ! '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ type: :development
29
+ prerelease: false
30
+ name: rspec
31
+ requirement: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - ! '>='
34
+ - !ruby/object:Gem::Version
35
+ version: '0'
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  description: Run RSpec tests in your console
28
42
  email:
29
43
  - nicolas@viennot.biz