saxy 0.6.0 → 0.6.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
  SHA1:
3
- metadata.gz: d90158e708f84a77ddd18b19c881fa528a839f28
4
- data.tar.gz: 14e88af956179b23fff98fc80a2dac03cd36efa2
3
+ metadata.gz: 071f31e0e4239d7aa2206cddd8d0bbab99982896
4
+ data.tar.gz: 9314c5c857ffa12cd30ba32f473a34c01bbfdaca
5
5
  SHA512:
6
- metadata.gz: d1380012654abe0e6c51095220d0be5349666de298294addbd81ae1954842249cea8e055514c3583eaa285834eb5ee9ac181b632647bc30d1fa8ebcfd6d049d9
7
- data.tar.gz: 4bb6c121dd6543cb736d02278ee752eba2bf9a2e6105cdaf3bdff7fa617facda2738ba697de4626135a09984f77a100a4d3ccd7082c25a1ea880cf87aee1a127
6
+ metadata.gz: db0123c050ea39667f55e1e2569d5bdd8649a94a3650ec1d73f8c317b42d4c17270e40796a0c58a50fbbaf4be43468941d85473a7164390166db7ee4df96acf8
7
+ data.tar.gz: 5fb5c951cf06dff3b7b3385b8ac19a59887a91e8b70f790c4d8e698964551327328900508c7d8a1547bd27aabdcaca7304b2ec823c9d59afd408ba591f97eed4
@@ -1,5 +1,9 @@
1
1
  # Saxy Changelog
2
2
 
3
+ ## 0.6.1
4
+
5
+ * Fixed passing options from `Saxy.parse` to parser's initializer
6
+
3
7
  ## 0.6.0
4
8
 
5
9
  * [BREAKING] `Saxy::ParsingError` now inherits from `StandardError`, not `Exception`.
@@ -2,8 +2,8 @@ require 'saxy/version'
2
2
 
3
3
  module Saxy
4
4
  class << self
5
- def parse(object, object_tag, &blk)
6
- parser = Parser.new(object, object_tag)
5
+ def parse(object, object_tag, options={}, &blk)
6
+ parser = Parser.new(object, object_tag, options)
7
7
 
8
8
  if blk
9
9
  parser.each(blk)
@@ -1,3 +1,3 @@
1
1
  module Saxy
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
@@ -34,4 +34,9 @@ describe Saxy do
34
34
  it "should return Enumerator when calling #parse without a block" do
35
35
  expect(Saxy.parse(fixture_file("webstore.xml"), "product").each).to be_an(Enumerator)
36
36
  end
37
+
38
+ it "should pass options to Parser's initializer" do
39
+ expect(Saxy::Parser).to receive(:new).with("filename", "object_tag", { foo: 'bar' }).and_call_original
40
+ Saxy.parse("filename", "object_tag", { foo: 'bar' })
41
+ end
37
42
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: saxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michał Szajbe