stockboy 1.2.0 → 1.2.1

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
  SHA1:
3
- metadata.gz: b590275e79cec3c13367aa9afd5c2834c72136fe
4
- data.tar.gz: 5b0c8114e76759d46507f9015a0af11a60dcc322
3
+ metadata.gz: 5fcae8abd12ed8674c56d476860be0ed4469ee13
4
+ data.tar.gz: b0f49fa1a87c62dfd39184161cea8afcc7185b6c
5
5
  SHA512:
6
- metadata.gz: ebae87b6ddc0f7f90faed9d3e31ea5dc2e381bce97347b16cc94a91386d65e53a7dfa54ae988aeb0721e3f9c81f5a46bc4be676a7e42091b071013e3b0c24266
7
- data.tar.gz: b5ee7acaf3385daf91c0dca08c283296a555ba4d37dbdce2a54254a74e2a0398bbc55457f5b3ab138afe6a5a9041985c9ab67ada07ff3a9642a95144343382ef
6
+ metadata.gz: cf10196314b5e62dc785316a95741d3034772ca197defec68e032e570fece15a0de0f87bbc2888a9e35c2696f07d21f0a5dde7398e4ba5d24007029ea1040190
7
+ data.tar.gz: fba95677551b2a57e5915c79b0cc13432168954772369e36ec54fd30e377aa5b6f728393586d9b190d0624f4e2b1da27af01729064b039bda6ae432caf05aed0
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.2.1 / 2016-08-02
4
+
5
+ * [BUGFIX] Repeater would error with zero yielded data iterations
6
+
3
7
  ## 1.2.0 / 2016-08-02
4
8
 
5
9
  * [ENHANCEMENT] Option to handle errors raised in translation chain
@@ -256,7 +256,7 @@ module Stockboy
256
256
  end
257
257
  end
258
258
  return if yielded
259
- yield(provider.data) if provider.data
259
+ yield(provider.data) if provider.data?
260
260
  end
261
261
 
262
262
  def record_partition(record)
@@ -1,3 +1,3 @@
1
1
  module Stockboy
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
@@ -211,6 +211,18 @@ module Stockboy
211
211
  job.process
212
212
  expect(job.all_records.size).to eq 3
213
213
  end
214
+
215
+ context "and no data" do
216
+ let(:repeater) {
217
+ ProviderRepeater.new(provider) do |inputs|
218
+ end
219
+ }
220
+
221
+ it "gets no records" do
222
+ job.process
223
+ expect(job.all_records.size).to eq 0
224
+ end
225
+ end
214
226
  end
215
227
 
216
228
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stockboy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Vit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-02 00:00:00.000000000 Z
11
+ date: 2016-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake