rspec-given 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # rspec-given
2
2
 
3
- Covering rspec-given, version 1.4.0.
3
+ Covering rspec-given, version 1.4.1.
4
4
 
5
5
  rspec-given is an RSpec extension to allow Given/When/Then notation in
6
6
  RSpec specifications. It is a natural extension of the experimental
@@ -1,4 +1,13 @@
1
- if defined? Spec
1
+ module RSpec
2
+ module Given
3
+ def self.using_old_rspec?
4
+ defined?(Spec::VERSION::SUMMARY) &&
5
+ Spec::VERSION::SUMMARY =~ /^rspec +1\./
6
+ end
7
+ end
8
+ end
9
+
10
+ if RSpec::Given.using_old_rspec?
2
11
  require 'rspec/given/rspec1_given'
3
12
  else
4
13
  require 'rspec/given/version'
@@ -3,7 +3,7 @@ module RSpec
3
3
  VERSION_NUMBERS = [
4
4
  VERSION_MAJOR = 1,
5
5
  VERSION_MINOR = 4,
6
- VERSION_BUILD = 0,
6
+ VERSION_BUILD = 1,
7
7
  ]
8
8
  VERSION = VERSION_NUMBERS.join(".")
9
9
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rspec-given
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.4.0
5
+ version: 1.4.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jim Weirich
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-06-05 00:00:00 Z
13
+ date: 2011-11-21 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec
@@ -97,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  requirements: []
98
98
 
99
99
  rubyforge_project: given
100
- rubygems_version: 1.8.3
100
+ rubygems_version: 1.8.11
101
101
  signing_key:
102
102
  specification_version: 3
103
103
  summary: Given/When/Then Specification Extensions for RSpec.