comma 2.1.2 → 2.1.3

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.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- comma (2.1.2)
4
+ comma (2.1.3)
5
5
  fastercsv (~> 1.5.4)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
- remote: /Users/tom/development/projects/current/comma
2
+ remote: /Users/tom/src/personal/comma
3
3
  specs:
4
- comma (2.1.1)
4
+ comma (2.1.3)
5
5
  fastercsv (~> 1.5.4)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
- remote: /Users/tom/development/projects/current/comma
2
+ remote: /Users/tom/src/personal/comma
3
3
  specs:
4
- comma (2.1.1)
4
+ comma (2.1.3)
5
5
  fastercsv (~> 1.5.4)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
- remote: /Users/tom/development/projects/current/comma
2
+ remote: /Users/tom/src/personal/comma
3
3
  specs:
4
- comma (2.1.1)
4
+ comma (2.1.3)
5
5
  fastercsv (~> 1.5.4)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
- remote: /Users/tom/development/projects/current/comma
2
+ remote: /Users/tom/src/personal/comma
3
3
  specs:
4
- comma (2.1.1)
4
+ comma (2.1.3)
5
5
  fastercsv (~> 1.5.4)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
- remote: /Users/tom/development/projects/current/comma
2
+ remote: /Users/tom/src/personal/comma
3
3
  specs:
4
- comma (2.1.1)
4
+ comma (2.1.3)
5
5
  fastercsv (~> 1.5.4)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
- remote: /Users/tom/development/projects/current/comma
2
+ remote: /Users/tom/src/personal/comma
3
3
  specs:
4
- comma (2.1.1)
4
+ comma (2.1.3)
5
5
  fastercsv (~> 1.5.4)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
- remote: /Users/tom/development/projects/current/comma
2
+ remote: /Users/tom/src/personal/comma
3
3
  specs:
4
- comma (2.1.1)
4
+ comma (2.1.3)
5
5
  fastercsv (~> 1.5.4)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
- remote: /Users/tom/development/projects/current/comma
2
+ remote: /Users/tom/src/personal/comma
3
3
  specs:
4
- comma (2.1.1)
4
+ comma (2.1.3)
5
5
  fastercsv (~> 1.5.4)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
- remote: /Users/tom/development/projects/current/comma
2
+ remote: /Users/tom/src/personal/comma
3
3
  specs:
4
- comma (2.1.1)
4
+ comma (2.1.3)
5
5
  fastercsv (~> 1.5.4)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
- remote: /Users/tom/development/projects/current/comma
2
+ remote: /Users/tom/src/personal/comma
3
3
  specs:
4
- comma (2.1.1)
4
+ comma (2.1.3)
5
5
  fastercsv (~> 1.5.4)
6
6
 
7
7
  GEM
@@ -32,14 +32,14 @@ module RenderAsCSV
32
32
  content = options[:content]
33
33
  style = options[:style]
34
34
 
35
- unless self.respond_to?(:status)
36
- render :status => status, :text => Proc.new { |response, output|
35
+ if self.respond_to?(:status=)
36
+ self.status = status
37
+ self.response_body = proc { |response, output|
37
38
  output.write CSV_HANDLER.generate_line(content.first.to_comma_headers(style))
38
39
  content.each { |line| output.write CSV_HANDLER.generate_line(line.to_comma(style)) }
39
40
  }
40
41
  else
41
- self.status = status
42
- self.response_body = proc { |response, output|
42
+ render :status => status, :text => Proc.new { |response, output|
43
43
  output.write CSV_HANDLER.generate_line(content.first.to_comma_headers(style))
44
44
  content.each { |line| output.write CSV_HANDLER.generate_line(line.to_comma(style)) }
45
45
  }
data/lib/comma/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Comma
2
- VERSION = "2.1.2"
2
+ VERSION = "2.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: comma
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-02-05 00:00:00.000000000 Z
13
+ date: 2013-05-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: fastercsv
@@ -164,7 +164,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
164
164
  version: '0'
165
165
  segments:
166
166
  - 0
167
- hash: -1887513965366661584
167
+ hash: -3789187626327987822
168
168
  required_rubygems_version: !ruby/object:Gem::Requirement
169
169
  none: false
170
170
  requirements:
@@ -173,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
173
173
  version: '0'
174
174
  segments:
175
175
  - 0
176
- hash: -1887513965366661584
176
+ hash: -3789187626327987822
177
177
  requirements: []
178
178
  rubyforge_project: comma
179
179
  rubygems_version: 1.8.23