riot 0.11.4.pre → 0.11.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +4 -2
- data/VERSION +1 -1
- data/lib/riot/context.rb +1 -1
- data/lib/riot/runnable.rb +1 -1
- data/riot.gemspec +3 -3
- metadata +6 -9
data/CHANGELOG
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
-
*0.11.4
|
1
|
+
*0.11.4*
|
2
2
|
|
3
|
-
*
|
3
|
+
* Passing Proc's instead of lambdas to `instance_eval` to comply with ruby 1.9.2. [skade]
|
4
|
+
|
5
|
+
* Added `describe` alias for `context` for easier rspec porting. Useful at the top level and within a context. [nu7hatch]
|
4
6
|
|
5
7
|
Who can argue with porting from rspec to riot? Not me. [jaknowlden]
|
6
8
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.11.4
|
1
|
+
0.11.4
|
data/lib/riot/context.rb
CHANGED
@@ -210,7 +210,7 @@ module Riot
|
|
210
210
|
|
211
211
|
def new_assertion(scope, what, &definition)
|
212
212
|
if what.kind_of?(Symbol)
|
213
|
-
definition ||=
|
213
|
+
definition ||= proc { topic.send(what) }
|
214
214
|
description = "#{scope} ##{what}"
|
215
215
|
else
|
216
216
|
description = "#{scope} #{what}"
|
data/lib/riot/runnable.rb
CHANGED
@@ -2,7 +2,7 @@ module Riot
|
|
2
2
|
class RunnableBlock
|
3
3
|
attr_reader :definition
|
4
4
|
def initialize(description, &definition)
|
5
|
-
@description, @definition = description, definition ||
|
5
|
+
@description, @definition = description, definition || proc { false }
|
6
6
|
end
|
7
7
|
|
8
8
|
def to_s; @description; end
|
data/riot.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{riot}
|
8
|
-
s.version = "0.11.4
|
8
|
+
s.version = "0.11.4"
|
9
9
|
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new("
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Justin 'Gus' Knowlden"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-09-06}
|
13
13
|
s.description = %q{An extremely fast, expressive, and context-driven unit-testing framework. A replacement for all other testing frameworks. Protest the slow test.}
|
14
14
|
s.email = %q{gus@gusg.us}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: riot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
4
|
+
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 11
|
8
8
|
- 4
|
9
|
-
|
10
|
-
version: 0.11.4.pre
|
9
|
+
version: 0.11.4
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Justin 'Gus' Knowlden
|
@@ -15,7 +14,7 @@ autorequire:
|
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date: 2010-
|
17
|
+
date: 2010-09-06 00:00:00 -05:00
|
19
18
|
default_executable:
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
@@ -136,13 +135,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
136
135
|
version: "0"
|
137
136
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
138
137
|
requirements:
|
139
|
-
- - "
|
138
|
+
- - ">="
|
140
139
|
- !ruby/object:Gem::Version
|
141
140
|
segments:
|
142
|
-
-
|
143
|
-
|
144
|
-
- 1
|
145
|
-
version: 1.3.1
|
141
|
+
- 0
|
142
|
+
version: "0"
|
146
143
|
requirements: []
|
147
144
|
|
148
145
|
rubyforge_project:
|