flowaker 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a9ba75e558eb589781233a8b76a6b4433706d78a
4
- data.tar.gz: 9471bab643421d19d3c4d1cfc6395c4c256033c9
3
+ metadata.gz: 7496142881789e8768869ca9d0a222ae626b1923
4
+ data.tar.gz: 2ca64617f93a2bd510bb539489440054be9a0a70
5
5
  SHA512:
6
- metadata.gz: 50f1c02eabd52f759086771cff0e5b29bb08ae6ad3151ce81eef7a182615e0d3c73631e274785473c4d224381c760269efef7728be4ab1c7a072206db5d54557
7
- data.tar.gz: c4596a1e2bc9517aa34b6dbafd4a41f542e594cac5cebf08386031a558122949f646962181f2f46d206abf5075db92ccda4e7a380a7135f79832f5ac3450b143
6
+ metadata.gz: 154613ca8cbc27805476bbb6eec29e65de3b34ff21372e75b54c4fbdb571cea11701ca09a80cdacfee928d2fa4ef31d69e17e0d4e454fbd9141a3caaa9db0d92
7
+ data.tar.gz: 858a6d4f2c626663d4f641761b390faf708ccf8465dd6cb0aa6a2a09bb19baf3a77af89f187837ea898243c5cf5e104e2b3b4a7fd18d41c1035741270f31227b
data/README.md CHANGED
@@ -10,7 +10,7 @@ Only RSpec is currently supported. Feel free to add support of additional testin
10
10
 
11
11
  Add this line to your application's Gemfile:
12
12
 
13
- gem 'flowaker'
13
+ gem 'flowaker', require: false
14
14
 
15
15
  And then execute:
16
16
 
@@ -22,7 +22,7 @@ Or install it yourself as:
22
22
 
23
23
  Finally, in your spec helper, add:
24
24
 
25
- require 'flowaker/rspec'
25
+ require 'flowaker'
26
26
 
27
27
  ## Usage
28
28
 
@@ -1,3 +1,5 @@
1
+ require 'delegate'
2
+
1
3
  module Flowaker
2
4
  module RSpec
3
5
  def self.included(base)
@@ -8,14 +10,21 @@ module Flowaker
8
10
 
9
11
  def step(description, &block)
10
12
  yield
11
- reporter.example_passed StepExample.new(description)
13
+ reporter.example_passed ::Flowaker::Example.new(description, example)
12
14
  end
13
15
 
14
16
  def reporter
15
17
  ::RSpec.configuration.reporter
16
18
  end
19
+ end
20
+
21
+ class Example < SimpleDelegator
22
+ def initialize(description, example)
23
+ @description = description
24
+ super(example)
25
+ end
17
26
 
18
- class StepExample < Struct.new(:description); end
27
+ attr_reader :description
19
28
  end
20
29
  end
21
30
 
@@ -1,3 +1,3 @@
1
1
  module Flowaker
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flowaker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Evans
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-03 00:00:00.000000000 Z
11
+ date: 2014-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler