podcsv 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5384b630209665f2a102fed2bf303483371e10a0
4
- data.tar.gz: 825be9602722f5c8d569b5a5e73de835e2707840
3
+ metadata.gz: 479b585dbcbd90c248d2f41f9444df1081b19884
4
+ data.tar.gz: 2809e93b4f23cef0382aaf654351c6857294797d
5
5
  SHA512:
6
- metadata.gz: 5d34b796ec656ff09fc5e37587dd4cf93087e87b3d36a8c444f4ef58b1fe3a9929dfe39f6656929f26741fcd4b54c1fd0a1d88f16ffc0db5b08e68b15d056265
7
- data.tar.gz: 886112480de251a7ef9c5dfbb66f01348cf9275bb4399cfb82f8a82f50303c917fedc3b59c8771d401de7bef93aeb9e1d10f5e83d371f4dd8f42acf5603629ca
6
+ metadata.gz: 509f17323a75514bbab62a076f9c14f7df1001dfc7b7d4b4af018cae606ce41dd01658add2ce4efabda1e0e9a0de0454ab5c1d3ae2161c7430ce290180392339
7
+ data.tar.gz: 40076aa0abb26cdebaeef24f94857d0698484c9bb2d4fcc98697c2abcff3eb181845f15f782b503657c826261fd8047f14c87ab7d577bdff1221b8c8070f4fc8
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2015 YAMAMOTO, Masayuki
3
+ Copyright (c) 2015- YAMAMOTO, Masayuki
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # PodCSV another lazy solution for `csv`
1
+ # PodCSV - another lazy solution for `csv`
2
2
 
3
3
  podcsv.gem provides fast access to big CSV file such as several 10 thousand
4
4
  records. This introduces two classes: Parse-on-demand CSV and Array (PodCSV,
@@ -96,7 +96,8 @@ class PodArray < Array
96
96
  #$stderr.puts "{#{self.class}##{__method__}} args: #{args} / rr: #{rr}"
97
97
 
98
98
  pary = super(args)
99
- ret = PodArray.new(
99
+ # `self.class` for derived classes.
100
+ ret = self.class.new(
100
101
  # Integer
101
102
  pary
102
103
  )
@@ -142,7 +143,7 @@ class PodArray < Array
142
143
 
143
144
  def reverse
144
145
  #$stderr.puts "#{self.class}##{__method__} ()"
145
- ret = PodArray.new(super)
146
+ ret = self.class.new(super)
146
147
  #$stderr.puts "#{self.class}##{__method__} ret: #{ret.class}"
147
148
  #$stderr.puts "#{self.class}##{__method__} ret.first: #{ret.first.class}"
148
149
 
@@ -203,7 +204,7 @@ class PodArray < Array
203
204
 
204
205
  # return
205
206
  if block_given?
206
- PodArray.new(ret)
207
+ self.class.new(ret)
207
208
  else
208
209
  tmp
209
210
  end
@@ -1,3 +1,3 @@
1
1
  class PodCSV
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: podcsv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - YAMAMOTO, Masayuki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-02-08 00:00:00.000000000 Z
11
+ date: 2018-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler