rvista 0.5 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/rvista/po.rb +8 -1
- data/lib/rvista/po_line_item.rb +5 -0
- data/lib/rvista.rb +9 -3
- metadata +2 -2
data/Rakefile
CHANGED
data/lib/rvista/po.rb
CHANGED
@@ -14,7 +14,7 @@ module RVista
|
|
14
14
|
attr_accessor :delivery_location_name, :label_code
|
15
15
|
attr_accessor :items
|
16
16
|
|
17
|
-
# creates a new RVista::
|
17
|
+
# creates a new RVista::PO object
|
18
18
|
def initialize
|
19
19
|
@items = []
|
20
20
|
end
|
@@ -113,4 +113,11 @@ module RVista
|
|
113
113
|
end
|
114
114
|
end
|
115
115
|
|
116
|
+
class Message < PO
|
117
|
+
|
118
|
+
def initialize
|
119
|
+
$stderr.puts "WARNING: RVista::Message is a deprecated class. Please use RVista::PO instead."
|
120
|
+
super
|
121
|
+
end
|
122
|
+
end
|
116
123
|
end
|
data/lib/rvista/po_line_item.rb
CHANGED
data/lib/rvista.rb
CHANGED
@@ -7,13 +7,19 @@ require File.dirname(__FILE__) + '/rvista/po_line_item'
|
|
7
7
|
require File.dirname(__FILE__) + '/rvista/poa'
|
8
8
|
require File.dirname(__FILE__) + '/rvista/poa_line_item'
|
9
9
|
|
10
|
-
# Ruby module for reading Vista HDS
|
10
|
+
# Ruby module for reading Vista HDS EDI files
|
11
11
|
#
|
12
12
|
# = Basic Usage
|
13
13
|
# require 'rubygems'
|
14
14
|
# require 'rvista'
|
15
|
-
#
|
16
|
-
# puts
|
15
|
+
# po = RVista::PO.load_from_file('somefile.txt')
|
16
|
+
# puts po.to_s
|
17
|
+
#
|
18
|
+
# poa = RVista::POA.load_from_file('somefile.txt')
|
19
|
+
# puts poa.to_s
|
20
|
+
#
|
21
|
+
# inv = RVista::Invoice.load_from_file('somefile.txt')
|
22
|
+
# puts inv.to_s
|
17
23
|
module RVista
|
18
24
|
|
19
25
|
end
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
|
|
3
3
|
specification_version: 1
|
4
4
|
name: rvista
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version:
|
7
|
-
date: 2007-
|
6
|
+
version: 0.5.1
|
7
|
+
date: 2007-11-12 00:00:00 +11:00
|
8
8
|
summary: A small library for reading Vista HDS order files
|
9
9
|
require_paths:
|
10
10
|
- lib
|