davidsons 3.0.0 → 4.0.0

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
- SHA256:
3
- metadata.gz: 6c095654c336bd6826a23769cd96e88e41bff0d88ba671f787c46d76ee9fdc63
4
- data.tar.gz: 1ca343621c484c84ff3c09372957f7a2e99136fdf437d4520e7797da553f09ff
2
+ SHA1:
3
+ metadata.gz: 8b6d8e48929215b976e928694e4c70c297f7458c
4
+ data.tar.gz: a85875486af1ddd78c0c12c79c9666594c0b5736
5
5
  SHA512:
6
- metadata.gz: dfb5108c31d257f2562ebf464c2baf4a1ad9b62e3ccef095753801a908f76b4bf44963d08fae435fa56f1abe04c39cb5d3a5a1dfd16bc560b0f07e82a0752fcf
7
- data.tar.gz: 4bcedfa9fadb15d4a24c01760489ffa2130de443a868c2c400334f20b96a17f6a5e38dd2d8c0d3668045705361ab9bcf2c2024cebaec18a5c8c9c6c3fea96927
6
+ metadata.gz: 6ab7c69f4cefcfd2243db22788375bd72360021d82c66ccd58070b883aa810c8d939bbec0b06eeae312c713b3e963eb079d2a31829dfae8e72285b10d31fe5bc
7
+ data.tar.gz: 24a844813c8ecb1c8c62777c86942a806b1d6f6a80815e41632417bb097f8ffe1acf4a19a4785363af021ad2cac038116a8930f9d7828edec46e35a82c093235
data/davidsons.gemspec CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
25
25
 
26
26
  spec.add_runtime_dependency "smarter_csv", "~> 1.1.4"
27
27
 
28
- spec.add_development_dependency "bundler", "~> 1.14"
28
+ spec.add_development_dependency "bundler", "~> 1.15"
29
29
  spec.add_development_dependency "rake", "~> 10.0"
30
30
  spec.add_development_dependency "rspec", "~> 3.0"
31
31
  spec.add_development_dependency "activesupport", "~> 5"
@@ -28,13 +28,14 @@ module Davidsons
28
28
  @options[:pricing_tier] ||= :regular
29
29
  end
30
30
 
31
- def self.all(options = {}, &block)
31
+ def self.all(options = {})
32
32
  requires!(options, :username, :password)
33
- new(options).all(&block)
33
+ new(options).all
34
34
  end
35
35
 
36
- def all(&block)
36
+ def all
37
37
  tempfile = get_file(WHOLE_CATALOG_FILENAME)
38
+ items = []
38
39
 
39
40
  SmarterCSV.process(tempfile, DEFAULT_SMART_OPTS) do |chunk|
40
41
  chunk.each do |item|
@@ -49,11 +50,13 @@ module Davidsons
49
50
  item.delete(:sale_ends)
50
51
  item.delete(:sale_price)
51
52
 
52
- yield(item)
53
+ items << item
53
54
  end
54
55
  end
55
56
 
56
57
  tempfile.unlink
58
+
59
+ items
57
60
  end
58
61
 
59
62
  protected
@@ -1,3 +1,3 @@
1
1
  module Davidsons
2
- VERSION = '3.0.0'.freeze
2
+ VERSION = '4.0.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: davidsons
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Knight
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-09-27 00:00:00.000000000 Z
11
+ date: 2019-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: savon
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.14'
47
+ version: '1.15'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '1.14'
54
+ version: '1.15'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
141
  version: '0'
142
142
  requirements: []
143
143
  rubyforge_project:
144
- rubygems_version: 2.7.7
144
+ rubygems_version: 2.6.14
145
145
  signing_key:
146
146
  specification_version: 4
147
147
  summary: Ruby library for Davidson's