seeing_is_believing 3.1.0 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/Rakefile +13 -6
- data/features/regression.feature +5 -6
- data/lib/seeing_is_believing/event_stream/consumer.rb +9 -1
- data/lib/seeing_is_believing/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee80ef63960aa8529058bcc47ecfa53e1eb80443
|
4
|
+
data.tar.gz: 8194f95036da74d4aa45e968e774211cb5f2169b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f45e44395230ffd260610ce06a9f4bb9ffea63b006bc76b701432cf47c1c73b10cc35c6bdb1d61938861b5e6f5215986b082a944d986dc3ee888304c9dab16f6
|
7
|
+
data.tar.gz: aed2c640442c6cf6a2c84e863fe1dce8a0713a6e87f431a4dba52cd07d5170265454674704662c1e4911e8bcbf265a2b99e749923cc6a47566d850832dd0b258
|
data/.travis.yml
CHANGED
data/Rakefile
CHANGED
@@ -27,21 +27,28 @@ directory 'bundle' do
|
|
27
27
|
exit 1
|
28
28
|
end
|
29
29
|
|
30
|
+
def require_paths
|
31
|
+
require 'bundler'
|
32
|
+
requrable_paths = Bundler.load.specs.flat_map { |spec|
|
33
|
+
spec.require_paths.map do |path|
|
34
|
+
File.join(spec.full_gem_path, path)
|
35
|
+
end
|
36
|
+
}.flat_map { |p| ['-I', p ] }
|
37
|
+
end
|
38
|
+
|
30
39
|
desc 'Run specs'
|
31
40
|
task spec: :bundle do
|
32
|
-
|
33
|
-
sh 'ruby', '--disable-gem',
|
34
|
-
*Bundler.load.specs.flat_map(&:full_require_paths).flat_map { |p| ['-I', p ] },
|
35
|
-
'-S', 'bundle/bin/mrspec'
|
41
|
+
sh 'ruby', '--disable-gem', *require_paths, '-S', 'bundle/bin/mrspec'
|
36
42
|
end
|
37
43
|
|
38
44
|
desc 'Run cukes'
|
39
45
|
task cuke: :bundle do
|
40
46
|
require 'bundler'
|
41
47
|
sh 'ruby', '--disable-gem',
|
42
|
-
*
|
48
|
+
*require_paths,
|
43
49
|
'-S', 'bundle/bin/cucumber',
|
44
|
-
'--tags', '~@not-implemented'
|
50
|
+
'--tags', '~@not-implemented',
|
51
|
+
'--tags', "~@not-#{RUBY_VERSION}"
|
45
52
|
end
|
46
53
|
|
47
54
|
desc 'Run all specs and cukes'
|
data/features/regression.feature
CHANGED
@@ -521,6 +521,7 @@ Feature:
|
|
521
521
|
# => "123\n"
|
522
522
|
"""
|
523
523
|
|
524
|
+
@not-2.0.0
|
524
525
|
Scenario: Executing correctly in a hostile world
|
525
526
|
Given the file "hostile_world.rb":
|
526
527
|
"""
|
@@ -528,12 +529,10 @@ Feature:
|
|
528
529
|
# if we do it later, so we'll make it up here
|
529
530
|
zde = (1/0 rescue $!)
|
530
531
|
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
undef fetch
|
536
|
-
end
|
532
|
+
class Hash
|
533
|
+
undef []
|
534
|
+
undef []=
|
535
|
+
undef fetch
|
537
536
|
end
|
538
537
|
class IO
|
539
538
|
undef sync
|
@@ -56,7 +56,15 @@ class SeeingIsBelieving
|
|
56
56
|
rescue EncodingError
|
57
57
|
str = str.force_encoding(Encoding::UTF_8)
|
58
58
|
end
|
59
|
-
str.scrub
|
59
|
+
return str.scrub('�') if str.respond_to? :scrub
|
60
|
+
# basically reimplement scrub, b/c it's not implemented on 1.9.3
|
61
|
+
str.each_char.inject("") do |new_str, char|
|
62
|
+
if char.valid_encoding?
|
63
|
+
new_str << char
|
64
|
+
else
|
65
|
+
new_str << '�'
|
66
|
+
end
|
67
|
+
end
|
60
68
|
end
|
61
69
|
|
62
70
|
def initialize(streams)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: seeing_is_believing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Cheek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parser
|
@@ -264,7 +264,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
264
264
|
version: '0'
|
265
265
|
requirements: []
|
266
266
|
rubyforge_project: seeing_is_believing
|
267
|
-
rubygems_version: 2.
|
267
|
+
rubygems_version: 2.0.14.1
|
268
268
|
signing_key:
|
269
269
|
specification_version: 4
|
270
270
|
summary: Records results of every line of code in your file
|