rspec-xlsx_matchers 0.1.0 → 0.1.2

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: 35beb1261a867c92fa8f9c4b27c260e70fb6c98491c5a1ec3944e4ac79baa090
4
- data.tar.gz: 6c9abea563485512965144e52410175c2209a09551c60c5e896ea8110bc4d623
3
+ metadata.gz: 473cdf47e72962c4cd486d4a4dc90e4c3e06213af0f4a6b418e5324cbe8b0ee6
4
+ data.tar.gz: e5898fce3654266b287ac4a28e07f3c0c7ae041b327912db3da98c6f950b5be1
5
5
  SHA512:
6
- metadata.gz: f5ab021b80d51fe3430f554ab04234074d4884bc9e0dd90e090e0d6718a9f5a432a771a520cba1b70a0375b099ba6d311fac9331e4d485da06d151691a877dd9
7
- data.tar.gz: f08ca7a76cf5b4e781dfd6feda7054f7a63b7b7710611e5df8354f327da47de7f0c5dccdcfea5f91e8eb6e63209f30724117c5fe5c43c8266dd837679d8a2eda
6
+ metadata.gz: 615ce26d5cfc4f2384aadae5c0818b7578ed33bfa470d9749f54fb1eb083083c01d74da78b283b8ff8b69512ef6627e512732ce3c1daa4d26a4f3e0a6070835f
7
+ data.tar.gz: 55d710b4a612c63e413e55089aeaf095e94f706479608c718b9009955ff31afda351161417ec2ce188abb3003ab09aa55b966082bbc5fdfc699c58400c461b6e
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)
@@ -12,9 +12,7 @@ module RSpec
12
12
  @sheet = find_sheet
13
13
  return false if sheet.nil?
14
14
 
15
- process_sheet.tap do
16
- finalize
17
- end
15
+ process_sheet
18
16
  end
19
17
 
20
18
  def in_sheet(name)
@@ -100,12 +98,6 @@ module RSpec
100
98
  msg
101
99
  end
102
100
  end
103
-
104
- def finalize
105
- roo_spreadsheet&.close
106
- rescue StandardError => e
107
- puts "Warning: error closing Roo Spreadsheet: #{e}"
108
- end
109
101
  end
110
102
  end
111
103
  end
@@ -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.2"
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.2
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: