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 +5 -5
- data/davidsons.gemspec +1 -1
- data/lib/davidsons/catalog.rb +7 -4
- data/lib/davidsons/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 8b6d8e48929215b976e928694e4c70c297f7458c
|
4
|
+
data.tar.gz: a85875486af1ddd78c0c12c79c9666594c0b5736
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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"
|
data/lib/davidsons/catalog.rb
CHANGED
@@ -28,13 +28,14 @@ module Davidsons
|
|
28
28
|
@options[:pricing_tier] ||= :regular
|
29
29
|
end
|
30
30
|
|
31
|
-
def self.all(options = {}
|
31
|
+
def self.all(options = {})
|
32
32
|
requires!(options, :username, :password)
|
33
|
-
new(options).all
|
33
|
+
new(options).all
|
34
34
|
end
|
35
35
|
|
36
|
-
def all
|
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
|
-
|
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
|
data/lib/davidsons/version.rb
CHANGED
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:
|
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:
|
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.
|
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.
|
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.
|
144
|
+
rubygems_version: 2.6.14
|
145
145
|
signing_key:
|
146
146
|
specification_version: 4
|
147
147
|
summary: Ruby library for Davidson's
|