csv_lazy 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -3,7 +3,7 @@ source "http://rubygems.org"
3
3
  # Example:
4
4
  # gem "activesupport", ">= 2.3.5"
5
5
 
6
- gem "string_utils"
6
+ gem "string-strtr"
7
7
 
8
8
  # Add dependencies to develop your gem here.
9
9
  # Include everything needed to run rake, tests, features, etc.
data/Gemfile.lock CHANGED
@@ -20,7 +20,7 @@ GEM
20
20
  rspec-expectations (2.8.0)
21
21
  diff-lcs (~> 1.1.2)
22
22
  rspec-mocks (2.8.0)
23
- string_utils ()
23
+ string-strtr (0.0.2)
24
24
 
25
25
  PLATFORMS
26
26
  ruby
@@ -30,4 +30,4 @@ DEPENDENCIES
30
30
  jeweler (~> 1.8.4)
31
31
  rdoc (~> 3.12)
32
32
  rspec (~> 2.8.0)
33
- string_utils
33
+ string-strtr
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.5
1
+ 0.0.6
data/csv_lazy.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "csv_lazy"
8
- s.version = "0.0.5"
8
+ s.version = "0.0.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kasper Johansen"]
@@ -42,20 +42,20 @@ Gem::Specification.new do |s|
42
42
  s.specification_version = 3
43
43
 
44
44
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
45
- s.add_runtime_dependency(%q<string_utils>, [">= 0"])
45
+ s.add_runtime_dependency(%q<string-strtr>, [">= 0"])
46
46
  s.add_development_dependency(%q<rspec>, ["~> 2.8.0"])
47
47
  s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
48
48
  s.add_development_dependency(%q<bundler>, [">= 1.0.0"])
49
49
  s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
50
50
  else
51
- s.add_dependency(%q<string_utils>, [">= 0"])
51
+ s.add_dependency(%q<string-strtr>, [">= 0"])
52
52
  s.add_dependency(%q<rspec>, ["~> 2.8.0"])
53
53
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
54
54
  s.add_dependency(%q<bundler>, [">= 1.0.0"])
55
55
  s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
56
56
  end
57
57
  else
58
- s.add_dependency(%q<string_utils>, [">= 0"])
58
+ s.add_dependency(%q<string-strtr>, [">= 0"])
59
59
  s.add_dependency(%q<rspec>, ["~> 2.8.0"])
60
60
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
61
61
  s.add_dependency(%q<bundler>, [">= 1.0.0"])
data/lib/csv_lazy.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  #encoding: utf-8
2
- require "string_utils"
2
+ require "string-strtr"
3
3
 
4
4
  #A simple library for parsing CSV-files through IO's. Solves corrupt file formats automatically like when files contains several spaces after a column and more.
5
5
  class Csv_lazy
@@ -150,12 +150,13 @@ class Csv_lazy
150
150
  end
151
151
 
152
152
  def unescape(str)
153
- return StringUtils.strtr(str, {
153
+ return str.strtr(
154
154
  "\\\\" => "\\",
155
155
  "\\t" => "\t",
156
156
  "\\n" => "\n",
157
+ "\\r" => "\r",
157
158
  "\\\"" => "\""
158
- })
159
+ )
159
160
  end
160
161
 
161
162
  #Adds the next column to the row. Returns true if more columns should be read or false if this was the end of the row.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: csv_lazy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,7 +12,7 @@ cert_chain: []
12
12
  date: 2013-03-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: string_utils
15
+ name: string-strtr
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
@@ -128,7 +128,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
128
128
  version: '0'
129
129
  segments:
130
130
  - 0
131
- hash: -1390404400491179462
131
+ hash: 4191941557045645658
132
132
  required_rubygems_version: !ruby/object:Gem::Requirement
133
133
  none: false
134
134
  requirements: