rvista 0.6.7 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ v0.7.0 (12th December 2011)
2
+ - use csv from the standard lib instead of fastercsv
3
+
1
4
  v0.6.7 (20th November 2010)
2
5
  - depend on fastercsv gem, forces bundler to include it on the load path
3
6
 
@@ -2,14 +2,7 @@
2
2
 
3
3
  require 'andand'
4
4
  require 'chronic'
5
-
6
- # FasterCSV is included in the 1.9 standard library as CSV
7
- if RUBY_VERSION >= "1.9"
8
- require 'csv'
9
- FasterCSV = FCSV = CSV
10
- else
11
- require "fastercsv"
12
- end
5
+ require 'csv'
13
6
 
14
7
  require 'rvista/errors'
15
8
  require 'rvista/message'
@@ -20,14 +20,14 @@ module RVista
20
20
  # that specifies the file path
21
21
  def self.load_from_file(input)
22
22
  raise InvalidFileError, 'Invalid file' unless File.exist?(input)
23
- data = FasterCSV.read(input, :quote_char => "`")
23
+ data = CSV.read(input, :quote_char => "`")
24
24
  return self.build_message(data)
25
25
  end
26
26
 
27
27
  # creates a RVista::Invoice object from a string. Input should
28
28
  # be a complete vista file as a string
29
29
  def self.load_from_string(input)
30
- data = FasterCSV.parse(input, :quote_char => "`")
30
+ data = CSV.parse(input, :quote_char => "`")
31
31
  return self.build_message(data)
32
32
  end
33
33
 
@@ -25,14 +25,14 @@ module RVista
25
25
  # that specifies the file path
26
26
  def self.load_from_file(input)
27
27
  raise InvalidFileError, 'Invalid file' unless File.exist?(input)
28
- data = FasterCSV.read(input, :quote_char => "`")
28
+ data = CSV.read(input, :quote_char => "`")
29
29
  return self.build_message(data)
30
30
  end
31
31
 
32
32
  # creates a RVista::Message object from a string. Input should
33
33
  # be a complete vista file as a string
34
34
  def self.load_from_string(input)
35
- data = FasterCSV.parse(input, :quote_char => "`")
35
+ data = CSV.parse(input, :quote_char => "`")
36
36
  return self.build_message(data)
37
37
  end
38
38
 
@@ -21,14 +21,14 @@ module RVista
21
21
  # that specifies the file path
22
22
  def self.load_from_file(input)
23
23
  raise InvalidFileError, 'Invalid file' unless File.exist?(input)
24
- data = FasterCSV.read(input, :quote_char => "`")
24
+ data = CSV.read(input, :quote_char => "`")
25
25
  return self.build_message(data)
26
26
  end
27
27
 
28
28
  # creates a RVista::POA object from a string. Input should
29
29
  # be a complete vista file as a string
30
30
  def self.load_from_string(input)
31
- data = FasterCSV.parse(input, :quote_char => "`")
31
+ data = CSV.parse(input, :quote_char => "`")
32
32
  return self.build_message(data)
33
33
  end
34
34
 
metadata CHANGED
@@ -1,160 +1,111 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rvista
3
- version: !ruby/object:Gem::Version
4
- hash: 9
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 6
9
- - 7
10
- version: 0.6.7
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.7.0
5
+ prerelease:
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - James Healy
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2010-11-20 00:00:00 -05:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2011-12-12 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: rake
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &16341360 !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
32
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
33
22
  type: :development
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: rspec
37
23
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *16341360
25
+ - !ruby/object:Gem::Dependency
26
+ name: rspec
27
+ requirement: &16340560 !ruby/object:Gem::Requirement
39
28
  none: false
40
- requirements:
29
+ requirements:
41
30
  - - ~>
42
- - !ruby/object:Gem::Version
43
- hash: 11
44
- segments:
45
- - 2
46
- - 1
47
- - 0
48
- version: 2.1.0
31
+ - !ruby/object:Gem::Version
32
+ version: '2.1'
49
33
  type: :development
50
- version_requirements: *id002
51
- - !ruby/object:Gem::Dependency
52
- name: andand
53
34
  prerelease: false
54
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *16340560
36
+ - !ruby/object:Gem::Dependency
37
+ name: andand
38
+ requirement: &16339480 !ruby/object:Gem::Requirement
55
39
  none: false
56
- requirements:
57
- - - ">="
58
- - !ruby/object:Gem::Version
59
- hash: 3
60
- segments:
61
- - 0
62
- version: "0"
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
63
44
  type: :runtime
64
- version_requirements: *id003
65
- - !ruby/object:Gem::Dependency
66
- name: chronic
67
45
  prerelease: false
68
- requirement: &id004 !ruby/object:Gem::Requirement
46
+ version_requirements: *16339480
47
+ - !ruby/object:Gem::Dependency
48
+ name: chronic
49
+ requirement: &16338960 !ruby/object:Gem::Requirement
69
50
  none: false
70
- requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
73
- hash: 3
74
- segments:
75
- - 0
76
- version: "0"
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
77
55
  type: :runtime
78
- version_requirements: *id004
79
- - !ruby/object:Gem::Dependency
80
- name: fastercsv
81
56
  prerelease: false
82
- requirement: &id005 !ruby/object:Gem::Requirement
83
- none: false
84
- requirements:
85
- - - ~>
86
- - !ruby/object:Gem::Version
87
- hash: 3
88
- segments:
89
- - 1
90
- - 5
91
- - 0
92
- version: 1.5.0
93
- type: :runtime
94
- version_requirements: *id005
57
+ version_requirements: *16338960
95
58
  description: rvista is a small library for reading Vista HDS files.
96
59
  email: jimmy@deefa.com
97
60
  executables: []
98
-
99
61
  extensions: []
100
-
101
- extra_rdoc_files:
62
+ extra_rdoc_files:
102
63
  - README
103
64
  - COPYING
104
65
  - LICENSE
105
66
  - CHANGELOG
106
- files:
67
+ files:
107
68
  - lib/rvista.rb
108
- - lib/rvista/errors.rb
109
- - lib/rvista/invoice.rb
110
69
  - lib/rvista/poa_line_item.rb
111
70
  - lib/rvista/po.rb
71
+ - lib/rvista/invoice.rb
112
72
  - lib/rvista/invoice_line_item.rb
113
- - lib/rvista/message.rb
114
73
  - lib/rvista/poa.rb
74
+ - lib/rvista/errors.rb
115
75
  - lib/rvista/po_line_item.rb
76
+ - lib/rvista/message.rb
116
77
  - Rakefile
117
78
  - README
118
79
  - COPYING
119
80
  - LICENSE
120
81
  - CHANGELOG
121
- has_rdoc: true
122
82
  homepage: https://github.com/yob/rvista
123
83
  licenses: []
124
-
125
84
  post_install_message:
126
- rdoc_options:
85
+ rdoc_options:
127
86
  - --title
128
87
  - rvista Documentation
129
88
  - --main
130
89
  - README
131
90
  - -q
132
- require_paths:
91
+ require_paths:
133
92
  - lib
134
- required_ruby_version: !ruby/object:Gem::Requirement
93
+ required_ruby_version: !ruby/object:Gem::Requirement
135
94
  none: false
136
- requirements:
137
- - - ">="
138
- - !ruby/object:Gem::Version
139
- hash: 3
140
- segments:
141
- - 0
142
- version: "0"
143
- required_rubygems_version: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: 1.9.1
99
+ required_rubygems_version: !ruby/object:Gem::Requirement
144
100
  none: false
145
- requirements:
146
- - - ">="
147
- - !ruby/object:Gem::Version
148
- hash: 3
149
- segments:
150
- - 0
151
- version: "0"
101
+ requirements:
102
+ - - ! '>='
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
152
105
  requirements: []
153
-
154
106
  rubyforge_project:
155
- rubygems_version: 1.3.7
107
+ rubygems_version: 1.8.11
156
108
  signing_key:
157
109
  specification_version: 3
158
110
  summary: A small library for reading Vista HDS ecommerce files
159
111
  test_files: []
160
-