sports_south 1.2.1 → 1.3.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
2
  SHA1:
3
- metadata.gz: 5f853e599d61601d03113857c5a34b9906c36537
4
- data.tar.gz: 8f1fedc1a66faa5e5c03ef81be40e59bc7313bc4
3
+ metadata.gz: 0f494dd65a51bd73aae00e03d4a23764ca0ed668
4
+ data.tar.gz: 4c74279151c99e10e22b097ab24c11d934f13a66
5
5
  SHA512:
6
- metadata.gz: 7324050c2149140006b81132c5bba7f0f0e2c63c18c4a0f138edb468dfb3041ddb4c42e008410cc729de9d2f5dc74c36192ef13a73441755669de3a6b496d21a
7
- data.tar.gz: 56de20f67e41ba47e993dba0862ef9258dd27b2346a120bd25fd89edeaded2dc4c3636a66abce6d5b4a5398031789d60bd7b138c172a46fcf22654591d202efe
6
+ metadata.gz: e8e41b17a1df48ebcc48555c1485abf69929fedbe17bbdb7f54b30b93dc2f7347b483311ddbab660b951fdfa3c4d3c3e493be71ab6c001d9f40b62624007a75f
7
+ data.tar.gz: be790fa31e92cb70eb8f9e96cd938cc4034937d71718cccdd6863257f043a25bc3029b64c77c9c4347efa3068b455cf4782b98fa466679469ea695b0546abb72
@@ -80,6 +80,23 @@ module SportsSouth
80
80
  }
81
81
  end
82
82
 
83
+ def self.list_new_text(options = {})
84
+ requires!(options, :username, :password, :source, :customer_number)
85
+ options[:since] ||= (Time.now - 86400).strftime('%m/%d/%Y')
86
+
87
+ http, request = get_http_and_request(API_URL, '/ListNewText')
88
+ request.set_form_data(form_params(options).merge({ DateFrom: options[:since] }))
89
+
90
+ xml_doc = Nokogiri::XML(sanitize_response(http.request(request)))
91
+
92
+ xml_doc.css('Table').map do |item|
93
+ {
94
+ item_number: content_for(item, 'ITEMNO'),
95
+ text: content_for(item, 'TEXT')
96
+ }
97
+ end
98
+ end
99
+
83
100
  # This method accepts an Array of +item_numbers+.
84
101
  def self.onhand_update_by_csv(item_numbers, options = {})
85
102
  requires!(options, :username, :password, :source, :customer_number)
@@ -1,3 +1,3 @@
1
1
  module SportsSouth
2
- VERSION = '1.2.1'.freeze
2
+ VERSION = '1.3.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sports_south
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.3.0
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-05-05 00:00:00.000000000 Z
11
+ date: 2017-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri