sports_south 1.0.0.pre → 1.1.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sports_south/image.rb +15 -0
- data/lib/sports_south/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e1719e55ce3b0c49c4a75a80dde5628003f170b
|
4
|
+
data.tar.gz: 4dbac9fbfa6cb39aa655390fd029b4d457a81220
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4ed566daeb23610c7ba2561dc2cc9efd647d633e2bb4b4083d7a278294a108412f94e97679ba7a673861a3b0de1094deaf3e67130b7fe24e8758c631d7263ae
|
7
|
+
data.tar.gz: 17002f2ae6f040a22f4440f492917830c4a585fd4b12e4303bc9078dc785247c54a244b0850ec44983d29c94964299ecc3cdc2970d1e890145d8209748c0371d
|
data/lib/sports_south/image.rb
CHANGED
@@ -27,5 +27,20 @@ module SportsSouth
|
|
27
27
|
images
|
28
28
|
end
|
29
29
|
|
30
|
+
def self.list_new_pictures(options = {})
|
31
|
+
requires!(options, :username, :password, :source, :customer_number)
|
32
|
+
|
33
|
+
http, request = get_http_and_request(API_URL, '/ListNewPictures')
|
34
|
+
|
35
|
+
request.set_form_data(form_params(options).merge({
|
36
|
+
DateFrom: (options[:date_from] || (DateTime.now - 1).strftime('%m/%d/%Y'))
|
37
|
+
}))
|
38
|
+
|
39
|
+
response = http.request(request)
|
40
|
+
xml_doc = Nokogiri::XML(sanitize_response(response))
|
41
|
+
|
42
|
+
xml_doc.css('Table').map { |node| { item_number: content_for(node, 'ITEMNO') } }
|
43
|
+
end
|
44
|
+
|
30
45
|
end
|
31
46
|
end
|
data/lib/sports_south/version.rb
CHANGED