seeing_is_believing 3.1.0 → 3.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c9dd0b2eff60a43943a68255a2278300ad4d687d
4
- data.tar.gz: c85b26392092e308c2a2dc0fdbaf41371da88a8c
3
+ metadata.gz: ee80ef63960aa8529058bcc47ecfa53e1eb80443
4
+ data.tar.gz: 8194f95036da74d4aa45e968e774211cb5f2169b
5
5
  SHA512:
6
- metadata.gz: 21a4e75fa8f2191b74c4305e879f5e53ad67680c3091089a83d0af64cfecc687ef86e1ebd76341717710d18e9c2d57479f0b11017f28cd8cf42da60d4092ecff
7
- data.tar.gz: 2afc31b2a89c7f6d0a4ee544b8eb8acdcfceef34c4ae6fce57a0c46f30d2501117fa45628f2100849332715f80bd85d3927bbc4cfab81d34093ad9d67ee98eaf
6
+ metadata.gz: f45e44395230ffd260610ce06a9f4bb9ffea63b006bc76b701432cf47c1c73b10cc35c6bdb1d61938861b5e6f5215986b082a944d986dc3ee888304c9dab16f6
7
+ data.tar.gz: aed2c640442c6cf6a2c84e863fe1dce8a0713a6e87f431a4dba52cd07d5170265454674704662c1e4911e8bcbf265a2b99e749923cc6a47566d850832dd0b258
@@ -3,6 +3,7 @@ before_install: gem install bundler
3
3
  install: rake install
4
4
  script: bundle exec rake ci
5
5
  rvm:
6
+ - 2.0.0
6
7
  - 2.1.2
7
8
  - 2.2.0
8
9
  - 2.3.1
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
- require 'bundler'
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
- *Bundler.load.specs.flat_map(&:full_require_paths).flat_map { |p| ['-I', p ] },
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'
@@ -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
- if RUBY_VERSION != "2.0.0" # this breaks Ruby itself on v2.0.0
532
- class Hash
533
- undef []
534
- undef []=
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)
@@ -1,3 +1,3 @@
1
1
  class SeeingIsBelieving
2
- VERSION = '3.1.0'
2
+ VERSION = '3.1.1'
3
3
  end
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.0
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-17 00:00:00.000000000 Z
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.6.8
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