seeing_is_believing 4.0.0 → 4.0.1

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
  SHA256:
3
- metadata.gz: d4cc5ca0f30eacf4bb2729e295c557de2dcc20acb856389dda16f776bb0df2ad
4
- data.tar.gz: e5711ae5d11fff1d65259beb1f65f9bbf6fba5e2d1494e22394d652fac26dfa6
3
+ metadata.gz: 138b4f2170848590bd310474298ed1c36861d74ae7e9e728d7d06343eaa2aa60
4
+ data.tar.gz: 98eeba43fe979029095e9efb5de96f33f405ec2729ffc80c5063f179aaaa6fd0
5
5
  SHA512:
6
- metadata.gz: c00e05b913ad9122b4f2a76146c447868cec4b53dad4f8cc71ee6ef8e0607005c9b6cf8c31bd5e439096ea52ee445f71ff06be44872b65b4e6ce00a3931cfe64
7
- data.tar.gz: 155ee68e5acaaf7b9d6e813bb3f1710b759c9b093a467c8aeb9d84f4df298716ab1cfba2cab504b75c9b98aad8f6d0d6146ae13be35db1f26dbacfa70e035e14
6
+ metadata.gz: 44f5ac4f46b544ed8ca22a8429aa85add4b45eb2626acd84b91f988c5d86f6ee6903791b2b5a876187ac4e8e998dd967f7c72585e842df86f513d29acbb0aae1
7
+ data.tar.gz: f3c96b87441107d7e5b9eef52c523a1bf8b13b20276cbcd00b1b9d4d1ec9781420b0f1c8aeb4cc40a245bb08051439c35770dcb65b8554b67b228a0db84b3115
@@ -0,0 +1,39 @@
1
+ # This workflow uses actions that are not certified by GitHub.
2
+ # They are provided by a third-party and are governed by
3
+ # separate terms of service, privacy policy, and support
4
+ # documentation.
5
+ # This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6
+ # For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7
+
8
+ name: Test
9
+
10
+ on:
11
+ push:
12
+ branches: [ master ]
13
+ pull_request:
14
+ branches: [ master ]
15
+
16
+ jobs:
17
+ test:
18
+
19
+ runs-on: ubuntu-latest
20
+ strategy:
21
+ matrix:
22
+ ruby-version: ['2.5', '2.6', '2.7', '3.0']
23
+
24
+ steps:
25
+ - uses: actions/checkout@v2
26
+ - name: Set up Ruby
27
+ # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
28
+ # change this to (see https://github.com/ruby/setup-ruby#versioning):
29
+ # uses: ruby/setup-ruby@v1
30
+ uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
31
+ with:
32
+ ruby-version: ${{ matrix.ruby-version }}
33
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
34
+ - name: Install binstubs (no rubygems / bundler at runtime, makes tests much much faster)
35
+ run: rake install
36
+ - name: Run rspec tests
37
+ run: rake spec
38
+ - name: Run cucumber features
39
+ run: rake cuke
@@ -1,5 +1,8 @@
1
- Unix/Mac: [![Unix Build Status](https://secure.travis-ci.org/JoshCheek/seeing_is_believing.svg?branch=master)](http://travis-ci.org/JoshCheek/seeing_is_believing)   
2
- Windows: [![Windows Build Status](https://ci.appveyor.com/api/projects/status/github/JoshCheek/seeing_is_believing?branch=master&svg=true)](https://ci.appveyor.com/project/JoshCheek/seeing-is-believing)
1
+ https://github.com/JoshCheek/seeing_is_believing/workflows/Ruby/badge.svg
2
+
3
+ Unix/Mac: [![Unix Build Status](https://github.com/JoshCheek/seeing_is_believing/workflows/Test/badge.svg)](https://github.com/JoshCheek/seeing_is_believing/actions?query=workflow%3ATest)
4
+   
5
+ Appveyor: [![Windows Build Status](https://ci.appveyor.com/api/projects/status/github/JoshCheek/seeing_is_believing?branch=master&svg=true)](https://ci.appveyor.com/project/JoshCheek/seeing-is-believing)
3
6
 
4
7
  Seeing Is Believing
5
8
  ===================
@@ -49,12 +52,10 @@ Inspiration
49
52
 
50
53
 
51
54
  Shout outs
52
- ----------
55
+ -----------
56
+
57
+ * Whitequark for all the work on [Parser](http://github.com/whitequark/parser/)
53
58
 
54
- * Whitequark for all the work on [Parser](http://github.com/whitequark/parser/), which dramatically dramatically improved SiB (I used to have my own horribly shitty line-based parser)
55
- * [Travis CI](https://travis-ci.org/JoshCheek/seeing_is_believing)... I love you times a million! So many difficult bugs have been caught by this.
56
- It's so easy to work with, astoundingly convenient, helps me guarantee that SiB works on everyone else's computers, too. And it's free since SiB is open source.
57
- I literally have a Travis CI sticker on my laptop, I love you that much.
58
59
 
59
60
  License
60
61
  -------
@@ -470,32 +470,6 @@ Feature:
470
470
  """
471
471
 
472
472
 
473
- # See this issue for the issue we're testing for: https://github.com/JoshCheek/seeing_is_believing/issues/46
474
- # See this issue for why we turn it off on 2.4: https://github.com/flori/json/issues/309
475
- #
476
- # Not going to get too detailed on what it prints, b/c that message seems pretty fragile,
477
- # but just generally that it doesn't fkn blow up
478
- @not-2.4
479
- @not-2.5
480
- @not-2.6
481
- @not-2.7
482
- Scenario: Old JSON bug
483
- Given the file "json_and_encodings.rb":
484
- """
485
- # encoding: utf-8
486
- require 'json'
487
- JSON.parse JSON.dump("√")
488
- """
489
- When I run "seeing_is_believing json_and_encodings.rb"
490
- Then stderr is empty
491
- And the exit status is 1
492
- And stdout includes:
493
- """
494
- require 'json' # => true
495
- JSON.parse JSON.dump("√")
496
- """
497
-
498
-
499
473
  # https://github.com/JoshCheek/seeing_is_believing/wiki/Encodings
500
474
  # https://github.com/JoshCheek/seeing_is_believing/issues/109
501
475
  Scenario: Assumes utf-8 for files regardless of what Ruby thinks
@@ -11,6 +11,7 @@ class SeeingIsBelieving
11
11
  # Guarding against hostile users (e.g. me) that do ridiculous things like blowing away these constants
12
12
  old_w, $-w = $-w, nil # Ruby warns about accessing deprecated constants
13
13
  Object.constants.each do |name|
14
+ next if name == :SortedSet # Removed in 3.0, but apparently the constant still exists, it just explodes if you reference it
14
15
  const_set name, Object.const_get(name)
15
16
  end
16
17
  $-w = old_w
@@ -1,3 +1,3 @@
1
1
  class SeeingIsBelieving
2
- VERSION = '4.0.0'
2
+ VERSION = '4.0.1'
3
3
  end
@@ -24,7 +24,6 @@ Gem::Specification.new do |s|
24
24
  s.add_development_dependency "pry"
25
25
  s.add_development_dependency "haiti", ">= 0.1", "< 0.3"
26
26
  s.add_development_dependency "rake", "~> 13.0.0"
27
- s.add_development_dependency "mrspec", "~> 0.3.1"
28
27
  s.add_development_dependency "rspec", "~> 3.6.0"
29
28
  s.add_development_dependency "cucumber", "~> 2.4"
30
29
  s.add_development_dependency "ripper-tags", "~> 0.3"
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: 4.0.0
4
+ version: 4.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Cheek
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-03 00:00:00.000000000 Z
11
+ date: 2021-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parser
@@ -100,20 +100,6 @@ dependencies:
100
100
  - - "~>"
101
101
  - !ruby/object:Gem::Version
102
102
  version: 13.0.0
103
- - !ruby/object:Gem::Dependency
104
- name: mrspec
105
- requirement: !ruby/object:Gem::Requirement
106
- requirements:
107
- - - "~>"
108
- - !ruby/object:Gem::Version
109
- version: 0.3.1
110
- type: :development
111
- prerelease: false
112
- version_requirements: !ruby/object:Gem::Requirement
113
- requirements:
114
- - - "~>"
115
- - !ruby/object:Gem::Version
116
- version: 0.3.1
117
103
  - !ruby/object:Gem::Dependency
118
104
  name: rspec
119
105
  requirement: !ruby/object:Gem::Requirement
@@ -166,12 +152,12 @@ executables:
166
152
  extensions: []
167
153
  extra_rdoc_files: []
168
154
  files:
155
+ - ".github/workflows/test.yml"
169
156
  - ".gitignore"
170
157
  - ".rspec"
171
- - ".travis.yml"
172
158
  - Gemfile
159
+ - README.md
173
160
  - Rakefile
174
- - Readme.md
175
161
  - appveyor.yml
176
162
  - bin/seeing_is_believing
177
163
  - docs/example.gif
@@ -301,8 +287,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
301
287
  - !ruby/object:Gem::Version
302
288
  version: '0'
303
289
  requirements: []
304
- rubygems_version: 3.1.2
305
- signing_key:
290
+ rubygems_version: 3.2.3
291
+ signing_key:
306
292
  specification_version: 4
307
293
  summary: Records results of every line of code in your file
308
294
  test_files:
@@ -1,8 +0,0 @@
1
- language: ruby
2
- install: rake install
3
- script: bundle exec rake ci
4
- rvm:
5
- - 2.4.1
6
- - 2.5.0
7
- - 2.6.3
8
- - 2.7.1