check_please 0.4.1 → 0.5.0

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.
@@ -1,5 +1,5 @@
1
1
  module CheckPlease
2
2
  # NOTE: 'check_please_rspec_matcher' depends on this,
3
3
  # so try to keep them roughly in sync
4
- VERSION = "0.4.1"
4
+ VERSION = "0.5.0"
5
5
  end
@@ -1,7 +1,7 @@
1
1
  require 'check_please'
2
2
 
3
- reference = { foo: "wibble" }
4
- candidate = { bar: "wibble" }
3
+ reference = { "foo" => "wibble" }
4
+ candidate = { "bar" => "wibble" }
5
5
 
6
6
 
7
7
 
@@ -28,3 +28,9 @@ diffs = CheckPlease.diff(reference, candidate)
28
28
  #
29
29
  # If you come up with a useful way to present these, feel free to submit a PR
30
30
  # with a new class in `lib/check_please/printers` !
31
+
32
+ # To print these in the console, you can just do:
33
+ puts diffs
34
+
35
+ # If for some reason you want to print the JSON version, it gets a little more verbose:
36
+ puts diffs.to_s(format: :json)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: check_please
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Livingston-Gray
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-11-30 00:00:00.000000000 Z
11
+ date: 2021-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: table_print
@@ -71,6 +71,7 @@ files:
71
71
  - README.md
72
72
  - Rakefile
73
73
  - bin/console
74
+ - bin/gh-md-toc
74
75
  - bin/setup
75
76
  - check_please.gemspec
76
77
  - exe/check_please
@@ -85,11 +86,13 @@ files:
85
86
  - lib/check_please/flag.rb
86
87
  - lib/check_please/flags.rb
87
88
  - lib/check_please/path.rb
89
+ - lib/check_please/path_segment.rb
88
90
  - lib/check_please/printers.rb
89
91
  - lib/check_please/printers/base.rb
90
92
  - lib/check_please/printers/json.rb
91
93
  - lib/check_please/printers/table_print.rb
92
94
  - lib/check_please/refinements.rb
95
+ - lib/check_please/reification.rb
93
96
  - lib/check_please/version.rb
94
97
  - usage_examples.rb
95
98
  homepage: https://github.com/RealGeeks/check_please