rspec-xlsx_matchers 0.1.0 → 0.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
  SHA256:
3
- metadata.gz: 35beb1261a867c92fa8f9c4b27c260e70fb6c98491c5a1ec3944e4ac79baa090
4
- data.tar.gz: 6c9abea563485512965144e52410175c2209a09551c60c5e896ea8110bc4d623
3
+ metadata.gz: a4a95d9fc93320b786ad73bca63fdf44a9e3afb43273af51203f052f62371d97
4
+ data.tar.gz: 488e651bf17520bc990f68ca58a89eac2665a316b68a3350eb95d1ec6bd4c30c
5
5
  SHA512:
6
- metadata.gz: f5ab021b80d51fe3430f554ab04234074d4884bc9e0dd90e090e0d6718a9f5a432a771a520cba1b70a0375b099ba6d311fac9331e4d485da06d151691a877dd9
7
- data.tar.gz: f08ca7a76cf5b4e781dfd6feda7054f7a63b7b7710611e5df8354f327da47de7f0c5dccdcfea5f91e8eb6e63209f30724117c5fe5c43c8266dd837679d8a2eda
6
+ metadata.gz: 7cde8068d729a64dcce1650fb7696d96d83178dee36fc8ca8f4a96b5abcc7c501afab4b91f0303315ba5aaaa40862161bb1984a3b40774f0cc4704f13f5c010a
7
+ data.tar.gz: 5e3cb6d94b4369ab24d14579a8e0bcc66c1d0c39c288939d72fe81959d4b68bce6e237ceb18a16d9a7f513907495c1f63c05ddb06eec67bc3ef06a289aef3fb9
data/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  Provides rspec matchers for testing xlsx data with `roo` or `caxlsx` gems.
4
4
 
5
+ Inspired from code originally written by [Samuel Trottier](https://github.com/SamuelTrottier).
6
+
5
7
  ## Optional dependencies
6
8
 
7
9
  - [roo](https://github.com/roo-rb/roo)
@@ -58,7 +58,7 @@ module RSpec
58
58
 
59
59
  def perform_loose_match
60
60
  expected_columns.each do |column|
61
- missing_columns << column unless actual_columns.include?(column)
61
+ missing_columns << column unless actual_columns&.include?(column)
62
62
  end
63
63
  missing_columns.empty?
64
64
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RSpec
4
4
  module XlsxMatchers
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.1"
6
6
  end
7
7
  end
Binary file
Binary file
@@ -0,0 +1,42 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/rspec/xlsx_matchers/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "rspec-xlsx_matchers"
7
+ spec.version = RSpec::XlsxMatchers::VERSION
8
+ spec.authors = ["drvn-eb"]
9
+
10
+ spec.summary = "RSpec Xlsx matchers"
11
+ spec.description = "RSpec Xlsx matchers"
12
+
13
+ spec.homepage = "https://github.com/dreeven-oss/rspec-xlsx_matchers"
14
+ spec.license = "MIT"
15
+ spec.required_ruby_version = ">= 3.0.0"
16
+
17
+ # spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
18
+
19
+ spec.metadata["homepage_uri"] = spec.homepage
20
+ spec.metadata["source_code_uri"] = "https://github.com/dreeven-oss/rspec-xlsx_matchers"
21
+ # spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
22
+
23
+ # Specify which files should be added to the gem when it is released.
24
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
25
+ spec.files = Dir.chdir(__dir__) do
26
+ `git ls-files -z`.split("\x0").reject do |f|
27
+ (File.expand_path(f) == __FILE__) ||
28
+ f.start_with?(*%w[bin/ test/ spec/ features/ .git .circleci appveyor Gemfile])
29
+ end
30
+ end
31
+ spec.bindir = "exe"
32
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
33
+ spec.require_paths = ["lib"]
34
+
35
+ # Uncomment to register a new dependency of your gem
36
+ # spec.add_dependency "example-gem", "~> 1.0"
37
+ spec.add_dependency "rspec", "~> 3.0"
38
+
39
+ # For more information and examples about making a new gem, check out our
40
+ # guide at: https://bundler.io/guides/creating_gem.html
41
+ spec.metadata["rubygems_mfa_required"] = "true"
42
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-xlsx_matchers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - drvn-eb
@@ -48,6 +48,9 @@ files:
48
48
  - lib/rspec/xlsx_matchers/sheets.rb
49
49
  - lib/rspec/xlsx_matchers/utils.rb
50
50
  - lib/rspec/xlsx_matchers/version.rb
51
+ - pkg/rspec-xlsx_matchers-0.1.0.gem
52
+ - pkg/rspec-xlsx_matchers-0.1.1.gem
53
+ - rspec-xlsx_matchers.gemspec
51
54
  - sig/rspec/xlsx_matchers.rbs
52
55
  homepage: https://github.com/dreeven-oss/rspec-xlsx_matchers
53
56
  licenses: