csb 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 8f7128f9da7c524332cafd6de0877625dc701a7e4bd8e31f6877e6d1e0a1a4b0
4
+ data.tar.gz: a401061c0d282c6053d7a6ce993277b07baf148060f7eb02d08ba7e5c623451c
5
+ SHA512:
6
+ metadata.gz: ea6f2d495aae5e6b657f62c19b06b4aae793f76da97083e482c1e4da3090f3a3279dfc0b331d0ff61331ef7d39924885d927b95c6940d8a75e9552e16ec830d3
7
+ data.tar.gz: 8dc22cc49dd3f803fffa45df1e1dc09bdcf45a9e7bccef683991fa977f7e209f2b33bc46fffe3b23b6647b486598002b85611592747d83d3078ad851fdf1a161
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.6.3
7
+ before_install: gem install bundler -v 2.0.1
@@ -0,0 +1,12 @@
1
+ ## 0.2.0
2
+
3
+ - Rename
4
+ - Changed API
5
+
6
+ ## 0.1.1
7
+
8
+ - Add after_streaming_error config
9
+
10
+ ## 0.1.0
11
+
12
+ - First Release
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at lala.akira@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in csb.gemspec
4
+ gemspec
@@ -0,0 +1,144 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ csb (0.2.0)
5
+ csv
6
+ rails (~> 5.2.0)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ actioncable (5.2.3)
12
+ actionpack (= 5.2.3)
13
+ nio4r (~> 2.0)
14
+ websocket-driver (>= 0.6.1)
15
+ actionmailer (5.2.3)
16
+ actionpack (= 5.2.3)
17
+ actionview (= 5.2.3)
18
+ activejob (= 5.2.3)
19
+ mail (~> 2.5, >= 2.5.4)
20
+ rails-dom-testing (~> 2.0)
21
+ actionpack (5.2.3)
22
+ actionview (= 5.2.3)
23
+ activesupport (= 5.2.3)
24
+ rack (~> 2.0)
25
+ rack-test (>= 0.6.3)
26
+ rails-dom-testing (~> 2.0)
27
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
28
+ actionview (5.2.3)
29
+ activesupport (= 5.2.3)
30
+ builder (~> 3.1)
31
+ erubi (~> 1.4)
32
+ rails-dom-testing (~> 2.0)
33
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
34
+ activejob (5.2.3)
35
+ activesupport (= 5.2.3)
36
+ globalid (>= 0.3.6)
37
+ activemodel (5.2.3)
38
+ activesupport (= 5.2.3)
39
+ activerecord (5.2.3)
40
+ activemodel (= 5.2.3)
41
+ activesupport (= 5.2.3)
42
+ arel (>= 9.0)
43
+ activestorage (5.2.3)
44
+ actionpack (= 5.2.3)
45
+ activerecord (= 5.2.3)
46
+ marcel (~> 0.3.1)
47
+ activesupport (5.2.3)
48
+ concurrent-ruby (~> 1.0, >= 1.0.2)
49
+ i18n (>= 0.7, < 2)
50
+ minitest (~> 5.1)
51
+ tzinfo (~> 1.1)
52
+ arel (9.0.0)
53
+ builder (3.2.3)
54
+ concurrent-ruby (1.1.5)
55
+ crass (1.0.4)
56
+ csv (3.1.1)
57
+ diff-lcs (1.3)
58
+ erubi (1.8.0)
59
+ globalid (0.4.2)
60
+ activesupport (>= 4.2.0)
61
+ i18n (1.6.0)
62
+ concurrent-ruby (~> 1.0)
63
+ loofah (2.2.3)
64
+ crass (~> 1.0.2)
65
+ nokogiri (>= 1.5.9)
66
+ mail (2.7.1)
67
+ mini_mime (>= 0.1.1)
68
+ marcel (0.3.3)
69
+ mimemagic (~> 0.3.2)
70
+ method_source (0.9.2)
71
+ mimemagic (0.3.3)
72
+ mini_mime (1.0.1)
73
+ mini_portile2 (2.4.0)
74
+ minitest (5.11.3)
75
+ nio4r (2.3.1)
76
+ nokogiri (1.10.3)
77
+ mini_portile2 (~> 2.4.0)
78
+ rack (2.0.7)
79
+ rack-test (1.1.0)
80
+ rack (>= 1.0, < 3)
81
+ rails (5.2.3)
82
+ actioncable (= 5.2.3)
83
+ actionmailer (= 5.2.3)
84
+ actionpack (= 5.2.3)
85
+ actionview (= 5.2.3)
86
+ activejob (= 5.2.3)
87
+ activemodel (= 5.2.3)
88
+ activerecord (= 5.2.3)
89
+ activestorage (= 5.2.3)
90
+ activesupport (= 5.2.3)
91
+ bundler (>= 1.3.0)
92
+ railties (= 5.2.3)
93
+ sprockets-rails (>= 2.0.0)
94
+ rails-dom-testing (2.0.3)
95
+ activesupport (>= 4.2.0)
96
+ nokogiri (>= 1.6)
97
+ rails-html-sanitizer (1.0.4)
98
+ loofah (~> 2.2, >= 2.2.2)
99
+ railties (5.2.3)
100
+ actionpack (= 5.2.3)
101
+ activesupport (= 5.2.3)
102
+ method_source
103
+ rake (>= 0.8.7)
104
+ thor (>= 0.19.0, < 2.0)
105
+ rake (10.5.0)
106
+ rspec (3.8.0)
107
+ rspec-core (~> 3.8.0)
108
+ rspec-expectations (~> 3.8.0)
109
+ rspec-mocks (~> 3.8.0)
110
+ rspec-core (3.8.0)
111
+ rspec-support (~> 3.8.0)
112
+ rspec-expectations (3.8.3)
113
+ diff-lcs (>= 1.2.0, < 2.0)
114
+ rspec-support (~> 3.8.0)
115
+ rspec-mocks (3.8.0)
116
+ diff-lcs (>= 1.2.0, < 2.0)
117
+ rspec-support (~> 3.8.0)
118
+ rspec-support (3.8.0)
119
+ sprockets (3.7.2)
120
+ concurrent-ruby (~> 1.0)
121
+ rack (> 1, < 3)
122
+ sprockets-rails (3.2.1)
123
+ actionpack (>= 4.0)
124
+ activesupport (>= 4.0)
125
+ sprockets (>= 3.0.0)
126
+ thor (0.20.3)
127
+ thread_safe (0.3.6)
128
+ tzinfo (1.2.5)
129
+ thread_safe (~> 0.1)
130
+ websocket-driver (0.7.0)
131
+ websocket-extensions (>= 0.1.0)
132
+ websocket-extensions (0.1.3)
133
+
134
+ PLATFORMS
135
+ ruby
136
+
137
+ DEPENDENCIES
138
+ bundler (~> 2.0)
139
+ csb!
140
+ rake (~> 10.0)
141
+ rspec (~> 3.0)
142
+
143
+ BUNDLED WITH
144
+ 2.0.1
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 aki
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,104 @@
1
+ # Csb
2
+
3
+ A simple and streaming support CSV template engine for Ruby on Rails.
4
+
5
+ ## Usage
6
+
7
+ ### Template handler
8
+
9
+ In app/controllers/reports_controller.rb:
10
+
11
+ ```ruby
12
+ def index
13
+ @reports = Report.preload(:categories)
14
+ end
15
+ ```
16
+
17
+ In app/views/reports/index.csv.csb:
18
+
19
+ ```ruby
20
+ csv.items = @reports
21
+ # When there are many records
22
+ # csv.items = @reports.find_each
23
+
24
+ # csv.filename = "reports_#{Time.current.to_i}.csv"
25
+ # csv.streaming = false
26
+
27
+ csv.cols.add('Update date') { |r| l(r.updated_at.to_date) }
28
+ csv.cols.add('Categories') { |r| r.categories.pluck(:name).join(' ') }
29
+ csv.cols.add('Content', :content)
30
+ csv.cols.add('Empty')
31
+ csv.cols.add('Static', 'dummy')
32
+ ```
33
+
34
+ Output:
35
+
36
+ ```csv
37
+ Update date,Categories,Content,Empty,Static
38
+ 2019/06/01,category1 category2,content1,,dummy
39
+ 2019/06/02,category3,content2,,dummy
40
+ ```
41
+
42
+ ### Directly
43
+
44
+ ```ruby
45
+ csv = Csb::Builder.new(items: items)
46
+ csv.cols.add('Update date') { |r| l(r.updated_at.to_date) }
47
+ csv.cols.add('Categories') { |r| r.categories.pluck(:name).join(' ') }
48
+ csv.cols.add('Content', :content)
49
+ csv.cols.add('Empty')
50
+ csv.cols.add('Static', 'dummy')
51
+ csv.build
52
+
53
+ # =>
54
+ # Update date,Categories,Content,Empty,Static
55
+ # 2019/06/01,category1 category2,content1,,dummy
56
+ # 2019/06/02,category3,content2,,dummy
57
+ ```
58
+
59
+ ## Installation
60
+
61
+ Add this line to your application's Gemfile:
62
+
63
+ ```ruby
64
+ gem 'csb'
65
+ ```
66
+
67
+ And then execute:
68
+
69
+ ```bash
70
+ $ bundle
71
+ ```
72
+
73
+ Or install it yourself as:
74
+
75
+ ```bash
76
+ $ gem install csb
77
+ ```
78
+
79
+ ## Configuration
80
+
81
+ In `config/initializers/csb.rb`, you can configure the following values.
82
+
83
+ ```ruby
84
+ Csb.configure do |config|
85
+ config.utf8_bom = true # default: false
86
+ config.streaming = false # default: true
87
+ config.after_streaming_error = ->(error) do # default: nil
88
+ Rails.logger.error(error)
89
+ Bugsnag.notify(error)
90
+ end
91
+ end
92
+ ```
93
+
94
+ ## Contributing
95
+
96
+ Bug reports and pull requests are welcome on GitHub at https://github.com/aki77/csb. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
97
+
98
+ ## License
99
+
100
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
101
+
102
+ ## Code of Conduct
103
+
104
+ Everyone interacting in the Csb project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/aki77/csb/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "csb"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,31 @@
1
+ lib = File.expand_path("../lib", __FILE__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require "csb/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "csb"
7
+ spec.version = Csb::VERSION
8
+ spec.authors = ["aki77"]
9
+ spec.email = ["aki77@users.noreply.github.com"]
10
+
11
+ spec.summary = %q{A simple and streaming support CSV template engine for Ruby on Rails.}
12
+ spec.description = %q{A simple and streaming support CSV template engine for Ruby on Rails.}
13
+ spec.homepage = "https://github.com/aki77/csb"
14
+ spec.license = "MIT"
15
+
16
+ # Specify which files should be added to the gem when it is released.
17
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
18
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
19
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
20
+ end
21
+ spec.bindir = "exe"
22
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
+ spec.require_paths = ["lib"]
24
+
25
+ spec.add_dependency "rails", "~> 5.2.0"
26
+ spec.add_dependency "csv"
27
+
28
+ spec.add_development_dependency "bundler", "~> 2.0"
29
+ spec.add_development_dependency "rake", "~> 10.0"
30
+ spec.add_development_dependency "rspec", "~> 3.0"
31
+ end
@@ -0,0 +1,17 @@
1
+ require 'csb/version'
2
+ require 'csb/railtie'
3
+ require 'csb/configuration'
4
+ require 'csb/builder'
5
+ require 'csb/cols'
6
+
7
+ module Csb
8
+ class << self
9
+ def configure
10
+ yield(configuration)
11
+ end
12
+
13
+ def configuration
14
+ @configuration ||= Configuration.new
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,27 @@
1
+ require 'csv'
2
+ require 'csb/cols'
3
+
4
+ module Csb
5
+ class Builder
6
+ UTF8_BOM = "\xEF\xBB\xBF".freeze
7
+
8
+ attr_reader :output, :utf8_bom, :items, :cols
9
+ attr_accessor :items
10
+
11
+ def initialize(output = '', items: [], utf8_bom: false)
12
+ @output = output
13
+ @utf8_bom = utf8_bom
14
+ @cols = Cols.new
15
+ @items = items
16
+ end
17
+
18
+ def build
19
+ output << UTF8_BOM if utf8_bom
20
+ output << CSV.generate_line(cols.headers)
21
+ items.each do |item|
22
+ output << CSV.generate_line(cols.values_by_item(item))
23
+ end
24
+ output
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,25 @@
1
+ module Csb
2
+ class Col
3
+ attr_reader :name
4
+
5
+ def initialize(name, value = nil, &block)
6
+ @name = name
7
+ @value = block ? block : value
8
+ end
9
+
10
+ def value_by_item(item)
11
+ case value
12
+ when ::Symbol
13
+ item.public_send(value)
14
+ when ::Proc
15
+ value.call(item)
16
+ else
17
+ value
18
+ end
19
+ end
20
+
21
+ private
22
+
23
+ attr_reader :value
24
+ end
25
+ end
@@ -0,0 +1,36 @@
1
+ require 'active_support/core_ext/object/deep_dup'
2
+ require 'csb/col'
3
+
4
+ module Csb
5
+ class Cols
6
+ include Enumerable
7
+
8
+ attr_reader :cols
9
+
10
+ def initialize
11
+ @cols = []
12
+ end
13
+
14
+ def copy!(other)
15
+ @cols = other.cols.deep_dup
16
+ end
17
+
18
+ def each(&block)
19
+ cols.each(&block)
20
+ end
21
+
22
+ def add(*args, &block)
23
+ cols << Col.new(*args, &block)
24
+ end
25
+
26
+ def headers
27
+ map(&:name)
28
+ end
29
+
30
+ def values_by_item(item)
31
+ map do |col|
32
+ col.value_by_item(item)
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,10 @@
1
+ module Csb
2
+ class Configuration
3
+ attr_accessor :utf8_bom, :streaming, :after_streaming_error
4
+
5
+ def initialize
6
+ @utf8_bom = false
7
+ @streaming = true
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'csb/template'
4
+
5
+ module Csb
6
+ class Handler
7
+ class_attribute :default_format
8
+ self.default_format = :csv
9
+
10
+ def self.call(template, source = nil)
11
+ source ||= template.source
12
+
13
+ <<~RUBY
14
+ csv = ::Csb::Template.new(
15
+ utf8_bom: ::Csb.configuration.utf8_bom,
16
+ streaming: ::Csb.configuration.streaming,
17
+ )
18
+ #{source}
19
+ controller.send(:send_file_headers!, type: 'text/csv', filename: csv.filename)
20
+ if csv.streaming?
21
+ response.headers['Cache-Control'] = 'no-cache'
22
+ response.headers['X-Accel-Buffering'] = 'no'
23
+ end
24
+ csv.build
25
+ RUBY
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,12 @@
1
+ require 'rails/railtie'
2
+
3
+ module Csb
4
+ class Railtie < Rails::Railtie
5
+ initializer :csb do
6
+ ActiveSupport.on_load :action_view do
7
+ require 'csb/handler'
8
+ ActionView::Template.register_template_handler :csb, Csb::Handler
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,44 @@
1
+ module Csb
2
+ class Template < Builder
3
+ attr_accessor :utf8_bom, :filename, :streaming, :items
4
+ attr_reader :cols
5
+
6
+ def initialize(utf8_bom:, streaming:)
7
+ @utf8_bom = utf8_bom
8
+ @streaming = streaming
9
+ @cols = Cols.new
10
+ @items = []
11
+ end
12
+
13
+ def build
14
+ streaming ? build_enumerator : build_string
15
+ end
16
+
17
+ def streaming?
18
+ !!streaming
19
+ end
20
+
21
+ private
22
+
23
+ def build_string
24
+ builder = Builder.new(utf8_bom: utf8_bom, items: items)
25
+ builder.cols.copy!(cols)
26
+ builder.build
27
+ end
28
+
29
+ def build_enumerator
30
+ Enumerator.new do |y|
31
+ begin
32
+ builder = Builder.new(y, utf8_bom: utf8_bom, items: items)
33
+ builder.cols.copy!(cols)
34
+ builder.build
35
+ rescue => error
36
+ if Csb.configuration.after_streaming_error.respond_to?(:call)
37
+ Csb.configuration.after_streaming_error.call(error)
38
+ end
39
+ raise error
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,3 @@
1
+ module Csb
2
+ VERSION = "0.2.0"
3
+ end
metadata ADDED
@@ -0,0 +1,135 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: csb
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
5
+ platform: ruby
6
+ authors:
7
+ - aki77
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-06-02 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 5.2.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 5.2.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: csv
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '2.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '2.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '3.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '3.0'
83
+ description: A simple and streaming support CSV template engine for Ruby on Rails.
84
+ email:
85
+ - aki77@users.noreply.github.com
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - ".gitignore"
91
+ - ".rspec"
92
+ - ".travis.yml"
93
+ - CHANGELOG.md
94
+ - CODE_OF_CONDUCT.md
95
+ - Gemfile
96
+ - Gemfile.lock
97
+ - LICENSE.txt
98
+ - README.md
99
+ - Rakefile
100
+ - bin/console
101
+ - bin/setup
102
+ - csb.gemspec
103
+ - lib/csb.rb
104
+ - lib/csb/builder.rb
105
+ - lib/csb/col.rb
106
+ - lib/csb/cols.rb
107
+ - lib/csb/configuration.rb
108
+ - lib/csb/handler.rb
109
+ - lib/csb/railtie.rb
110
+ - lib/csb/template.rb
111
+ - lib/csb/version.rb
112
+ homepage: https://github.com/aki77/csb
113
+ licenses:
114
+ - MIT
115
+ metadata: {}
116
+ post_install_message:
117
+ rdoc_options: []
118
+ require_paths:
119
+ - lib
120
+ required_ruby_version: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ required_rubygems_version: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - ">="
128
+ - !ruby/object:Gem::Version
129
+ version: '0'
130
+ requirements: []
131
+ rubygems_version: 3.0.3
132
+ signing_key:
133
+ specification_version: 4
134
+ summary: A simple and streaming support CSV template engine for Ruby on Rails.
135
+ test_files: []