rapid_transit 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -37,7 +37,7 @@ class RapidTransit::Row
37
37
 
38
38
  def input_values
39
39
  columns = CSV.parse_line(line, :col_sep => parser.delimiter)
40
- columns = columns.map(&:strip) if parser.strip
40
+ columns = columns.map { |c| c.strip unless c.nil? } if parser.strip
41
41
  unless columns.count == parser.column_names.count
42
42
  message = "Wrong number of columns in line #{num}:\n#{line}\n" +
43
43
  "(Expected columns: #{parser.column_names.join(", ")})"
@@ -1,3 +1,3 @@
1
1
  module RapidTransit
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,123 +1,142 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rapid_transit
3
- version: !ruby/object:Gem::Version
4
- version: 0.0.3
5
- prerelease:
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 4
9
+ version: 0.0.4
6
10
  platform: ruby
7
- authors:
11
+ authors:
8
12
  - Jay McAliley
9
13
  autorequire:
10
14
  bindir: bin
11
15
  cert_chain: []
12
- date: 2012-03-21 00:00:00.000000000Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
16
+
17
+ date: 2012-03-21 00:00:00 -04:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
15
21
  name: rails
16
- requirement: &70164906728960 !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 2
29
+ - 3
30
+ - 8
21
31
  version: 2.3.8
22
32
  type: :runtime
23
- prerelease: false
24
- version_requirements: *70164906728960
25
- - !ruby/object:Gem::Dependency
33
+ version_requirements: *id001
34
+ - !ruby/object:Gem::Dependency
26
35
  name: sqlite3
27
- requirement: &70164908469340 !ruby/object:Gem::Requirement
28
- none: false
29
- requirements:
30
- - - ! '>='
31
- - !ruby/object:Gem::Version
32
- version: '0'
33
- type: :development
34
36
  prerelease: false
35
- version_requirements: *70164908469340
36
- - !ruby/object:Gem::Dependency
37
- name: factory_girl
38
- requirement: &70164908468880 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
41
- - - ! '>='
42
- - !ruby/object:Gem::Version
43
- version: '0'
37
+ requirement: &id002 !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ segments:
42
+ - 0
43
+ version: "0"
44
44
  type: :development
45
+ version_requirements: *id002
46
+ - !ruby/object:Gem::Dependency
47
+ name: factory_girl
45
48
  prerelease: false
46
- version_requirements: *70164908468880
47
- - !ruby/object:Gem::Dependency
48
- name: rspec-rails
49
- requirement: &70164908468460 !ruby/object:Gem::Requirement
50
- none: false
51
- requirements:
52
- - - ! '>='
53
- - !ruby/object:Gem::Version
54
- version: '0'
49
+ requirement: &id003 !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ segments:
54
+ - 0
55
+ version: "0"
55
56
  type: :development
57
+ version_requirements: *id003
58
+ - !ruby/object:Gem::Dependency
59
+ name: rspec-rails
56
60
  prerelease: false
57
- version_requirements: *70164908468460
58
- - !ruby/object:Gem::Dependency
59
- name: guard-rspec
60
- requirement: &70164908468040 !ruby/object:Gem::Requirement
61
- none: false
62
- requirements:
63
- - - ! '>='
64
- - !ruby/object:Gem::Version
65
- version: '0'
61
+ requirement: &id004 !ruby/object:Gem::Requirement
62
+ requirements:
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ segments:
66
+ - 0
67
+ version: "0"
66
68
  type: :development
69
+ version_requirements: *id004
70
+ - !ruby/object:Gem::Dependency
71
+ name: guard-rspec
67
72
  prerelease: false
68
- version_requirements: *70164908468040
69
- - !ruby/object:Gem::Dependency
70
- name: growl
71
- requirement: &70164908467620 !ruby/object:Gem::Requirement
72
- none: false
73
- requirements:
74
- - - ! '>='
75
- - !ruby/object:Gem::Version
76
- version: '0'
73
+ requirement: &id005 !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ segments:
78
+ - 0
79
+ version: "0"
77
80
  type: :development
81
+ version_requirements: *id005
82
+ - !ruby/object:Gem::Dependency
83
+ name: growl
78
84
  prerelease: false
79
- version_requirements: *70164908467620
80
- - !ruby/object:Gem::Dependency
81
- name: shoulda-matchers
82
- requirement: &70164908467200 !ruby/object:Gem::Requirement
83
- none: false
84
- requirements:
85
- - - ! '>='
86
- - !ruby/object:Gem::Version
87
- version: '0'
85
+ requirement: &id006 !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ segments:
90
+ - 0
91
+ version: "0"
88
92
  type: :development
93
+ version_requirements: *id006
94
+ - !ruby/object:Gem::Dependency
95
+ name: shoulda-matchers
89
96
  prerelease: false
90
- version_requirements: *70164908467200
91
- - !ruby/object:Gem::Dependency
92
- name: launchy
93
- requirement: &70164908466780 !ruby/object:Gem::Requirement
94
- none: false
95
- requirements:
96
- - - ! '>='
97
- - !ruby/object:Gem::Version
98
- version: '0'
97
+ requirement: &id007 !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ segments:
102
+ - 0
103
+ version: "0"
99
104
  type: :development
105
+ version_requirements: *id007
106
+ - !ruby/object:Gem::Dependency
107
+ name: launchy
100
108
  prerelease: false
101
- version_requirements: *70164908466780
102
- - !ruby/object:Gem::Dependency
103
- name: simplecov
104
- requirement: &70164908466360 !ruby/object:Gem::Requirement
105
- none: false
106
- requirements:
107
- - - ! '>='
108
- - !ruby/object:Gem::Version
109
- version: '0'
109
+ requirement: &id008 !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - - ">="
112
+ - !ruby/object:Gem::Version
113
+ segments:
114
+ - 0
115
+ version: "0"
110
116
  type: :development
117
+ version_requirements: *id008
118
+ - !ruby/object:Gem::Dependency
119
+ name: simplecov
111
120
  prerelease: false
112
- version_requirements: *70164908466360
113
- description: RapidTransit allows you to create text file parsers for use in a Ruby
114
- on Rails application.
115
- email:
121
+ requirement: &id009 !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ segments:
126
+ - 0
127
+ version: "0"
128
+ type: :development
129
+ version_requirements: *id009
130
+ description: RapidTransit allows you to create text file parsers for use in a Ruby on Rails application.
131
+ email:
116
132
  - jay.mcaliley@gmail.com
117
133
  executables: []
134
+
118
135
  extensions: []
136
+
119
137
  extra_rdoc_files: []
120
- files:
138
+
139
+ files:
121
140
  - lib/rapid_transit/action/base.rb
122
141
  - lib/rapid_transit/action/class_method.rb
123
142
  - lib/rapid_transit/action/instance_method.rb
@@ -131,28 +150,35 @@ files:
131
150
  - lib/tasks/rapid_transit_tasks.rake
132
151
  - MIT-LICENSE
133
152
  - Rakefile
153
+ has_rdoc: true
134
154
  homepage: https://github.com/jaymcaliley/rapid_transit
135
155
  licenses: []
156
+
136
157
  post_install_message:
137
158
  rdoc_options: []
138
- require_paths:
159
+
160
+ require_paths:
139
161
  - lib
140
- required_ruby_version: !ruby/object:Gem::Requirement
141
- none: false
142
- requirements:
143
- - - ! '>='
144
- - !ruby/object:Gem::Version
145
- version: '0'
146
- required_rubygems_version: !ruby/object:Gem::Requirement
147
- none: false
148
- requirements:
149
- - - ! '>='
150
- - !ruby/object:Gem::Version
151
- version: '0'
162
+ required_ruby_version: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ segments:
167
+ - 0
168
+ version: "0"
169
+ required_rubygems_version: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ segments:
174
+ - 0
175
+ version: "0"
152
176
  requirements: []
177
+
153
178
  rubyforge_project:
154
- rubygems_version: 1.8.10
179
+ rubygems_version: 1.3.6
155
180
  signing_key:
156
181
  specification_version: 3
157
182
  summary: A simple DSL for importing text files in Rails
158
183
  test_files: []
184
+