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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9e9ce1ac3fe3b6153a108f6cdf06a9d775a1ed5d
4
- data.tar.gz: c1733e62462b1ce5c578c20a67cdbf0f6c8529ac
3
+ metadata.gz: 8e1719e55ce3b0c49c4a75a80dde5628003f170b
4
+ data.tar.gz: 4dbac9fbfa6cb39aa655390fd029b4d457a81220
5
5
  SHA512:
6
- metadata.gz: 71ff858afb5298a31484104fdd19c16ce993871accc302a077d9da794e9e14dafa2377b6aec2db278f9b0706db38f7f2c3209a6e197abe1333486aac81c6e810
7
- data.tar.gz: 947dbd5e095c4609922fec14ba98a902ccb8cdbdcb1b4131f4015ede8146a671355f804b4d7b4ea5b608780bbd618302c04117796a5be6a5ee96539a9326a3ef
6
+ metadata.gz: b4ed566daeb23610c7ba2561dc2cc9efd647d633e2bb4b4083d7a278294a108412f94e97679ba7a673861a3b0de1094deaf3e67130b7fe24e8758c631d7263ae
7
+ data.tar.gz: 17002f2ae6f040a22f4440f492917830c4a585fd4b12e4303bc9078dc785247c54a244b0850ec44983d29c94964299ecc3cdc2970d1e890145d8209748c0371d
@@ -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
@@ -1,3 +1,3 @@
1
1
  module SportsSouth
2
- VERSION = '1.0.0.pre'.freeze
2
+ VERSION = '1.1.0.pre'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sports_south
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre
4
+ version: 1.1.0.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dale Campbell