rubysl-csv 2.0.1 → 2.0.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 06b35a01dd6e04add0701020be3f918d840698d4
4
- data.tar.gz: b8addc03698ccd506f75a0370204553710dcfe1c
3
+ metadata.gz: 96ed441e2d882e94062cc1c16c8b94210e6d8e5c
4
+ data.tar.gz: f2c42644052662ca6ae1e8cd75d44a7c10ebc5a9
5
5
  SHA512:
6
- metadata.gz: 12419103eb8b2833f0aca7c11477c69e7175d0e1e8964616b5077dd9ef84e028b93dfbd6ddfc0e1f0f8d25d9939cd52bf4088ba708d3958271fc4ea3b663b27c
7
- data.tar.gz: f388bfd4ba16eae0714a9fed2031f2175b4a435f9176c39d9155d1a07bad33ba882e72a94c3d370b22f0ac08a15b3f036c6a0fff0ff92a6910b77b320bf7c730
6
+ metadata.gz: 18510d2f9ab7297c2d35458fac5e91ed3a957fbb8d88c14a7b98eed9066eb4b76c313e10474ebabe82c54e68b372239f38c4892ec6d7a2cacaf43800cdd5c676
7
+ data.tar.gz: 8953c687c755f8ed13af3698ea820111f74c549861d7ed1255edd562ee6cd030ddd5f0dcaf62b72adaf5b79d4c3eb0628208bfd72ecccea3389f8171d47ec4f9
@@ -1,9 +1,14 @@
1
1
  language: ruby
2
- before_install:
3
- - rvm use $RVM --install --binary --fuzzy
4
- - gem update --system
5
- - gem --version
6
- - gem install rubysl-bundler
7
2
  env:
8
- - RVM=rbx-nightly-d21 RUBYLIB=lib
9
- script: bundle exec mspec spec
3
+ - RUBYLIB=lib
4
+ - RUBYLIB=
5
+ script: mspec spec
6
+ rvm:
7
+ - 2.0.0
8
+ - rbx-2.1.1
9
+ matrix:
10
+ exclude:
11
+ - rvm: 2.0.0
12
+ env: RUBYLIB=lib
13
+ - rvm: rbx-2.1.1
14
+ env: RUBYLIB=
@@ -1116,6 +1116,7 @@ class CSV
1116
1116
  # but transcode it to UTF-8 before CSV parses it.
1117
1117
  #
1118
1118
  def self.foreach(path, options = Hash.new, &block)
1119
+ return to_enum(__method__, path, options) unless block
1119
1120
  open(path, options) do |csv|
1120
1121
  csv.each(&block)
1121
1122
  end
@@ -1299,8 +1300,8 @@ class CSV
1299
1300
 
1300
1301
  #
1301
1302
  # This method is a shortcut for converting a single line of a CSV String into
1302
- # a into an Array. Note that if +line+ contains multiple rows, anything
1303
- # beyond the first row is ignored.
1303
+ # an Array. Note that if +line+ contains multiple rows, anything beyond the
1304
+ # first row is ignored.
1304
1305
  #
1305
1306
  # The +options+ parameter can be anything CSV::new() understands.
1306
1307
  #
@@ -1655,7 +1656,7 @@ class CSV
1655
1656
  if @io.is_a?(StringIO) and
1656
1657
  output.encoding != raw_encoding and
1657
1658
  (compatible_encoding = Encoding.compatible?(@io.string, output))
1658
- @io = StringIO.new(@io.string.force_encoding(compatible_encoding))
1659
+ @io.set_encoding(compatible_encoding)
1659
1660
  @io.seek(0, IO::SEEK_END)
1660
1661
  end
1661
1662
  @io << output
@@ -1,5 +1,5 @@
1
1
  module RubySL
2
2
  module CSV
3
- VERSION = "2.0.1"
3
+ VERSION = "2.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,83 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubysl-csv
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Shirai
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-09 00:00:00.000000000 Z
11
+ date: 2013-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- type: :runtime
15
14
  name: rubysl-english
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.0'
20
+ type: :runtime
16
21
  prerelease: false
17
22
  version_requirements: !ruby/object:Gem::Requirement
18
23
  requirements:
19
- - - ~>
24
+ - - "~>"
20
25
  - !ruby/object:Gem::Version
21
26
  version: '2.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
22
29
  requirement: !ruby/object:Gem::Requirement
23
30
  requirements:
24
- - - ~>
31
+ - - "~>"
25
32
  - !ruby/object:Gem::Version
26
- version: '2.0'
27
- - !ruby/object:Gem::Dependency
33
+ version: '1.3'
28
34
  type: :development
29
- name: bundler
30
35
  prerelease: false
31
36
  version_requirements: !ruby/object:Gem::Requirement
32
37
  requirements:
33
- - - ~>
38
+ - - "~>"
34
39
  - !ruby/object:Gem::Version
35
40
  version: '1.3'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
36
43
  requirement: !ruby/object:Gem::Requirement
37
44
  requirements:
38
- - - ~>
45
+ - - "~>"
39
46
  - !ruby/object:Gem::Version
40
- version: '1.3'
41
- - !ruby/object:Gem::Dependency
47
+ version: '10.0'
42
48
  type: :development
43
- name: rake
44
49
  prerelease: false
45
50
  version_requirements: !ruby/object:Gem::Requirement
46
51
  requirements:
47
- - - ~>
52
+ - - "~>"
48
53
  - !ruby/object:Gem::Version
49
54
  version: '10.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: mspec
50
57
  requirement: !ruby/object:Gem::Requirement
51
58
  requirements:
52
- - - ~>
59
+ - - "~>"
53
60
  - !ruby/object:Gem::Version
54
- version: '10.0'
55
- - !ruby/object:Gem::Dependency
61
+ version: '1.5'
56
62
  type: :development
57
- name: mspec
58
63
  prerelease: false
59
64
  version_requirements: !ruby/object:Gem::Requirement
60
65
  requirements:
61
- - - ~>
66
+ - - "~>"
62
67
  - !ruby/object:Gem::Version
63
68
  version: '1.5'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubysl-prettyprint
64
71
  requirement: !ruby/object:Gem::Requirement
65
72
  requirements:
66
- - - ~>
73
+ - - "~>"
67
74
  - !ruby/object:Gem::Version
68
- version: '1.5'
69
- - !ruby/object:Gem::Dependency
75
+ version: '2.0'
70
76
  type: :development
71
- name: rubysl-prettyprint
72
77
  prerelease: false
73
78
  version_requirements: !ruby/object:Gem::Requirement
74
79
  requirements:
75
- - - ~>
76
- - !ruby/object:Gem::Version
77
- version: '2.0'
78
- requirement: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '2.0'
83
83
  description: Ruby standard library csv.
@@ -87,8 +87,8 @@ executables: []
87
87
  extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
- - .gitignore
91
- - .travis.yml
90
+ - ".gitignore"
91
+ - ".travis.yml"
92
92
  - Gemfile
93
93
  - LICENSE
94
94
  - README.md
@@ -159,17 +159,17 @@ require_paths:
159
159
  - lib
160
160
  required_ruby_version: !ruby/object:Gem::Requirement
161
161
  requirements:
162
- - - ~>
162
+ - - "~>"
163
163
  - !ruby/object:Gem::Version
164
164
  version: '2.0'
165
165
  required_rubygems_version: !ruby/object:Gem::Requirement
166
166
  requirements:
167
- - - '>='
167
+ - - ">="
168
168
  - !ruby/object:Gem::Version
169
169
  version: '0'
170
170
  requirements: []
171
171
  rubyforge_project:
172
- rubygems_version: 2.1.0.rc.1
172
+ rubygems_version: 2.0.7
173
173
  signing_key:
174
174
  specification_version: 4
175
175
  summary: Ruby standard library csv.
@@ -225,3 +225,4 @@ test_files:
225
225
  - spec/writer/generate_spec.rb
226
226
  - spec/writer/initialize_spec.rb
227
227
  - spec/writer/terminate_spec.rb
228
+ has_rdoc: