rspec-given 1.5.0 → 1.5.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.5.0.
3
+ Covering rspec-given, version 1.5.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
data/Rakefile CHANGED
@@ -21,15 +21,27 @@ desc "Run all the examples"
21
21
  task :examples => [:examples1, :examples2]
22
22
 
23
23
  desc "Run the examples in RSpec 1"
24
- task :examples1 do
24
+ task :examples1 => [:verify_rspec1] do
25
25
  sh "spec examples/stack/stack_spec1.rb"
26
26
  end
27
27
 
28
28
  desc "Run the examples in RSpec 2"
29
- task :examples2 do
29
+ task :examples2 => [:verify_rspec2] do
30
30
  sh "rspec examples"
31
31
  end
32
32
 
33
+ task :verify_rspec1 do
34
+ sh "type spec >/dev/null 2>&1", verbose: false do |status|
35
+ fail "You need to install RSpec 1 in order to test agains it." unless status
36
+ end
37
+ end
38
+
39
+ task :verify_rspec2 do
40
+ sh "type rspec >/dev/null 2>&1", verbose: false do |status|
41
+ fail "You need to install RSpec 2 in order to test agains it." unless status
42
+ end
43
+ end
44
+
33
45
  # Formatting the README ----------------------------------------------
34
46
 
35
47
  directory 'html'
@@ -1,3 +1,4 @@
1
+ require 'rspec'
1
2
  require 'rspec/given/extensions'
2
3
 
3
4
  RSpec.configure do |c|
@@ -3,7 +3,7 @@ module RSpec
3
3
  VERSION_NUMBERS = [
4
4
  VERSION_MAJOR = 1,
5
5
  VERSION_MINOR = 5,
6
- VERSION_BUILD = 0,
6
+ VERSION_BUILD = 1,
7
7
  ]
8
8
  VERSION = VERSION_NUMBERS.join(".")
9
9
  end
metadata CHANGED
@@ -1,62 +1,59 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rspec-given
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.5.1
4
5
  prerelease:
5
- version: 1.5.0
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Jim Weirich
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2012-06-08 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
12
+ date: 2012-08-24 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
16
15
  name: rspec
17
- prerelease: false
18
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &70280441873660 !ruby/object:Gem::Requirement
19
17
  none: false
20
- requirements:
21
- - - ">"
22
- - !ruby/object:Gem::Version
18
+ requirements:
19
+ - - ! '>'
20
+ - !ruby/object:Gem::Version
23
21
  version: 1.2.8
24
22
  type: :runtime
25
- version_requirements: *id001
26
- - !ruby/object:Gem::Dependency
27
- name: bluecloth
28
23
  prerelease: false
29
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *70280441873660
25
+ - !ruby/object:Gem::Dependency
26
+ name: bluecloth
27
+ requirement: &70280441873280 !ruby/object:Gem::Requirement
30
28
  none: false
31
- requirements:
32
- - - ">="
33
- - !ruby/object:Gem::Version
34
- version: "0"
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
35
33
  type: :development
36
- version_requirements: *id002
37
- - !ruby/object:Gem::Dependency
38
- name: rdoc
39
34
  prerelease: false
40
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *70280441873280
36
+ - !ruby/object:Gem::Dependency
37
+ name: rdoc
38
+ requirement: &70280441872640 !ruby/object:Gem::Requirement
41
39
  none: false
42
- requirements:
43
- - - ">"
44
- - !ruby/object:Gem::Version
40
+ requirements:
41
+ - - ! '>'
42
+ - !ruby/object:Gem::Version
45
43
  version: 2.4.2
46
44
  type: :development
47
- version_requirements: *id003
48
- description: |
49
- Given is an RSpec extension that allows explicit definition of the
45
+ prerelease: false
46
+ version_requirements: *70280441872640
47
+ description: ! 'Given is an RSpec extension that allows explicit definition of the
48
+
50
49
  pre and post-conditions for code under test.
51
50
 
51
+ '
52
52
  email: jim.weirich@gmail.com
53
53
  executables: []
54
-
55
54
  extensions: []
56
-
57
55
  extra_rdoc_files: []
58
-
59
- files:
56
+ files:
60
57
  - MIT-LICENSE
61
58
  - Rakefile
62
59
  - README.md
@@ -72,35 +69,32 @@ files:
72
69
  - examples/stack/stack_spec1.rb
73
70
  homepage: http://github.com/jimweirich/rspec-given
74
71
  licenses: []
75
-
76
72
  post_install_message:
77
- rdoc_options:
73
+ rdoc_options:
78
74
  - --line-numbers
79
75
  - --inline-source
80
76
  - --main
81
77
  - README.md
82
78
  - --title
83
79
  - RSpec Given Extensions
84
- require_paths:
80
+ require_paths:
85
81
  - lib
86
- required_ruby_version: !ruby/object:Gem::Requirement
82
+ required_ruby_version: !ruby/object:Gem::Requirement
87
83
  none: false
88
- requirements:
89
- - - ">="
90
- - !ruby/object:Gem::Version
91
- version: "0"
92
- required_rubygems_version: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
88
+ required_rubygems_version: !ruby/object:Gem::Requirement
93
89
  none: false
94
- requirements:
95
- - - ">="
96
- - !ruby/object:Gem::Version
97
- version: "0"
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
98
94
  requirements: []
99
-
100
95
  rubyforge_project: given
101
96
  rubygems_version: 1.8.15
102
97
  signing_key:
103
98
  specification_version: 3
104
99
  summary: Given/When/Then Specification Extensions for RSpec.
105
100
  test_files: []
106
-