axlsx_rails 0.5.2 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +9 -1
- data/Gemfile +15 -9
- data/Gemfile.lock +127 -120
- data/Gemfile.lock.5.0 +130 -123
- data/Gemfile.lock.5.1 +127 -120
- data/Gemfile.lock.5.2 +268 -0
- data/Gemfile.lock.6.0 +284 -0
- data/README.md +59 -35
- data/lib/axlsx_rails/template_handler.rb +10 -3
- data/lib/axlsx_rails/version.rb +1 -1
- data/spec/axlsx_builder_spec.rb +15 -2
- data/spec/axlsx_request_spec.rb +16 -13
- data/spec/ci.rb +8 -5
- data/spec/dummy/config/application.rb +1 -1
- data/spec/dummy/config/environments/development.rb +2 -2
- data/spec/dummy_4/db/test.sqlite3 +0 -0
- data/spec/dummy_4/log/test.log +326 -0
- data/spec/{dummy_5 → dummy_5.0}/Rakefile +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/assets/javascripts/application.js +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/assets/stylesheets/application.css +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/controllers/application_controller.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/controllers/home_controller.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/controllers/likes_controller.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/controllers/users_controller.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/helpers/application_helper.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/mailers/notifier.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/models/like.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/models/user.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/views/home/_cover_sheet.xlsx.axlsx +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/views/home/index.html.erb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/views/home/index.xlsx.axlsx +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/views/home/only_html.html.erb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/views/home/useheader.xlsx.axlsx +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/views/home/withpartial.xlsx.axlsx +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/views/layouts/application.html.erb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/views/layouts/users.html.erb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/views/likes/index.html.erb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/views/likes/index.xlsx.axlsx +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/views/notifier/instructions.html.erb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/views/notifier/instructions.txt.erb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/views/users/export.xlsx.axlsx +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/views/users/index.html.erb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/views/users/index.xlsx.axlsx +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/views/users/noaction.xlsx.axlsx +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/views/users/respond_with.xlsx.axlsx +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/views/users/send_instructions.xlsx.axlsx +0 -0
- data/spec/{dummy_5 → dummy_5.0}/bin/bundle +0 -0
- data/spec/{dummy_5 → dummy_5.0}/bin/rails +0 -0
- data/spec/{dummy_5 → dummy_5.0}/bin/rake +0 -0
- data/spec/{dummy_5 → dummy_5.0}/config.ru +0 -0
- data/spec/{dummy_5 → dummy_5.0}/config/application.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/config/boot.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/config/database.yml +0 -0
- data/spec/{dummy_5 → dummy_5.0}/config/environment.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/config/environments/development.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/config/environments/production.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/config/environments/test.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/config/initializers/backtrace_silencers.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/config/initializers/cookies_serializer.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/config/initializers/filter_parameter_logging.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/config/initializers/inflections.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/config/initializers/mime_types.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/config/initializers/secret_token.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/config/initializers/session_store.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/config/initializers/wrap_parameters.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/config/locales/en.yml +0 -0
- data/spec/{dummy_5 → dummy_5.0}/config/routes.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/config/secrets.yml +0 -0
- data/spec/{dummy_5 → dummy_5.0}/db/migrate/20120717192452_create_users.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/db/migrate/20121206210955_create_likes.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/db/schema.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/db/test.sqlite3 +0 -0
- data/spec/dummy_5.0/log/test.log +1158 -0
- data/spec/{dummy_5 → dummy_5.0}/public/404.html +0 -0
- data/spec/{dummy_5 → dummy_5.0}/public/422.html +0 -0
- data/spec/{dummy_5 → dummy_5.0}/public/500.html +0 -0
- data/spec/{dummy_5 → dummy_5.0}/public/favicon.ico +0 -0
- data/spec/dummy_5.1/Rakefile +6 -0
- data/spec/dummy_5.1/app/assets/javascripts/application.js +13 -0
- data/spec/dummy_5.1/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy_5.1/app/controllers/application_controller.rb +5 -0
- data/spec/dummy_5.1/app/controllers/home_controller.rb +56 -0
- data/spec/dummy_5.1/app/controllers/likes_controller.rb +18 -0
- data/spec/dummy_5.1/app/controllers/users_controller.rb +37 -0
- data/spec/dummy_5.1/app/helpers/application_helper.rb +2 -0
- data/spec/dummy_5.1/app/mailers/notifier.rb +14 -0
- data/spec/dummy_5.1/app/models/like.rb +3 -0
- data/spec/dummy_5.1/app/models/user.rb +10 -0
- data/spec/dummy_5.1/app/views/home/_cover_sheet.xlsx.axlsx +3 -0
- data/spec/dummy_5.1/app/views/home/index.html.erb +4 -0
- data/spec/dummy_5.1/app/views/home/index.xlsx.axlsx +8 -0
- data/spec/dummy_5.1/app/views/home/only_html.html.erb +1 -0
- data/spec/dummy_5.1/app/views/home/useheader.xlsx.axlsx +8 -0
- data/spec/dummy_5.1/app/views/home/withpartial.xlsx.axlsx +9 -0
- data/spec/dummy_5.1/app/views/layouts/application.html.erb +12 -0
- data/spec/dummy_5.1/app/views/layouts/users.html.erb +12 -0
- data/spec/dummy_5.1/app/views/likes/index.html.erb +17 -0
- data/spec/dummy_5.1/app/views/likes/index.xlsx.axlsx +7 -0
- data/spec/dummy_5.1/app/views/notifier/instructions.html.erb +14 -0
- data/spec/dummy_5.1/app/views/notifier/instructions.txt.erb +6 -0
- data/spec/dummy_5.1/app/views/users/export.xlsx.axlsx +8 -0
- data/spec/dummy_5.1/app/views/users/index.html.erb +23 -0
- data/spec/dummy_5.1/app/views/users/index.xlsx.axlsx +1 -0
- data/spec/dummy_5.1/app/views/users/noaction.xlsx.axlsx +1 -0
- data/spec/dummy_5.1/app/views/users/respond_with.xlsx.axlsx +8 -0
- data/spec/dummy_5.1/app/views/users/send_instructions.xlsx.axlsx +5 -0
- data/spec/dummy_5.1/bin/bundle +3 -0
- data/spec/dummy_5.1/bin/rails +4 -0
- data/spec/dummy_5.1/bin/rake +4 -0
- data/spec/dummy_5.1/config.ru +4 -0
- data/spec/dummy_5.1/config/application.rb +23 -0
- data/spec/dummy_5.1/config/boot.rb +5 -0
- data/spec/dummy_5.1/config/database.yml +25 -0
- data/spec/dummy_5.1/config/environment.rb +5 -0
- data/spec/dummy_5.1/config/environments/development.rb +37 -0
- data/spec/dummy_5.1/config/environments/production.rb +83 -0
- data/spec/dummy_5.1/config/environments/test.rb +40 -0
- data/spec/dummy_5.1/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy_5.1/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy_5.1/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy_5.1/config/initializers/inflections.rb +16 -0
- data/spec/dummy_5.1/config/initializers/mime_types.rb +4 -0
- data/spec/dummy_5.1/config/initializers/secret_token.rb +2 -0
- data/spec/dummy_5.1/config/initializers/session_store.rb +3 -0
- data/spec/dummy_5.1/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy_5.1/config/locales/en.yml +23 -0
- data/spec/dummy_5.1/config/routes.rb +17 -0
- data/spec/dummy_5.1/config/secrets.yml +22 -0
- data/spec/dummy_5.1/db/migrate/20120717192452_create_users.rb +12 -0
- data/spec/dummy_5.1/db/migrate/20121206210955_create_likes.rb +10 -0
- data/spec/dummy_5.1/db/schema.rb +31 -0
- data/spec/dummy_5.1/db/test.sqlite3 +0 -0
- data/spec/{dummy_5 → dummy_5.1}/log/test.log +746 -0
- data/spec/dummy_5.1/public/404.html +67 -0
- data/spec/dummy_5.1/public/422.html +67 -0
- data/spec/dummy_5.1/public/500.html +66 -0
- data/spec/dummy_5.1/public/favicon.ico +0 -0
- data/spec/dummy_5.2/Rakefile +6 -0
- data/spec/dummy_5.2/app/assets/javascripts/application.js +13 -0
- data/spec/dummy_5.2/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy_5.2/app/controllers/application_controller.rb +5 -0
- data/spec/dummy_5.2/app/controllers/home_controller.rb +56 -0
- data/spec/dummy_5.2/app/controllers/likes_controller.rb +18 -0
- data/spec/dummy_5.2/app/controllers/users_controller.rb +37 -0
- data/spec/dummy_5.2/app/helpers/application_helper.rb +2 -0
- data/spec/dummy_5.2/app/mailers/notifier.rb +14 -0
- data/spec/dummy_5.2/app/models/like.rb +3 -0
- data/spec/dummy_5.2/app/models/user.rb +10 -0
- data/spec/dummy_5.2/app/views/home/_cover_sheet.xlsx.axlsx +3 -0
- data/spec/dummy_5.2/app/views/home/index.html.erb +4 -0
- data/spec/dummy_5.2/app/views/home/index.xlsx.axlsx +8 -0
- data/spec/dummy_5.2/app/views/home/only_html.html.erb +1 -0
- data/spec/dummy_5.2/app/views/home/useheader.xlsx.axlsx +8 -0
- data/spec/dummy_5.2/app/views/home/withpartial.xlsx.axlsx +9 -0
- data/spec/dummy_5.2/app/views/layouts/application.html.erb +12 -0
- data/spec/dummy_5.2/app/views/layouts/users.html.erb +12 -0
- data/spec/dummy_5.2/app/views/likes/index.html.erb +17 -0
- data/spec/dummy_5.2/app/views/likes/index.xlsx.axlsx +7 -0
- data/spec/dummy_5.2/app/views/notifier/instructions.html.erb +14 -0
- data/spec/dummy_5.2/app/views/notifier/instructions.txt.erb +6 -0
- data/spec/dummy_5.2/app/views/users/export.xlsx.axlsx +8 -0
- data/spec/dummy_5.2/app/views/users/index.html.erb +23 -0
- data/spec/dummy_5.2/app/views/users/index.xlsx.axlsx +1 -0
- data/spec/dummy_5.2/app/views/users/noaction.xlsx.axlsx +1 -0
- data/spec/dummy_5.2/app/views/users/respond_with.xlsx.axlsx +8 -0
- data/spec/dummy_5.2/app/views/users/send_instructions.xlsx.axlsx +5 -0
- data/spec/dummy_5.2/bin/bundle +3 -0
- data/spec/dummy_5.2/bin/rails +4 -0
- data/spec/dummy_5.2/bin/rake +4 -0
- data/spec/dummy_5.2/config.ru +4 -0
- data/spec/dummy_5.2/config/application.rb +23 -0
- data/spec/dummy_5.2/config/boot.rb +5 -0
- data/spec/dummy_5.2/config/database.yml +25 -0
- data/spec/dummy_5.2/config/environment.rb +5 -0
- data/spec/dummy_5.2/config/environments/development.rb +37 -0
- data/spec/dummy_5.2/config/environments/production.rb +83 -0
- data/spec/dummy_5.2/config/environments/test.rb +40 -0
- data/spec/dummy_5.2/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy_5.2/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy_5.2/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy_5.2/config/initializers/inflections.rb +16 -0
- data/spec/dummy_5.2/config/initializers/mime_types.rb +4 -0
- data/spec/dummy_5.2/config/initializers/secret_token.rb +2 -0
- data/spec/dummy_5.2/config/initializers/session_store.rb +3 -0
- data/spec/dummy_5.2/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy_5.2/config/locales/en.yml +23 -0
- data/spec/dummy_5.2/config/routes.rb +17 -0
- data/spec/dummy_5.2/config/secrets.yml +22 -0
- data/spec/dummy_5.2/db/migrate/20120717192452_create_users.rb +12 -0
- data/spec/dummy_5.2/db/migrate/20121206210955_create_likes.rb +10 -0
- data/spec/dummy_5.2/db/schema.rb +31 -0
- data/spec/dummy_5.2/db/test.sqlite3 +0 -0
- data/spec/dummy_5.2/log/test.log +4386 -0
- data/spec/dummy_5.2/public/404.html +67 -0
- data/spec/dummy_5.2/public/422.html +67 -0
- data/spec/dummy_5.2/public/500.html +66 -0
- data/spec/dummy_5.2/public/favicon.ico +0 -0
- data/spec/dummy_6.0/Rakefile +6 -0
- data/spec/dummy_6.0/app/assets/javascripts/application.js +13 -0
- data/spec/dummy_6.0/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy_6.0/app/controllers/application_controller.rb +5 -0
- data/spec/dummy_6.0/app/controllers/home_controller.rb +56 -0
- data/spec/dummy_6.0/app/controllers/likes_controller.rb +18 -0
- data/spec/dummy_6.0/app/controllers/users_controller.rb +37 -0
- data/spec/dummy_6.0/app/helpers/application_helper.rb +2 -0
- data/spec/dummy_6.0/app/mailers/notifier.rb +14 -0
- data/spec/dummy_6.0/app/models/like.rb +3 -0
- data/spec/dummy_6.0/app/models/user.rb +10 -0
- data/spec/dummy_6.0/app/views/home/_cover_sheet.xlsx.axlsx +3 -0
- data/spec/dummy_6.0/app/views/home/index.html.erb +4 -0
- data/spec/dummy_6.0/app/views/home/index.xlsx.axlsx +8 -0
- data/spec/dummy_6.0/app/views/home/only_html.html.erb +1 -0
- data/spec/dummy_6.0/app/views/home/useheader.xlsx.axlsx +8 -0
- data/spec/dummy_6.0/app/views/home/withpartial.xlsx.axlsx +9 -0
- data/spec/dummy_6.0/app/views/layouts/application.html.erb +12 -0
- data/spec/dummy_6.0/app/views/layouts/users.html.erb +12 -0
- data/spec/dummy_6.0/app/views/likes/index.html.erb +17 -0
- data/spec/dummy_6.0/app/views/likes/index.xlsx.axlsx +7 -0
- data/spec/dummy_6.0/app/views/notifier/instructions.html.erb +14 -0
- data/spec/dummy_6.0/app/views/notifier/instructions.txt.erb +6 -0
- data/spec/dummy_6.0/app/views/users/export.xlsx.axlsx +8 -0
- data/spec/dummy_6.0/app/views/users/index.html.erb +23 -0
- data/spec/dummy_6.0/app/views/users/index.xlsx.axlsx +1 -0
- data/spec/dummy_6.0/app/views/users/noaction.xlsx.axlsx +1 -0
- data/spec/dummy_6.0/app/views/users/respond_with.xlsx.axlsx +8 -0
- data/spec/dummy_6.0/app/views/users/send_instructions.xlsx.axlsx +5 -0
- data/spec/dummy_6.0/bin/bundle +3 -0
- data/spec/dummy_6.0/bin/rails +4 -0
- data/spec/dummy_6.0/bin/rake +4 -0
- data/spec/dummy_6.0/config.ru +4 -0
- data/spec/dummy_6.0/config/application.rb +23 -0
- data/spec/dummy_6.0/config/boot.rb +5 -0
- data/spec/dummy_6.0/config/database.yml +25 -0
- data/spec/dummy_6.0/config/environment.rb +5 -0
- data/spec/dummy_6.0/config/environments/development.rb +37 -0
- data/spec/dummy_6.0/config/environments/production.rb +83 -0
- data/spec/dummy_6.0/config/environments/test.rb +40 -0
- data/spec/dummy_6.0/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy_6.0/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy_6.0/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy_6.0/config/initializers/inflections.rb +16 -0
- data/spec/dummy_6.0/config/initializers/mime_types.rb +4 -0
- data/spec/dummy_6.0/config/initializers/secret_token.rb +2 -0
- data/spec/dummy_6.0/config/initializers/session_store.rb +3 -0
- data/spec/dummy_6.0/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy_6.0/config/locales/en.yml +23 -0
- data/spec/dummy_6.0/config/routes.rb +17 -0
- data/spec/dummy_6.0/config/secrets.yml +22 -0
- data/spec/dummy_6.0/db/migrate/20120717192452_create_users.rb +12 -0
- data/spec/dummy_6.0/db/migrate/20121206210955_create_likes.rb +10 -0
- data/spec/dummy_6.0/db/schema.rb +31 -0
- data/spec/dummy_6.0/db/test.sqlite3 +0 -0
- data/spec/dummy_6.0/log/test.log +1424 -0
- data/spec/dummy_6.0/public/404.html +67 -0
- data/spec/dummy_6.0/public/422.html +67 -0
- data/spec/dummy_6.0/public/500.html +66 -0
- data/spec/dummy_6.0/public/favicon.ico +0 -0
- data/spec/spec_helper.rb +12 -3
- data/spec/test_5.0.sh +1 -1
- data/spec/test_5.1.sh +1 -1
- data/spec/test_5.2.sh +16 -0
- data/spec/test_6.0.sh +16 -0
- data/spec/test_all_rails.sh +4 -2
- metadata +499 -147
- data/Gemfile.lock.4.2 +0 -255
data/README.md
CHANGED
@@ -1,17 +1,27 @@
|
|
1
|
+
Notice: Community Axlsx organization
|
2
|
+
===================================================
|
3
|
+
All Axlsx related gems have been forked or moved to a community organization: http://github.com/caxlsx
|
4
|
+
* Axlsx
|
5
|
+
* acts_as_axlsx
|
6
|
+
* axlsx_rails
|
7
|
+
* activeadmin-axlsx
|
8
|
+
|
9
|
+
The gems will be released as is as a starting point to allow releases of other gems that depend on these gems. Submit issues as usual.
|
10
|
+
|
11
|
+
Please consider helping develop and test these gems.
|
12
|
+
|
1
13
|
Axlsx-Rails — Spreadsheet templates for Rails
|
2
14
|
===================================================
|
3
15
|
|
4
|
-
[![Build Status](https://secure.travis-ci.org/
|
16
|
+
[![Build Status](https://secure.travis-ci.org/caxlsx/axlsx_rails.svg?branch=master)](http://travis-ci.org/caxlsx/axlsx_rails)
|
5
17
|
[![Gem
|
6
18
|
Version](https://badge.fury.io/rb/axlsx_rails.svg)](http://badge.fury.io/rb/axlsx_rails)
|
7
|
-
[![Dependency Status](https://gemnasium.com/straydogstudio/axlsx_rails.svg?branch=master)](https://gemnasium.com/straydogstudio/axlsx_rails)
|
8
19
|
[![Coverage
|
9
|
-
Status](https://coveralls.io/repos/
|
20
|
+
Status](https://coveralls.io/repos/caxlsx/axlsx_rails/badge.svg)](https://coveralls.io/r/caxlsx/axlsx_rails)
|
10
21
|
|
11
22
|
![Total downloads](http://ruby-gem-downloads-badge.herokuapp.com/axlsx_rails?type=total)
|
12
|
-
![Downloads for 0.
|
13
|
-
![Downloads for
|
14
|
-
![Downloads for latest release](http://ruby-gem-downloads-badge.herokuapp.com/axlsx_rails/0.5.1?label=0.5.1)
|
23
|
+
![Downloads for 0.5.1](http://ruby-gem-downloads-badge.herokuapp.com/axlsx_rails/0.5.1?label=0.5.1)
|
24
|
+
![Downloads for latest release](http://ruby-gem-downloads-badge.herokuapp.com/axlsx_rails/0.5.2?label=0.5.2)
|
15
25
|
|
16
26
|
## Installation
|
17
27
|
|
@@ -19,27 +29,11 @@ In your Gemfile:
|
|
19
29
|
|
20
30
|
```ruby
|
21
31
|
gem 'rubyzip', '>= 1.2.1'
|
22
|
-
gem '
|
32
|
+
gem 'caxlsx'
|
23
33
|
gem 'axlsx_rails'
|
24
34
|
```
|
25
35
|
|
26
|
-
|
27
|
-
|
28
|
-
If `rubyzip 1.0.0` is needed:
|
29
|
-
|
30
|
-
```ruby
|
31
|
-
gem 'rubyzip', '= 1.0.0'
|
32
|
-
gem 'axlsx', '= 2.0.1'
|
33
|
-
gem 'axlsx_rails'
|
34
|
-
```
|
35
|
-
|
36
|
-
If `rubyzip >= 1.1.0` is needed:
|
37
|
-
|
38
|
-
```ruby
|
39
|
-
gem 'rubyzip', '~> 1.1.0'
|
40
|
-
gem 'axlsx', '2.1.0.pre'
|
41
|
-
gem 'axlsx_rails'
|
42
|
-
```
|
36
|
+
See [previous installations](#previous-installations) if needed.
|
43
37
|
|
44
38
|
## Requirements
|
45
39
|
|
@@ -50,12 +44,12 @@ gem 'axlsx_rails'
|
|
50
44
|
|
51
45
|
## FYI
|
52
46
|
|
53
|
-
* This gem depends on [Axlsx](https://github.com/
|
47
|
+
* This gem depends on [Axlsx](https://github.com/caxlsx/axlsx). See [the blog](http://axlsx.blog.randym.net/) or the [examples page](https://github.com/randym/axlsx/blob/master/examples/example.rb) for usage.
|
54
48
|
* Check out [axlsx_styler](https://github.com/sakovias/axlsx_styler) by [sakovias](https://github.com/sakovias) for easier styles and borders!
|
55
49
|
|
56
50
|
## Usage
|
57
51
|
|
58
|
-
Axlsx-Rails provides a renderer and a template handler. It adds the `:xlsx` format and parses `.xlsx.axlsx` templates. This lets you take all the [Axlsx](https://github.com/
|
52
|
+
Axlsx-Rails provides a renderer and a template handler. It adds the `:xlsx` format and parses `.xlsx.axlsx` templates. This lets you take all the [Axlsx](https://github.com/caxlsx/axlsx) code out of your controller or model and place it inside the template, where view code belongs! **See [this blog post](http://axlsx.blog.randym.net/2012/08/excel-on-rails-like-pro-with-axlsxrails.html) for a more complete walkthrough.**
|
59
53
|
|
60
54
|
### Controller
|
61
55
|
|
@@ -85,7 +79,7 @@ wb.add_worksheet(name: "Buttons") do |sheet|
|
|
85
79
|
end
|
86
80
|
```
|
87
81
|
|
88
|
-
This is where you place all your [Axlsx](https://github.com/
|
82
|
+
This is where you place all your [Axlsx](https://github.com/caxlsx/axlsx) specific markup. Add worksheets, fill content, merge cells, add styles. See the [Axlsx examples](https://github.com/caxlsx/axlsx/tree/master/examples/example.rb) page to see what you can do.
|
89
83
|
|
90
84
|
Remember, like in `erb` templates, view helpers are available to use the `.xlsx.axlsx` template.
|
91
85
|
|
@@ -126,7 +120,7 @@ format.xlsx {
|
|
126
120
|
}
|
127
121
|
```
|
128
122
|
|
129
|
-
If you use `render xlsx:` the gem will try to guess the file name:
|
123
|
+
If you use `render xlsx:` the gem will try to guess the file name:
|
130
124
|
|
131
125
|
```ruby
|
132
126
|
# filename of 'buttons'
|
@@ -143,13 +137,13 @@ render xlsx: "action_or_template", filename: "my_new_filename.xlsx"
|
|
143
137
|
|
144
138
|
### Acts As Xlsx
|
145
139
|
|
146
|
-
If you use [acts_as_xlsx](https://github.com/
|
140
|
+
If you use [acts_as_xlsx](https://github.com/caxlsx/acts_as_xlsx), configure the active record normally, but specify the package in the template:
|
147
141
|
|
148
142
|
```ruby
|
149
143
|
User.to_xlsx package: xlsx_package, (other options)
|
150
144
|
```
|
151
145
|
|
152
|
-
**Note:** As of 4/1/2014 Acts As Xlsx is not compatible with Rails 4.1, and generates a warning on 4.0. You may use [my patched fork](https://github.com/
|
146
|
+
**Note:** As of 4/1/2014 Acts As Xlsx is not compatible with Rails 4.1, and generates a warning on 4.0. You may use [my patched fork](https://github.com/caxlsx/acts_as_caxlsx) until it is remedied.
|
153
147
|
|
154
148
|
### Axlsx Package Options
|
155
149
|
|
@@ -213,7 +207,7 @@ class UserMailer < ActionMailer::Base
|
|
213
207
|
end
|
214
208
|
```
|
215
209
|
|
216
|
-
* If the route specifies or suggests the `:xlsx` format you do not need to specify `formats` or `handlers`.
|
210
|
+
* If the route specifies or suggests the `:xlsx` format you do not need to specify `formats` or `handlers`.
|
217
211
|
* If the template (`users/export`) can refer to only one file (the xlsx.axlsx template), you do not need to specify `handlers`, provided the `formats` includes `:xlsx`.
|
218
212
|
* Specifying the encoding as 'base64' can avoid UTF-8 errors.
|
219
213
|
|
@@ -241,7 +235,7 @@ RSpec.shared_context 'axlsx' do
|
|
241
235
|
let(:template_path) do
|
242
236
|
['app', 'views', template_name]
|
243
237
|
end
|
244
|
-
|
238
|
+
|
245
239
|
# This helper will be used in tests
|
246
240
|
def render_template(locals = {})
|
247
241
|
axlsx_binding = Kernel.binding
|
@@ -360,7 +354,7 @@ class UserMailer < ActionMailer::Base
|
|
360
354
|
end
|
361
355
|
```
|
362
356
|
|
363
|
-
If you get these errors, please open an issue and share code so the bug can be isolated. Or comment on issue [#29](https://github.com/
|
357
|
+
If you get these errors, please open an issue and share code so the bug can be isolated. Or comment on issue [#29](https://github.com/caxlsx/axlsx_rails/issues/29) or [#25](https://github.com/caxlsx/axlsx_rails/issues/25).
|
364
358
|
|
365
359
|
### Generated Files Can't Be Opened or Invalid Byte Sequence in UTF-8
|
366
360
|
|
@@ -403,10 +397,36 @@ link_to 'Download spreadsheet', path_to_sheet, data: {turbolinks: false}
|
|
403
397
|
|
404
398
|
If you are having problems, try to isolate the issue. Use the console or a script to make sure your data is good. Then create the spreadsheet line by line without Axlsx-Rails to see if you are having Axlsx problems. If you can manually create the spreadsheet, create an issue and we will work it out.
|
405
399
|
|
400
|
+
## Previous Installations
|
401
|
+
|
402
|
+
In your Gemfile:
|
403
|
+
|
404
|
+
```ruby
|
405
|
+
gem 'rubyzip', '>= 1.2.1'
|
406
|
+
gem 'axlsx', git: 'https://github.com/randym/axlsx.git', ref: 'c8ac844'
|
407
|
+
gem 'axlsx_rails'
|
408
|
+
```
|
409
|
+
|
410
|
+
If `rubyzip 1.0.0` is needed:
|
411
|
+
|
412
|
+
```ruby
|
413
|
+
gem 'rubyzip', '= 1.0.0'
|
414
|
+
gem 'axlsx', '= 2.0.1'
|
415
|
+
gem 'axlsx_rails'
|
416
|
+
```
|
417
|
+
|
418
|
+
If `rubyzip >= 1.1.0` is needed:
|
419
|
+
|
420
|
+
```ruby
|
421
|
+
gem 'rubyzip', '~> 1.1.0'
|
422
|
+
gem 'axlsx', '2.1.0.pre'
|
423
|
+
gem 'axlsx_rails'
|
424
|
+
```
|
425
|
+
|
406
426
|
## Dependencies
|
407
427
|
|
408
428
|
- [Rails](https://github.com/rails/rails)
|
409
|
-
- [Axlsx](https://github.com/
|
429
|
+
- [Axlsx](https://github.com/caxlsx/axlsx)
|
410
430
|
|
411
431
|
## Authors
|
412
432
|
|
@@ -414,7 +434,7 @@ If you are having problems, try to isolate the issue. Use the console or a scrip
|
|
414
434
|
|
415
435
|
## Contributors
|
416
436
|
|
417
|
-
Many thanks to [contributors](https://github.com/
|
437
|
+
Many thanks to [contributors](https://github.com/caxlsx/axlsx_rails/graphs/contributors):
|
418
438
|
|
419
439
|
* [randym](https://github.com/randym)
|
420
440
|
* [sugi](https://github.com/sugi)
|
@@ -437,6 +457,10 @@ source:
|
|
437
457
|
|
438
458
|
## Change log
|
439
459
|
|
460
|
+
**September 5, 2019**: 0.5.3 release
|
461
|
+
|
462
|
+
- Improved Rails 6.0 compatibility re MIME type
|
463
|
+
|
440
464
|
**May 1st, 2018**: 0.5.2 release
|
441
465
|
|
442
466
|
- Improved Rails 5 compatibility re MIME type
|
@@ -8,10 +8,17 @@ module ActionView
|
|
8
8
|
class AxlsxBuilder
|
9
9
|
|
10
10
|
def default_format
|
11
|
-
|
11
|
+
case
|
12
|
+
when Rails.version.to_f >= 6
|
13
|
+
Mime[:xlsx].symbol
|
14
|
+
when Rails.version.to_f >= 5
|
15
|
+
Mime[:xlsx]
|
16
|
+
else
|
17
|
+
Mime::XLSX
|
18
|
+
end
|
12
19
|
end
|
13
20
|
|
14
|
-
def call(template)
|
21
|
+
def call(template, source = nil)
|
15
22
|
builder = StringIO.new
|
16
23
|
builder << "require 'axlsx';"
|
17
24
|
builder << "xlsx_author = defined?(xlsx_author).nil? ? nil : xlsx_author;"
|
@@ -21,7 +28,7 @@ module ActionView
|
|
21
28
|
builder << ":author => xlsx_author,"
|
22
29
|
builder << ":created_at => xlsx_created_at,"
|
23
30
|
builder << ":use_shared_strings => xlsx_use_shared_strings);"
|
24
|
-
builder << template.source
|
31
|
+
builder << (source || template.source)
|
25
32
|
builder << ";xlsx_package.to_stream.string;"
|
26
33
|
builder.string
|
27
34
|
end
|
data/lib/axlsx_rails/version.rb
CHANGED
data/spec/axlsx_builder_spec.rb
CHANGED
@@ -18,10 +18,23 @@ describe 'Axlsx template handler' do
|
|
18
18
|
# end
|
19
19
|
|
20
20
|
it "has xlsx format" do
|
21
|
-
|
21
|
+
if Rails::VERSION::MAJOR >= 6
|
22
|
+
expect(handler.default_format).to eq(mime_type.symbol)
|
23
|
+
else
|
24
|
+
expect(handler.default_format).to eq(mime_type)
|
25
|
+
end
|
22
26
|
end
|
23
27
|
|
24
|
-
it "compiles to an excel spreadsheet" do
|
28
|
+
it "compiles to an excel spreadsheet when passing in a source" do
|
29
|
+
xlsx_package, wb = nil
|
30
|
+
source = "wb = xlsx_package.workbook;\nwb.add_worksheet(name: 'Test') do |sheet|\n\tsheet.add_row ['four', 'five', 'six']\n\tsheet.add_row ['d', 'e', 'f']\nend\n"
|
31
|
+
eval( AB.new.call template, source )
|
32
|
+
xlsx_package.serialize('/tmp/axlsx_temp.xlsx')
|
33
|
+
expect{ wb = Roo::Excelx.new('/tmp/axlsx_temp.xlsx') }.to_not raise_error
|
34
|
+
expect(wb.cell(2,3)).to eq('f')
|
35
|
+
end
|
36
|
+
|
37
|
+
it "compiles to an excel spreadsheet when inferring source from template " do
|
25
38
|
xlsx_package, wb = nil
|
26
39
|
eval( AB.new.call template )
|
27
40
|
xlsx_package.serialize('/tmp/axlsx_temp.xlsx')
|
data/spec/axlsx_request_spec.rb
CHANGED
@@ -8,7 +8,7 @@ describe 'Axlsx request', :type => :request do
|
|
8
8
|
end
|
9
9
|
|
10
10
|
it "has a working dummy app" do
|
11
|
-
|
11
|
+
User.create name: 'Elmer', last_name: 'Fudd', address: '1234 Somewhere, Over NY 11111', email: 'elmer@fudd.com'
|
12
12
|
visit '/'
|
13
13
|
expect(page).to have_content("Hey, you")
|
14
14
|
end
|
@@ -60,8 +60,8 @@ describe 'Axlsx request', :type => :request do
|
|
60
60
|
|
61
61
|
it "downloads an excel file from acts_as_xlsx model" do
|
62
62
|
User.destroy_all
|
63
|
-
|
64
|
-
|
63
|
+
User.create name: 'Elmer', last_name: 'Fudd', address: '1234 Somewhere, Over NY 11111', email: 'elmer@fudd.com'
|
64
|
+
User.create name: 'Bugs', last_name: 'Bunny', address: '1234 Left Turn, Albuquerque NM 22222', email: 'bugs@bunny.com'
|
65
65
|
visit '/users.xlsx'
|
66
66
|
expect(page.response_headers['Content-Type']).to eq(mime_type.to_s + "; charset=utf-8")
|
67
67
|
File.open('/tmp/axlsx_temp.xlsx', 'w') {|f| f.write(page.source) }
|
@@ -117,6 +117,7 @@ describe 'Axlsx request', :type => :request do
|
|
117
117
|
it "uses respond_with" do
|
118
118
|
User.destroy_all
|
119
119
|
@user = User.create name: 'Responder', last_name: 'Bunny', address: '1234 Right Turn, Albuquerque NM 22222', email: 'bugs@bunny.com'
|
120
|
+
visit "/users/#{@user.id}.xlsx"
|
120
121
|
expect {
|
121
122
|
visit "/users/#{@user.id}.xlsx"
|
122
123
|
}.to_not raise_error
|
@@ -185,15 +186,17 @@ describe 'Axlsx request', :type => :request do
|
|
185
186
|
end
|
186
187
|
end
|
187
188
|
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
189
|
+
if Rails::VERSION::MAJOR < 6
|
190
|
+
it "downloads an excel file when there is no action" do
|
191
|
+
User.destroy_all
|
192
|
+
User.create name: 'Elmer', last_name: 'Fudd', address: '1234 Somewhere, Over NY 11111', email: 'elmer@fudd.com'
|
193
|
+
User.create name: 'Bugs', last_name: 'Bunny', address: '1234 Left Turn, Albuquerque NM 22222', email: 'bugs@bunny.com'
|
194
|
+
visit '/users/noaction.xlsx'
|
195
|
+
expect(page.response_headers['Content-Type']).to eq(mime_type.to_s + "; charset=utf-8")
|
196
|
+
File.open('/tmp/axlsx_temp.xlsx', 'w') {|f| f.write(page.source) }
|
197
|
+
wb = nil
|
198
|
+
expect{ wb = Roo::Excelx.new('/tmp/axlsx_temp.xlsx') }.to_not raise_error
|
199
|
+
expect(wb.cell(3,2)).to eq('Bugs')
|
200
|
+
end
|
198
201
|
end
|
199
202
|
end
|
data/spec/ci.rb
CHANGED
@@ -1,11 +1,14 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
if ENV['RAILS_VERSION'] =~ /^
|
4
|
-
puts "Testing Rails
|
5
|
-
exit system('cd spec/
|
3
|
+
if ENV['RAILS_VERSION'] =~ /^6.0/
|
4
|
+
puts "Testing Rails 6.0"
|
5
|
+
exit system('cd spec/dummy_6.0 && bundle install --without debug && rails db:reset && cd ../../ && bundle exec rspec spec')
|
6
|
+
elsif ENV['RAILS_VERSION'] =~ /^5/
|
7
|
+
puts "Testing Rails #{ENV['RAILS_VERSION']}"
|
8
|
+
exit system("cd spec/dummy_#{ENV['RAILS_VERSION']} && bundle install --without debug && rails db:reset && cd ../../ && bundle exec rspec spec")
|
6
9
|
elsif ENV['RAILS_VERSION'] =~ /^4/
|
7
|
-
puts "Testing Rails
|
8
|
-
exit system(
|
10
|
+
puts "Testing Rails #{ENV['RAILS_VERSION'].to_i}"
|
11
|
+
exit system("cd spec/dummy_#{ENV['RAILS_VERSION'].to_i} && bundle install --without debug && bundle exec rake db:create && bundle exec rake db:migrate && cd ../../ && bundle exec rspec spec")
|
9
12
|
else
|
10
13
|
puts "Testing Rails 3"
|
11
14
|
exit system('cd spec/dummy && bundle install --without debug && bundle exec rake db:create && bundle exec rake db:migrate && cd ../../ && bundle exec rspec spec')
|
@@ -58,7 +58,7 @@ module Dummy
|
|
58
58
|
# This will create an empty whitelist of attributes available for mass-assignment for all models
|
59
59
|
# in your app. As such, your models will need to explicitly whitelist or blacklist accessible
|
60
60
|
# parameters by using an attr_accessible or attr_protected declaration.
|
61
|
-
config.active_record.whitelist_attributes = false
|
61
|
+
config.active_record.whitelist_attributes = false if Rails::VERSION::MAJOR < 6
|
62
62
|
|
63
63
|
# Enable the asset pipeline
|
64
64
|
config.assets.enabled = true
|
@@ -23,11 +23,11 @@ Dummy::Application.configure do
|
|
23
23
|
config.action_dispatch.best_standards_support = :builtin
|
24
24
|
|
25
25
|
# Raise exception on mass assignment protection for Active Record models
|
26
|
-
config.active_record.mass_assignment_sanitizer = :strict
|
26
|
+
config.active_record.mass_assignment_sanitizer = :strict if Rails::VERSION::MAJOR < 6
|
27
27
|
|
28
28
|
# Log the query plan for queries taking more than this (works
|
29
29
|
# with SQLite, MySQL, and PostgreSQL)
|
30
|
-
config.active_record.auto_explain_threshold_in_seconds = 0.5
|
30
|
+
config.active_record.auto_explain_threshold_in_seconds = 0.5 if Rails::VERSION::MAJOR < 6
|
31
31
|
|
32
32
|
# Do not compress assets
|
33
33
|
config.assets.compress = false
|
Binary file
|
data/spec/dummy_4/log/test.log
CHANGED
@@ -4324,3 +4324,329 @@ Started GET "/home.xlsx" for 127.0.0.1 at 2018-05-03 22:31:49 -0700
|
|
4324
4324
|
Processing by HomeController#index as XLSX
|
4325
4325
|
Rendered home/index.xlsx.axlsx (6.0ms)
|
4326
4326
|
Completed 200 OK in 8ms (Views: 7.8ms | ActiveRecord: 0.0ms)
|
4327
|
+
[1m[36m (1.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
4328
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
4329
|
+
[1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
4330
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.0ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
4331
|
+
Migrating to CreateUsers (20120717192452)
|
4332
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4333
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "last_name" varchar, "address" varchar, "email" varchar, "created_at" datetime, "updated_at" datetime)
|
4334
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20120717192452"]]
|
4335
|
+
[1m[35m (0.7ms)[0m commit transaction
|
4336
|
+
Migrating to CreateLikes (20121206210955)
|
4337
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4338
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "likes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "user_id" integer, "created_at" datetime, "updated_at" datetime)
|
4339
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20121206210955"]]
|
4340
|
+
[1m[35m (0.7ms)[0m commit transaction
|
4341
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4342
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4343
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("name", "last_name", "address", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Elmer"], ["last_name", "Fudd"], ["address", "1234 Somewhere, Over NY 11111"], ["email", "elmer@fudd.com"], ["created_at", "2018-06-06 07:51:50.511743"], ["updated_at", "2018-06-06 07:51:50.511743"]]
|
4344
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
4345
|
+
Started GET "/users/1/send_instructions" for 127.0.0.1 at 2018-06-06 00:51:50 -0700
|
4346
|
+
Processing by UsersController#send_instructions as HTML
|
4347
|
+
Parameters: {"user_id"=>"1"}
|
4348
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
4349
|
+
Rendered users/send_instructions.xlsx.axlsx (5.5ms)
|
4350
|
+
Rendered notifier/instructions.html.erb (1.2ms)
|
4351
|
+
|
4352
|
+
Notifier#instructions: processed outbound mail in 219.7ms
|
4353
|
+
|
4354
|
+
Sent mail to elmer@fudd.com (8.7ms)
|
4355
|
+
Date: Wed, 06 Jun 2018 00:51:50 -0700
|
4356
|
+
From: noreply@company.com
|
4357
|
+
To: elmer@fudd.com
|
4358
|
+
Message-ID: <5b179296c328f_5b483fdf8985e1f43013c@straydogstudio.local.mail>
|
4359
|
+
Subject: Instructions
|
4360
|
+
Mime-Version: 1.0
|
4361
|
+
Content-Type: multipart/mixed;
|
4362
|
+
boundary="--==_mimepart_5b179296c1b2a_5b483fdf8985e1f4300cf";
|
4363
|
+
charset=UTF-8
|
4364
|
+
Content-Transfer-Encoding: 7bit
|
4365
|
+
|
4366
|
+
|
4367
|
+
----==_mimepart_5b179296c1b2a_5b483fdf8985e1f4300cf
|
4368
|
+
Content-Type: text/html;
|
4369
|
+
charset=UTF-8
|
4370
|
+
Content-Transfer-Encoding: 7bit
|
4371
|
+
|
4372
|
+
<!DOCTYPE html>
|
4373
|
+
<html>
|
4374
|
+
<head>
|
4375
|
+
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />
|
4376
|
+
</head>
|
4377
|
+
<body>
|
4378
|
+
<h1>Instructions</h1>
|
4379
|
+
<p>
|
4380
|
+
You have successfully signed up to example.com,
|
4381
|
+
your username is: elmer@fudd.com.<br/>
|
4382
|
+
</p>
|
4383
|
+
<p>Thanks for joining and have a great day!</p>
|
4384
|
+
</body>
|
4385
|
+
</html>
|
4386
|
+
|
4387
|
+
----==_mimepart_5b179296c1b2a_5b483fdf8985e1f4300cf
|
4388
|
+
Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
|
4389
|
+
Content-Transfer-Encoding: base64
|
4390
|
+
Content-Disposition: attachment;
|
4391
|
+
filename=user_1.xlsx
|
4392
|
+
Content-ID: <5b179296c398d_5b483fdf8985e1f4302c3@straydogstudio.local.mail>
|
4393
|
+
|
4394
|
+
UEsDBBQAAAAIAACAn+tjOGvU2QAAAEECAAALAAAAX3JlbHMvLnJlbHOtksFO
|
4395
|
+
wzAMhu88ReT7mm5ICKFluyCk3RAqD2ASt43axJEToLw9gQNiaAgOO1r2//3f
|
4396
|
+
wdv9Emb1QpI9RwPrpgVF0bLzcTDw2N2trmG/2z7QjKVe5NGnrGokZgNjKelG
|
4397
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AAEAAACkgdsIAAB4bC93b3Jrc2hl
|
4474
|
+
ZXRzL3NoZWV0MS54bWxQSwUGAAAAAAkACQBOAgAA0AsAAAAA
|
4475
|
+
|
4476
|
+
----==_mimepart_5b179296c1b2a_5b483fdf8985e1f4300cf--
|
4477
|
+
|
4478
|
+
Rendered text template (0.0ms)
|
4479
|
+
Completed 200 OK in 243ms (Views: 2.9ms | ActiveRecord: 0.1ms)
|
4480
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users"[0m
|
4481
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4482
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]]
|
4483
|
+
[1m[35m (1.1ms)[0m commit transaction
|
4484
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4485
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("name", "last_name", "address", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Responder"], ["last_name", "Bunny"], ["address", "1234 Right Turn, Albuquerque NM 22222"], ["email", "bugs@bunny.com"], ["created_at", "2018-06-06 07:51:50.813295"], ["updated_at", "2018-06-06 07:51:50.813295"]]
|
4486
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
4487
|
+
Started GET "/users/export/2.xlsx" for 127.0.0.1 at 2018-06-06 00:51:50 -0700
|
4488
|
+
Processing by UsersController#export as XLSX
|
4489
|
+
Parameters: {"id"=>"2"}
|
4490
|
+
Rendered users/export.xlsx.axlsx (5.0ms)
|
4491
|
+
Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms)
|
4492
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4493
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("name", "last_name", "address", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["name", "Elmer"], ["last_name", "Fudd"], ["address", "1234 Somewhere, Over NY 11111"], ["email", "elmer@fudd.com"], ["created_at", "2018-06-06 07:51:50.842923"], ["updated_at", "2018-06-06 07:51:50.842923"]]
|
4494
|
+
[1m[35m (0.9ms)[0m commit transaction
|
4495
|
+
Started GET "/" for 127.0.0.1 at 2018-06-06 00:51:50 -0700
|
4496
|
+
Processing by HomeController#index as HTML
|
4497
|
+
Rendered home/index.html.erb within layouts/application (0.6ms)
|
4498
|
+
Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.0ms)
|
4499
|
+
Started GET "/withpartial.xlsx" for 127.0.0.1 at 2018-06-06 00:51:50 -0700
|
4500
|
+
Processing by HomeController#withpartial as XLSX
|
4501
|
+
Rendered home/_cover_sheet.xlsx.axlsx (3.8ms)
|
4502
|
+
Rendered home/withpartial.xlsx.axlsx (13.9ms)
|
4503
|
+
Completed 200 OK in 17ms (Views: 16.4ms | ActiveRecord: 0.0ms)
|
4504
|
+
Started GET "/home.xlsx" for 127.0.0.1 at 2018-06-06 00:51:50 -0700
|
4505
|
+
Processing by HomeController#index as XLSX
|
4506
|
+
Rendered home/index.xlsx.axlsx (5.1ms)
|
4507
|
+
Completed 200 OK in 7ms (Views: 6.7ms | ActiveRecord: 0.0ms)
|
4508
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
4509
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4510
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 2]]
|
4511
|
+
[1m[35m (0.9ms)[0m commit transaction
|
4512
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4513
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]]
|
4514
|
+
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
4515
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4516
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("name", "last_name", "address", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["name", "Responder"], ["last_name", "Bunny"], ["address", "1234 Right Turn, Albuquerque NM 22222"], ["email", "bugs@bunny.com"], ["created_at", "2018-06-06 07:51:50.908722"], ["updated_at", "2018-06-06 07:51:50.908722"]]
|
4517
|
+
[1m[35m (1.0ms)[0m commit transaction
|
4518
|
+
Started GET "/users/4.xlsx" for 127.0.0.1 at 2018-06-06 00:51:50 -0700
|
4519
|
+
Processing by UsersController#show as XLSX
|
4520
|
+
Parameters: {"id"=>"4"}
|
4521
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 4]]
|
4522
|
+
Rendered users/respond_with.xlsx.axlsx (6.7ms)
|
4523
|
+
Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.1ms)
|
4524
|
+
Started GET "/another" for 127.0.0.1 at 2018-06-06 00:51:50 -0700
|
4525
|
+
Processing by HomeController#another as */*
|
4526
|
+
Rendered home/index.html.erb (0.7ms)
|
4527
|
+
Rendered text template (0.0ms)
|
4528
|
+
Sent data filename_test.xlsx (0.3ms)
|
4529
|
+
Completed 200 OK in 12ms (Views: 11.9ms | ActiveRecord: 0.0ms)
|
4530
|
+
Started GET "/home/only_html" for 127.0.0.1 at 2018-06-06 00:51:50 -0700
|
4531
|
+
Processing by HomeController#only_html as */*
|
4532
|
+
Rendered home/only_html.html.erb within layouts/application (0.3ms)
|
4533
|
+
Completed 200 OK in 13ms (Views: 13.3ms | ActiveRecord: 0.0ms)
|
4534
|
+
Started GET "/another" for 127.0.0.1 at 2018-06-06 00:51:50 -0700
|
4535
|
+
Processing by HomeController#another as HTML
|
4536
|
+
Rendered home/index.html.erb (2.5ms)
|
4537
|
+
Rendered text template (0.0ms)
|
4538
|
+
Sent data filename_test.xlsx (0.3ms)
|
4539
|
+
Completed 200 OK in 4ms (Views: 4.1ms | ActiveRecord: 0.0ms)
|
4540
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
4541
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4542
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 4]]
|
4543
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
4544
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4545
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name", "last_name", "address", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["name", "Bugs"], ["last_name", "Bunny"], ["address", "1234 Left Turn, Albuquerque NM 22222"], ["email", "bugs@bunny.com"], ["created_at", "2018-06-06 07:51:50.974070"], ["updated_at", "2018-06-06 07:51:50.974070"]]
|
4546
|
+
[1m[35m (1.2ms)[0m commit transaction
|
4547
|
+
Started GET "/users/5/render_elsewhere.xlsx" for 127.0.0.1 at 2018-06-06 00:51:50 -0700
|
4548
|
+
Processing by LikesController#render_elsewhere as XLSX
|
4549
|
+
Parameters: {"user_id"=>"5"}
|
4550
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 5]]
|
4551
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
4552
|
+
Rendered users/index.xlsx.axlsx (6.1ms)
|
4553
|
+
Rendered text template (0.0ms)
|
4554
|
+
Sent data index.xlsx (0.3ms)
|
4555
|
+
Completed 200 OK in 11ms (Views: 10.9ms | ActiveRecord: 0.2ms)
|
4556
|
+
Started GET "/home/render_elsewhere.xlsx?type=5" for 127.0.0.1 at 2018-06-06 00:51:51 -0700
|
4557
|
+
Processing by HomeController#render_elsewhere as XLSX
|
4558
|
+
Parameters: {"type"=>"5"}
|
4559
|
+
Rendered home/index.xlsx.axlsx (4.8ms)
|
4560
|
+
Rendered text template (0.0ms)
|
4561
|
+
Sent data index.xlsx (0.3ms)
|
4562
|
+
Completed 200 OK in 7ms (Views: 6.8ms | ActiveRecord: 0.0ms)
|
4563
|
+
Started GET "/home/render_elsewhere.xlsx?type=4" for 127.0.0.1 at 2018-06-06 00:51:51 -0700
|
4564
|
+
Processing by HomeController#render_elsewhere as XLSX
|
4565
|
+
Parameters: {"type"=>"4"}
|
4566
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
4567
|
+
Rendered users/index.xlsx.axlsx (5.1ms)
|
4568
|
+
Completed 200 OK in 6ms (Views: 6.2ms | ActiveRecord: 0.1ms)
|
4569
|
+
Started GET "/home/render_elsewhere.xlsx?type=3" for 127.0.0.1 at 2018-06-06 00:51:51 -0700
|
4570
|
+
Processing by HomeController#render_elsewhere as XLSX
|
4571
|
+
Parameters: {"type"=>"3"}
|
4572
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
4573
|
+
Rendered users/index.xlsx.axlsx (6.6ms)
|
4574
|
+
Completed 200 OK in 7ms (Views: 6.9ms | ActiveRecord: 0.1ms)
|
4575
|
+
Started GET "/home/render_elsewhere.xlsx?type=1" for 127.0.0.1 at 2018-06-06 00:51:51 -0700
|
4576
|
+
Processing by HomeController#render_elsewhere as XLSX
|
4577
|
+
Parameters: {"type"=>"1"}
|
4578
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
4579
|
+
Rendered users/index.xlsx.axlsx (7.0ms)
|
4580
|
+
Rendered text template (0.0ms)
|
4581
|
+
Sent data index.xlsx (0.2ms)
|
4582
|
+
Completed 200 OK in 8ms (Views: 7.9ms | ActiveRecord: 0.1ms)
|
4583
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
4584
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4585
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 5]]
|
4586
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
4587
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4588
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("name", "last_name", "address", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["name", "Bugs"], ["last_name", "Bunny"], ["address", "1234 Left Turn, Albuquerque NM 22222"], ["email", "bugs@bunny.com"], ["created_at", "2018-06-06 07:51:51.059842"], ["updated_at", "2018-06-06 07:51:51.059842"]]
|
4589
|
+
[1m[35m (1.0ms)[0m commit transaction
|
4590
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4591
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "likes" ("name", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Carrots"], ["user_id", 6], ["created_at", "2018-06-06 07:51:51.078087"], ["updated_at", "2018-06-06 07:51:51.078087"]]
|
4592
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
4593
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4594
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "likes" ("name", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Celery"], ["user_id", 6], ["created_at", "2018-06-06 07:51:51.080607"], ["updated_at", "2018-06-06 07:51:51.080607"]]
|
4595
|
+
[1m[35m (1.4ms)[0m commit transaction
|
4596
|
+
Started GET "/users/6/likes.xlsx" for 127.0.0.1 at 2018-06-06 00:51:51 -0700
|
4597
|
+
Processing by LikesController#index as XLSX
|
4598
|
+
Parameters: {"user_id"=>"6"}
|
4599
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 6]]
|
4600
|
+
[1m[35mLike Load (0.1ms)[0m SELECT "likes".* FROM "likes" WHERE "likes"."user_id" = ? [["user_id", 6]]
|
4601
|
+
Rendered likes/index.xlsx.axlsx (4.7ms)
|
4602
|
+
Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.2ms)
|
4603
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
4604
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4605
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 6]]
|
4606
|
+
[1m[35m (1.0ms)[0m commit transaction
|
4607
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4608
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("name", "last_name", "address", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Elmer"], ["last_name", "Fudd"], ["address", "1234 Somewhere, Over NY 11111"], ["email", "elmer@fudd.com"], ["created_at", "2018-06-06 07:51:51.101752"], ["updated_at", "2018-06-06 07:51:51.101752"]]
|
4609
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
4610
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4611
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name", "last_name", "address", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["name", "Bugs"], ["last_name", "Bunny"], ["address", "1234 Left Turn, Albuquerque NM 22222"], ["email", "bugs@bunny.com"], ["created_at", "2018-06-06 07:51:51.104207"], ["updated_at", "2018-06-06 07:51:51.104207"]]
|
4612
|
+
[1m[35m (0.9ms)[0m commit transaction
|
4613
|
+
Started GET "/users/noaction.xlsx" for 127.0.0.1 at 2018-06-06 00:51:51 -0700
|
4614
|
+
Processing by UsersController#noaction as XLSX
|
4615
|
+
[1m[36mUser Load (0.6ms)[0m [1mSELECT "users".* FROM "users"[0m
|
4616
|
+
Rendered users/noaction.xlsx.axlsx (5.8ms)
|
4617
|
+
Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.6ms)
|
4618
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
4619
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4620
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 7]]
|
4621
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
4622
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4623
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 8]]
|
4624
|
+
[1m[35m (1.0ms)[0m commit transaction
|
4625
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
4626
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("name", "last_name", "address", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Elmer"], ["last_name", "Fudd"], ["address", "1234 Somewhere, Over NY 11111"], ["email", "elmer@fudd.com"], ["created_at", "2018-06-06 07:51:51.135158"], ["updated_at", "2018-06-06 07:51:51.135158"]]
|
4627
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
4628
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4629
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name", "last_name", "address", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["name", "Bugs"], ["last_name", "Bunny"], ["address", "1234 Left Turn, Albuquerque NM 22222"], ["email", "bugs@bunny.com"], ["created_at", "2018-06-06 07:51:51.138390"], ["updated_at", "2018-06-06 07:51:51.138390"]]
|
4630
|
+
[1m[35m (0.9ms)[0m commit transaction
|
4631
|
+
Started GET "/users.xlsx" for 127.0.0.1 at 2018-06-06 00:51:51 -0700
|
4632
|
+
Processing by UsersController#index as XLSX
|
4633
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
4634
|
+
Rendered users/index.xlsx.axlsx (4.7ms)
|
4635
|
+
Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.1ms)
|
4636
|
+
Started GET "/useheader.xlsx" for 127.0.0.1 at 2018-06-06 00:51:51 -0700
|
4637
|
+
Processing by HomeController#useheader as XLSX
|
4638
|
+
Rendered home/useheader.xlsx.axlsx (4.9ms)
|
4639
|
+
Rendered text template (0.0ms)
|
4640
|
+
Sent data filename_test.xlsx (0.3ms)
|
4641
|
+
Completed 200 OK in 7ms (Views: 7.1ms | ActiveRecord: 0.0ms)
|
4642
|
+
Started GET "/useheader.xlsx?set_direct=true" for 127.0.0.1 at 2018-06-06 00:51:51 -0700
|
4643
|
+
Processing by HomeController#useheader as XLSX
|
4644
|
+
Parameters: {"set_direct"=>"true"}
|
4645
|
+
Rendered home/useheader.xlsx.axlsx (7.1ms)
|
4646
|
+
Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.0ms)
|
4647
|
+
Started GET "/another.xlsx" for 127.0.0.1 at 2018-06-06 00:51:51 -0700
|
4648
|
+
Processing by HomeController#another as XLSX
|
4649
|
+
Rendered home/index.xlsx.axlsx (5.8ms)
|
4650
|
+
Rendered text template (0.0ms)
|
4651
|
+
Sent data filename_test.xlsx (0.3ms)
|
4652
|
+
Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.0ms)
|