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 CHANGED
@@ -5,7 +5,7 @@ require 'rake/testtask'
5
5
  require "rake/gempackagetask"
6
6
  require "rubygems"
7
7
 
8
- PKG_VERSION = "0.5"
8
+ PKG_VERSION = "0.5.1"
9
9
  PKG_NAME = "rvista"
10
10
  PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
11
11
 
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::Message object
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
@@ -64,4 +64,9 @@ module RVista
64
64
 
65
65
  end
66
66
 
67
+ class LineItem < POLineItem
68
+ def initialize
69
+ $stderr.puts "WARNING: LineItem is a deprecated class. Please use POLineItem instead."
70
+ end
71
+ end
67
72
  end
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 order files
10
+ # Ruby module for reading Vista HDS EDI files
11
11
  #
12
12
  # = Basic Usage
13
13
  # require 'rubygems'
14
14
  # require 'rvista'
15
- # msg = RVista::Message.load_from_file('somefile.txt')
16
- # puts msg.to_s
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: "0.5"
7
- date: 2007-10-11 00:00:00 +10:00
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