arc-furnace 0.1.18 → 0.1.19

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: 2a06fc779b9e9144169a0cef066f19dffd1d9195
4
- data.tar.gz: 6ca48efd63132cb68b286de56c2c7c5df407a19d
3
+ metadata.gz: 8d1171ab13d97ef7da14997e705c2b94bb1056d9
4
+ data.tar.gz: 7a46b468b6b9be06a16133fefa8305a591f81b8d
5
5
  SHA512:
6
- metadata.gz: 1ba600acc3f4bbe572efb023654aef13686749bbd42aad8a0f28c60bc8bad527d7f800c87821c0a7904ad597fb54f4f0ae6986730b3bebe57d8662bd90ddf7e4
7
- data.tar.gz: fc13fc8b9c69bac4631b4372c81dcc244b26d8d5cabb1f622108c493a6c4f94725b039022bad9fa37a149c451b1960b5fc43fa542b9c4c7832eb5e2cdcf7890a
6
+ metadata.gz: 17f1dbb69886800e1c01f33d58698b0e12f066dfadb7299c1d6ecf6aba79d66e023a4743384e55b91ddc92407b9ebb897673d9c61d3cecc23ad4c7ff55079f54
7
+ data.tar.gz: 1a5ec2352ab4e2d081f7cbda48ee390e194f9a3791c2da218b3de92ea251b6d4b561e3f42d33728888995523f8427e491220844619bc2a46cad66073c53e3f5a
@@ -23,3 +23,4 @@ require 'arc-furnace/source'
23
23
  require 'arc-furnace/suffixed_fixed_column_csv_sink'
24
24
  require 'arc-furnace/transform'
25
25
  require 'arc-furnace/unfold'
26
+ require 'arc-furnace/salsify_json_source'
@@ -0,0 +1,20 @@
1
+ require 'arc-furnace/enumerator_source'
2
+
3
+ module ArcFurance
4
+ class SalsifyJSONSource < ArcFurnace::EnumeratorSource
5
+
6
+ attr_reader :salsify_json
7
+
8
+ def initialize(salsify_json:)
9
+ @salsify_json = salsify_json
10
+ super()
11
+ end
12
+
13
+ def build_enumerator
14
+ Enumerator.new do |yielder|
15
+ salsify_json.products.each { |product| yielder.yield(product) }
16
+ end
17
+ end
18
+
19
+ end
20
+ end
@@ -1,3 +1,3 @@
1
1
  module ArcFurnace
2
- VERSION = "0.1.18"
2
+ VERSION = "0.1.19"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arc-furnace
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.18
4
+ version: 0.1.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Spangenberger
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2016-05-24 00:00:00.000000000 Z
12
+ date: 2016-08-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: msgpack
@@ -157,6 +157,7 @@ files:
157
157
  - lib/arc-furnace/outer_join.rb
158
158
  - lib/arc-furnace/pipeline.rb
159
159
  - lib/arc-furnace/private_attr.rb
160
+ - lib/arc-furnace/salsify_json_source.rb
160
161
  - lib/arc-furnace/sink.rb
161
162
  - lib/arc-furnace/source.rb
162
163
  - lib/arc-furnace/stdout_error_handler.rb