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 +1 -1
- data/Rakefile +14 -2
- data/lib/rspec/given/configure.rb +1 -0
- data/lib/rspec/given/version.rb +1 -1
- metadata +44 -50
data/README.md
CHANGED
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'
|
data/lib/rspec/given/version.rb
CHANGED
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
|
-
|
14
|
-
|
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
|
-
|
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
|
-
|
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:
|
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
|
-
|
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
|
-
|
48
|
-
|
49
|
-
|
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:
|
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:
|
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
|
-
|