csv_shaper 1.3.0 → 1.3.1

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
- SHA1:
3
- metadata.gz: 08c09e47a1ca21b104be8218ff8d7fa7eca5b034
4
- data.tar.gz: 20ddc9b2f52d0e23743fb63814d4ac0afe060d53
2
+ SHA256:
3
+ metadata.gz: a80ca33e1cff80cda6f06d8ee7d8b6c33229b2911031de5ee2d2d1a02e3f6c05
4
+ data.tar.gz: 054dbdc041cbbc51063b6988fe1a0a2d9d085ec4f3e3bf5209f9c0038b523316
5
5
  SHA512:
6
- metadata.gz: e1280a83e280ad4184a4336babdb2ac50c89d8feb68ccf8625e36624f13964ed3bffc61255d33aabe91f4d7ec3a9d1ba418661d677f8cf84b4af7c32cf7e7c38
7
- data.tar.gz: cdb6b968d4d3482f0c982c84a8ca1f5e48af6f5a7964791b31cfac8f4ee6ca9f2dabf49018873efa049bb505cca95a5b893e73181d98f1a8435c892c0985d4f9
6
+ metadata.gz: 1720b33b849287cb2695395ea797beec679bf64776c03186020c86cbc26e4261224a66157642c62c9e440321dedae823976cb218d0823ed2e3faa2f9760d007e
7
+ data.tar.gz: d0814a238d065a7ec894cebb1aff61b5aafdd70a3927d2b668a19f9f50b54c20238180666db32ae4f72f02413c6b54b4a9e0e8f734f22ff9b239b691e5cf8686
@@ -1,3 +1,3 @@
1
1
  rvm:
2
- - 2.0.0
2
+ - 2.2.5
3
3
  - 2.3.1
data/README.md CHANGED
@@ -27,7 +27,7 @@ end
27
27
 
28
28
  ### Install
29
29
 
30
- **Requires Ruby 2.0+**
30
+ **Requires Ruby 2.2+**
31
31
 
32
32
  Install using Rubygems
33
33
 
@@ -1,3 +1,3 @@
1
1
  module CsvShaper
2
- VERSION = "1.3.0"
2
+ VERSION = "1.3.1"
3
3
  end
@@ -9,7 +9,7 @@ class CsvShaperHandler
9
9
  # Expected `call` class method
10
10
  # Set response headers with filename
11
11
  # Primarily calls CsvShaperTemplate.encode, passing through the context (self)
12
- def self.call(template)
12
+ def self.call(template, source = nil)
13
13
  %{
14
14
  if ( controller.present? ) && !( defined?(ActionMailer) && defined?(ActionMailer::Base) && controller.is_a?(ActionMailer::Base) )
15
15
  @filename ||= "\#{controller.action_name}.csv"
@@ -18,7 +18,7 @@ class CsvShaperHandler
18
18
  end
19
19
 
20
20
  CsvShaperTemplate.encode(self) do |csv|
21
- #{template.source}
21
+ #{source || template.source}
22
22
  end
23
23
  }
24
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: csv_shaper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Springett
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-20 00:00:00.000000000 Z
11
+ date: 2019-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  version: '0'
110
110
  requirements: []
111
111
  rubyforge_project:
112
- rubygems_version: 2.5.1
112
+ rubygems_version: 2.7.7
113
113
  signing_key:
114
114
  specification_version: 4
115
115
  summary: Beautiful DSL for creating CSV output in Ruby & Rails