rsr_group 1.7.1 → 1.7.2

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: 44e9bb01f85e541d496f9aa3725bb95abb2d5c9f
4
- data.tar.gz: 24096312ab92ee58a6da0fdb25ca96da1f4e681e
3
+ metadata.gz: 60aec2f7554722f555e564a63c9955233813af8f
4
+ data.tar.gz: c0095cd2bb02d6828e6887d574cc18414295ca3d
5
5
  SHA512:
6
- metadata.gz: bf7acf0a76b8c6d4c7fae372428ace6292206785e30525a29c1e495e9b802efabac174c7b2cbda79c83fb5eec6ed94490d051f18631e921314cc7abf80283649
7
- data.tar.gz: 56aff61ff27a3e32dce8d0cdedd63e52ac630b58ae3c3bd0a31a5acf749198154ae0bc268497f4a21ea1cf601cce4191637015b8a26408f0094ecb3cf74d94d9
6
+ metadata.gz: 4461dc6f17278f30dcdd0b001cb21b737c6b14c1fbaa9f3bcf7af2a9cd94642476f0cf044650bf51da967c6ab00790d20585cb6dd566a52ff277086bd9b680ac
7
+ data.tar.gz: dd61925b473eeed563386c973247bb639423c43aac71cc31acb11d751e8c8e0629f92d208ee82595e2861c34b3fa5e7732f0469aa226958335e6b602beba82cb
@@ -18,11 +18,9 @@ module RsrGroup
18
18
  new(options).all
19
19
  end
20
20
 
21
- def self.process_as_chunks(size = 15, options = {})
21
+ def self.process_as_chunks(size = 15, options = {}, &block)
22
22
  requires!(options, :username, :password)
23
- new(options).process_as_chunks(size) do |chunk|
24
- yield(chunk)
25
- end
23
+ new(options).process_as_chunks(size, &block)
26
24
  end
27
25
 
28
26
  def self.map_prices(options = {})
@@ -30,11 +28,9 @@ module RsrGroup
30
28
  new(options).map_prices
31
29
  end
32
30
 
33
- def self.map_prices_as_chunks(size = 15, options = {})
31
+ def self.map_prices_as_chunks(size = 15, options = {}, &block)
34
32
  requires!(options, :username, :password)
35
- new(options).map_prices_as_chunks(size) do |chunk|
36
- yield(chunk)
37
- end
33
+ new(options).map_prices_as_chunks(size, &block)
38
34
  end
39
35
 
40
36
  def self.quantities(options = {})
@@ -42,11 +38,9 @@ module RsrGroup
42
38
  new(options).quantities
43
39
  end
44
40
 
45
- def self.quantities_as_chunks(size = 15, options = {})
41
+ def self.quantities_as_chunks(size = 15, options = {}, &block)
46
42
  requires!(options, :username, :password)
47
- new(options).quantities_as_chunks(size) do |chunk|
48
- yield(chunk)
49
- end
43
+ new(options).quantities_as_chunks(size, &block)
50
44
  end
51
45
 
52
46
  def all
@@ -150,7 +144,7 @@ module RsrGroup
150
144
  items
151
145
  end
152
146
 
153
- def process_as_chunks(size)
147
+ def process_as_chunks(size, &block)
154
148
  connect(@options) do |ftp|
155
149
  chunker = RsrGroup::Chunker.new(size)
156
150
  temp_csv_file = Tempfile.new
@@ -215,7 +209,7 @@ module RsrGroup
215
209
  rows
216
210
  end
217
211
 
218
- def map_prices_as_chunks(size)
212
+ def map_prices_as_chunks(size, &block)
219
213
  connect(@options) do |ftp|
220
214
  chunker = RsrGroup::Chunker.new(size)
221
215
  temp_csv_file = Tempfile.new
@@ -280,7 +274,7 @@ module RsrGroup
280
274
  rows
281
275
  end
282
276
 
283
- def quantities_as_chunks(size)
277
+ def quantities_as_chunks(size, &block)
284
278
  connect(@options) do |ftp|
285
279
  chunker = RsrGroup::Chunker.new(size)
286
280
  temp_csv_file = Tempfile.new
@@ -1,3 +1,3 @@
1
1
  module RsrGroup
2
- VERSION = '1.7.1'
2
+ VERSION = '1.7.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rsr_group
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.1
4
+ version: 1.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dale Campbell
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-03 00:00:00.000000000 Z
11
+ date: 2017-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: smarter_csv
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
134
134
  version: '0'
135
135
  requirements: []
136
136
  rubyforge_project:
137
- rubygems_version: 2.6.7
137
+ rubygems_version: 2.5.1
138
138
  signing_key:
139
139
  specification_version: 4
140
140
  summary: RSR Group Ruby library