caxlsx_rails 0.6.2 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/README.md +75 -18
- data/caxlsx_rails.gemspec +33 -0
- data/lib/axlsx_rails/railtie.rb +3 -2
- data/lib/axlsx_rails/template_handler.rb +24 -28
- data/lib/axlsx_rails/version.rb +1 -1
- metadata +10 -744
- data/Gemfile +0 -53
- data/Gemfile.lock +0 -279
- data/Gemfile.lock.4.2 +0 -255
- data/Gemfile.lock.5.1 +0 -261
- data/Gemfile.lock.5.2 +0 -216
- data/Guardfile +0 -16
- data/Rakefile +0 -29
- data/spec/axlsx_builder_spec.rb +0 -48
- data/spec/axlsx_mailer_spec.rb +0 -15
- data/spec/axlsx_renderer_spec.rb +0 -16
- data/spec/axlsx_request_spec.rb +0 -202
- data/spec/ci.rb +0 -15
- data/spec/dummy/Rakefile +0 -7
- data/spec/dummy/app/assets/javascripts/application.js +0 -15
- data/spec/dummy/app/assets/stylesheets/application.css +0 -13
- data/spec/dummy/app/controllers/application_controller.rb +0 -3
- data/spec/dummy/app/controllers/home_controller.rb +0 -54
- data/spec/dummy/app/controllers/likes_controller.rb +0 -18
- data/spec/dummy/app/controllers/users_controller.rb +0 -27
- data/spec/dummy/app/helpers/application_helper.rb +0 -2
- data/spec/dummy/app/mailers/notifier.rb +0 -14
- data/spec/dummy/app/models/like.rb +0 -3
- data/spec/dummy/app/models/user.rb +0 -10
- data/spec/dummy/app/views/home/_cover_sheet.xlsx.axlsx +0 -3
- data/spec/dummy/app/views/home/index.html.erb +0 -4
- data/spec/dummy/app/views/home/index.xlsx.axlsx +0 -8
- data/spec/dummy/app/views/home/useheader.xlsx.axlsx +0 -8
- data/spec/dummy/app/views/home/withpartial.xlsx.axlsx +0 -9
- data/spec/dummy/app/views/layouts/application.html.erb +0 -12
- data/spec/dummy/app/views/likes/index.html.erb +0 -17
- data/spec/dummy/app/views/likes/index.xlsx.axlsx +0 -7
- data/spec/dummy/app/views/notifier/instructions.html.erb +0 -14
- data/spec/dummy/app/views/users/index.html.erb +0 -23
- data/spec/dummy/app/views/users/index.xlsx.axlsx +0 -1
- data/spec/dummy/app/views/users/respond_with.xlsx.axlsx +0 -8
- data/spec/dummy/app/views/users/send_instructions.xlsx.axlsx +0 -5
- data/spec/dummy/config/application.rb +0 -70
- data/spec/dummy/config/boot.rb +0 -10
- data/spec/dummy/config/database.yml +0 -11
- data/spec/dummy/config/environment.rb +0 -5
- data/spec/dummy/config/environments/development.rb +0 -39
- data/spec/dummy/config/environments/production.rb +0 -69
- data/spec/dummy/config/environments/test.rb +0 -40
- data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/dummy/config/initializers/inflections.rb +0 -15
- data/spec/dummy/config/initializers/mime_types.rb +0 -5
- data/spec/dummy/config/initializers/secret_token.rb +0 -8
- data/spec/dummy/config/initializers/session_store.rb +0 -8
- data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/spec/dummy/config/locales/en.yml +0 -5
- data/spec/dummy/config/routes.rb +0 -14
- data/spec/dummy/config.ru +0 -4
- data/spec/dummy/db/migrate/20120717192452_create_users.rb +0 -12
- data/spec/dummy/db/migrate/20121206210955_create_likes.rb +0 -10
- data/spec/dummy/db/schema.rb +0 -32
- data/spec/dummy/public/404.html +0 -26
- data/spec/dummy/public/422.html +0 -26
- data/spec/dummy/public/500.html +0 -25
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +0 -6
- data/spec/dummy_4/Rakefile +0 -6
- data/spec/dummy_4/app/assets/javascripts/application.js +0 -13
- data/spec/dummy_4/app/assets/stylesheets/application.css +0 -15
- data/spec/dummy_4/app/controllers/application_controller.rb +0 -5
- data/spec/dummy_4/app/controllers/home_controller.rb +0 -56
- data/spec/dummy_4/app/controllers/likes_controller.rb +0 -18
- data/spec/dummy_4/app/controllers/users_controller.rb +0 -27
- data/spec/dummy_4/app/helpers/application_helper.rb +0 -2
- data/spec/dummy_4/app/mailers/notifier.rb +0 -14
- data/spec/dummy_4/app/models/like.rb +0 -3
- data/spec/dummy_4/app/models/user.rb +0 -10
- data/spec/dummy_4/app/views/home/_cover_sheet.xlsx.axlsx +0 -3
- data/spec/dummy_4/app/views/home/index.html.erb +0 -4
- data/spec/dummy_4/app/views/home/index.xlsx.axlsx +0 -8
- data/spec/dummy_4/app/views/home/only_html.html.erb +0 -1
- data/spec/dummy_4/app/views/home/useheader.xlsx.axlsx +0 -8
- data/spec/dummy_4/app/views/home/withpartial.xlsx.axlsx +0 -9
- data/spec/dummy_4/app/views/layouts/application.html.erb +0 -12
- data/spec/dummy_4/app/views/layouts/users.html.erb +0 -12
- data/spec/dummy_4/app/views/likes/index.html.erb +0 -17
- data/spec/dummy_4/app/views/likes/index.xlsx.axlsx +0 -7
- data/spec/dummy_4/app/views/notifier/instructions.html.erb +0 -14
- data/spec/dummy_4/app/views/notifier/instructions.txt.erb +0 -6
- data/spec/dummy_4/app/views/users/export.xlsx.axlsx +0 -8
- data/spec/dummy_4/app/views/users/index.html.erb +0 -23
- data/spec/dummy_4/app/views/users/index.xlsx.axlsx +0 -1
- data/spec/dummy_4/app/views/users/noaction.xlsx.axlsx +0 -1
- data/spec/dummy_4/app/views/users/respond_with.xlsx.axlsx +0 -8
- data/spec/dummy_4/app/views/users/send_instructions.xlsx.axlsx +0 -5
- data/spec/dummy_4/bin/bundle +0 -3
- data/spec/dummy_4/bin/rails +0 -4
- data/spec/dummy_4/bin/rake +0 -4
- data/spec/dummy_4/config/application.rb +0 -23
- data/spec/dummy_4/config/boot.rb +0 -5
- data/spec/dummy_4/config/database.yml +0 -25
- data/spec/dummy_4/config/environment.rb +0 -5
- data/spec/dummy_4/config/environments/development.rb +0 -37
- data/spec/dummy_4/config/environments/production.rb +0 -83
- data/spec/dummy_4/config/environments/test.rb +0 -40
- data/spec/dummy_4/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/dummy_4/config/initializers/cookies_serializer.rb +0 -3
- data/spec/dummy_4/config/initializers/filter_parameter_logging.rb +0 -4
- data/spec/dummy_4/config/initializers/inflections.rb +0 -16
- data/spec/dummy_4/config/initializers/mime_types.rb +0 -4
- data/spec/dummy_4/config/initializers/secret_token.rb +0 -2
- data/spec/dummy_4/config/initializers/session_store.rb +0 -3
- data/spec/dummy_4/config/initializers/wrap_parameters.rb +0 -14
- data/spec/dummy_4/config/locales/en.yml +0 -23
- data/spec/dummy_4/config/routes.rb +0 -17
- data/spec/dummy_4/config/secrets.yml +0 -22
- data/spec/dummy_4/config.ru +0 -4
- data/spec/dummy_4/db/migrate/20120717192452_create_users.rb +0 -12
- data/spec/dummy_4/db/migrate/20121206210955_create_likes.rb +0 -10
- data/spec/dummy_4/db/schema.rb +0 -32
- data/spec/dummy_4/db/test.sqlite3 +0 -0
- data/spec/dummy_4/log/test.log +0 -4652
- data/spec/dummy_4/public/404.html +0 -67
- data/spec/dummy_4/public/422.html +0 -67
- data/spec/dummy_4/public/500.html +0 -66
- data/spec/dummy_4/public/favicon.ico +0 -0
- data/spec/dummy_5/db/test.sqlite3 +0 -0
- data/spec/dummy_5/log/test.log +0 -3645
- data/spec/dummy_5.0/Rakefile +0 -6
- data/spec/dummy_5.0/app/assets/javascripts/application.js +0 -13
- data/spec/dummy_5.0/app/assets/stylesheets/application.css +0 -15
- data/spec/dummy_5.0/app/controllers/application_controller.rb +0 -5
- data/spec/dummy_5.0/app/controllers/home_controller.rb +0 -56
- data/spec/dummy_5.0/app/controllers/likes_controller.rb +0 -18
- data/spec/dummy_5.0/app/controllers/users_controller.rb +0 -37
- data/spec/dummy_5.0/app/helpers/application_helper.rb +0 -2
- data/spec/dummy_5.0/app/mailers/notifier.rb +0 -14
- data/spec/dummy_5.0/app/models/like.rb +0 -3
- data/spec/dummy_5.0/app/models/user.rb +0 -10
- data/spec/dummy_5.0/app/views/home/_cover_sheet.xlsx.axlsx +0 -3
- data/spec/dummy_5.0/app/views/home/index.html.erb +0 -4
- data/spec/dummy_5.0/app/views/home/index.xlsx.axlsx +0 -8
- data/spec/dummy_5.0/app/views/home/only_html.html.erb +0 -1
- data/spec/dummy_5.0/app/views/home/useheader.xlsx.axlsx +0 -8
- data/spec/dummy_5.0/app/views/home/withpartial.xlsx.axlsx +0 -9
- data/spec/dummy_5.0/app/views/layouts/application.html.erb +0 -12
- data/spec/dummy_5.0/app/views/layouts/users.html.erb +0 -12
- data/spec/dummy_5.0/app/views/likes/index.html.erb +0 -17
- data/spec/dummy_5.0/app/views/likes/index.xlsx.axlsx +0 -7
- data/spec/dummy_5.0/app/views/notifier/instructions.html.erb +0 -14
- data/spec/dummy_5.0/app/views/notifier/instructions.txt.erb +0 -6
- data/spec/dummy_5.0/app/views/users/export.xlsx.axlsx +0 -8
- data/spec/dummy_5.0/app/views/users/index.html.erb +0 -23
- data/spec/dummy_5.0/app/views/users/index.xlsx.axlsx +0 -1
- data/spec/dummy_5.0/app/views/users/noaction.xlsx.axlsx +0 -1
- data/spec/dummy_5.0/app/views/users/respond_with.xlsx.axlsx +0 -8
- data/spec/dummy_5.0/app/views/users/send_instructions.xlsx.axlsx +0 -5
- data/spec/dummy_5.0/bin/bundle +0 -3
- data/spec/dummy_5.0/bin/rails +0 -4
- data/spec/dummy_5.0/bin/rake +0 -4
- data/spec/dummy_5.0/config/application.rb +0 -23
- data/spec/dummy_5.0/config/boot.rb +0 -5
- data/spec/dummy_5.0/config/database.yml +0 -25
- data/spec/dummy_5.0/config/environment.rb +0 -5
- data/spec/dummy_5.0/config/environments/development.rb +0 -37
- data/spec/dummy_5.0/config/environments/production.rb +0 -83
- data/spec/dummy_5.0/config/environments/test.rb +0 -40
- data/spec/dummy_5.0/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/dummy_5.0/config/initializers/cookies_serializer.rb +0 -3
- data/spec/dummy_5.0/config/initializers/filter_parameter_logging.rb +0 -4
- data/spec/dummy_5.0/config/initializers/inflections.rb +0 -16
- data/spec/dummy_5.0/config/initializers/mime_types.rb +0 -4
- data/spec/dummy_5.0/config/initializers/secret_token.rb +0 -2
- data/spec/dummy_5.0/config/initializers/session_store.rb +0 -3
- data/spec/dummy_5.0/config/initializers/wrap_parameters.rb +0 -14
- data/spec/dummy_5.0/config/locales/en.yml +0 -23
- data/spec/dummy_5.0/config/routes.rb +0 -17
- data/spec/dummy_5.0/config/secrets.yml +0 -22
- data/spec/dummy_5.0/config.ru +0 -4
- data/spec/dummy_5.0/db/migrate/20120717192452_create_users.rb +0 -12
- data/spec/dummy_5.0/db/migrate/20121206210955_create_likes.rb +0 -10
- data/spec/dummy_5.0/db/schema.rb +0 -31
- data/spec/dummy_5.0/public/404.html +0 -67
- data/spec/dummy_5.0/public/422.html +0 -67
- data/spec/dummy_5.0/public/500.html +0 -66
- data/spec/dummy_5.0/public/favicon.ico +0 -0
- data/spec/dummy_5.1/Rakefile +0 -6
- data/spec/dummy_5.1/app/assets/javascripts/application.js +0 -13
- data/spec/dummy_5.1/app/assets/stylesheets/application.css +0 -15
- data/spec/dummy_5.1/app/controllers/application_controller.rb +0 -5
- data/spec/dummy_5.1/app/controllers/home_controller.rb +0 -56
- data/spec/dummy_5.1/app/controllers/likes_controller.rb +0 -18
- data/spec/dummy_5.1/app/controllers/users_controller.rb +0 -37
- data/spec/dummy_5.1/app/helpers/application_helper.rb +0 -2
- data/spec/dummy_5.1/app/mailers/notifier.rb +0 -14
- data/spec/dummy_5.1/app/models/like.rb +0 -3
- data/spec/dummy_5.1/app/models/user.rb +0 -10
- data/spec/dummy_5.1/app/views/home/_cover_sheet.xlsx.axlsx +0 -3
- data/spec/dummy_5.1/app/views/home/index.html.erb +0 -4
- data/spec/dummy_5.1/app/views/home/index.xlsx.axlsx +0 -8
- data/spec/dummy_5.1/app/views/home/only_html.html.erb +0 -1
- data/spec/dummy_5.1/app/views/home/useheader.xlsx.axlsx +0 -8
- data/spec/dummy_5.1/app/views/home/withpartial.xlsx.axlsx +0 -9
- data/spec/dummy_5.1/app/views/layouts/application.html.erb +0 -12
- data/spec/dummy_5.1/app/views/layouts/users.html.erb +0 -12
- data/spec/dummy_5.1/app/views/likes/index.html.erb +0 -17
- data/spec/dummy_5.1/app/views/likes/index.xlsx.axlsx +0 -7
- data/spec/dummy_5.1/app/views/notifier/instructions.html.erb +0 -14
- data/spec/dummy_5.1/app/views/notifier/instructions.txt.erb +0 -6
- data/spec/dummy_5.1/app/views/users/export.xlsx.axlsx +0 -8
- data/spec/dummy_5.1/app/views/users/index.html.erb +0 -23
- data/spec/dummy_5.1/app/views/users/index.xlsx.axlsx +0 -1
- data/spec/dummy_5.1/app/views/users/noaction.xlsx.axlsx +0 -1
- data/spec/dummy_5.1/app/views/users/respond_with.xlsx.axlsx +0 -8
- data/spec/dummy_5.1/app/views/users/send_instructions.xlsx.axlsx +0 -5
- data/spec/dummy_5.1/bin/bundle +0 -3
- data/spec/dummy_5.1/bin/rails +0 -4
- data/spec/dummy_5.1/bin/rake +0 -4
- data/spec/dummy_5.1/config/application.rb +0 -23
- data/spec/dummy_5.1/config/boot.rb +0 -5
- data/spec/dummy_5.1/config/database.yml +0 -25
- data/spec/dummy_5.1/config/environment.rb +0 -5
- data/spec/dummy_5.1/config/environments/development.rb +0 -37
- data/spec/dummy_5.1/config/environments/production.rb +0 -83
- data/spec/dummy_5.1/config/environments/test.rb +0 -40
- data/spec/dummy_5.1/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/dummy_5.1/config/initializers/cookies_serializer.rb +0 -3
- data/spec/dummy_5.1/config/initializers/filter_parameter_logging.rb +0 -4
- data/spec/dummy_5.1/config/initializers/inflections.rb +0 -16
- data/spec/dummy_5.1/config/initializers/mime_types.rb +0 -4
- data/spec/dummy_5.1/config/initializers/secret_token.rb +0 -2
- data/spec/dummy_5.1/config/initializers/session_store.rb +0 -3
- data/spec/dummy_5.1/config/initializers/wrap_parameters.rb +0 -14
- data/spec/dummy_5.1/config/locales/en.yml +0 -23
- data/spec/dummy_5.1/config/routes.rb +0 -17
- data/spec/dummy_5.1/config/secrets.yml +0 -22
- data/spec/dummy_5.1/config.ru +0 -4
- data/spec/dummy_5.1/db/migrate/20120717192452_create_users.rb +0 -12
- data/spec/dummy_5.1/db/migrate/20121206210955_create_likes.rb +0 -10
- data/spec/dummy_5.1/db/schema.rb +0 -31
- data/spec/dummy_5.1/db/test.sqlite3 +0 -0
- data/spec/dummy_5.1/log/test.log +0 -3645
- data/spec/dummy_5.1/public/404.html +0 -67
- data/spec/dummy_5.1/public/422.html +0 -67
- data/spec/dummy_5.1/public/500.html +0 -66
- data/spec/dummy_5.1/public/favicon.ico +0 -0
- data/spec/dummy_5.2/Rakefile +0 -6
- data/spec/dummy_5.2/app/assets/javascripts/application.js +0 -13
- data/spec/dummy_5.2/app/assets/stylesheets/application.css +0 -15
- data/spec/dummy_5.2/app/controllers/application_controller.rb +0 -5
- data/spec/dummy_5.2/app/controllers/home_controller.rb +0 -56
- data/spec/dummy_5.2/app/controllers/likes_controller.rb +0 -18
- data/spec/dummy_5.2/app/controllers/users_controller.rb +0 -37
- data/spec/dummy_5.2/app/helpers/application_helper.rb +0 -2
- data/spec/dummy_5.2/app/mailers/notifier.rb +0 -14
- data/spec/dummy_5.2/app/models/like.rb +0 -3
- data/spec/dummy_5.2/app/models/user.rb +0 -10
- data/spec/dummy_5.2/app/views/home/_cover_sheet.xlsx.axlsx +0 -3
- data/spec/dummy_5.2/app/views/home/index.html.erb +0 -4
- data/spec/dummy_5.2/app/views/home/index.xlsx.axlsx +0 -8
- data/spec/dummy_5.2/app/views/home/only_html.html.erb +0 -1
- data/spec/dummy_5.2/app/views/home/useheader.xlsx.axlsx +0 -8
- data/spec/dummy_5.2/app/views/home/withpartial.xlsx.axlsx +0 -9
- data/spec/dummy_5.2/app/views/layouts/application.html.erb +0 -12
- data/spec/dummy_5.2/app/views/layouts/users.html.erb +0 -12
- data/spec/dummy_5.2/app/views/likes/index.html.erb +0 -17
- data/spec/dummy_5.2/app/views/likes/index.xlsx.axlsx +0 -7
- data/spec/dummy_5.2/app/views/notifier/instructions.html.erb +0 -14
- data/spec/dummy_5.2/app/views/notifier/instructions.txt.erb +0 -6
- data/spec/dummy_5.2/app/views/users/export.xlsx.axlsx +0 -8
- data/spec/dummy_5.2/app/views/users/index.html.erb +0 -23
- data/spec/dummy_5.2/app/views/users/index.xlsx.axlsx +0 -1
- data/spec/dummy_5.2/app/views/users/noaction.xlsx.axlsx +0 -1
- data/spec/dummy_5.2/app/views/users/respond_with.xlsx.axlsx +0 -8
- data/spec/dummy_5.2/app/views/users/send_instructions.xlsx.axlsx +0 -5
- data/spec/dummy_5.2/bin/bundle +0 -3
- data/spec/dummy_5.2/bin/rails +0 -4
- data/spec/dummy_5.2/bin/rake +0 -4
- data/spec/dummy_5.2/config/application.rb +0 -23
- data/spec/dummy_5.2/config/boot.rb +0 -5
- data/spec/dummy_5.2/config/database.yml +0 -25
- data/spec/dummy_5.2/config/environment.rb +0 -5
- data/spec/dummy_5.2/config/environments/development.rb +0 -37
- data/spec/dummy_5.2/config/environments/production.rb +0 -83
- data/spec/dummy_5.2/config/environments/test.rb +0 -40
- data/spec/dummy_5.2/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/dummy_5.2/config/initializers/cookies_serializer.rb +0 -3
- data/spec/dummy_5.2/config/initializers/filter_parameter_logging.rb +0 -4
- data/spec/dummy_5.2/config/initializers/inflections.rb +0 -16
- data/spec/dummy_5.2/config/initializers/mime_types.rb +0 -4
- data/spec/dummy_5.2/config/initializers/secret_token.rb +0 -2
- data/spec/dummy_5.2/config/initializers/session_store.rb +0 -3
- data/spec/dummy_5.2/config/initializers/wrap_parameters.rb +0 -14
- data/spec/dummy_5.2/config/locales/en.yml +0 -23
- data/spec/dummy_5.2/config/routes.rb +0 -17
- data/spec/dummy_5.2/config/secrets.yml +0 -22
- data/spec/dummy_5.2/config.ru +0 -4
- data/spec/dummy_5.2/db/migrate/20120717192452_create_users.rb +0 -12
- data/spec/dummy_5.2/db/migrate/20121206210955_create_likes.rb +0 -10
- data/spec/dummy_5.2/db/schema.rb +0 -31
- data/spec/dummy_5.2/db/test.sqlite3 +0 -0
- data/spec/dummy_5.2/log/test.log +0 -3645
- data/spec/dummy_5.2/public/404.html +0 -67
- data/spec/dummy_5.2/public/422.html +0 -67
- data/spec/dummy_5.2/public/500.html +0 -66
- data/spec/dummy_5.2/public/favicon.ico +0 -0
- data/spec/dummy_6.0/Rakefile +0 -6
- data/spec/dummy_6.0/app/assets/javascripts/application.js +0 -13
- data/spec/dummy_6.0/app/assets/stylesheets/application.css +0 -15
- data/spec/dummy_6.0/app/controllers/application_controller.rb +0 -5
- data/spec/dummy_6.0/app/controllers/home_controller.rb +0 -56
- data/spec/dummy_6.0/app/controllers/likes_controller.rb +0 -18
- data/spec/dummy_6.0/app/controllers/users_controller.rb +0 -37
- data/spec/dummy_6.0/app/helpers/application_helper.rb +0 -2
- data/spec/dummy_6.0/app/mailers/notifier.rb +0 -14
- data/spec/dummy_6.0/app/models/like.rb +0 -3
- data/spec/dummy_6.0/app/models/user.rb +0 -10
- data/spec/dummy_6.0/app/views/home/_cover_sheet.xlsx.axlsx +0 -3
- data/spec/dummy_6.0/app/views/home/index.html.erb +0 -4
- data/spec/dummy_6.0/app/views/home/index.xlsx.axlsx +0 -8
- data/spec/dummy_6.0/app/views/home/only_html.html.erb +0 -1
- data/spec/dummy_6.0/app/views/home/useheader.xlsx.axlsx +0 -8
- data/spec/dummy_6.0/app/views/home/withpartial.xlsx.axlsx +0 -9
- data/spec/dummy_6.0/app/views/layouts/application.html.erb +0 -12
- data/spec/dummy_6.0/app/views/layouts/users.html.erb +0 -12
- data/spec/dummy_6.0/app/views/likes/index.html.erb +0 -17
- data/spec/dummy_6.0/app/views/likes/index.xlsx.axlsx +0 -7
- data/spec/dummy_6.0/app/views/notifier/instructions.html.erb +0 -14
- data/spec/dummy_6.0/app/views/notifier/instructions.txt.erb +0 -6
- data/spec/dummy_6.0/app/views/users/export.xlsx.axlsx +0 -8
- data/spec/dummy_6.0/app/views/users/index.html.erb +0 -23
- data/spec/dummy_6.0/app/views/users/index.xlsx.axlsx +0 -1
- data/spec/dummy_6.0/app/views/users/noaction.xlsx.axlsx +0 -1
- data/spec/dummy_6.0/app/views/users/respond_with.xlsx.axlsx +0 -8
- data/spec/dummy_6.0/app/views/users/send_instructions.xlsx.axlsx +0 -5
- data/spec/dummy_6.0/bin/bundle +0 -3
- data/spec/dummy_6.0/bin/rails +0 -4
- data/spec/dummy_6.0/bin/rake +0 -4
- data/spec/dummy_6.0/config/application.rb +0 -23
- data/spec/dummy_6.0/config/boot.rb +0 -5
- data/spec/dummy_6.0/config/database.yml +0 -25
- data/spec/dummy_6.0/config/environment.rb +0 -5
- data/spec/dummy_6.0/config/environments/development.rb +0 -37
- data/spec/dummy_6.0/config/environments/production.rb +0 -83
- data/spec/dummy_6.0/config/environments/test.rb +0 -40
- data/spec/dummy_6.0/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/dummy_6.0/config/initializers/cookies_serializer.rb +0 -3
- data/spec/dummy_6.0/config/initializers/filter_parameter_logging.rb +0 -4
- data/spec/dummy_6.0/config/initializers/inflections.rb +0 -16
- data/spec/dummy_6.0/config/initializers/mime_types.rb +0 -4
- data/spec/dummy_6.0/config/initializers/secret_token.rb +0 -2
- data/spec/dummy_6.0/config/initializers/session_store.rb +0 -3
- data/spec/dummy_6.0/config/initializers/wrap_parameters.rb +0 -14
- data/spec/dummy_6.0/config/locales/en.yml +0 -23
- data/spec/dummy_6.0/config/routes.rb +0 -17
- data/spec/dummy_6.0/config/secrets.yml +0 -22
- data/spec/dummy_6.0/config.ru +0 -4
- data/spec/dummy_6.0/db/migrate/20120717192452_create_users.rb +0 -12
- data/spec/dummy_6.0/db/migrate/20121206210955_create_likes.rb +0 -10
- data/spec/dummy_6.0/db/schema.rb +0 -31
- data/spec/dummy_6.0/public/404.html +0 -67
- data/spec/dummy_6.0/public/422.html +0 -67
- data/spec/dummy_6.0/public/500.html +0 -66
- data/spec/dummy_6.0/public/favicon.ico +0 -0
- data/spec/reset_gems.sh +0 -2
- data/spec/spec_helper.rb +0 -53
- data/spec/test_3.1.sh +0 -16
- data/spec/test_3.2.sh +0 -16
- data/spec/test_4.0.sh +0 -16
- data/spec/test_4.1.sh +0 -16
- data/spec/test_4.2.sh +0 -16
- data/spec/test_5.0.sh +0 -16
- data/spec/test_5.1.sh +0 -16
- data/spec/test_5.2.sh +0 -16
- data/spec/test_6.0.sh +0 -16
- data/spec/test_all_rails.sh +0 -8
- data/spec/test_revert.sh +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed6804c086bd3783c84283db93df9a972a5dd22f14393a70eca1b66ad22212f4
|
4
|
+
data.tar.gz: 3c8b9f058f4df8dc3d79ebce09e64988ba0300e6cb1f1b86197ea6c65345b0fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 329d8ef7d3fe9ef8c3b70ac1a342a9ecce75ea1ca06f803449dff898fc697472e8d6c48455790c029011ac451b0d86b00e88f99b28be242221d2a1bf716acf7c
|
7
|
+
data.tar.gz: 8ab327efb87a5e095aee190b7d77ae46841874a899d0b6cc9da6d9aa8a870b52123c64fda6cf512f950eb5f4ca36fcf4ccddf9768efc1cda4bb945fcd99efdea
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
# Change log
|
2
2
|
|
3
|
+
**June 18, 2024**: 0.6.4 release
|
4
|
+
|
5
|
+
- Convert to Github actions
|
6
|
+
- Improve tests
|
7
|
+
- Fix broken templates with comments as their last line
|
8
|
+
|
9
|
+
**March 8, 2022**: 0.6.3 release
|
10
|
+
|
11
|
+
- Exclude rspec directory (#149)[https://github.com/caxlsx/caxlsx_rails/pull/149]
|
12
|
+
|
3
13
|
**December 18, 2019**: 0.6.2 release
|
4
14
|
|
5
15
|
- Release under caxlsx_rails
|
data/README.md
CHANGED
@@ -1,25 +1,31 @@
|
|
1
1
|
Notice: axlsx_rails renamed to caxlsx_rails
|
2
2
|
===================================================
|
3
|
-
This gem has been renamed to match other gems in the Axlsx community organization:
|
3
|
+
This gem has been renamed to match other gems in the Axlsx community organization: https://github.com/caxlsx
|
4
4
|
|
5
5
|
Axlsx-Rails — Spreadsheet templates for Rails
|
6
6
|
===================================================
|
7
7
|
|
8
|
-
[![Build Status](https://secure.travis-ci.org/caxlsx/caxlsx_rails.svg?branch=master)](http://travis-ci.org/caxlsx/caxlsx_rails)
|
9
8
|
[![Gem
|
10
|
-
Version](https://badge.fury.io/rb/caxlsx_rails.svg)](
|
9
|
+
Version](https://badge.fury.io/rb/caxlsx_rails.svg)](https://badge.fury.io/rb/caxlsx_rails)
|
11
10
|
[![Coverage
|
12
11
|
Status](https://coveralls.io/repos/caxlsx/caxlsx_rails/badge.svg)](https://coveralls.io/r/caxlsx/caxlsx_rails)
|
12
|
+
[![tests](https://github.com/caxlsx/caxlsx_rails/actions/workflows/test.yml/badge.svg)](https://github.com/caxlsx/caxlsx_rails/actions)
|
13
|
+
![downloads](https://img.shields.io/gem/dt/caxlsx_rails?label=downloads)
|
13
14
|
|
14
|
-
|
15
|
-
|
16
|
-
|
15
|
+
## Notice: Community Axlsx Organization
|
16
|
+
|
17
|
+
To better maintain the Axlsx ecosystem, all related gems have been forked or moved to the following community organization:
|
18
|
+
|
19
|
+
https://github.com/caxlsx
|
20
|
+
|
21
|
+
[Join the Caxlsx Slack channel](https://join.slack.com/t/caxlsx/shared_invite/enQtOTI5OTM0MzI1Njk5LTBlMDQzNDk2YzkwODMxMmVkODMyYzJiZGU5NTQ3YTg5NTBlN2IwZTlmNTRjNzhiY2E0MDY2OTEyYmFlODI5NjA)
|
17
22
|
|
18
23
|
## Installation
|
19
24
|
|
20
25
|
In your Gemfile:
|
21
26
|
|
22
27
|
```ruby
|
28
|
+
gem 'caxlsx'
|
23
29
|
gem 'caxlsx_rails'
|
24
30
|
```
|
25
31
|
|
@@ -27,19 +33,19 @@ See [previous installations](#previous-installations) if needed.
|
|
27
33
|
|
28
34
|
## Requirements
|
29
35
|
|
30
|
-
* Tested on Rails 4.2, 5.x and
|
36
|
+
* Tested on Rails 4.2, 5.x, 6.x, and 7.x.
|
31
37
|
* For Rails 3.1 or 3.2 use version 3.0
|
32
38
|
* **As of 0.5.0 requires Axlsx 2.0.1, but strongly suggests 2.1.0.pre, which requires rubyzip 1.1.0**
|
33
39
|
* As of Rails 4.1 you must use `render_to_string` to render a mail attachment.
|
34
40
|
|
35
41
|
## FYI
|
36
42
|
|
37
|
-
* This gem depends on [
|
43
|
+
* This gem depends on [caxlsx](https://github.com/caxlsx/caxlsx). See [the blog](http://axlsx.blog.randym.net/) or the [examples page](https://github.com/caxlsx/caxlsx/tree/master/examples) for usage.
|
38
44
|
* Check out [axlsx_styler](https://github.com/sakovias/axlsx_styler) by [sakovias](https://github.com/sakovias) for easier styles and borders!
|
39
45
|
|
40
46
|
## Usage
|
41
47
|
|
42
|
-
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 [
|
48
|
+
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 [caxlsx](https://github.com/caxlsx/caxlsx) 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.**
|
43
49
|
|
44
50
|
### Controller
|
45
51
|
|
@@ -69,7 +75,7 @@ wb.add_worksheet(name: "Buttons") do |sheet|
|
|
69
75
|
end
|
70
76
|
```
|
71
77
|
|
72
|
-
This is where you place all your [
|
78
|
+
This is where you place all your [caxlsx](https://github.com/caxlsx/caxlsx) specific markup. Add worksheets, fill content, merge cells, add styles. See the [caxlsx examples](https://github.com/caxlsx/caxlsx/tree/master/examples) page to see what you can do.
|
73
79
|
|
74
80
|
Remember, like in `erb` templates, view helpers are available to use the `.xlsx.axlsx` template.
|
75
81
|
|
@@ -286,7 +292,7 @@ end
|
|
286
292
|
|
287
293
|
require 'rspec/expectations'
|
288
294
|
|
289
|
-
module
|
295
|
+
module XlsxMatchers
|
290
296
|
|
291
297
|
RSpec::Matchers.define :have_header_cells do |cell_values|
|
292
298
|
match do |worksheet|
|
@@ -325,6 +331,30 @@ end
|
|
325
331
|
* If it says your template is missing, check that its extension is `.xlsx.axlsx`.
|
326
332
|
* If you get the error `uninitialized constant Mime::XSLX` you have used `format.xslx` instead of `format.xlsx`, or something similar.
|
327
333
|
|
334
|
+
### Using axlsx_rails in API mode
|
335
|
+
|
336
|
+
In API mode Rails does not include ActionView, so axlsx_rails will not work. To render axlsx_rails templates you must include ActionView::Rendering in your controller and override render_to_body:
|
337
|
+
|
338
|
+
```ruby
|
339
|
+
class MyController < ActionController::API
|
340
|
+
include ActionView::Rendering
|
341
|
+
|
342
|
+
def show
|
343
|
+
respond_to do |format|
|
344
|
+
format.xlsx
|
345
|
+
end
|
346
|
+
end
|
347
|
+
|
348
|
+
private
|
349
|
+
|
350
|
+
def render_to_body(options)
|
351
|
+
_render_to_body_with_renderer(options) || super
|
352
|
+
end
|
353
|
+
end
|
354
|
+
```
|
355
|
+
|
356
|
+
See [issue 107](https://github.com/caxlsx/caxlsx_rails/issues/107)
|
357
|
+
|
328
358
|
### Mailer Attachments: No content, cannot read, Invalid Byte Sequence in UTF-8
|
329
359
|
|
330
360
|
If you are having problems with rendering a template and attaching it to a template, try a few options:
|
@@ -348,6 +378,10 @@ end
|
|
348
378
|
|
349
379
|
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/caxlsx_rails/issues/29) or [#25](https://github.com/caxlsx/caxlsx_rails/issues/25).
|
350
380
|
|
381
|
+
### The unparsed template is returned, or something similar
|
382
|
+
|
383
|
+
Have you followed other tutorials for serving Excel from Rails? Have you declared the MIME type already? These may be incompatible with caxlsx_rails (which declares the MIME type for you.) Remove any vestiges of other tutorials from your code and try again.
|
384
|
+
|
351
385
|
### Generated Files Can't Be Opened or Invalid Byte Sequence in UTF-8
|
352
386
|
|
353
387
|
Both these errors *appear* to be caused by Rails applying a layout to the template. Passing `layout: false` to `render :xlsx` should fix this issue. Version 0.5.0 attempts to fix this issue.
|
@@ -385,9 +419,29 @@ If you are using turbolinks, you may need to disable turbolinks when you link to
|
|
385
419
|
link_to 'Download spreadsheet', path_to_sheet, data: {turbolinks: false}
|
386
420
|
```
|
387
421
|
|
422
|
+
### Rails 7 Unknown Format
|
423
|
+
|
424
|
+
In Rails 7, if you get an error of "Unknown Format" you may need to add `(format: "xlsx")` to the named route.
|
425
|
+
|
426
|
+
A clue to the "format" that Rails is responding with is to look at your log file or console after you click the HTML link or submit your form. You should see `Processing by Controller#action as XLSX`.
|
427
|
+
|
428
|
+
#### Code Examples
|
429
|
+
|
430
|
+
Scenario 1 - HTML Link within index.html.erb
|
431
|
+
|
432
|
+
```ruby
|
433
|
+
link_to "Download as Excel", my_named_route_path(format: "xlsx")
|
434
|
+
```
|
435
|
+
|
436
|
+
Scenario 2 - Using form_with()
|
437
|
+
|
438
|
+
```ruby
|
439
|
+
form_with method: :post, url: my_named_route_path(format: :xlsx) do |f|
|
440
|
+
```
|
441
|
+
|
388
442
|
### What to do
|
389
443
|
|
390
|
-
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
|
444
|
+
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 caxlsx problems. If you can manually create the spreadsheet, create an issue and we will work it out.
|
391
445
|
|
392
446
|
## Previous Installations
|
393
447
|
|
@@ -418,7 +472,7 @@ gem 'axlsx_rails'
|
|
418
472
|
## Dependencies
|
419
473
|
|
420
474
|
- [Rails](https://github.com/rails/rails)
|
421
|
-
- [
|
475
|
+
- [caxlsx](https://github.com/caxlsx/caxlsx)
|
422
476
|
|
423
477
|
## Authors
|
424
478
|
|
@@ -440,14 +494,17 @@ Many thanks to [contributors](https://github.com/caxlsx/caxlsx_rails/graphs/cont
|
|
440
494
|
* [JohnSmall](https://github.com/JohnSmall)
|
441
495
|
* [BenoitHiller](https://github.com/BenoitHiller)
|
442
496
|
|
443
|
-
##
|
497
|
+
## Change log
|
498
|
+
|
499
|
+
**June 18, 2024**: 0.6.4 release
|
444
500
|
|
445
|
-
|
446
|
-
|
501
|
+
- Convert to Github actions
|
502
|
+
- Improve tests
|
503
|
+
- Fix broken templates with comments as their last line
|
447
504
|
|
448
|
-
|
505
|
+
**March 8, 2022**: 0.6.3 release
|
449
506
|
|
450
|
-
|
507
|
+
- Exclude rspec directory (#149)[https://github.com/caxlsx/caxlsx_rails/pull/149]
|
451
508
|
|
452
509
|
**December 18, 2019**: 0.6.2 release
|
453
510
|
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'lib/axlsx_rails/version'
|
4
|
+
|
5
|
+
# Describe your gem and declare its dependencies:
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = 'caxlsx_rails'
|
8
|
+
s.version = AxlsxRails::VERSION
|
9
|
+
s.licenses = ['MIT']
|
10
|
+
s.authors = ['Noel Peden']
|
11
|
+
s.email = ['noel@peden.biz']
|
12
|
+
s.homepage = 'https://github.com/caxlsx/caxlsx_rails'
|
13
|
+
s.summary = 'A simple rails plugin to provide an xlsx renderer using the caxlsx gem.'
|
14
|
+
s.description = "Caxlsx_Rails provides an Caxlsx renderer so you can move all your spreadsheet code from your controller into view files. Partials are supported so you can organize any code into reusable chunks (e.g. cover sheets, common styling, etc.) You can use it with acts_as_caxlsx, placing the to_xlsx call in a view and adding ':package => xlsx_package' to the parameter list. Now you can keep your controllers thin!"
|
15
|
+
|
16
|
+
s.files = Dir['lib/**/*', 'CHANGELOG.md', 'README.md', 'MIT-LICENSE', 'caxlsx_rails.gemspec']
|
17
|
+
|
18
|
+
s.add_dependency 'actionpack', '>= 3.1'
|
19
|
+
s.add_dependency 'caxlsx', '>= 3.0'
|
20
|
+
|
21
|
+
s.add_development_dependency 'bundler'
|
22
|
+
s.add_development_dependency 'rake'
|
23
|
+
s.add_development_dependency 'rspec-rails'
|
24
|
+
s.add_development_dependency 'guard-rspec'
|
25
|
+
s.add_development_dependency 'capybara'
|
26
|
+
s.add_development_dependency 'roo'
|
27
|
+
s.add_development_dependency 'rubyzip'
|
28
|
+
s.add_development_dependency 'growl'
|
29
|
+
s.add_development_dependency 'rb-fsevent'
|
30
|
+
s.add_development_dependency 'coveralls'
|
31
|
+
s.add_development_dependency 'pry'
|
32
|
+
s.add_development_dependency 'pry-nav'
|
33
|
+
end
|
data/lib/axlsx_rails/railtie.rb
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'axlsx_rails/template_handler'
|
4
|
+
|
3
5
|
module AxlsxRails
|
4
6
|
class Railtie < Rails::Railtie
|
5
7
|
initializer 'axlsx_rails.initialization' do
|
6
8
|
ActiveSupport.on_load(:action_view) do
|
7
|
-
|
8
|
-
ActionView::Template.register_template_handler :axlsx, ActionView::Template::Handlers::AxlsxBuilder.new
|
9
|
+
ActionView::Template.register_template_handler :axlsx, AxlsxRails::TemplateHandler.new
|
9
10
|
end
|
10
11
|
|
11
12
|
ActiveSupport.on_load(:action_controller) do
|
@@ -1,37 +1,33 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'action_view'
|
4
3
|
require 'stringio'
|
5
4
|
|
6
|
-
module
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
else
|
17
|
-
Mime::XLSX
|
18
|
-
end
|
5
|
+
module AxlsxRails
|
6
|
+
class TemplateHandler
|
7
|
+
def default_format
|
8
|
+
case
|
9
|
+
when Rails.version.to_f >= 6
|
10
|
+
Mime[:xlsx].symbol
|
11
|
+
when Rails.version.to_f >= 5
|
12
|
+
Mime[:xlsx]
|
13
|
+
else
|
14
|
+
Mime::XLSX
|
19
15
|
end
|
16
|
+
end
|
20
17
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
end
|
18
|
+
def call(template, source = nil)
|
19
|
+
builder = StringIO.new
|
20
|
+
builder << "require 'axlsx';"
|
21
|
+
builder << "xlsx_author = defined?(xlsx_author).nil? ? nil : xlsx_author;"
|
22
|
+
builder << "xlsx_created_at = defined?(xlsx_created_at).nil? ? nil : xlsx_created_at;"
|
23
|
+
builder << "xlsx_use_shared_strings = defined?(xlsx_use_shared_strings).nil? ? nil : xlsx_use_shared_strings;"
|
24
|
+
builder << "xlsx_package = Axlsx::Package.new("
|
25
|
+
builder << ":author => xlsx_author,"
|
26
|
+
builder << ":created_at => xlsx_created_at,"
|
27
|
+
builder << ":use_shared_strings => xlsx_use_shared_strings);"
|
28
|
+
builder << (source || template.source)
|
29
|
+
builder << "\n;xlsx_package.to_stream.string;"
|
30
|
+
builder.string
|
35
31
|
end
|
36
32
|
end
|
37
33
|
end
|
data/lib/axlsx_rails/version.rb
CHANGED