rspec-difftastic 0.0.1 → 0.0.2

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rspec-difftastic.rb +5 -0
  3. metadata +4 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bad2e86e9eb0d35973a7e0319fb15925ad3c897e5ff809de70d2f69701f8bb74
4
- data.tar.gz: b2f09cb6cd23fc8a03cd1d9cbc8af872c485f0588c4fbf9a37e8f66c95448219
3
+ metadata.gz: 8093fdea8473c7baec553b8b382e3b2ce4638df0d1b64c5ccb68fb25af6f1bde
4
+ data.tar.gz: cae640ae597250134138866086c6a41c81f279b4a8cc258906e887393253a963
5
5
  SHA512:
6
- metadata.gz: eb5ca82dc0345ab8d939e2ea1f8176db9483b4723878666cca9201bab6075910d5e084a6971af8fbd24c669c9ffc2dbc56502271b5eec9059acd77548041bceb
7
- data.tar.gz: 8b27d544b44be9bc5642b5046af22dc3baaa6c523e2ebe455d71f1a46fe7567a9e5b658913c3668e3559b2cc0ebf8e4d4fbd9af1a68bce89cfead3e6583fbcfd
6
+ metadata.gz: b228a05659a4479161c66fd62232b60a3f23f74a24590b0189af3fb8c6502c0c1766a2e94cb21ec2e1d8b355756e4abef4f614b02180d41320206df14fd2a496
7
+ data.tar.gz: 93f6ef102471d24503b4902fb257c571f50915130542030721ed616188bfa6cba757f59cbb39bd5428ed53ed3a8780f44c99a6abab98e5d9892322af8794335b
@@ -16,6 +16,11 @@ module RSpec
16
16
  "\n\n#{diff_string}\n"
17
17
  end
18
18
 
19
+ def diff_as_object(actual, expected)
20
+ diff_string = DIFFTASTIC_DIFFER.diff_objects(actual, expected)
21
+ "\n\n#{diff_string}\n"
22
+ end
23
+
19
24
  end
20
25
  end
21
26
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-difftastic
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
  - Mike Taylor
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2025-02-22 00:00:00.000000000 Z
10
+ date: 2025-03-04 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: difftastic
@@ -38,9 +37,7 @@ dependencies:
38
37
  - - "~>"
39
38
  - !ruby/object:Gem::Version
40
39
  version: '3.0'
41
- description: This is a quick patch implementation and may not cover edge cases. To
42
- reduce disruptions and maximize usefulness, difftastic is only applied when RSpec
43
- diffs strings.
40
+ description: This is a quick patch implementation and may not cover edge cases.
44
41
  email: github@miket.dev
45
42
  executables: []
46
43
  extensions: []
@@ -54,7 +51,6 @@ licenses:
54
51
  metadata:
55
52
  homepage_uri: https://github.com/sealocal/rspec-difftastic
56
53
  changelog_uri: https://github.com/sealocal/rspec-difftastic/releases
57
- post_install_message:
58
54
  rdoc_options: []
59
55
  require_paths:
60
56
  - lib
@@ -69,8 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
65
  - !ruby/object:Gem::Version
70
66
  version: '0'
71
67
  requirements: []
72
- rubygems_version: 3.4.19
73
- signing_key:
68
+ rubygems_version: 3.6.2
74
69
  specification_version: 4
75
70
  summary: Use difftastic in place of RSpec's default differ.
76
71
  test_files: []